There is a newer version of the record available.

Published August 19, 2025 | Version v1.0

Code for "Classification of Seismic Events in Mainland China Based on Spectrograms and Model Interpretability"

  • 1. ROR icon Guangxi Minzu University

Description

This repository contains the complete code implementation for "Classification of Seismic Events in Mainland China Based on Spectrograms and Model Interpretability". The upload includes two main components:

1. ResWaveQuake_Classification.zip
Implementation of seismic event classification using ResWaveQuake encoder architecture. The framework performs multi-class classification on seismic waveform data using spectrogram-based analysis with PyTorch Lightning.

Key features:
- ResWaveQuake encoder for feature extraction  
- Multi-class classification 
- Event-level prediction with majority voting across components
- Automatic class balancing and comprehensive evaluation
- Support for multiple seismic data formats (.mseed, .seed, .SAC, etc.)
- Resume training capability from checkpoints

2. Code for Interpretability Analysis.zip
Comprehensive interpretability analysis tools for understanding model decisions and feature importance in seismic event classification.

Components include:
- Cumulative heatmap analysis experiments
- Occlusion-based interpretability tests  
- Single-event interpretation analysis

Dataset Availability
The seismic waveform dataset used in this study has been uploaded to Science Data Bank at https://doi.org/10.57760/sciencedb.29192

Both packages include detailed README files with installation instructions and usage guidelines.

Files

Code for Interpretability Analysis.zip

Files (1.7 GB)

Name Size
md5:33c0e333f3ebf30c937d96ab5f0ce35a
1.7 GB Preview Download
md5:efafdeb87c77e7e8a5398fc029ee807e
1.4 kB Preview Download
md5:65f9de6cf42d3e0a2f93c777fcc9422e
138.5 kB Preview Download

Additional details

Software

Programming language
Python
Development Status
Active