Characteristic Functions in SurfQuake
Characteristic Functions (CFs) are core tools in seismic signal processing used to detect and quantify features like onset, amplitude, or signal clarity. SurfQuake supports three main CFs as part of its processing stack: Signal-to-Noise Ratio (SNR), Envelope, and Spectral Entropy. Each of these functions enhances interpretability and supports tasks like phase picking, event detection, and signal classification.
1. Signal-to-Noise Ratio (SNR)
This method measures how prominent a signal is relative to background noise, typically over short- and long-term averaging windows.
Supported Methods
- classic: Uses the classic STA/LTA (Short-Term Average / Long-Term Average) ratio
(Allen, 1978) - recursive: Applies a recursive version of STA/LTA for computational efficiency
- z_detect: Implements a simplified z-score detector
Parameters
sign_win
: Short-term window (seconds)noise_win
: Long-term window (seconds)
Config Example
2. Envelope
The envelope of a seismic trace provides a smooth representation of amplitude over time, often used for locating energy bursts and improving event visibility.
Methods
- FULL (default): Uses the analytic signal (Hilbert transform) to compute the full envelope.
- SMOOTH: Optionally applies lowpass filtering after envelope extraction.
Parameters
method
:'FULL'
or'SMOOTH'
corner_freq
: Lowpass filter cutoff (only for'SMOOTH'
)
Config Example
Reference
- Kanasewich, E. R. (1981). Time Sequence Analysis in Geophysics.
3. Spectral Entropy
Spectral entropy quantifies the disorder in the frequency content of a seismic trace over time. High entropy indicates noise or dispersed signals, while low entropy points to coherent, narrowband energy.
Parameters
win
: Window length in seconds (default: 2.0)overlap
: Overlap between windows as a fraction (0.0–1.0)normalize
: Normalize entropy values between 0 and 1
Config Example
Reference
- Ince, T., & Togneri, R. (2007). A new spectral entropy feature for seismic event detection. Digital Signal Processing, 17(3), 675–689.
Applications
- SNR: Event detection, onset detection, phase picking
- Envelope: Characterizing energy bursts, highlighting surface waves
- Spectral Entropy: Identifying coherent signals vs. noise, triggering logic
These functions can be used as standalone processors or in combination with pickers, visualizations, or further classification models.
Output
Each CF modifies the trace data to represent the calculated function. These modified traces can then be plotted, further processed, or used as features in detection algorithms.