Giter Club home page Giter Club logo

e3ws's Introduction

E3WS: Earthquake Early Warning Starting From 3 s of Records on a Single Station With Machine Learning

Twitter URL
Email: [email protected]


Welcome to the E3WS. Do you have a station? Start monitoring earthquakes!

If you use this software, you should cite the code as follow:

**E3WS, Pablo Lara et al. 2023, ** DOI

And the paper:

Pablo Lara, Quentin Bletery, Jean-Paul Ampuero, Adolfo Inza, Hernando Tavera. Earthquake Early Warning Starting From 3 s of Records on a Single Station With Machine Learning. Journal of Geophysical Research: Solid Earth.

E3WS article: https://doi.org/10.1029/2023JB026575

Installation

i) git clone https://github.com/PabloELara/E3WS.git

ii) Create E3WS environment

iii) Install E3WS dependences ('pip' command is your friend):

  • python = 3.7 - 3.9
  • xgboost = 1.6.1
  • scipy = 1.8.1
  • python-speech-features = 0.6
  • scikit-learn = 1.1.1
  • PyGeodesy = 23.3.23
  • obspy = 1.3.0

E3WS models

E3WS consists of 3 stages: detection, P-phase picking and source characterization.

For P-phase picking and source characterization (magnitude and location) the models are already defined. You can find them in the models folder. For example MAG7tp3*.joblib, it means the magnitude model uses 7 seconds before P-phase and 3 seconds after.

For detection, you must create your own model with intrinsic noises of the station to be installed. Relax, it is not difficult.

Inside the 'DET/build_DET/' folder:

  1. Have 10 days (or more) of continuous data to extract the noise (we must reach 900000 samples) and add it to the 'data/' folder.
  2. Eliminate the seismic records in these 10 days. I made an automatic program to remove it ('gen_catag.py'). I strongly recommend removing earthquakes from the trace manually, following the format of the '.csv' of the 'picked/' folder.
  3. Generate the feature vector with the program 'pb_FV_noise.py', it will create a csv file in the 'atr_noise/' folder.
  4. Download the earthquake feature vector folder 'atr_eq/' at https://mega.nz/folder/E2UTXIQZ#rH_k9nNrUIgU3D04rzPzzQ
  5. Finally, we have our noise ('atr_noise') and earthquake ('atr_eq') attributes. Now we have to train our detector model! Adapt the file pb_save_DET_model.py, and it will create our model in 'saved_models/'.

Run E3WS

Time to monitor earthquakes. An example of how E3WS works is in the 'real_time/' folder. E3WS detected the M5.6 earthquake of January 7, 2022 in Lima, Peru. The first E3WS estimate was M5.3 based on the first 3 seconds of P-wave. Continuous updates converged to M5.6 and are placed in the results/ folder.


map

e3ws's People

Contributors

pabloelara avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pnsn wangxch2019

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.