Skip to content
Data Science & information systems International Journal of Advances in Data and Information Systems
Open access E-ISSN 2721-3056 Acceptance rate: 28%

Comparison of Weather Classification Methods on Weather Images Using GLCM Features With Random Forest and CatBoost Algorithms

Authors

  • Muhammad Noorhafizi Faculty of Mathematics and Natural Science, Department of Computer Science, Lambung Mangkurat University, Kalimantan, Indonesia
  • Triando Hamonangan Saragih Faculty of Mathematics and Natural Science, Department of Computer Science, Lambung Mangkurat University, Kalimantan, Indonesia
  • Muhammad Itqan Mazdadi Faculty of Mathematics and Natural Science, Department of Computer Science, Lambung Mangkurat University, Kalimantan, Indonesia
  • Muliadi Muliadi Faculty of Mathematics and Natural Science, Department of Computer Science, Lambung Mangkurat University, Kalimantan, Indonesia
  • Rudy Herteno Faculty of Mathematics and Natural Science, Department of Computer Science, Lambung Mangkurat University, Kalimantan, Indonesia
  • Hasri Awal Akbar Rozaq Graduate School of Informatics, Department of Computer Science, Gazi University, Ankara

DOI:

https://doi.org/10.59395/ijadis.v7i1.1456

Keywords:

Weather Classification , Image Processing , GLCM , Random Forest , Catboost

Abstract

Weather image classification is an essential process for improving automated weather information systems. However, most existing studies rely on numerical meteorological data and rarely utilize the textural characteristics embedded in atmospheric imagery. This study addresses that limitation by applying the Gray Level Co-Occurrence Matrix (GLCM) for texture feature extraction combined with Random Forest (RF) and CatBoost algorithms for classification. The dataset, obtained from Kaggle, consists of 1,125 weather images categorized into four classes: cloudy, rain, shine, and sunrise. All images were uniformly normalized and augmented using four rotation angles (0°, 45°, 90°, 135°). GLCM features were extracted with a pixel distance of 1 and gray-level quantization of 8, generating four statistical attributes: contrast, correlation, energy, and homogeneity. Both algorithms were optimized through parameter tuning and evaluated using a 5-fold cross-validation scheme with an 80:20 split ratio. Results show that the Random Forest model (n_estimators = 100, max_depth = 10, random_state = 42) achieved the highest accuracy of 92.43% (±1.12), precision of 92.50%, recall of 92.43%, and F1-score of 92.42%. In comparison, CatBoost (iterations = 100, learning_rate = 0.1, depth = 6) achieved an accuracy of 68.88% (±2.31). The findings demonstrate that GLCM feature extraction combined with Random Forest offers superior stability and accuracy for weather image classification, providing a foundation for efficient and interpretable weather information systems.

1351 890

Downloads

Download data is not yet available.

References

[1] T. Lattifia, P. Wira Buana, N. Kadek, and D. Rusjayanthi, “Model Prediksi Cuaca Menggunakan Metode LSTM,” 2022. DOI: https://doi.org/10.24843/JTRTI.2022.v03.i01.p35

[2] M. A. Siregar, Tukino, S. Faisal, A. Fauzi, and I. Kadori, “Klasifikasi untuk Prediksi Cuaca Menggunakan Asemble Learning,” 2020. DOI: https://doi.org/10.33322/petir.v13i2.998

[3] F. Amir, E. Utami, and H. Hanafi, “Literature Study on the Development of Neural Networks For Weather Forecasting,” J Teknol, vol. 17, no. 1, pp. 49–57, Jun. 2024, doi: 10.34151/jurtek.v17i1.4637. DOI: https://doi.org/10.34151/jurtek.v17i1.4637

[4] Yoga Religia, Agung Nugroho, and Wahyu Hadikristanto, “Klasifikasi Analisis Perbandingan Algoritma Optimasi pada Random Forest untuk Klasifikasi Data Bank Marketing,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 5, no. 1, pp. 187–192, Feb. 2021, doi: 10.29207/resti.v5i1.2813. DOI: https://doi.org/10.29207/resti.v5i1.2813

