Skip to main content
QUICK REVIEW

[Paper Review] Variational Autoencoders for P-wave Detection on Strong Motion Earthquake Spectrograms

Türkan Simge İşpak, Salih Tileylioğlu|arXiv (Cornell University)|Jan 9, 2026
Seismology and Earthquake StudiesComputer Science0 citations
TL;DR

The paper systematically compares four VAE architectures (Basic, Skip, Attention, Hybrid) to study how reconstruction fidelity vs. anomaly detection trade off for P-wave detection in strong-motion spectrograms, finding attention-based VAEs best for detection.

ABSTRACT

Accurate P-wave detection is critical for earthquake early warning, yet strong-motion records pose challenges due to high noise levels, limited labeled data, and complex waveform characteristics. This study reframes P-wave arrival detection as a self-supervised anomaly detection task to evaluate how architectural variations regulate the trade-off between reconstruction fidelity and anomaly discrimination. Through a comprehensive grid search of 492 Variational Autoencoder configurations, we show that while skip connections minimize reconstruction error (Mean Absolute Error approximately 0.0012), they induce "overgeneralization", allowing the model to reconstruct noise and masking the detection signal. In contrast, attention mechanisms prioritize global context over local detail and yield the highest detection performance with an area-under-the-curve of 0.875. The attention-based Variational Autoencoder achieves an area-under-the-curve of 0.91 in the 0 to 40-kilometer near-source range, demonstrating high suitability for immediate early warning applications. These findings establish that architectural constraints favoring global context over pixel-perfect reconstruction are essential for robust, self-supervised P-wave detection.

Motivation & Objective

  • Investigate how architectural biases in VAEs affect reconstruction vs. anomaly detection in P-wave detection on strong-motion spectrograms.
  • Assess four VAE variants (Basic-VAE, Skip-VAE, Attention-VAE, Hybrid-VAE) on a large grid of configurations.
  • Identify architectural configurations that maximize detection performance (AUC) while managing reconstruction quality (MAE).
  • Evaluate how latent capacity and Transformer hyperparameters influence robustness and stability across near-source to far-source ranges.

Proposed method

  • Formulate P-wave detection as self-supervised anomaly detection using VAEs trained on P-wave windows.
  • Generate spectrogram inputs from preprocessed strong-motion accelerograms with artifact removal and FBM-based noise augmentation.
  • Train four VAE variants (Basic-VAE, Skip-VAE, Attention-VAE, Hybrid-VAE) with a symmetric encoder–decoder structure.
  • Use MAE and NCC as reconstruction and similarity scores, and evaluate detection with ROC-AUC on sliding windows.
  • Conduct a grid search over latent dimension (32–256) and, for attention models, transformer depth (1–48) and heads, totaling 492 configurations.
  • Compare architectures by best AUC and corresponding MAE, highlighting the reconstruction-detection trade-off.
Figure 1: Detection performance versus reconstruction quality for the four VAE architectures tested in our experiments. Detection is measured by the Area Under the Receiver Operating Characteristic Curve ( $\mathit{AUC}$ , higher is better), and reconstruction is measured by the Mean Absolute Error
Figure 1: Detection performance versus reconstruction quality for the four VAE architectures tested in our experiments. Detection is measured by the Area Under the Receiver Operating Characteristic Curve ( $\mathit{AUC}$ , higher is better), and reconstruction is measured by the Mean Absolute Error

Experimental results

Research questions

  • RQ1Which architectural biases (skip connections, self-attention) best balance reconstruction fidelity and anomaly detection for P-wave onset in strong-motion spectrograms?
  • RQ2How does latent capacity (32–256) and Transformer hyperparameters affect detection stability and performance across near-source distances?
  • RQ3Can attention-based VAEs outperform reconstruction-focused variants in self-supervised P-wave detection without large labeled datasets?
  • RQ4What is the impact of window alignment relative to P-wave onset on detection performance for the best architectures?
  • RQ5How does distance from source to station influence the detection capability of the proposed models?

Key findings

  • Attention-VAE achieves the highest detection AUC (0.8749) among architectures, at the cost of higher reconstruction error (MAE 0.00428).
  • Skip-VAE yields the lowest reconstruction error (MAE 0.00119) but lower detection performance (AUC 0.8210).
  • Hybrid-VAE provides a balance with AUC 0.8445 and MAE 0.00213.
  • Basic-VAE shows weakest overall performance (AUC 0.8074, MAE 0.00461).
  • Best-performing Attention-VAE attains near-source AUC ~0.91 in 0–40 km, demonstrating strong suitability for immediate EEW, with performance sensitive to temporal alignment (peak when window starts 1 s before P-wave).
  • Model performance exhibits a trade-off where higher global context improves detection while pixel-accurate reconstruction can undermine anomaly discrimination.
Figure 2: Unified diagram of the proposed VAE architectures. Components marked with an asterisk (*) are optional, defining four configurations: Basic-VAE (baseline encoder–decoder), Skip-VAE (incorporating long-range skip connections), Attention-VAE (incorporating the self-attention bottleneck), and
Figure 2: Unified diagram of the proposed VAE architectures. Components marked with an asterisk (*) are optional, defining four configurations: Basic-VAE (baseline encoder–decoder), Skip-VAE (incorporating long-range skip connections), Attention-VAE (incorporating the self-attention bottleneck), and

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.