Air Quality Prediction in DKI Jakarta Using Support Vector Machine: A Comprehensive Classification Approach
Purpose: This study develops a machine learning-based classification model to predict Air Pollution Standard Index (ISPU/AQI) categories in DKI Jakarta using the Support Vector Machine (SVM) algorithm. It addresses the challenge of accurate multi-class air quality classification under highly variable urban pollution conditions and imbalanced class distributions.
Research Methodology: A quantitative approach was employed using 1,825 daily observations from the Satu Data Jakarta portal collected between February and November 2023. Six pollutant variables (PM2.5, PM10, CO, SO₂, NO₂, and O₃) were used as predictors. Data preprocessing included missing value imputation, duplicate removal, label encoding, and Min-Max normalization. An SVM model with a Radial Basis Function (RBF) kernel was implemented in Python (Scikit-learn) on Google Colaboratory. Hyperparameters were optimized using GridSearchCV with StratifiedKFold cross-validation. Model performance was evaluated using accuracy, precision, recall, F1-score, and confusion matrix analysis.
Results: The optimized SVM-RBF model achieved 96.1% classification accuracy on the test set. Macro-average F1-scores reached 86% for the Good category, 98% for Moderate, and 93% for Unhealthy. Performance for Very Unhealthy and Hazardous categories was lower due to class imbalance and limited observations.
Conclusions: The proposed model provides accurate and reliable AQI classification for urban tropical environments and offers a practical foundation for automated real-time air quality monitoring systems.
Limitations: The study is limited to DKI Jakarta and a ten-month observation period, while minority classes remain underrepresented.
Contributions: This study presents a validated SVM-based AQI classification framework that can support scalable, data-driven air quality monitoring and environmental decision-making in Indonesian metropolitan areas.
- Adawiyah, R., & Iskandar Mulyana, D. (2022). Optimasi deteksi penyakit kulit menggunakan metode Support Vector Machine (SVM) dan Gray Level Co-occurrence Matrix (GLCM). INFORMASI (Jurnal Informatika dan Sistem Informasi), 14(1), 18-33. https://doi.org/10.37424/informasi.v14i1.138
- Al-Thani, H. G., & Isaifan, R. J. (2024). Policies and regulations for sustainable clean air: an overview. Sustainable Strategies for Air Pollution Mitigation: Development, Economics, and Technologies, 409-437. https://doi.org/10.1007/698_2024_1093
- Açıkkar, M., & Altunkol, Y. (2023). A novel hybrid PSO-and GS-based hyperparameter optimization algorithm for support vector regression. Neural Computing and Applications, 35(27), 19961-19977. https://doi.org/10.1007/s00521-023-08805-5
- Badawy, M., Ramadan, N., & Hefny, H. A. (2025). Towards Intelligent Healthcare: A Big Data and Machine Learning Approach for Real-Time Predictive Analytics. Biomedical Materials & Devices, 1-23. https://doi.org/10.1007/s44174-025-00568-y
- Chaloulakou, A., Grivas, G., & Spyrellis, N. (2003). Neural network and multiple regression models for PM10 prediction in Athens: A comparative assessment. Journal of the Air & Waste Management Association, 53(10), 1183-1190. https://doi.org/10.1080/10473289.2003.10466276
- Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–357. https://doi.org/10.1613/jair.953
- Du, P., Bai, X., Tan, K., Xue, Z., Samat, A., Xia, J., ... & Liu, W. (2020). Advances of four machine learning methods for spatial data handling: A review. Journal of Geovisualization and Spatial Analysis, 4(1), 13. https://doi.org/10.1007/s41651-020-00048-5
- Essamlali, I., Nhaila, H., & El Khaili, M. (2024). Supervised machine learning approaches for predicting key pollutants and for the sustainable enhancement of urban air quality: A systematic review. Sustainability, 16(3), 976. https://doi.org/10.3390/su16030976
- Fazle, A. B., Prodhan, R. K., & Islam, M. M. (2023). AI-Powered Predictive Failure Analysis In Pressure Vessels Using Real-Time Sensor Fusion: Enhancing Industrial Safety And Infrastructure Reliability. American Journal of Scholarly Research and Innovation, 2(02), 102-134. https://doi.org/10.63125/wk278c34
- Garcia-Atutxa, I., Villanueva-Flores, F., Barrio, E. D., Sanchez-Villamil, J. I., Martínez-Más, J., & Bueno-Crespo, A. (2025). Artificial intelligence for ovarian cancer diagnosis via ultrasound: a systematic review and quantitative assessment of model performance. Frontiers in Artificial Intelligence, 8, 1649746. https://doi.org/10.3389/frai.2025.1649746
- Gressent, A., Malherbe, L., Colette, A., Rollin, H., & Scimia, R. (2020). Data fusion for air quality mapping using low-cost sensor observations: Feasibility and added-value. Environment international, 143, 105965. https://doi.org/10.1016/j.envint.2020.105965
- Hassan, T., Majeed, M., & Ahmad, M. (2025). Optimizing SVM Performance through Combinatorial Hyperparameter Tuning and Model Selection. International Journal Bioautomation, 29(2), 117.. https://doi.org/10.7546/ijba.2025.29.2.000981
- Hastie, T., Tibshirani, R., & Friedman, J. (2009). The elements of statistical learning: Data mining, inference, and prediction (2nd ed.).
- Hayward, I., Martin, N. A., Ferracci, V., Kazemimanesh, M., & Kumar, P. (2024). Low-cost air quality sensors: biases, corrections and challenges in their comparability. Atmosphere, 15(12), 1523. https://doi.org/10.3390/atmos15121523
- IQAir. (2023). 2023 world air quality report: Region and city PM2.5 ranking. IQAir AG.
- Janiesch, C., Zschech, P., & Heinrich, K. (2021). Machine learning and deep learning. Electronic markets, 31(3), 685-695. https://doi.org/10.1007/s12525-021-00475-2
- Jayadi, B. V., Handhayani, T., & Lauro, M. D. (2023). Perbandingan KNN dan SVM untuk klasifikasi kualitas udara di Jakarta. Jurnal Ilmu Komputer dan Sistem Informasi, 11(2). https://doi.org/10.24912/jiksi.v11i2.26006
- Karimi, M. S., Arif, S., & Noori, B. (2025). Greenhouse gases and their role in air pollution and global warming. International Journal of Biological, Physical and Chemical Studies, 7(1), 06-13. https://doi.org/10.32996/ijbpcs.2025.7.1.2
- Kementerian Lingkungan Hidup dan Kehutanan (KLHK). (2020). Peraturan Menteri Lingkungan Hidup dan Kehutanan No.
- Ketu, S., & Mishra, P. K. (2021). Scalable kernel-based SVM classification algorithm on imbalance air quality data for proficient healthcare. Complex & Intelligent Systems, 7(5), 2597-2615. https://doi.org/10.1007/s40747-021-00435-5
- Khan, M. I., Amin, A., Khan, M. T., Jabeen, H., & Chaudhry, S. R. (2024). Unveiling the hidden hazards of smog: health implications and antibiotic resistance in perspective. Aerobiologia, 40(3), 353-372. https://doi.org/10.1007/s10453-024-09833-x
- Kumar, P., Gulia, S., Harrison, R. M., & Khare, M. (2017). The influence of odd-even car trial on fine and coarse particles in Delhi. Environmental Pollution, 225, 20–29. https://doi.org/10.1016/j.envpol.2016.12.037
- Li, X., Peng, L., Yao, X., Cui, S., Hu, Y., You, C., & Chi, T. (2017). Long short-term memory neural network for air pollutant concentration predictions: Method development and evaluation. Environmental Pollution, 231, 997–1004. https://doi.org/10.1016/j.envpol.2017.08.114
- Mahajan, S., Chung, M. K., Martinez, J., Olaya, Y., Helbing, D., & Chen, L. J. (2022). Translating citizen-generated air quality data into evidence for shaping policy. Humanities and Social Sciences Communications, 9(1), 1-18. https://doi.org/10.1057/s41599-022-01135-2
- Maharana, K., Mondal, S., & Nemade, B. (2022). A review: Data pre-processing and data augmentation techniques. Global Transitions Proceedings, 3(1), 91-99. https://doi.org/10.1016/j.gltp.2022.04.020
- Maleki, F., Ovens, K., Gupta, R., Reinhold, C., Spatz, A., & Forghani, R. (2022). Generalizability of machine learning models: quantitative evaluation of three methodological pitfalls. Radiology: Artificial Intelligence, 5(1). https://doi.org/10.1148/ryai.220028
- McCarron, A., Semple, S., Braban, C. F., Swanson, V., Gillespie, C., & Price, H. D. (2023). Public engagement with air quality data: using health behaviour change theory to support exposure-minimising behaviours. Journal of Exposure Science & Environmental Epidemiology, 33(3), 321-331. https://doi.org/10.1038/s41370-022-00449-2
- Miah, M. R., & Islam, M. M. (2024). Data Preprocessing and Feature Engineering Strategies for Large-Scale Predictive Modeling Applications. Review of Applied Science and Technology, 3(01), 263-302. https://doi.org/10.63125/tqqqed47
- Pannakkong, W., Thiwa-Anont, K., Singthong, K., Parthanadee, P., & Buddhakulsomsiri, J. (2022). Hyperparameter tuning of machine learning algorithms using response surface methodology: a case study of ANN, SVM, and DBN. Mathematical problems in engineering, 2022(1), 8513719. https://doi.org/10.1155/2022/8513719
- Pholsook, T., Ramjan, S., & Wipulanusat, W. (2025). Enhancing airport services: data-driven analysis of passenger satisfaction and service quality in Southeast Asia. Engineering Management in Production and Services, 17(2), .. https://doi.org/10.2478/emj-2025-0011
- Pratama, A., Gudiato, C., Maulana, A., & Prayitno, W. (2025). SVM-Driven ISPU Prediction for Jakarta's Sustainable Future. SISFOTENIKA, 15(1), 66-76. https://doi.org/10.30700/sisfotenika.v15i1.532
- Putri, M. N. P., Handayani, A. S., & Rose, M. M. (2020). Sistem monitoring kualitas udara dengan platform web. Explore IT: Jurnal Keilmuan dan Aplikasi Teknik Informatika, 12(2), 54-61. https://doi.org/10.35891/explorit.v12i2.2262
- Ramadhan, A., Hermawan, E., & Hudjimartsu, S. A. (2025). Spatial Distribution Patterns of Urban Growth, Dasymetric Mapping, and Air Pollution Standard Index (ISPU) in Bogor Regency (2018-2023). Journal of Applied Informatics and Computing, 9(4), 1477-1489. https://doi.org/10.30871/jaic.v9i4.9862
- Rybarczyk, Y., & Zalakeviciute, R. (2018). Machine learning approaches for outdoor air quality modelling: A systematic review. Applied Sciences, 8(12), 2570. https://doi.org/10.3390/app8122570
- Saputra, A. D. M., & Firmansyah, H. (2025). Implementasi Algoritma Decision Tree untuk Memprediksi Kualitas Udara dan Polusi dengan RapidMiner. sudo Jurnal Teknik Informatika, 4(3), 212-219. https://doi.org/10.56211/sudo.v4i3.1145
- Schizas, N., Karras, A., Karras, C., & Sioutas, S. (2022). TinyML for ultra-low power AI and large scale IoT deployments: A systematic review. Future Internet, 14(12), 363. https://doi.org/10.3390/fi14120363
- Susatyono, J. D., & Fitrianto, Y. (2021). Sistem monitoring kualitas udara dan otomatisasi pemberian pakan ayam berbasis IoT. Krea-TIF: Jurnal Teknik Informatika, 9(2), 1-10. https://doi.org/10.32832/kreatif.v9i2.5650
- Talreja, N., Hegde, C., Kumar, E. M., & Chavali, M. (2025). Emerging environmental contaminants: sources, consequences and future challenges. Green technologies for industrial contaminants, 119-149. https://doi.org/10.1002/9781394159390.ch5
- Teguh, R., Oktaviyani, E. D., & Mempun, K. A. (2018). Rancang bangun desain internet of things untuk pemantauan kualitas udara pada studi kasus polusi Udara. Jurnal Teknologi Informasi: Jurnal Keilmuan dan Aplikasi Bidang Teknik Informatika, 12(2), 47-58. https://doi.org/10.47111/jti.v12i2.532
- Tufail, S., Riggs, H., Tariq, M., & Sarwat, A. I. (2023). Advancements and challenges in machine learning: A comprehensive review of models, libraries, applications, and algorithms. Electronics, 12(8), 1789. https://doi.org/10.3390/electronics12081789
- Villegas-Camacho, O., Francisco-Valencia, I., Alejo-Eleuterio, R., Granda-Gutiérrez, E. E., Martínez-Gallegos, S., & Villanueva-Vásquez, D. (2025). FTIR-based microplastic classification: A comprehensive study on normalization and ML techniques. Recycling, 10(2), 46. https://doi.org/10.3390/recycling10020046
- Wan, K., Shackley, S., Doherty, R. M., Shi, Z., Zhang, P., & Golding, N. (2020). Science-policy interplay on air pollution governance in China. Environmental Science & Policy, 107, 150-157. https://doi.org/10.1016/j.envsci.2020.03.003
- Wen, C., Liu, S., Yao, X., Peng, L., Li, X., Hu, Y., & Chi, T. (2019). A novel spatiotemporal convolutional long short-term neural network for air pollution prediction. Science of the Total Environment, 654, 1091–1099.
- World Health Organization. (2018). Air pollution and child health: Prescribing clean air.
- Xu, Y., Lu, X., Cetiner, B., & Taciroglu, E. (2021). Real‐time regional seismic damage assessment framework based on long short‐term memory neural network. Computer‐Aided Civil and Infrastructure Engineering, 36(4), 504-521. https://doi.org/10.1111/mice.12628
- Yasin, K. H., Yasin, M. I., Iguala, A. D., Gelete, T. B., Tulu, D., & Kebede, E. (2025). Predictive machine learning and geospatial modeling reveal PM10 hotspots and guide targeted air pollution interventions in Addis Ababa, Ethiopia. Discover Applied Sciences, 7(4), 263. https://doi.org/10.1007/s42452-025-06723-w
- Yu, K., Li, W., Xie, W., & Wang, L. (2024). A hybrid feature-selection method based on mRMR and binary differential evolution for gene selection. Processes, 12(2), 313. https://doi.org/10.3390/pr12020313
- Zhang, Y., Bocquet, M., Mallet, V., Seigneur, C., & Baklanov, A. (2012). Real-time air quality forecasting, part I: History, techniques, and current status. Atmospheric Environment, 60, 632–655. https://doi.org/10.1016/j.atmosenv.2012.06.031
- Zhu, M., Wang, J., Yang, X., Zhang, Y., Zhang, L., Ren, H., Wu, B., & Ye, L. (2022). A review of the application of machine learning in water quality evaluation. Eco-Environment and Health, 1(2), 107-116. https://doi.org/10.1016/j.eehl.2022.06.001
- Zhu, M., Gutierrez, M., Zhu, H., Ju, J. W., & Sarna, S. (2021). Performance Evaluation Indicator (PEI): A new paradigm to evaluate the competence of machine learning classifiers in predicting rockmass conditions. Advanced Engineering Informatics, 47, 101232. https://doi.org/10.1016/j.aei.2020.101232
- Zou, B., Chen, J., Zhai, L., Fang, X., & Zheng, Z. (2017). Satellite based mapping of ground PM2.5 concentration using generalized additive modeling. Remote Sensing, 9(1), 1. https://doi.org/10.3390/rs9010001

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.