[5] S. Barburiceanu, R. Terebes, and S. Meza, “3d texture feature extraction and classification using glcm and lbp-based descriptors,” Applied Sciences (Switzerland), vol. 11, no. 5, pp. 1–26, Mar. 2021, doi: 10.3390/app11052332. DOI: https://doi.org/10.3390/app11052332

[6] A. Suresh, R. Udendhran, and M. Balamurgan, “Hybridized neural network and decision tree based classifier for prognostic decision making in breast cancers,” Soft comput, vol. 24, no. 11, pp. 7947–7953, Jun. 2020, doi: 10.1007/s00500-019-04066-4. DOI: https://doi.org/10.1007/s00500-019-04066-4

[7] B. Charbuty and A. Abdulazeez, “Classification Based on Decision Tree Algorithm for Machine Learning,” Journal of Applied Science and Technology Trends, vol. 2, no. 01, pp. 20–28, Mar. 2021, doi: 10.38094/jastt20165. DOI: https://doi.org/10.38094/jastt20165

[8] Q. Meidianingsih and D. Agustine, “Study of Bagging Application in the Safe-Level Smote Method in Handling Unbalanced Classification,” Indonesian Journal of Statistics and Its Applications, vol. 5, no. 1, pp. 105–116, Mar. 2021, doi: 10.29244/ijsa.v5i1p105-116. DOI: https://doi.org/10.29244/ijsa.v5i1p105-116

[9] S. C. Hsu, A. K. Sharma, R. Tanone, and Y. T. Ye, “Predicting Rainfall Using Random Forest and CatBoost Models,” in World Congress on Civil, Structural, and Environmental Engineering, Avestia Publishing, 2024. doi: 10.11159/icgre24.146. DOI: https://doi.org/10.11159/icgre24.146

[10] G. Ngo, R. Beard, and R. Chandra, “Evolutionary bagging for ensemble learning,” Aug. 2022, doi: 10.1016/j.neucom.2022.08.055. DOI: https://doi.org/10.1016/j.neucom.2022.08.055

[11] M. Sheykhmousa, M. Mahdianpari, H. Ghanbari, F. Mohammadimanesh, P. Ghamisi, and S. Homayouni, “Support Vector Machine Versus Random Forest for Remote Sensing Image Classification: A Meta-Analysis and Systematic Review,” 2020, Institute of Electrical and Electronics Engineers Inc. doi: 10.1109/JSTARS.2020.3026724. DOI: https://doi.org/10.1109/JSTARS.2020.3026724

[12] Y. Miftahuddin, S. UMAROH, and A. M. YAMANI, “Peningkatan Random Forest dengan menerapkan GLCM (Gray Level Co-Occurence Matrix) pada Klasifikasi Leaf Blast Tumbuhan Padi,” MIND Journal, vol. 7, no. 1, pp. 37–50, Jun. 2022, doi: 10.26760/mindjournal.v7i1.37-50. DOI: https://doi.org/10.26760/mindjournal.v7i1.37-50

[13] Y. F. Zamzam, T. H. Saragih, R. Herteno, Muliadi, D. T. Nugrahadi, and P.-H. Huynh, “Comparison of CatBoost and Random Forest Methods for Lung Cancer Classification using Hyperparameter Tuning Bayesian Optimization-based,” Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 6, no. 2, pp. 125–136, Mar. 2024, doi: 10.35882/jeeemi.v6i2.382. DOI: https://doi.org/10.35882/jeeemi.v6i2.382

[14] N. Iqbal, R. Mumtaz, U. Shafi, and S. M. H. Zaidi, “Gray level co-occurrence matrix (GLCM) texture based crop classification using low altitude remote sensing platforms,” PeerJ Comput Sci, vol. 7, p. e536, May 2021, doi: 10.7717/peerj-cs.536. DOI: https://doi.org/10.7717/peerj-cs.536

[15] M. Teke and T. Etem, “Cascading GLCM and T-SNE for detecting tumor on kidney CT images with lightweight machine learning design,” Eur Phys J Spec Top, vol. 234, no. 15, pp. 4619–4634, Oct. 2025, doi: 10.1140/epjs/s11734-025-01842-2. DOI: https://doi.org/10.1140/epjs/s11734-025-01842-2

