Metaheuristic Optimization Stacking Application for Rainfall Classification: A Comparative Study

Authors

  • Rachmat Bintang Yudhianto Yudhianto IPB University Indonesia
  • Agus Mohammad Soleh IPB University Indonesia
  • Anang Kurnia IPB University Indonesia

DOI:

https://doi.org/10.26877/asset.v8i3.3061

Keywords:

Ensemble machine learning, precision meteorology, metaheuristic optimization, agroclimatic precision, rainfall prediction

Abstract

Accurate rainfall classification plays a vital role in effective meteorological forecasting, agricultural planning, and also to avoid natural disasters. However, standard classification models often exhibit unstable performance. This study evaluates the effectiveness of an Ensemble Stacking framework enhanced with Optimized Swarm Based and Metaheuristic method such as Artificial Bee Colony (ABC) and Cuckoo Search (CS) optimization algorithms to improve prediction reliability. The proposed approach was tested using a detailed rainfall dataset by combining basic classification models, such as Decision Tree, SVM, Naive Bayes, and kNN. The results show that Stacking Ensemble generally outperform individual basic models in Accuracy and F1 Score (reaching a median > 0.80), while unoptimized Stacking method show low variances but provides a less better result in terms of Accuracy and F1 Score. In contrast, the Stacking model optimized with ABC emerged as a better method, demonstrating the highest stability and significantly reducing the performance distribution range compared to the non-optimization and Cuckoo Search scenarios. These findings conclude that the application of Artificial Bee Colony optimization to Stacking ensembles effectively minimizes prediction variance, making it the most reliable strategy for consistent rainfall forecasting using classification modelling technique. 

Author Biographies

  • Rachmat Bintang Yudhianto Yudhianto, IPB University

    Program in Statistics and Data Science, School of Data Science, Mathematics, and Informatics, IPB University. Jl. Raya Darmaga Kampus IPB, Babakan, Bogor Regency, 16680, West Java, Indonesia 

  • Agus Mohammad Soleh, IPB University

    Program in Statistics and Data Science, School of Data Science, Mathematics, and Informatics, IPB University. Jl. Raya Darmaga Kampus IPB, Babakan, Bogor Regency, 16680, West Java, Indonesia

  • Anang Kurnia, IPB University

    Program in Statistics and Data Science, School of Data Science, Mathematics, and Informatics, IPB University. Jl. Raya Darmaga Kampus IPB, Babakan, Bogor Regency, 16680, West Java, Indonesia 

References

[1] Liyew CM, Melese HA. Machine learning techniques to predict daily rainfall amount. J Big Data 2021;8. https://doi.org/10.1186/s40537-021-00545-4.

[2] Ramadhan R, Marzuki M, Suryanto W, Sholihun S, Yusnaini H, Muharsyah R. Rainfall variability in Indonesia new capital associated with the Madden-Julian Oscillation and its contribution to flood events. Quaternary Science Advances 2024;13. https://doi.org/10.1016/j.qsa.2024.100163.

[3] Rahayu R, Mathias SA, Reaney S, Vesuviano G, Suwarman R, Ramdhan AM. Impact of land cover, rainfall and topography on flood risk in West Java. Natural Hazards 2023;116:1735–58. https://doi.org/10.1007/s11069-022-05737-6.

[4] Putra M, Rosid MS, Handoko D. A Review of Rainfall Estimation in Indonesia: Data Sources, Techniques, and Methods. Signals 2024;5:542–61. https://doi.org/10.3390/signals5030030.

[5] Wijoyo A, Saputra AY, Ristanti S, Sya’ban R, Amalia M, Febriansyah R. Pembelajaran Machine Learning. OKTAL : Jurnal Ilmu Komputer dan Science 2024.

[6] Adadi A. A survey on data‐efficient algorithms in big data era. J Big Data 2021;8. https://doi.org/10.1186/s40537-021-00419-9.

[7] Nurizki A, Fitrianto A, Mohamad Soleh A. Performance of Ensemble Learning in Diabetic Retinopathy Disease Classification. Scientific Journal of Informatics 2024;11:375–86. https://doi.org/10.15294/sji.v11i2.4725.

[8] Islam MA, Uddin MA, Aryal S, Stea G. An ensemble learning approach for anomaly detection in credit card data with imbalanced and overlapped classes. Journal of Information Security and Applications 2023;78. https://doi.org/10.1016/j.jisa.2023.103618.

[9] Hoxha J, Çodur MY, Mustafaraj E, Kanj H, El Masri A. Prediction of transportation energy demand in Türkiye using stacking ensemble models: Methodology and comparative analysis. Appl Energy 2023;350. https://doi.org/10.1016/j.apenergy.2023.121765.

[10] Karomah BM. PENERAPAN METODE STACKING DALAM MENGKLASIFIKASIKAN PENDERITA PENYAKIT DIABETES. JUPIKOM 2022;1.

[11] Sunarko B, Hasanah U, Hidayat S, Muhammad N, Irfan Ardiansyah M, Khikam Hakiki M, et al. Edu Komputika Journal Penerapan Stacking Ensemble Learning untuk Klasifikasi Efek Kesehatan Akibat Pencemaran Udara. Edu Komputika 2023;10.

