Seismic event classification package
Project description
seisclass
Seismic event classification package for identifying natural and non-natural earthquakes.
Overview
seisclass is a Python package designed to classify seismic events using machine learning models. It provides one main function:
check_seed: Analyzes a seismic data file (SEED format) with corresponding phase file, returning a comma-separated result string: event_type,earthquake_prob,explode_prob,collapse_prob
For detailed information about the program and to cite it in your research publications, please refer to the following papers:
[1] Jia, L., Chen, H., & Xing, K. (2022). Rapid classification of local seismic events using machine learning. Journal of Seismology, 26(5), 897-912.
[2] Jia, L., Chen, S., Li, Y., & Zheng, P. (2025). A Semisupervised Seismic Events Classifier Based on Generative Adversarial Network. Seismological Research Letters, 96(3), 2039-2051.
Git-Repository: [https://github.com/epnet2018/]
Usage
Basic Usage
from seisclass import check_seed
# Analyze a SEED file with corresponding phase file
result = check_seed('path/to/seed/file', 'path/to/phase/file')
print(result)
Installation
You can install the package from PyPI:
pip install seisclass
Or install from source:
pip install .
Dependencies
- numpy
- obspy
- tensorflow
- keras
- joblib
- scikit-learn
- pandas
Advanced Usage
# Specify a different model
result = check_seed('path/to/seed/file', 'path/to/phase/file', model_str='251111nw')
Testing
To run the tests:
pytest
License
This project is licensed under the MIT License - see the LICENSE file for details.
Authors
- Jia Luozhao - 18429320@qq.com
Project Structure
seisclass/
├── seisclass/
│ ├── __init__.py # Package initialization and API exposure
│ ├── check_wave.py # Core functionality
│ ├── model/
│ │ └── 251111nw/ # Model files
│ ├── packages/
│ │ └── read_phase.py # Phase file parser
│ └── resource/
│ ├── test.phase # Test phase data
│ └── test.seed # Test seed data
├── tests/
│ ├── __init__.py
│ └── test_checkwave.py # Tests
├── setup.py # Setup configuration
├── pyproject.toml # Modern PyPI configuration
├── README.md # This file
├── LICENSE # License file
└── requirements.txt # Dependencies
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seisclass-0.1.6.tar.gz.
File metadata
- Download URL: seisclass-0.1.6.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7a789cb2b9bd0e198470837f6d002cbc6d51c813f1b93d87803a8afd6ca159f
|
|
| MD5 |
fbbc89315d9cf854e61ac195ed93aab4
|
|
| BLAKE2b-256 |
09e8655cd2310f5c7b74dd6ac24703510611b7d0d3a27c5bb7cad6455f054e42
|
File details
Details for the file seisclass-0.1.6-py3-none-any.whl.
File metadata
- Download URL: seisclass-0.1.6-py3-none-any.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12cfd6e8ff1d73db5e504333c56a5211e2ca45434415dbce468e55c7be314019
|
|
| MD5 |
69ec7d67d076869db50cd9e36af9f833
|
|
| BLAKE2b-256 |
0f3426dd6c8de6d9d564f00f9517370753b423483acbf241575cb1dddf3216d1
|