[16] K. Djunaidi, H. Bedi Agtriadi, D. Kuswardani, and Y. S. Purwanto, “Gray level co-occurrence matrix feature extraction and histogram in breast cancer classification with ultrasonographic imagery,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 22, no. 2, p. 795, May 2021, doi: 10.11591/ijeecs.v22.i2.pp795-800. DOI: https://doi.org/10.11591/ijeecs.v22.i2.pp795-800

[17] I. Sutrisno et al., “Design of Pothole Detector Using Gray Level Co-occurrence Matrix (GLCM) And Neural Network (NN),” IOP Conf Ser Mater Sci Eng, vol. 874, no. 1, p. 012012, Jun. 2020, doi: 10.1088/1757-899X/874/1/012012. DOI: https://doi.org/10.1088/1757-899X/874/1/012012

[18] V. R. Joseph, “Optimal ratio for data splitting,” Statistical Analysis and Data Mining: The ASA Data Science Journal, vol. 15, no. 4, pp. 531–538, Aug. 2022, doi: 10.1002/sam.11583. DOI: https://doi.org/10.1002/sam.11583

[19] J.-H. Syu, M. Fojcik, R. Cupek, and J. C.-W. Lin, “HTTPS: Heterogeneous Transfer learning for spliT Prediction System evaluated on healthcare data,” Information Fusion, vol. 113, p. 102617, Jan. 2025, doi: 10.1016/j.inffus.2024.102617. DOI: https://doi.org/10.1016/j.inffus.2024.102617

[20] Q. H. Nguyen et al., “Influence of Data Splitting on Performance of Machine Learning Models in Prediction of Shear Strength of Soil,” Math Probl Eng, vol. 2021, pp. 1–15, Feb. 2021, doi: 10.1155/2021/4832864. DOI: https://doi.org/10.1155/2021/4832864

[21] K. Kristiawan and A. Widjaja, “Perbandingan Algoritma Machine Learning dalam Menilai Sebuah Lokasi Toko Ritel,” Jurnal Teknik Informatika dan Sistem Informasi, vol. 7, no. 1, Apr. 2021, doi: 10.28932/jutisi.v7i1.3182. DOI: https://doi.org/10.28932/jutisi.v7i1.3182

[22] G. Valente, A. L. Castellanos, L. Hausfeld, F. De Martino, and E. Formisano, “Cross-validation and permutations in MVPA: Validity of permutation strategies and power of cross-validation schemes,” Neuroimage, vol. 238, p. 118145, Sep. 2021, doi: 10.1016/j.neuroimage.2021.118145. DOI: https://doi.org/10.1016/j.neuroimage.2021.118145

[23] B. G. Marcot and A. M. Hanea, “What is an optimal value of k in k-fold cross-validation in discrete Bayesian network analysis?,” Comput Stat, vol. 36, no. 3, pp. 2009–2031, Sep. 2021, doi: 10.1007/s00180-020-00999-9. DOI: https://doi.org/10.1007/s00180-020-00999-9

[24] V. Jackins, S. Vimal, M. Kaliappan, and M. Y. Lee, “AI-based smart prediction of clinical disease using random forest classifier and Naive Bayes,” Journal of Supercomputing, vol. 77, no. 5, pp. 5198–5219, May 2021, doi: 10.1007/s11227-020-03481-x. DOI: https://doi.org/10.1007/s11227-020-03481-x

[25] S. Jayaprakash, S. Krishnan, and J. V, Predicting Students Academic Performance using an Improved Random Forest Classifier. IEEE, 2020. DOI: https://doi.org/10.1109/ESCI48226.2020.9167547

[26] T. Z. Jasman, M. A. Fadhlullah, A. L. Pratama, and R. Rismayani, “Analisis Algoritma Gradient Boosting, Adaboost dan Catboost dalam Klasifikasi Kualitas Air,” Jurnal Teknik Informatika dan Sistem Informasi, vol. 8, no. 2, Aug. 2022, doi: 10.28932/jutisi.v8i2.4906. DOI: https://doi.org/10.28932/jutisi.v8i2.4906

