Giter Club home page Giter Club logo

obstransformer's Introduction

Github Visitors


Description

OBSTransformer is a transfer-learned seismic phase picker for Ocean Bottom Seismometer data (OBS) adopted from the EqTransformer model. OBSTransformer has been trained on an auto-labelled tectonically inclusive OBS dataset comprising ~36k earthquake and 25k noise samples. OBSTransformer is now integrated with the hands-free earthquake location workflow-LOC-FLOW. You can download the auto-labelled data and noise samples used for model training via this link. Below snippet code demonstrates how to deal with the dataset:

import h5py as hp
import matplotlib.pyplot as plt

dataset = "OBST_training_data.hdf5"
d = hp.File(dataset, 'r')
for item in d['data']:
  if not item.endswith('EV'): continue 
  dd = d.get(f'data/{item}')
  p_arr = dd.attrs['p_arrival_sample']
  s_arr = dd.attrs['s_arrival_sample']
  print(p_arr, s_arr)
  plt.plot(dd)
  plt.show()

Installation

OBSTransformer is a variant of EqTransformer optimized for OBS data. Visit the parent repository for detailed installation guidelines.

To start with (anaconda):

conda create -n obst python=3.7
conda activate obst
pip install --upgrade pip
pip install obspy
pip install EQTransformer

You may encounter version conflicts between packages, such as numpy or protobuf. Try to install the suggested versions to eliminate the issue.


Quick Instruction

  1. Create a text file including instrument information (see stations.dat)
  2. Build the required station metadata using the provided shell script (build_json.sh; needs two addresses)
  3. Prepare the dataset directory (see dataset/)
  4. Run the detection.py code (python detection.py dataset/)

Reference

Niksejel, A. & Zhang, M., 2024. OBSTransformer: A Deep-Learning Seismic Phase Picker for OBS Data Using Automated Labelling and Transfer Learning. Geophysical Journal International, ggae049, https://doi.org/10.1093/gji/ggae049.

obstransformer's People

Contributors

alirezaniki avatar

Stargazers

Chuanming Liu 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.