Giter VIP home page Giter VIP logo

gamma's Introduction

GaMMA: Gaussian Mixture Model Association

1. Install

pip install git+https://github.com/wayneweiqiang/GaMMA.git

The implementation is based on the Gaussian mixture models in scikit-learn

2. Related papers

  • Zhu, Weiqiang et al. "Earthquake Phase Association using a Bayesian Gaussian Mixture Model." (2021)
  • Zhu, Weiqiang, and Gregory C. Beroza. "PhaseNet: A Deep-Neural-Network-Based Seismic Arrival Time Picking Method." arXiv preprint arXiv:1803.03211 (2018). Method

3. Examples

  • Hyperparameters:

    • use_amplitude (default = True): If using amplitude information.
    • use_dbscan: If using dbscan to cut a long sequence of picks into segments. Using DBSCAN can significantly speed up associaiton using small windows.
    • dbscan_eps (default = 10.0s): The maximum time between two picks for one to be considered as a neighbor of the other. See details in DBSCAN
    • dbscan_min_samples (default = 3): The number of samples in a neighborhood for a point to be considered as a core point. See details in DBSCAN
    • min_picks_per_eq: Minimum picks for associated earthquakes. We can also specify minimum P or S picks:
      • min_p_picks_per_eq: Minimum P-picks for associated earthquakes.
      • min_s_picks_per_eq: Minimum S-picks for associated earthquakes.
    • max_sigma11: Max phase time residual (s)
    • max_sigma22: Max phase amplitude residual (in log scale)
    • max_sigma12: Max covariance term. (Usually not used)
    • oversampling_factor (default = 10): The initial number of clusters is determined by (Number of picks)/(Number of stations) * (oversampling factor).
  • Synthetic Example

See details in the notebook: example_synthetic.ipynb

Association result

See details in the notebook: example_phasenet.ipynb

See details in the notebook: example_seisbench.ipynb

Associaiton result

More examples can be found in the earthquake detection workflow -- QuakeFlow

gamma's People

Contributors

wayneweiqiang avatar zhuwq0 avatar

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.