Ensemble RNN–Random Forest Model for Earthquake Prediction Based onSpatio-Temporal Seismic Data
DOI:
https://doi.org/10.15294/edukom.v12i1.35332Keywords:
Earthquake Prediction, Ensemble Model, RNN-RF Hybrid, Artificial Intelligence, Spatio-Temporal Data, BMKGAbstract
This study proposes a hybrid Ensemble RNN–Random Forest (RNN–RF) model for short-term earthquake prediction based on spatio-temporal seismic data from the Sulawesi–Maluku region. The purpose of this research is to develop a lightweight and interpretable machine learning framework that integrates temporal and spatial features using local datasets provided by the Manado Geophysical Station of BMKG. The methodology includes six stages: data acquisition, preprocessing, feature engineering, model development, ensemble integration, and evaluation. The RNN captures sequential dependencies in seismic activity, while the Random Forest learns spatial and contextual relationships such as fault proximity and event clustering. The ensemble fuses probabilistic outputs (0.75 RNN and 0.25 RF) followed by domain-based calibration using mean magnitude, event frequency, and fault distance. Experimental results show that the proposed ensemble achieved F1 = 0.89 and AUC = 0.975, outperforming individual RNN and RF models in predictive stability and accuracy. The model demonstrates that integrating domain-specific adjustments enhances both recall and precision, while maintaining interpretability for operational deployment. This study contributes to explainable AI in seismology by bridging deep temporal modeling with geophysical reasoning, offering a scalable approach for early-warning applications in Indonesia.
References
Aden‐Antoniów, F., Frank, W. B., & Seydoux, L. (2022). An Adaptable Random Forest Model for the Declustering of Earthquake Catalogs. Journal of Geophysical Research: Solid Earth, 127(2). https://doi.org/10.1029/2021JB023254
Airlangga, G. (2024). A Hybrid Machine Learning Framework for Enhanced Tsunami Prediction Using Ensemble Models and Neural Networks. Journal of Computer System and Informatics (JoSYC), 6(1), 274–283. https://doi.org/10.47065/josyc.v6i1.6291
Asaly, S., Gottlieb, L. A., Inbar, N., & Reuveni, Y. (2022). Using Support Vector Machine (SVM) with GPS Ionospheric TEC Estimations to Potentially Predict Earthquake Events. Remote Sensing, 14(12). https://doi.org/10.3390/rs14122822
Atabekov, I. U., & Atabekov, A. I. (2024). Application of Neural Network Technologies for Tectonic Earthquake Forecast. Geotektonika, 4, 49–59. https://doi.org/10.31857/s0016853x24040032
Bilal, M. A., Ji, Y., Wang, Y., Akhter, M. P., & Yaqub, M. (2022). Early Earthquake Detection Using Batch Normalization Graph Convolutional Neural Network (BNGCNN). Applied Sciences, 12(15), 7548. https://doi.org/10.3390/app12157548
Budiman, K., & Ifriza, Y. N. (2021). Analysis of earthquake forecasting using random forest. Journal of Soft Computing Exploration, 2(2). https://doi.org/10.52465/joscex.v2i2.51
Christen, P., Hand, D. J., & Kirielle, N. (2024). A Review of the F-Measure: Its History, Properties, Criticism, and Alternatives. ACM Computing Surveys, 56(3), 1–24. https://doi.org/10.1145/3606367
Costantino, G., Giffard‐Roisin, S., Marsan, D., Marill, L., Radiguet, M., Mura, M. D., Janex, G., & Socquet, A. (2023). Seismic Source Characterization From GNSS Data Using Deep Learning. Journal of Geophysical Research: Solid Earth, 128(4). https://doi.org/10.1029/2022JB024930
Cui, Y., Bai, M., Wu, J., & Chen, Y. (2024). Earthquake signal detection using a multiscale feature fusion network with hybrid attention mechanism. Geophysical Journal International, 240(2), 988–1008. https://doi.org/10.1093/gji/ggae423
Damanik, R., Gunawan, E., Widiyantoro, S., Supendi, P., Atmaja, F. W., Ardianto, Husni, Y. M., Zulfakriza, & Sahara, D. P. (2023). New assessment of the probabilistic seismic hazard analysis for the greater Jakarta area, Indonesia. Geomatics, Natural Hazards and Risk, 14(1). https://doi.org/10.1080/19475705.2023.2202805
Dascher‐Cousineau, K., Shchur, O., Brodsky, E. E., & Günnemann, S. (2023). Using Deep Learning for Flexible and Scalable Earthquake Forecasting. Geophysical Research Letters, 50(17). https://doi.org/10.1029/2023GL103909
Datta, A., Wu, D. J., Zhu, W., Cai, M., & Ellsworth, W. L. (2022). DeepShake: Shaking Intensity Prediction Using Deep Spatiotemporal RNNs for Earthquake Early Warning. Seismological Research Letters, 93(3), 1636–1649. https://doi.org/10.1785/0220210141
Dikmen, O. (2024). Comparative Analysis of Machine Learning Models for Earthquake Prediction: A Case Study of Düzce, Türkiye. International Journal of Innovative Research in Engineering and Management, 11(5), 73–82. https://doi.org/10.55524/ijirem.2024.11.5.10
Emre Yavas, C., Chen, L., Kadlec, C., & Ji, Y. (2024). Predictive Modeling of Earthquakes in Los Angeles With Machine Learning and Neural Networks. IEEE Access, 12, 108673–108702. https://doi.org/10.1109/ACCESS.2024.3438556
Esposito, C., Landrum, G. A., Schneider, N., Stiefl, N., & Riniker, S. (2021). GHOST: Adjusting the Decision Threshold to Handle Imbalanced Data in Machine Learning. Journal of Chemical Information and Modeling, 61(6), 2623–2640. https://doi.org/10.1021/acs.jcim.1c00160
Gneiting, T., & Walz, E.-M. (2022). Receiver operating characteristic (ROC) movies, universal ROC (UROC) curves, and coefficient of predictive ability (CPA). Machine Learning, 111(8), 2769–2797. https://doi.org/10.1007/s10994-021-06114-3
Hsu, T. Y., & Pratomo, A. (2022). Early Peak Ground Acceleration Prediction for On-Site Earthquake Early Warning Using LSTM Neural Network. Frontiers in Earth Science, 10. https://doi.org/10.3389/feart.2022.911947
Hu, Y., Zhang, Q., Zhu, H., Wang, B., Xiong, H., & Wang, H. (2025). Scalable intermediate-term earthquake forecasting with multimodal fusion neural networks. Scientific Reports, 15(1), 9748. https://doi.org/10.1038/s41598-025-93877-7
Huang, Y., Han, X., & Zhao, L. (2021). Recurrent neural networks for complicated seismic dynamic response prediction of a slope system. Engineering Geology, 289, 106198. https://doi.org/10.1016/j.enggeo.2021.106198
Hutchings, S. J., & Mooney, W. D. (2021). The Seismicity of Indonesia and Tectonic Implications. Geochemistry, Geophysics, Geosystems, 22(9). https://doi.org/10.1029/2021GC009812
Jiang, C., Fang, L., Fan, L., & Li, B. (2021). Comparison of the earthquake detection abilities of PhaseNet and EQTransformer with the Yangbi and Maduo earthquakes. Earthquake Science, 34(5), 425–435. https://doi.org/10.29382/eqs-2021-0038
Kavianpour, P., Kavianpour, M., Jahani, E., & Ramezani, A. (2024). A CNN-BiLSTM model with attention mechanism for earthquake prediction. The Journal of Supercomputing, 80(2), 2913–2913. https://doi.org/10.1007/s11227-023-05497-5
Kubo, H., Naoi, M., & Kano, M. (2024). Recent advances in earthquake seismology using machine learning. Earth, Planets and Space, 76(1). https://doi.org/10.1186/s40623-024-01982-0
Mukherjee, B., Shaw, R. L., Sharma, M. L., & Sain, K. (2025). Earthquake prediction using machine learning perspectives in Himalayan seismic belt and its surroundings. Journal of Asian Earth Sciences, 293, 106764. https://doi.org/10.1016/j.jseaes.2025.106764
Münchmeyer, J., Woollam, J., Rietbrock, A., Tilmann, F., Lange, D., Bornstein, T., Diehl, T., Giunchi, C., Haslinger, F., Jozinović, D., Michelini, A., Saul, J., & Soto, H. (2022). Which Picker Fits My Data? A Quantitative Evaluation of Deep Learning Based Seismic Pickers. Journal of Geophysical Research: Solid Earth, 127(1). https://doi.org/10.1029/2021JB023499
Nicolis, O., Plaza, F., & Salas, R. (2021). Prediction of intensity and location of seismic events using deep learning. Spatial Statistics, 42, 100442. https://doi.org/10.1016/j.spasta.2020.100442
Niksejel, A., & Zhang, M. (2024). OBSTransformer: a deep-learning seismic phase picker for OBS data using automated labelling and transfer learning. Geophysical Journal International, 237(1), 485–505. https://doi.org/10.1093/gji/ggae049
Nurtas, M., Zhantaev, Z., Altaibek, A., Nurakynov, S., Mekebayev, N., Shiyapov, K., Iskakov, B., & Ydyrys, A. (2023). Predicting the Likelihood of an Earthquake by Leveraging Volumetric Statistical Data Through Machine Learning Techniques. Engineered Science, 26. https://doi.org/10.30919/es1031
Owczarz, K., & Blachowski, J. (2024). Random Forest—Based Identification of Factors Influencing Ground Deformation Due to Mining Seismicity. Remote Sensing, 16(15), 2742. https://doi.org/10.3390/rs16152742
Pasari, S., Simanjuntak, A. V. H., Neha, & Sharma, Y. (2021). Nowcasting earthquakes in Sulawesi Island, Indonesia. Geoscience Letters, 8(1), 27. https://doi.org/10.1186/s40562-021-00197-5
Puspita, D. D., Steffi, S., Hoendarto, G., & Tjen, J. (2025). Random Forest Analysis for Predicting the Probability of Earthquake in Indonesia. Social Science and Humanities Journal, 9(01), 6295–6304. https://doi.org/10.18535/sshj.v9i01.1574
Rachman, G., Santosa, B. J., Nugraha, A. D., Rohadi, S., Rosalia, S., Zulfakriza, Z., Sungkono, S., Sahara, D. P., Muttaqy, F., Supendi, P., Ramdhan, M., Ardianto, A., & Afif, H. (2022). Seismic Structure Beneath the Molucca Sea Collision Zone from Travel Time Tomography Based on Local and Regional BMKG Networks. Applied Sciences, 12(20), 10520. https://doi.org/10.3390/app122010520
Roni Merdiansah, Khofifah Wulandari, Mentari Hasibuan, & Yuyun Umaidah. (2024). Perbandingan Kinerja Model RNN, LSTM, dan BLSTM dalam Memprediksi Jumlah Gempa Bulanan di Indonesia. Jurnal Penelitian Rumpun Ilmu Teknik, 3(1), 262–277. https://doi.org/10.55606/juprit.v3i1.3466
Salam, M. A., Ibrahim, L., & Abdelminaam, D. S. (2021). Earthquake Prediction using Hybrid Machine Learning Techniques. International Journal of Advanced Computer Science and Applications, 12(5). https://doi.org/10.14569/IJACSA.2021.0120578
Sugondo, R. A., & Machbub, C. (2021). P-Wave detection using deep learning in time and frequency domain for imbalanced dataset. Heliyon, 7(12), e08605. https://doi.org/10.1016/j.heliyon.2021.e08605
Vinod, D. N., Kapileswar, N., Simon, J., B, P., & Polasi, P. K. (2025). Hybrid CNN-LSTM Framework for Accurate Seismic Event Prediction. 2025 International Conference on Machine Learning and Autonomous Systems (ICMLAS), 1350–1353. https://doi.org/10.1109/ICMLAS64557.2025.10968633
Wang, X., Zhong, Z., Yao, Y., Li, Z., Zhou, S., Jiang, C., & Jia, K. (2023). Small Earthquakes Can Help Predict Large Earthquakes: A Machine Learning Perspective. Applied Sciences (Switzerland), 13(11). https://doi.org/10.3390/app13116424
Wibowo, A., & Gunawan, W. (2024). Pemanfaatan Algoritma K-Means dalam Klasterisasi Gempa Sulawesi. Faktor Exacta, 17(3), 228. https://doi.org/10.30998/faktorexacta.v17i3.23169
Xiao, Z., Wang, J., Liu, C., Li, J., Zhao, L., & Yao, Z. (2021). Siamese Earthquake Transformer: A Pair‐Input Deep‐Learning Model for Earthquake Detection and Phase Picking on a Seismic Array. Journal of Geophysical Research: Solid Earth, 126(5). https://doi.org/10.1029/2020JB021444
Yavas, C. E., Chen, L., Kadlec, C., & Ji, Y. (2024). Improving earthquake prediction accuracy in Los Angeles with machine learning. Scientific Reports, 14(1), 24440. https://doi.org/10.1038/s41598-024-76483-x
Yousefzadeh, M., Hosseini, S. A., & Farnaghi, M. (2021). Spatiotemporally explicit earthquake prediction using deep neural network. Soil Dynamics and Earthquake Engineering, 144, 106663. https://doi.org/10.1016/j.soildyn.2021.106663
Zhang, H., Ke, S., Liu, W., & Zhang, Y. (2024). A combining earthquake forecasting model between deep learning and epidemic-type aftershock sequence (ETAS) model. Geophysical Journal International, 239(3), 1545–1556. https://doi.org/10.1093/gji/ggae349
Zhang, W., Xu, M., Feng, Y., Mao, Z., & Yan, Z. (2024). The Effect of Procrastination on Physical Exercise among College Students—The Chain Effect of Exercise Commitment and Action Control. International Journal of Mental Health Promotion, 26(8), 611–622. https://doi.org/10.32604/ijmhp.2024.052730
Zhao, Y., Lv, S., & Liu, P. (2024). Advances in Earthquake Prevention and Reduction Based on Machine Learning: A Scoping Review. IEEE Access, 12, 143908–143929. https://doi.org/10.1109/ACCESS.2024.3467149



