A Comparative Analysis of Machine Learning Models for Weather Type Classification
DOI:
https://doi.org/10.57152/predatecs.v4i1.2494Keywords:
Artificial Neural Network, Decision Tree, Random Forest, Support Vector Machine, Weather TypeAbstract
Accurate weather type classification plays an important role in supporting decision-making across various sectors, including transportation, agriculture, logistics, and disaster management. Although numerous studies have applied machine learning to weather prediction, most compare only a limited number of algorithms or evaluate them under a single experimental setting. This study addresses this gap by providing a comprehensive benchmark of five widely used classification algorithms Decision Tree, Random Forest, Support Vector Machine (SVM), Multilayer Perceptron (MLP), and Artificial Neural Network (ANN) using the publicly available Weather Type Classification dataset from Kaggle. These algorithms were selected because they represent interpretable, ensemble-based, kernel-based, and neural network approaches, enabling a comprehensive comparison of different machine learning paradigms. The dataset consists of structured meteorological attributes, including temperature, humidity, wind speed, precipitation, visibility, season, and location. Model performance was evaluated using three train-test split ratios (70/30, 80/20, and 90/10) and assessed through accuracy, precision, recall, confusion matrix, and ROC curve analyses. The experimental results show that ensemble-based and neural network models outperform single-tree approaches. Random Forest, MLP, and ANN demonstrate superior and more consistent performance across all data split ratios, with ROC-AUC values approaching 0.99. These findings establish a practical benchmark for selecting appropriate machine learning models for multi-class weather classification and demonstrate the effectiveness of ensemble and neural network approaches for developing reliable weather prediction systems using publicly available datasets.
References
L. Ji and S. Li, “A dynamic financial risk prediction system for enterprises based on gradient boosting decision tree algorithm,” Syst. Soft Comput., vol. 7, Dec. 2025, doi: 10.1016/j.sasc.2025.200189.
M. Alizade-Harakiyan, A. Khodaei, A. Yousefi, H. Zamani, and A. Mesbahi, “Decision tree-based machine learning algorithm for prediction of acute radiation esophagitis,” Biochem. Biophys. Reports, vol. 42, Jun. 2025, doi: 10.1016/j.bbrep.2025.101991.
P. Mukherji, S. Rajput, and V. Mudaliar, “A novel accelerated sparse Support Vector Machine (AS-SVM) algorithm for binary classification of DNA sequences,” Franklin Open, vol. 13, p. 100427, Dec. 2025, doi: 10.1016/j.fraope.2025.100427.
Y. Yuan, K. Wang, D. Duives, W. Daamen, and S. P. Hoogendoorn, “Machine learning-based bicycle delay estimation at signalized intersections using sparse GPS data and traffic control signals - A Dutch case study using random forest algorithm,” Artif. Intell. Transp., vol. 3–4, p. 100037, Nov. 2025, doi: 10.1016/j.ait.2025.100037.
M. K. Risqi, I. Wisma, D. Prastya, and M. J. Vikri, “Comparison of Decision Tree Algorithms and Support Vector Machine (SVM) In Depression Classification In Students,” Eduvest-Journal Univers. Stud., vol. 5, no. 4, pp. 4557–4567, 2025, [Online]. Available: http://eduvest.greenvest.co.id
R. F. Ramadhan and W. M. Ashari, “Performance Comparison of Random Forest and Decision Tree Algorithms for Anomaly Detection in Networks,” 2024. [Online]. Available: http://jurnal.polibatam.ac.id/index.php/JAIC
R. S. Saputra, M. Panji, and A. Saputra, “Comparison of Random Forest and SVM Algorithms in Classification of Diabetic Retinopathy Based on Fundus Image Texture Features,” Int. J. Quant. Res. Model., vol. 6, no. 2, pp. 218–226, 2025.
J. Zhang, X. Qiu, X. Li, Z. Huang, M. Wu, and Y. Dong, “Support Vector Machine Weather Prediction Technology Based on the Improved Quantum Optimization Algorithm,” Comput. Intell. Neurosci., vol. 2021, 2021, doi: 10.1155/2021/6653659.
A. J. Hill, R. S. Schumacher, and I. L. Jirak, “A New Paradigm for Medium-Range Severe Weather Forecasts: Probabilistic Random Forest–Based Predictions,” Weather Forecast., vol. 38, no. 2, pp. 251–272, Feb. 2023, doi: 10.1175/WAF-D-22-0143.1.
R. Bhardwaj and V. Duhoon, “Weather forecasting using decision tree,” J. Eng. Res., vol. 9, 2021, doi: 10.36909/jer.ICCEMME.15635.
A. Hashemi Fath, F. Madanifar, and M. Abbasi, “Implementation of multilayer perceptron (MLP) and radial basis function (RBF) neural networks to predict solution gas-oil ratio of crude oil systems,” Petroleum, vol. 6, no. 1, pp. 80–91, Mar. 2020, doi: 10.1016/j.petlm.2018.12.002.
A. Sumayli, “Development of advanced machine learning models for optimization of methyl ester biofuel production from papaya oil: Gaussian process regression (GPR), multilayer perceptron (MLP), and K-nearest neighbor (KNN) regression models,” Arab. J. Chem., vol. 16, no. 7, Jul. 2023, doi: 10.1016/j.arabjc.2023.104833.
M. Korycinski, K. A. Ciecierski, and E. Niewiadomska-Szynkiewicz, “HyTract: Advancing tractography for neurosurgical planning with a hybrid method integrating neural networks and a path search algorithm,” Neural Networks, vol. 190, Oct. 2025, doi: 10.1016/j.neunet.2025.107624.
N. Xie, J. He, W. Wei, J. Ba, and T. Yang, “Neural Network-Driven Genetic Algorithm for Advanced Fuel Cell Performance Enhancement,” Results Eng., p. 108426, Nov. 2025, doi: 10.1016/j.rineng.2025.108426.
E. S. Mohamed, T. A. Naqishbandi, S. A. C. Bukhari, I. Rauf, V. Sawrikar, and A. Hussain, “A hybrid mental health prediction model using Support Vector Machine, Multilayer Perceptron, and Random Forest algorithms,” Healthc. Anal., vol. 3, Nov. 2023, doi: 10.1016/j.health.2023.100185.
T. Ansar and W. M. Ashraf, “Comparison of Kolmogorov–Arnold Networks and Multi-Layer Perceptron for modelling and optimisation analysis of energy systems,” Energy AI, vol. 20, May 2025, doi: 10.1016/j.egyai.2025.100473.
F. Q. Kareem, A. M. Abdulazeez, and D. A. Hasan, “Predicting Weather Forecasting State Based on Data Mining Classification Algorithms,” Asian J. Res. Comput. Sci., pp. 13–24, Jun. 2021, doi: 10.9734/ajrcos/2021/v9i330222.
A. Yaqoob, M. A. Mir, and M. A. Shah, “Optimized cancer gene selection using armadillo optimization algorithm and support vector machine,” Cancer Treat. Res. Commun., vol. 45, Jan. 2025, doi: 10.1016/j.ctarc.2025.101027.
A. Thakur, P. Singh, and K. Lata, “Genetic Algorithm-Driven Random Forest Model for Predicting Acute Respiratory Distress Syndrome (ARDS),” in Procedia Computer Science, Elsevier B.V., 2025, pp. 1709–1718. doi: 10.1016/j.procs.2025.04.423.
S. Sanaye and A. Farvizi, “Artificial -neural -network and genetic -algorithm for optimization of helical -blade -vertical -axis -wind -turbine,” Clean. Eng. Technol., vol. 29, Dec. 2025, doi: 10.1016/j.clet.2025.101088.
P. Joyarieb, V. C. Silalahi, V. Anggelica, and K. K. Ongso, “Comprehensive Approach to Weather Prediction with the Random Forest Algorithm,” 2025. [Online]. Available: https://citedness.com/index.php/jdsihttps://citedness.com/index.php/jdsi
H. Nurramdhani Irmanda, M. Khalid Awang, and M. Adrezo, “International Journal On Informatics Visualization journal homepage?: www.joiv.org/index.php/joiv International Journal On Informatics Visualization Enhancing Weather Prediction Models through the Application of Random Forest Method and Chi-Square Feature Selection.” [Online]. Available: www.joiv.org/index.php/joiv
A. Kaur, “Weather Forecasting using Decision Tree Regression,” International J. Sci. Res. Eng. Manag., vol. 06, no. 05, Jun. 2022, doi: 10.55041/ijsrem16084.
M. Chhetri, “Manuscript Rainfall Prediction using Multilayer Perceptron (MLP),” Int. J. Sci. Res. Eng. Manag. (IJSREM, p. 7, 2023, doi: 10.55041/IJSREM26194.
M. A. Indrajaya, T. S. Sollu, M. Subito, Y. A. Rahman, and E. A. Saputra, “Classification of weather conditions based on automatic weather station data using a multi-layer perceptron neural network,” Indones. J. Electr. Eng. Comput. Sci., vol. 37, no. 1, pp. 540–550, Jan. 2025, doi: 10.11591/ijeecs.v37.i1.pp540-550.
J. M. Han, Y. Q. Ang, A. Malkawi, and H. W. Samuelson, “Using recurrent neural networks for localized weather prediction with combined use of public airport data and on-site measurements,” Build. Environ., vol. 192, Apr. 2021, doi: 10.1016/j.buildenv.2021.107601.
S. Sathyanarayanan, “Confusion Matrix-Based Performance Evaluation Metrics,” African J. Biomed. Res., pp. 4023–4031, Nov. 2024, doi: 10.53555/ajbr.v27i4s.4345.
I. Markoulidakis and G. Markoulidakis, “Probabilistic Confusion Matrix: A Novel Method for Machine Learning Algorithm Generalized Performance Analysis,” Technologies, vol. 12, no. 7, Jul. 2024, doi: 10.3390/technologies12070113.
A. Vanacore, M. S. Pellegrino, and A. Ciardiello, “Fair evaluation of classifier predictive performance based on binary confusion matrix,” Comput. Stat., vol. 39, no. 1, pp. 363–383, Feb. 2024, doi: 10.1007/s00180-022-01301-9.
G. Zeng, “Invariance Properties and Evaluation Metrics Derived from the Confusion Matrix in Multiclass Classification,” Mathematics, vol. 13, no. 16, Aug. 2025, doi: 10.3390/math13162609.
A. I. Fadri, A. Zahfran, T. Irak, N. H. Firjatullah, and J. E. Herianto, “Comparison of Supervised Learning Algorithms for Predicting Airline Passenger Satisfaction,” IJATIS Indones. J. Appl. Technol. Innov. Sci., vol. 2, no. 1, pp. 42–52, Mar. 2025, doi: 10.57152/ijatis.v2i1.1868.
K. Riehl, M. Neunteufel, and M. Hemberg, “Hierarchical confusion matrix for classification performance evaluation,” Jun. 2023, doi: 10.1093/jrsssc/qlad057.
Y. Wu and Y. Chang, “Ransomware Detection on Linux Using Machine Learning with Random Forest Algorithm,” Jun. 07, 2024. doi: 10.36227/techrxiv.171778770.06550236/v1.
M. Pal and S. Parija, “Prediction of Heart Diseases using Random Forest,” in Journal of Physics: Conference Series, IOP Publishing Ltd, Mar. 2021. doi: 10.1088/1742-6596/1817/1/012009.
O. A. Alimi, K. Ouahada, A. M. Abu-Mahfouz, and S. Rimer, “Power system events classification using genetic algorithm based feature weighting technique for support vector machine,” Heliyon, vol. 7, no. 1, Jan. 2021, doi: 10.1016/j.heliyon.2021.e05936.
B. T. Jijo and A. M. Abdulazeez, “Classification Based on Decision Tree Algorithm for Machine Learning,” J. Appl. Sci. Technol. Trends, vol. 2, no. 1, pp. 20–28, Jan. 2021, doi: 10.38094/jastt20165.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Rapika Dahlan, Mutiara Maharani, Faizal Risqi Andika, Aisyah Salsabila Purba, Siti Khusnul Khotimah, Juana Barus

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Copyright © by Author; Published by Institut Riset dan Publikasi Indonesia (IRPI)
This Public Research Journal of Engineering, Data Technology and Computer Science is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.









