Performance Evaluation of Machine Learning Methods for Real-Time Rainfall Classification
DOI:
https://doi.org/10.15294/edukom.v12i1.29322Keywords:
Classification, Evaluation, Machine Learning, RainfallAbstract
Reliable real-time rainfall intensity classification is essential for supporting early warning systems and disaster mitigation, particularly in regions vulnerable to hydrometeorological hazards. This study evaluates three machine learning algorithms SVM, Neural Network, and AdaBoost for multiclass rainfall intensity classification using real-time data collected from Internet of Things (IoT)-based sensors. Rainfall intensity is categorized into four classes: no rain, light rain, moderate rain, and heavy rain, based on threshold values defined by BMKG standards. The dataset is imbalanced and dominated by the no rain class, therefore, model performance is evaluated using imbalance aware metrics, including per-class precision and recall, macro F1-score, balanced accuracy, and overall accuracy. Experimental results show that SVM and Neural Network achieve very high overall accuracy of up to 99.46%, however, this performance is mainly influenced by accurate classification of the majority class, leading to low recall for minority rainfall classes. In contrast, AdaBoost provides a more balanced baseline performance, achieving an accuracy of 92.4% and a macro F1-score of 0.714 on the original dataset. To enhance minority class detection, the SMOTE is applied to the training data using an 80:20 train test split. After data balancing, AdaBoost demonstrates improved recall and macro F1-score for light and moderate rain classes, although overall accuracy decreases to 77.1%. These results are acceptable for early warning applications, where sensitivity to rainfall onset is prioritized over majority class dominance. Consequently, balanced AdaBoost, evaluated using time-based data partitioning and imbalance aware metrics, is considered an effective approach for real-time IoT-based rainfall classification.
References
Abdullah, A. S., Ruchjana, B. N., Jaya, I. G. N. M., & Soemartini. (2021). Comparison of SARIMA and SVM model for rainfall forecasting in Bogor city, Indonesia. Journal of Physics: Conference Series, 1722(1). https://doi.org/10.1088/1742-6596/1722/1/012061
Benmahamed, Y., Kherif, O., Teguar, M., Boubakeur, A., & Ghoneim, S. S. M. (2021). Accuracy improvement of transformer faults diagnostic based on DGA data using SVM-BA classifier. Energies, 14(10). https://doi.org/10.3390/en14102970
Fu, W., Yu, S., & Wang, X. (2021). A novel method to determine basic probability assignment based on adaboost and its application in classification. Entropy, 23(7). https://doi.org/10.3390/e23070812
Ghada, W., Casellas, E., Herbinger, J., Garcia-Benadí, A., Bothmann, L., Estrella, N., Bech, J., & Menzel, A. (2022). Stratiform and Convective Rain Classification Using Machine Learning Models and Micro Rain Radar. Remote Sensing, 14(18). https://doi.org/10.3390/rs14184563
Hakim, A. L., & Dewi, R. (2021). Automatic Rain Detection System Based on Digital Images of CCTV Cameras Using Convolutional Neural Network Method. IOP Conference Series: Earth and Environmental Science, 893(1). https://doi.org/10.1088/1755-1315/893/1/012048
Hatwell, J., Gaber, M. M., & Atif Azad, R. M. (2020). Ada-WHIPS: Explaining AdaBoost classification with applications in the health sciences. BMC Medical Informatics and Decision Making, 20(1). https://doi.org/10.1186/s12911-020-01201-2
Ho, J., Zhang, G., Bukovcic, P., Parsons, D. B., Xu, F., Gao, J., Carlin, J. T., & Snyder, J. C. (2023). Improving Polarimetric Radar-Based Drop Size Distribution Retrieval and Rain Estimation Using a Deep Neural Network. Journal of Hydrometeorology, 24(11), 2057–2073. https://doi.org/10.1175/JHM-D-22-0166.1
Lakshminarayanan, K., Muthukumaran, N., Robinson, Y. H., Shanmuganathan, V., Kadry, S., & Nam, Y. (2021). Deep Learning-Based Hookworm Detection in Wireless Capsule Endoscopic Image Using AdaBoost Classifier. Computers, Materials and Continua, 67(3), 3045–3055. https://doi.org/10.32604/cmc.2021.014370
Liden, P., Stenvall, B., & Thidevall, N. (2023). Proposed flood risk classification of buildings - A case study with a heavy rain event. Journal of Physics: Conference Series, 2654(1). https://doi.org/10.1088/1742-6596/2654/1/012017
Luqman Hakim, A., & Prawito. (2020). Rain detection in image using convolutional neural network. Journal of Physics: Conference Series, 1528(1). https://doi.org/10.1088/1742-6596/1528/1/012010
Marrocu, M., & Massidda, L. (2022). Coupling a Neural Network with a Spatial Downscaling Procedure to Improve Probabilistic Nowcast for Urban Rain Radars. Forecasting, 4(4), 845–865. https://doi.org/10.3390/forecast4040046
Moharana, L., Sahoo, A., & Ghose, D. K. (2022). Prediction of Rainfall Using Hybrid SVM-HHO Model. IOP Conference Series: Earth and Environmental Science, 1084(1). https://doi.org/10.1088/1755-1315/1084/1/012054
Muflihati, H., Nirmala, I., Hidayati, R., Rekayasa, ), & Komputer, S. (2024). Pemantauan Cuaca Lokal Dengan Sistem Pendeteksi Curah Hujan Berbasis IoT. Jurnal Teknologi Informasi, 5(3). https://doi.org/10.46576/djtechno
Poedjiastoeti, H., Adi, H. P., & Wahyudi, R. S. (2024). Prediction of the Hydrological Drought Index (HDI) based on Rain Simulation Data using an Artificial Neural Network (ANN) in the Randugunting Watershed, Rembang Regency. IOP Conference Series: Earth and Environmental Science, 1321(1). https://doi.org/10.1088/1755-1315/1321/1/012013
Rumapea, H., Zarlis, M., Sihombing, P., Efendi, S., Sinambela, M., & Saragih, I. J. A. (2022). Convective Cloud Classification Model for Reconstruction of Heavy Rain That Triggers the Flood and Landslide in Parapat, North Sumatera. IOP Conference Series: Earth and Environmental Science, 1083(1). https://doi.org/10.1088/1755-1315/1083/1/012017
Samad, M. A., Diba, F. D., & Choi, D. Y. (2021). Rain attenuation scaling in south korea: Experimental results and artificial neural network. Electronics (Switzerland), 10(16). https://doi.org/10.3390/electronics10162030
Shanmugasundar, G., Vanitha, M., Čep, R., Kumar, V., Kalita, K., & Ramachandran, M. (2021). A comparative study of linear, random forest and adaboost regressions for modeling non-traditional machining. Processes, 9(11). https://doi.org/10.3390/pr9112015
Torcasio, R. C., Papa, M., Del Frate, F., Mascitelli, A., Dietrich, S., Panegrossi, G., & Federico, S. (2024). Data Assimilation of Satellite-Derived Rain Rates Estimated by Neural Network in Convective Environments: A Study over Italy. Remote Sensing, 16(10). https://doi.org/10.3390/rs16101769
Wang, X., Zhang, C., Qiang, Z., Xu, W., & Fan, J. (2024). A New Forest Growing Stock Volume Estimation Model Based on AdaBoost and Random Forest Model. Forests, 15(2). https://doi.org/10.3390/f15020260



