Iranian Journal of Geophysics

Iranian Journal of Geophysics

Aftershock Spatial Prediction Using Machine Learning: Comparative Analysis of Deep MLP and Optimized Gaussian Naive Bayes with Probability Calibration

Document Type : Research Article

Author
Associate Professor, Surveying Engineering Department, Civil Engineering Faculty, Tabriz University, Tabriz, IRAN.
Abstract
Accurate spatial prediction of aftershocks remains a fundamental challenge in seismology, primarily because the static Coulomb failure stress change (ΔCFS) criterion exhibits limited predictive power when fault receiver geometries are unknown. This study utilizes a dataset comprising 199 fault rupture models and over 200,000 mainshock–aftershock pairs to compare the performance of two machine learning algorithms: a six-layer deep neural network (DeepMLP, following the DeVries architecture) and an optimized Gaussian Naive Bayes (GaussianNB) with PCA dimensionality reduction. To address the conditional independence and normality assumptions of GaussianNB, we employ a systematic preprocessing pipeline consisting of data standardization, Yeo-Johnson transformation, PCA with six components, and grid search over the var_smoothing hyperparameter. To address the intrinsic class imbalance in the natural aftershock distribution and to improve the calibration of the resulting probability estimates, DeepMLP is trained with focal loss (γ = 2, α = 0.5) rather than binary cross-entropy.

On the independent test set, the optimized GaussianNB achieved an accuracy of 77.21% and ROC-AUC of 0.8403, while DeepMLP achieved 77.12% accuracy and AUC = 0.8454. However, McNemar's test (p = 0.559) and bootstrap confidence intervals for the difference in AUC (95% CI: [−0.005, +0.018]) indicate that these differences are not statistically significant, confirming that the two models are statistically indistinguishable in overall classification performance. DeepMLP demonstrates higher recall (77.91% vs 74.02%) and F1 (0.7332 vs 0.7238), while GaussianNB shows higher specificity (79.37% vs 76.58%) and precision (70.81% vs 69.23%). These results indicate that the two models occupy different operating points rather than exhibiting general superiority.

Calibration analysis reveals an important finding regarding the interaction between loss function and probability reliability. GaussianNB exhibited severe under-confidence in its raw probability outputs (ECE = 0.212, Brier = 0.231), which manifested as an anomalously low optimal decision threshold of 0.0487. In contrast, DeepMLP trained with focal loss showed moderate miscalibration (ECE = 0.118, Brier = 0.238), substantially better than the ECE = 0.213 observed with binary cross-entropy. Applying isotonic regression on a held-out validation set reduced ECE to 0.082 for DeepMLP and 0.086 for GaussianNB, corresponding to improvements of 30.5% and 59.4%, respectively, and shifted both optimal decision thresholds to approximately 0.34–0.46. This result demonstrates that the choice of training loss is a first-order factor in determining calibration quality and that focal loss and post-hoc calibration should be viewed as complementary strategies.

All experiments were performed exclusively on CPU. GaussianNB is substantially faster (training: 1.75 s vs 213.34 s; prediction: 0.014 s vs 2.41 s), making it ideal for resource-constrained deployments, whereas DeepMLP requires longer training but achieves better recall for maximum aftershock detection. Interpretability analysis using SHAP on the original stress features identified the vertical-vertical stress component (negabszz) as the most important predictor. Diversity analysis yielded a Q-statistic of 0.988, explaining why ensemble strategies combining the two models provide no meaningful improvement. These findings guide model selection based on operational priorities and highlight the importance of probability calibration and statistical significance testing as standard practices in machine learning for geophysics.
Keywords
Subjects


Articles in Press, Accepted Manuscript
Available Online from 07 November 2026

  • Receive Date 28 June 2026
  • Revise Date 11 October 2026
  • Accept Date 07 November 2026
  • First Publish Date 07 November 2026
  • Publish Date 07 November 2026