![event](docs/source/figures/logo.png)
# An AI-Based Earthquake Signal Detector and Phase Picker
![PyPI](https://img.shields.io/pypi/v/EQTransformer?style=plastic)
![Conda](https://img.shields.io/conda/v/smousavi05/eqtransformer?style=plastic)
![Read the Docs](https://img.shields.io/readthedocs/eqtransformer?style=plastic)
![PyPI - License](https://img.shields.io/pypi/l/EQTransformer?style=plastic)
![Conda](https://img.shields.io/conda/dn/smousavi05/eqtransformer?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/smousavi05/EQTransformer?style=plastic)
![Twitter Follow](https://img.shields.io/twitter/follow/smousavi05?style=social)
![GitHub followers](https://img.shields.io/github/followers/smousavi05?style=social)
![GitHub stars](https://img.shields.io/github/stars/smousavi05/EQTransformer?style=social)
![GitHub forks](https://img.shields.io/github/forks/smousavi05/EQTransformer?style=social)
--------------
## Description
**EQTransformer** is an AI-based earthquake signal detector and phase (P&S) picker based on a deep neural network with an attention mechanism. It has a hierarchical architecture specifically designed for earthquake signals. **EQTransformer** has been trained on global seismic data and can perform detection and arrival time picking simultaneously and efficiently. In addition to the prediction probabilities, it can also provide estimated model uncertainties.
The **EQTransformer** python 3 package includes modules for downloading continuous seismic data, preprocessing, performing earthquake signal detection, and phase (P & S) picking using pre-trained models, building and testing new models, and performing a simple phase association.
Developer: S. Mostafa Mousavi
-----------
## Links
* Documentation: https://rebrand.ly/EQT-documentations
* Paper:https://rdcu.be/b58li
-------------
## Reference
Mousavi, S.M., Ellsworth, W.L., Zhu, W., Chuang, L, Y., and Beroza, G, C. Earthquake transformer—an attentive deep-learning model for simultaneous earthquake detection and phase picking. Nat Commun 11, 3952 (2020). https://doi.org/10.1038/s41467-020-17591-w
BibTeX:
@article{mousavi2020earthquake,
title={Earthquake transformer—an attentive deep-learning model for simultaneous earthquake detection and phase picking},
author={Mousavi, S Mostafa and Ellsworth, William L and Zhu, Weiqiang and Chuang, Lindsay Y and Beroza, Gregory C},
journal={Nature Communications},
volume={11},
number={1},
pages={1--12},
year={2020},
publisher={Nature Publishing Group}
}
-----------------
## Installation
**EQTransformer** supports a variety of platforms, including macOS, Windows, and Linux operating systems. Note that you will need to have Python 3.x (3.6 or 3.7) installed. The **EQTransformer** Python package can be installed using the following options:
#### Via Anaconda (recommended):
conda create -n eqt python=3.7
conda activate eqt
conda install -c smousavi05 eqtransformer
##### Note: You may need to repeat executing the last line multiple time to succeed.
#### Via PyPI:
If you already have `Obspy` installed on your machine, you can get **EQTransformer** through PyPI:
pip install EQTransformer
#### From source:
The sources for **EQTransformer** can be downloaded from the `Github repo`.
You can either clone the public repository:
git clone git://github.com/smousavi05/EQTransformer
Once you have a copy of the source, you can cd to **EQTransformer** directory and install it with:
python setup.py install
If you have installed **EQTransformer** Python package before and want to upgrade to the latest version, you can use the following command:
pip install EQTransformer -U
-------------
## Tutorials
See either:
https://rebrand.ly/EQT-documentations
and/or
https://rebrand.ly/EQT-examples
Note: to run the notebook exampels, you may need to reinstall the jupyter on the same environment that **EQTransformer** has been installed.
-------------------
## A Quick Example
```python
from EQTransformer.core.mseed_predictor import mseed_predictor
mseed_predictor(input_dir='downloads_mseeds',
input_model='ModelsAndSampleData/EqT_model.h5',
stations_json='station_list.json',
output_dir='detection_results',
detection_threshold=0.2,
P_threshold=0.1,
S_threshold=0.1,
number_of_plots=10,
plot_mode='time_frequency',
batch_size=500,
overlap=0.3)
```
-------------
## Test set
test.npy fine in the ModelsAndSampleData folder contains the trace names for the test set used in the paper.
Based on these trace names you can retrieve our test data along with their labels from STEAD. Applying your model to these test traces you can directly compare the performance of your model to those in Tabels 1, 2, and 3 in the paper.
The remaining traces in the STEAD were used for the training (85 %) and validation (5 %) respectively.
---------------
## Contributing
If you would like to contribute to the project as a developer, follow these instructions to get started:
1. Fork the **EQTransformer** project (https://github.com/smousavi05/EQTransformer)
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
-----------
## License
The **EQTransformer** package is distributed under the `MIT license`, a permissive open-source (free software) license.
-----------------
## Reporting Bugs
Report bugs at https://github.com/smousavi05/EQTransformer/issues.
If you are reporting a bug, please include:
* Your operating system name and version.
* Any details about your local setup that might be helpful in troubleshooting.
* Detailed steps to reproduce the bug.
没有合适的资源?快使用搜索试试~ 我知道了~
基于AI的地震信号检测器和鉴相器EQTransformer python 3软件包包括用于下载连续地震数据,进行预处理
共92个文件
py:20个
png:18个
pyc:17个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 115 浏览量
2023-10-19
11:25:49
上传
评论
收藏 31.34MB ZIP 举报
温馨提示
基于AI的地震信号检测器和鉴相器EQTransformer python 3软件包包括用于下载连续地震数据,进行预处理,执行地震信号检测以及使用预先训练的模型进行相位(P&S)拾取,构建和测试新模型以及执行简单的相位关联的模块.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于AI的地震信号检测器和鉴相器EQTransformer python 3软件包包括用于下载连续地震数据,进行预处理,执行地震信号检测以及使用预先训练的模型进行相位(P&S)拾取,构建和测试新模型以及执行简单的相位关联的模块.zip (92个子文件)
1
EQTransformer-master
setup.py 928B
.github
workflows
python-publish.yml 873B
LICENSE 1KB
tests
test_tester.py 1KB
__init__.py 11B
test_trainer.py 2KB
test_predictor.py 1KB
test_downloader.py 2KB
test_hdf5maker.py 691B
CONTRIBUTING.md 377B
examples
visualization.ipynb 4KB
detection.ipynb 19KB
downloading.ipynb 37KB
association.ipynb 90KB
training.ipynb 37KB
docs
Makefile 780B
source
overview.rst 6KB
EQTransformer.utils.downloader.rst 179B
references.rst 2KB
EQTransformer.core.trainer.rst 167B
EQTransformer.core.mseed_predictor.rst 192B
EQTransformer.utils.hdf5_maker.rst 180B
index.rst 2KB
documentation.rst 152B
copyrightlicense.rst 1KB
EQTransformer.utils.plot.rst 162B
conf.py 4KB
downloading.ipynb 25KB
EQTransformer.utils.associator.rst 179B
EQTransformer.core.predictor.rst 174B
tutorial.rst 16KB
installation.rst 3KB
developers.rst 441B
EQTransformer.core.tester.rst 165B
figures
4heli.png 119KB
arch.png 173KB
Picture11.png 476KB
5heli.png 146KB
SF6.png 1.81MB
logo.png 15KB
SF3.jpg 1.43MB
2time-frequency.png 181KB
SF10_.jpg 2.58MB
11histtoto.png 25KB
Picture1.png 400KB
SF5.png 472KB
10toto.jpg 919KB
3Xdata_chart.png 191KB
7SV08_outputs.png 69KB
SF13.png 1.1MB
8eqmap.png 928KB
9arch.png 3.7MB
SF9_.jpg 2MB
Picture12.png 399KB
6station_map.png 114KB
1time.png 73KB
environment.yml 110B
EQTransformer
__init__.py 3KB
utils
__init__.py 212B
plot.py 10KB
downloader.py 15KB
associator.py 36KB
hdf5_maker.py 25KB
__pycache__
hdf5_maker.cpython-36.pyc 10KB
plot.cpython-37.pyc 8KB
associator.cpython-37.pyc 16KB
hdf5_maker.cpython-37.pyc 11KB
__init__.cpython-37.pyc 446B
__init__.cpython-36.pyc 437B
downloader.cpython-37.pyc 11KB
associator.cpython-36.pyc 12KB
downloader.cpython-36.pyc 10KB
plot.cpython-36.pyc 7KB
core
__init__.py 174B
mseed_predictor.py 54KB
tester.py 30KB
trainer.py 29KB
predictor.py 51KB
EqT_utils.py 112KB
__pycache__
tester.cpython-37.pyc 16KB
predictor.cpython-37.pyc 29KB
mseed_predictor.cpython-37.pyc 35KB
__init__.cpython-37.pyc 329B
EqT_utils.cpython-37.pyc 74KB
trainer.cpython-37.pyc 21KB
__pycache__
__init__.cpython-37.pyc 2KB
ModelsAndSampleData
EqT_model2.h5 4.85MB
100samples.hdf5 7.22MB
100samples.csv 33KB
EqT_model.h5 4.93MB
test.npy 12.55MB
README.md 6KB
共 92 条
- 1
资源评论
处处清欢
- 粉丝: 174
- 资源: 2534
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功