The Seismology Benchmark collection (SeisBench) is an open-source python toolbox for machine learning in seismology. It provides a unified API for accessing seismic datasets and both training and applying machine learning algorithms to seismic data. SeisBench has been built to reduce the overhead when applying or developing machine learning techniques for seismological tasks.
Getting started
SeisBench offers three core modules, data, models, and generate.
data provides access to benchmark datasets and offers functionality for loading datasets.
models offers a collection of machine learning models for seismology.
You can easily create models, load pretrained models or train models on any dataset.
generate contains tools for building data generation pipelines.
They bridge the gap between data and models.
The easiest way of getting started is through our Colab notebooks. Just click on the "Open in Colab" link to run them in your browser. Alternatively, you can clone the repository and run the same examples locally.
Note: If an example notebooks has been added very recently, it might rely on functionality that is not yet part of a numbered version.
To run it nonetheless, you can replace the installation line with pip install "seisbench[das] @ git+https://github.com/seisbench/seisbench" to use the latest development branch.
Basic examples
These examples introduce you to the key modules of SeisBench.
| Examples | |
|---|---|
| Dataset basics | |
| Model API | |
| Generator Pipelines |
Advanced topics
This section covers topics like training models, creating datasets or building earthquake catalogs.
| Examples | |
|---|---|
| Applied picking | |
| Training PhaseNet | |
| Creating a dataset | |
| Building an event catalog with GaMMA | |
| Building an event catalog with PyOcto |
Using SeisBench for DAS data
These tutorials introduce how to use SeisBench to train and apply models for distributed acoustic sensing (DAS) data.
| Examples | |
|---|---|
| Applying DAS models | |
| Training DeepSubDAS |
Miscellaneous
A collection of notebooks for miscellaneous topics, such as denoising or depth estimation.
| Examples | |
|---|---|
| Training DKPN | |
| Using DeepDenoiser | |
| Training Denoiser | |
| Depth phases and earthquake depth |
For more detailed information on Seisbench check out the SeisBench documentation.
Installation
SeisBench can be installed in two ways. In both cases, you might consider installing SeisBench in a virtual environment, for example using conda.
The recommended way is installation through pip. Simply run:
pip install seisbench
Alternatively, you can install the latest version from source. For this approach, clone the repository, switch to the repository root and run:
pip install .
which will install SeisBench in your current python environment.
If you want to run SeisBench on DAS data, make sure to pass the [das] argument, i.e., pip install seisbench[das].
CPU only installation
SeisBench is built on pytorch, which in turn runs on CUDA for GPU acceleration. Sometimes, it might be preferable to install pytorch without CUDA, for example, because CUDA will not be used and the CUDA binaries are rather large. To install such a pure CPU version, the easiest way is to follow a two-step installation. First, install pytorch in a pure CPU version as explained here. Second, install SeisBench the regular way through pip. Example instructions would be:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install seisbench
Contributing
There are many ways to contribute to SeisBench and we are always looking forward to your contributions. Check out the contribution guidelines for details on how to contribute.
Known issues
- We've experienced occasional issues with access to our repository.
To verify the issue, try accessing https://hifis-storage.desy.de directly from the same machine.
As a mitigation, you can use our backup repository. Just run
seisbench.use_backup_repository(). Please note that the backup repository will usually show lower download speeds. - We've recently changed the URL of the SeisBench repository. To use the new URL update to SeisBench 0.11.5.
It this is not possible, you can use the following commands within your runtime to update the URL manually:
import seisbench from urllib.parse import urljoin seisbench.remote_root = "https://hifis-storage.desy.de/Helmholtz/HelmholtzAI/SeisBench/" seisbench.remote_data_root = urljoin(seisbench.remote_root, "datasets/") seisbench.remote_model_root = urljoin(seisbench.remote_root, "models/v3/")
References
Reference publications for SeisBench:
-
SeisBench - A Toolbox for Machine Learning in Seismology
Reference publication for software.
-
Which picker fits my data? A quantitative evaluation of deep learning based seismic pickers
Example of in-depth benchmarking study of deep learning-based picking routines using the SeisBench framework.
Acknowledgements
The initial version of SeisBench has been developed at GFZ Potsdam and KIT with funding from Helmholtz AI. The SeisBench repository is hosted by HIFIS - Helmholtz Federated IT Services.
This development of the LFE detection model has been supported by MIAI@Grenoble Alpes (ANR-19-P3IA-0003) and the European Union through the Marie Skłodowska-Curie Actions (n°101104996 - DECODE).
The initial DAS model and data interface was supported by the European Commission under the Horizon Europe programme, through the project SUBMERSE (https://submerse.eu/) (Grant Agreement No. 101095055), funded within the HORIZON-INFRA-2022-TECH-01 call.
Metadata
Release files for seisbench 0.12.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seisbench-0.12.6.tar.gz | 33.5 MB | Details |
Built distributions (wheels)
Total release size: 39.0 MB
Release files / seisbench-0.12.6.tar.gz
| Download URL | seisbench-0.12.6.tar.gz |
|---|---|
| Size | 33.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b5e7f0d8228b71e5759511dc962f9224a4490b97be42d9c8da39b4efc8e8d09
|
|
BLAKE2b-256 checksum How to use checksums |
35fe65830ba0fb3dfb8ea904cc49795297a31143de04e6e563da764139ebc5fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp314-cp314-win_arm64.whl
| Download URL | seisbench-0.12.6-cp314-cp314-win_arm64.whl |
|---|---|
| Size | 271.3 kB |
| Tags | CPython 3.14 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
74420a7c066d434a231fb660e58b50fded38f97ae8e051f637944a570cde53e5
|
|
BLAKE2b-256 checksum How to use checksums |
752af35f116889aa569132989cabe29c267b945f61641cd892ced3a535e42d27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp314-cp314-win_amd64.whl
| Download URL | seisbench-0.12.6-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 271.8 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d776eb6328a3cd099de6f2448f2d15fd76087863fef930418b12b55cf673b80a
|
|
BLAKE2b-256 checksum How to use checksums |
a8d144bc0faeea0848e895a97f596c18a4c3cff285340c3afa7a7971d7c19ae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | seisbench-0.12.6-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 282.8 kB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
2b18f63ffea9aad212a1a3938687272007db12e7db405300cbca18021a954a63
|
|
BLAKE2b-256 checksum How to use checksums |
0f3272ee131675ed45f64bca53cfcd82f32bb573bcbc13ac7aaf94bdc66c2be8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | seisbench-0.12.6-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 268.7 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2a774dd373b3ffaae3e218e344dc08c5de891e9201cdf95088edd4a3c000c95d
|
|
BLAKE2b-256 checksum How to use checksums |
9ce3df369ce55da7304dc3f6988b0de469db8fe6c02477e445fd2110a5709e53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp313-cp313-win_arm64.whl
| Download URL | seisbench-0.12.6-cp313-cp313-win_arm64.whl |
|---|---|
| Size | 271.5 kB |
| Tags | CPython 3.13 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
a17e401c6449a172219a522592c64edb2da6fe7a94408f60448f750d335caca3
|
|
BLAKE2b-256 checksum How to use checksums |
f99e82ba1622958ca7905d7c74291c528d06aa80e5ca45b89e4e55c8803303d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp313-cp313-win_amd64.whl
| Download URL | seisbench-0.12.6-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 272.0 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b5f0367950a7cb04a5d22b65ec3670ec0efe371a10cc225d376e9ec84555b4a8
|
|
BLAKE2b-256 checksum How to use checksums |
601e8b4e7b04143775841d5ee2861a28bac4abfde07eff97b256d427483b77dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | seisbench-0.12.6-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 282.7 kB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
7a22b16dbc492deb050ae33439026073911b96d4bf1a6cf0ffd5fbaf210547e6
|
|
BLAKE2b-256 checksum How to use checksums |
91d7b5e5812ac99a64cfc836f0385e6292a06393237b8af7eda87bfb44a5a8b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | seisbench-0.12.6-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 268.7 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b6151e86f2d84ecc5d4c0853bcd889d5e3c074b069aecd7d3fd164923d152e63
|
|
BLAKE2b-256 checksum How to use checksums |
f07ae9ad6d1448637ff3f814563b6f74a8a7e4045caee019e257189fa1255136
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp312-cp312-win_arm64.whl
| Download URL | seisbench-0.12.6-cp312-cp312-win_arm64.whl |
|---|---|
| Size | 271.5 kB |
| Tags | CPython 3.12 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
a22db8e9595f3acbdbb7d5542bd89b5c12ca701b93a1c2d0ac93d1be559024e8
|
|
BLAKE2b-256 checksum How to use checksums |
f61357735fbb9b724d23474ca37081b828218d3c4ce75c1aac54d4169049aaa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp312-cp312-win_amd64.whl
| Download URL | seisbench-0.12.6-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 272.0 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
80482caf78d5ea6310afe98dfdb1856045b0cb6a643b29458f65211ece42cc82
|
|
BLAKE2b-256 checksum How to use checksums |
3515aa4b94c61a3b830b89a7360cfd5de67b5cdf02216bd824df147f80bfb744
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | seisbench-0.12.6-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 282.6 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
2d65c6a148c6babd740187e9e1941e364011a8c634263d4353262af90ef126b0
|
|
BLAKE2b-256 checksum How to use checksums |
411abf74ccb909e1815ae118002cb9e836804a176ebe74cf9a1406758c317d17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | seisbench-0.12.6-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 268.7 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b4b1329bef1820666328ae228c5d20068b8580792adf9c2574b7f1601d3b84e0
|
|
BLAKE2b-256 checksum How to use checksums |
1b0f6ca1d523e0b620e62000498c475636e241dadb48608d598eddced08e584b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp311-cp311-win_arm64.whl
| Download URL | seisbench-0.12.6-cp311-cp311-win_arm64.whl |
|---|---|
| Size | 271.5 kB |
| Tags | CPython 3.11 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
8b2cb4ae445020d0c3d3810037d391e1add9f486a951d9ecdd43550d0010c9cd
|
|
BLAKE2b-256 checksum How to use checksums |
ad3b784ad347a7c4753d7bd5c53e213ececd58d66256ba8a0806d93e42a0ac3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp311-cp311-win_amd64.whl
| Download URL | seisbench-0.12.6-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 271.9 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3462027ba6af776efc427e85a6f2439277b2b6488951af05046ac8b4859bcab1
|
|
BLAKE2b-256 checksum How to use checksums |
087d8aee47723ebf969f59f1741723920a5fb01101ae0b215780f0e5916659a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | seisbench-0.12.6-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 282.6 kB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
2ac90be58512b5fbade3d142f3add6505fd20914e15087c63878f8ffa0cfcf35
|
|
BLAKE2b-256 checksum How to use checksums |
33348d0eec4ef1aa059f83203f4a811935b2cb9fccb56e6fab75f18349cc3ec9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | seisbench-0.12.6-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 268.7 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9d9151741833f452172d3e5f51bc7411aed62c7ff307d81d65687ab3f1101a90
|
|
BLAKE2b-256 checksum How to use checksums |
af68c8549625532540ffde851601cccf9f6d1f6b700add5b49f3c780a592ecbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp310-cp310-win_arm64.whl
| Download URL | seisbench-0.12.6-cp310-cp310-win_arm64.whl |
|---|---|
| Size | 271.5 kB |
| Tags | CPython 3.10 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
cb13f8679f293876aa8cfffe1f4c43a4f676549b4254b0a8dd71f9545283c173
|
|
BLAKE2b-256 checksum How to use checksums |
5c26f87bec071bc5c5c5f081be177ef56c6a71ea2fe6b6831c2554f742bd0efc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp310-cp310-win_amd64.whl
| Download URL | seisbench-0.12.6-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 271.9 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4ac5cebc59776cbfb94f5fd02768567689407f2c7e7e0c60446162217141a54a
|
|
BLAKE2b-256 checksum How to use checksums |
e5f3ad93aef744552bd3a59aaa3471b16ba14c9b4b6a0de53b6ae6ee837ab898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
| Download URL | seisbench-0.12.6-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 281.7 kB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
16de444bcb298c52258b71be7fcf448efda2f31a9bda303c54a3102988d18ddc
|
|
BLAKE2b-256 checksum How to use checksums |
06d2c5a11359088af3a7ff12276136fde78f81215acc28404b71359ee7fd8951
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / seisbench-0.12.6-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | seisbench-0.12.6-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 268.7 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
519b915cb22a8d5123444a4f4233ddb3c1d7ee78e237af5f617e8bb8cc97a515
|
|
BLAKE2b-256 checksum How to use checksums |
9398d644121f88be476322907c3ed29c50db7b5c36e478ba01e9ad8cf64a190a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|