Penerapan Algoritma Random Forest dengan Cost Complexity Pruning untuk Klasifikasi Kualitas Udara Berdasarkan Indeks AQI
Abstract
Kualitas udara tidak boleh dianggap remeh karena itu adalah masalah yang penting untuk kesehatan dan lingkungan masyarakat. Model random forest seringkali tidak efisien dalam hal komputasi, yang menghasilkan pohon keputusan dengan kedalaman yang besar. Studi ini menggunakan metode Cost-Complexity Pruning (CCP) pada algoritma random forest untuk mengoptimalkan ukuran model tanpan mengurangi akurasi. Dataset yang digunakan pada penelitian ini Air Quality Index (AQI) yang didapat dari website kaggle, yang dimana sudah ada kategori menjadi 4 level, yaitu Good, Moderate, Unhealthy, and Hazardous. Percobaan menghasilkan bahwa penerapan pruning dengan nilai pararameter ccp_alpha = 0.001 menunjukkan keseimbangan yang optimal antara akurasi dan efisiensi, dengan akurasi mencapai 99.63% yang hanya sedikit lebih rendah dari model tanpa pruning yaitu 99.95%, tetapi dengan pengurangan ukuran model yang sangat signifikan hingga mencapai sekitar 79% lebih kecil dan jumlah node berkurang hingga 80% dari model non-pruning. Penelitian ini menunjukkan bahwa metode cost-complexity pruning secara efektif dapat mengurangi kompleksitas model tanpa menurunkan akurasi secara signifikan
Kata kunci— machine learning, random forest, index AQI, CCP, kualitas udara, pruning.
Downloads
References
F. Hamami and I. A. Dahlan, “Air Quality Classification in Urban Environment using Machine Learning Approach,” IOP Conf. Ser. Earth Environ. Sci., vol. 986, no. 1, p. 012004, Feb. 2022, doi: 10.1088/1755-1315/986/1/012004.
F. Alzu’bi, A. Al-Rawabdeh, and A. Almagbile, “Predicting air quality using random forest: A case study in Amman-Zarqa,” Egypt. J. Remote Sens. Space Sci., vol. 27, no. 3, pp. 604–613, Sep. 2024, doi: 10.1016/j.ejrs.2024.07.004.
L. A. Menéndez García et al., “A Method of Pruning and Random Replacing of Known Values for Comparing Missing Data Imputation Models for Incomplete Air Quality Time Series,” Appl. Sci., vol. 12, no. 13, p. 6465, Jun. 2022, doi: 10.3390/app12136465.
M. Diaz Resquin et al., “A machine learning approach to address air quality changes during the COVID-19 lockdown in Buenos Aires, Argentina,” Earth Syst. Sci. Data, vol. 15, no. 1, pp. 189–209, Jan. 2023, doi: 10.5194/essd-15-189-2023.
S. S. Kumbhar and D. S. Jagtap, “Air Quality Index Rating Prediction Using Machine Learning,” 2025.
P. Chaturvedi, “Air Quality Prediction System Using Machine Learning Models,” Water. Air. Soil Pollut., vol. 235, no. 9, p. 578, Sep. 2024, doi: 10.1007/s11270-024-07390-0.
Z. Sun, G. Wang, P. Li, H. Wang, M. Zhang, and X. Liang, “An improved random forest based on the classification accuracy and correlation measurement of decision trees,” Expert Syst. Appl., vol. 237, p. 121549, Mar. 2024, doi: 10.1016/j.eswa.2023.121549.
B. Sakthivel, K. Jayaram, N. Manikanda Devarajan, S. Mahaboob Basha, and S. Rajapriya, “Machine Learning-Based Pruning Technique for Low Power Approximate Computing,” Comput. Syst. Sci. Eng., vol. 42, no. 1, pp. 397–406, 2022, doi: 10.32604/csse.2022.021637.
X. Li, “The Advancements of Pruning Techniques in Deep Neural Networks:,” in Proceedings of the 1st International Conference on Data Science and Engineering, Singapore, Singapore: SCITEPRESS - Science and Technology Publications, 2024, pp. 177–181. doi: 10.5220/0012837000004547.
A. N. Ahmad, “Cervical Cancer Prediction with Stacked Tabnet, Random Forest, and LightGBM,” vol. 1, no. 2, 2025.
M. Triyani, A. Adiwijaya, and A. Aditsania, “Discrete Wavelet Transform (DWT) and Random Forest for Cancer Detection Based on Microarray Data Classification,” J. INFOTEL, vol. 12, no. 3, pp. 97–104, Aug. 2020, doi: 10.20895/infotel.v12i3.484.
M. Dwifebri Purbolaksono, “Sentiment Analysis of Game Review in Steam Platform using Random Forest,” Int. J. Inf. Commun. Technol. IJoICT, vol. 10, no. 2, pp. 161–169, Dec. 2024, doi: 10.21108/ijoict.v10i2.1007.
R. A. Mu’allim and K. M. Lhaksmana, “Klasifikasi Multi-Label Ayat-Ayat Al-Qur’an Menggunakan Random Forest dan Word Centrality”.
Y. A. Muslim, B. Purnama, and B. Erfianto, “Pose Classification in Archery Sports Based on YoloV8 Using SVM and Random Forest Methods,” Int. J. Inf. Commun. Technol. IJoICT, vol. 11, no. 1, pp. 1–12, Jun. 2025, doi: 10.21108/ijoict.v11i1.8996.
I. Palupi, B. A. Wahyudi, N. Al Mamuda, and A. Shabrina, “Predicting Forest Fire Hotspots with Carbon Emission Insights Using Random Forest and Gradient Boosting Regression,” Int. J. Inf. Commun. Technol. IJoICT, vol. 9, no. 2, pp. 137–149, Dec. 2023, doi: 10.21108/ijoict.v9i2.865.
E. Rahmati, “Pruning Strategies in Random Forests: The Interplay Between Model Compression and Fairness”.
E. Alshdaifat, A. Al-Shdaifat, and F. Hussein, “The effect of pruning on the efficiency and effectiveness of hybrid imbalanced multiclass classification models,” Array, vol. 28, p. 100610, Dec. 2025, doi: 10.1016/j.array.2025.100610.
N. Boyko and Y. Mokryk, “Detecting Fraud in Banking Transactions with Random Forest Models,” 2021.
N. Hubens, M. Mancas, B. Gosselin, M. Preda, and T. Zaharia, “An Experimental Study of the Impact of Pre-training on the Pruning of a Convolutional Neural Network,” in Proceedings of the 3rd International Conference on Applications of Intelligent Systems, 2020, pp. 1–6. doi: 10.1145/3378184.3378224.
R. Liu et al., “Air Quality—Meteorology Correlation Modeling Using Random Forest and Neural Network,” Sustainability, vol. 15, no. 5, p. 4531, Mar. 2023, doi: 10.3390/su15054531.
L. Chen, S. Gong, X. Shi, and M. Shang, “Dynamical Conventional Neural Network Channel Pruning by Genetic Wavelet Channel Search for Image Classification,” Front. Comput. Neurosci., vol. 15, p. 760554, Oct. 2021, doi: 10.3389/fncom.2021.760554.