[12] Yunianto I, Fadhillah Soleman Y, Sersan Aswan No J, Timur B, Bekasi K, Jawa Barat P, et al. Review: Algoritma Optimasi. DES 2023 Journal of Informatics and Communications Technology 2023;5:111–25. https://doi.org/10.52661.

[13] Liu L, Zhao G, Liang W, Jian Z. Hybrid stacking ensemble algorithm and simulated annealing optimization for stability evaluation of underground entry-type excavations. Underground Space (New) 2024;17:25–44. https://doi.org/10.1016/j.undsp.2023.11.002.

[14] Kardani N, Zhou A, Nazem M, Shen SL. Improved prediction of slope stability using a hybrid stacking ensemble method based on finite element analysis and field data. Journal of Rock Mechanics and Geotechnical Engineering 2021;13:188–201. https://doi.org/10.1016/j.jrmge.2020.05.011.

[15] Kumar M, Singhal S, Shekhar S, Sharma B, Srivastava G. Optimized Stacking Ensemble Learning Model for Breast Cancer Detection and Classification Using Machine Learning. Sustainability (Switzerland) 2022;14. https://doi.org/10.3390/su142113998.

[16] Yin X, Liu Q, Pan Y, Huang X, Wu J, Wang X. Strength of Stacking Technique of Ensemble Learning in Rockburst Prediction with Imbalanced Data: Comparison of Eight Single and Ensemble Models. Natural Resources Research 2021;30:1795–815. https://doi.org/10.1007/s11053-020-09787-0.

[17] Santoso ZR, Hamim Wigena A, Kurnia A. Mendeteksi Unsur Depresi pada Unggahan Media Sosial Menggunakan Metode Machine Learning dengan Optimasi Berbasis Inspirasi Alam. ESTIMASI: Journal of Statistics and Its Application 2025;6:2721–379. https://doi.org/10.20956/ejsa.v6i2.45516.

[18] Peretz O, Koren M, Koren O. Naive Bayes classifier – An ensemble procedure for recall and precision enrichment. Eng Appl Artif Intell 2024;136. https://doi.org/10.1016/j.engappai.2024.108972.

[19] Blockeel H, Devos L, Frénay B, Nanfack G, Nijssen S. Decision trees: from efficient prediction to responsible AI. Front Artif Intell 2023;6. https://doi.org/10.3389/frai.2023.1124553.

[20] Guido R, Ferrisi S, Lofaro D, Conforti D. An Overview on the Advancements of Support Vector Machine Models in Healthcare Applications: A Review. Information (Switzerland) 2024;15. https://doi.org/10.3390/info15040235.

[21] Jayapermana R, Aradea A, Kurniati NI. Implementation of Stacking Ensemble Classifier for Multi-class Classification of COVID-19 Vaccines Topics on Twitter. Scientific Journal of Informatics 2022;9:8–15. https://doi.org/10.15294/sji.v9i1.31648.

[22] Daza A, Ponce Sánchez CF, Apaza-Perez G, Pinto J, Zavaleta Ramos K. Stacking ensemble approach to diagnosing the disease of diabetes. Inform Med Unlocked 2024;44. https://doi.org/10.1016/j.imu.2023.101427.

[23] Alsarhan A, AlJamal M, Harfoushi O, Aljaidi M, Barhoush MM, Mansour N, et al. Optimizing Cyber Threat Detection in IoT: A Study of Artificial Bee Colony (ABC)-Based Hyperparameter Tuning for Machine Learning. Technologies (Basel) 2024;12. https://doi.org/10.3390/technologies12100181.

[24] Joshi AA, Aziz RM. A two-phase cuckoo search based approach for gene selection and deep learning classification of cancer disease using gene expression data with a novel fitness function. Multimed Tools Appl 2024;83:71721–52. https://doi.org/10.1007/s11042-024-18327-4.

[25] Riyanto IMZ, Suprapti L, Fayiza S, Rahmawati EF, Suwandi FY, Oktarina SD, et al. IMPLEMENTATION OF CUCKOO SEARCH-BASED ENSEMBLE VARIABLE IMPORTANCE IN THE CLASSIFICATION OF NON-CASH FOOD ASSISTANCE (BPNT) RECIPIENTS IN WEST JAVA. Barekeng 2026;20:2601–12. https://doi.org/10.30598/barekengvol20iss3pp2601-2612.

[26] Hasnataeni Y, Saefuddin A, Soleh AM. Comparison of Ensemble Forest-Based Methods Performance for Imbalanced Data Classification. Scientific Journal of Informatics 2025;12:183–98. https://doi.org/10.15294/sji.v12i2.24269.

[27] Shunmugapriya P, Kanmani S. Optimization of stacking ensemble configurations through Artificial Bee Colony algorithm. Swarm Evol Comput 2013;12:24–32. https://doi.org/10.1016/j.swevo.2013.04.004.

[28] Mareli M, Twala B. An adaptive Cuckoo search algorithm for optimisation. Applied Computing and Informatics 2018;14:107–15. https://doi.org/10.1016/j.aci.2017.09.001.

[29] Pasaribu AA, Kurnia A. MODEL APPROACH OF AGGREGATE RETURN VOLATILITY: GARCH(1,1)-COPULA VS GARCH(1,1)-BIVARIATE NORMAL. Barekeng 2025;19:2069–82. https://doi.org/10.30598/barekengvol19iss3pp2069-2082.

Downloads

Published

2026-06-17

Issue

Section

Articles