[27] J. T. Hancock and T. M. Khoshgoftaar, “CatBoost for big data: an interdisciplinary review,” J Big Data, vol. 7, no. 1, p. 94, Dec. 2020, doi: 10.1186/s40537-020-00369-8. DOI: https://doi.org/10.1186/s40537-020-00369-8

[28] K. Xie, L. Huang, W. Zhang, Q. Qin, and L. Lyu, “A CNN-based multi-task framework for weather recognition with multi-scale weather cues,” Expert Syst Appl, vol. 198, p. 116689, Jul. 2022, doi: 10.1016/j.eswa.2022.116689. DOI: https://doi.org/10.1016/j.eswa.2022.116689

[29] C.-L. Fan, “Evaluation Model for Crack Detection with Deep Learning: Improved Confusion Matrix Based on Linear Features,” J Constr Eng Manag, vol. 151, no. 3, Mar. 2025, doi: 10.1061/JCEMD4.COENG-14976. DOI: https://doi.org/10.1061/JCEMD4.COENG-14976

[30] W. Ren, X. Xiao, J. Xu, H. Chen, Y. Zhang, and J. Zhang, “Trojan Virus Detection and Classification Based on Graph Convolutional Neural Network Algorithm,” Journal of Industrial Engineering and Applied Science, vol. 3, no. 2, pp. 1–5, Apr. 2025, doi: 10.70393/6a69656173.323735. DOI: https://doi.org/10.70393/6a69656173.323735

[31] Z. Zhang et al., “Improving text classification via computing category correlation matrix from text graph,” Comput Speech Lang, vol. 89, p. 101688, Jan. 2025, doi: 10.1016/j.csl.2024.101688. DOI: https://doi.org/10.1016/j.csl.2024.101688

[32] R. A. A. Malik and Y. Sibaroni, “Multi-aspect Sentiment Analysis of Tiktok Application Usage Using FasText Feature Expansion and CNN Method,” Journal of Computer System and Informatics (JoSYC), vol. 3, no. 4, pp. 277–285, Sep. 2022, doi: 10.47065/josyc.v3i4.2033. DOI: https://doi.org/10.47065/josyc.v3i4.2033

[33] M. A. Rafif, G. Sanjaya Indrajaya, M. K. Al-Ghazi, J. Johnny, and N. T. M. Sagala, “Comparison of Decision Tree and Support Vector Machine for Predicting Jakarta Air Quality Index,” in 2023 International Conference on Computer Science, Information Technology and Engineering (ICCoSITE), IEEE, Feb. 2023, pp. 381–385. doi: 10.1109/ICCoSITE57641.2023.10127855. DOI: https://doi.org/10.1109/ICCoSITE57641.2023.10127855

[34] N. Eliyati, M. Rahmayani, S. Wijaya, D. A. Zayanti, E. S. Kresnawati, and Y. Resti, “Prediction Of Air Quality Index Using Decision Tree With Discretization,” Indonesian Journal of Engineering and Science, vol. 3, no. 3, pp. 061–067, Nov. 2022, doi: 10.51630/ijes.v3i3.82. DOI: https://doi.org/10.51630/ijes.v3i3.82

[35] I. M. Putra, I. Tahyudin, H. A. Awal Rozaq, A. Yahya Syafa’at, R. Wahyudi, and E. Winarto, “Classification Analysis of COVID19 Patient Data at Government Hospital of Banyumas using Machine Learning,” in 2021 2nd International Conference on Smart Computing and Electronic Enterprise (ICSCEE), IEEE, Jun. 2021, pp. 271–274. doi: 10.1109/ICSCEE50312.2021.9498020. DOI: https://doi.org/10.1109/ICSCEE50312.2021.9498020

Downloads

Published

2026-03-30

How to Cite

[1]
M. . Noorhafizi, T. H. . Saragih, M. I. . Mazdadi, M. Muliadi, R. . Herteno, and H. A. A. . Rozaq, “Comparison of Weather Classification Methods on Weather Images Using GLCM Features With Random Forest and CatBoost Algorithms”, International Journal of Advances in Data and Information Systems, vol. 7, no. 1, pp. 1–11, Mar. 2026, doi: 10.59395/ijadis.v7i1.1456.

Share



Plum Analytics


Similar Articles

51-60 of 87

You may also start an advanced similarity search for this article.