ASPG Menu
search

American Scientific Publishing Group

verified Journal

Journal of Artificial Intelligence and Metaheuristics

ISSN
Online: 2833-5597
Frequency

Continuous publication

Publication Model

Open access · Articles freely available online · $500 APC applies after acceptance

Journal of Artificial Intelligence and Metaheuristics
Full Length Article

Volume 9 • Issue 1 • PP: 23–29 • 2025

K-Nearest Neighbors Approach to Analyze and Predict Air Quality in Delhi

Ahmed Mohamed Zaki 1* ,
Shahid Mahmood 2
1Computer Science and Intelligent Systems Research Center, Blacksburg 24060, Virginia, USA.
2School of Finance and Economics, Jiangsu University, Zhenjiang, People’s Republic of China.
* Corresponding Author.
verified

Open Access & Copyright

© 2025 The Author(s). Published by ASPG. This article is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).

Received: November 07, 2024 Revised: December 28, 2024 Accepted: January 23, 2025

Editorial responsibility:

This article was handled by an independent editor. The author serving on the Editorial Board had no involvement in the peer-review process or the final editorial decision.

Abstract

The study considers the community of “urban air quality improvement in modern cities” using an extensive dataset obtained from “Air quality data of Delhi, India” for the period between 25 November 2020 and 24 January 2023. Research aims to significantly reduce air pollutants, including particulate matter, including PM2.5 and PM10, NO2, SO2, CO2, O3, and others. Different machine learning models are being used for air quality level forecasts. Among the models assessed, the Nearest Neighbors algorithm comes out on top and exhibits a very low Mean Squared Error (MSE) of 0.0002. The model’s superb precision is further supported by very low statistics in other key metrics, which confirm the Nearest Neighbors approach to forecasting the quality of air in urban zones. The Nearest Neighbors algorithm is shown to have its place in the application as a tool in the hands of researchers and decision-makers pursuing the fight against air pollution is also a signal of its efficiency and broad applicability. This modeling approach has thus the potential to first identify and later pinpoint localized empirical patterns and statistical dependencies from the data set. Its high predictive precision makes it a very valuable assistant to public health and environmental management, especially so in regions like Delhi.

Keywords

Air pollutants K-Nearest Neighbors Machine Learning Models Air Quality Prediction

References

[1] E. M. Almetwally and M. A. Meraou, “Application of environmental data with new extension of nadarajah-haghighi distribution,” Computational Journal of Mathe-matical and Statistical Sciences, vol. 1, no. 1, pp. 26–41, 2022.

[2] S. Maji, S. Ahmed, M. Kaur-Sidhu, S. Mor, and K. Ravindra, “Health risks of major air pollutants, their drivers and mitigation strategies: A review,” Air, Soil and Water Research, vol. 16, pp. 1–12, 2023.

[3] M. R. Shaeri, S. Sarabi, A. M. Randriambololona, and A. Shadlo, “Machine learning-based optimization of air-cooled heat sinks,” Thermal Science and Engineering Progress, vol. 34, p. 101398, Sep. 2022.

[4] T. Chen, X. Chen, W. Chen, H. Heaton, J. Liu, Z. Wang, and W. Yin, “Learning to optimize: A primer and a benchmark,” Journal of Machine Learning Research, vol. 23, no. 189, pp. 1–59, 2022.

[5] C. Huang, T. Niu, H. Wu, Y. Qu, T. Wang, M. Li, R. Li, and H. Liu, “A data assimilation method combined with machine learning and its application to anthropogenic emission adjustment in cmaq,” Remote Sensing, vol. 15, no. 6, p. 1711, 2023.

[6] W. Zhang, X. Gu, L. Tang, Y. Yin, D. Liu, and Y. Zhang, “Application of machine learning, deep learning and opti-mization algorithms in geoengineering and geoscience: Comprehensive review and future challenge,” Gond-wana Research, vol. 109, pp. 1–17, Sep. 2022.

[7] H. Gao, S. Zhong, W. Zhang, T. Igou, E. Berger, E. Reid, Y. Zhao, D. Lambeth, L. Gan, M. A. Afolabi, Z. Tong, G. Lan, and Y. Chen, “Revolutionizing membrane de-sign using machine learning-bayesian optimization,” En-vironmental Science & Technology, vol. 56, no. 4, pp. 2572–2581, Feb. 2022.

[8] C. Gambella, B. Ghaddar, and J. Naoum-Sawaya, “Op-timization problems for machine learning: A survey,” European Journal of Operational Research, vol. 290, no. 3, pp. 807–828, May 2021.

[9] A. Djaafari, A. Ibrahim, N. Bailek, K. Bouchouicha, and M. A. Hassan, “Hourly predictions of direct nor-mal irradiation using an innovative hybrid lstm model for concentrating solar power projects in hyper-arid re-gions,” Energy Reports, vol. 8, pp. 15 548–15 562, 2022.

[10] W. Chen, Q. Wu, C. Yu, H. Wang, and W. Hong, “Multi-branch machine learning-assisted optimization and its application to antenna design,” IEEE Transactions on Antennas and Propagation, vol. 70, no. 7, pp. 4985–4996, Jul. 2022.

[11] R. Ding, S. Zhang, Y. Chen, Z. Rui, K. Hua, Y. Wu, X. Li, X. Duan, X. Wang, J. Li, and J. Liu, “Applica-tion of machine learning in optimizing proton exchange membrane fuel cells: A review,” Energy and AI, vol. 9, p. 100170, Aug. 2022.

[12] R. Tamura, T. Osada, K. Minagawa, T. Kohata, M. Hiro-sawa, K. Tsuda, and K. Kawagishi, “Machine learning-driven optimization in powder manufacturing of ni-co based superalloy,” Materials & Design, vol. 198, p. 109290, Jan. 2021.

[13] A. Masood, M. M. Hameed, A. Srivastava, Q. B. Pham, K. Ahmad, S. F. M. Razali, and S. A. Baowidan, “Im-proving pm2.5 prediction in new delhi using a hybrid extreme learning machine coupled with snake optimiza-tion algorithm,” Scientific Reports, vol. 13, p. 21057, 2023.

[14] K. Zhang, J. Thé, G. Xie, and H. Yu, “Multi-step ahead forecasting of regional air quality using spatial-temporal deep neural networks: A case study of huaihai eco-nomic zone,” Journal of Cleaner Production, vol. 277, p. 123231, 2020.

[15] M. A. A. Al-Qaness, H. Fan, A. A. Ewees, D. Yousri, and M. Abd Elaziz, “Improved anfis model for fore-casting wuhan city air quality and analysis covid-19 lockdown impacts on air quality,” Environmental Re-search, vol. 194, p. 110607, 2021.

[16] R. Janarthanan, P. Partheeban, K. Somasundaram, and P. N. Elamparithi, “A deep learning approach for predic-tion of air quality index in a metropolitan city,” Sustain-able Cities and Society, vol. 67, p. 102720, 2021.

[17] S. Taheri and A. Razban, “Learning-based co2 con-centration prediction: Application to indoor air quality control using demand-controlled ventilation,” Building and Environment, vol. 205, p. 108164, 2021.

[18] Y. Huang, J. J.-C. Ying, and V. S. Tseng, “Spatio-attention embedded recurrent neural network for air quality prediction,” Knowledge-Based Systems, vol. 233, p. 107416, 2021.

[19] D. Jia, L. Yang, T. Lv, W. Liu, and X. Gao, “Eval-uation of machine learning models for predicting daily global and diffuse solar radiation under differ-ent weather/pollution conditions,” Renewable Energy, vol. 187, pp. 896–906, 2022.

[20] G. Ferdinands, R. Schram, J. de Bruin, A. Bagheri, and D. L. Oberski, “Performance of active learning models for screening prioritization in systematic reviews: A simulation study into the average time to discover rele-vant records,” Systematic Reviews, vol. 12, no. 1, p. 100, 2023.

[21] V. Plevris, G. Solorzano, N. P. Bakas, and M. E. A. Ben Seghier, “Investigation of performance metrics in regression analysis and machine learning-based predic-tion models,” 2022.

Cite This Article

Choose your preferred format

format_quote
Zaki, Ahmed Mohamed, Mahmood, Shahid. "K-Nearest Neighbors Approach to Analyze and Predict Air Quality in Delhi." Journal of Artificial Intelligence and Metaheuristics, vol. 9, no. 1, 2025, pp. 23–29. DOI: https://doi.org/10.54216/JAIM.090104
Zaki, A., Mahmood, S. (2025). K-Nearest Neighbors Approach to Analyze and Predict Air Quality in Delhi. Journal of Artificial Intelligence and Metaheuristics, Volume 9(Issue 1), 23–29. DOI: https://doi.org/10.54216/JAIM.090104
Zaki, Ahmed Mohamed, Mahmood, Shahid. "K-Nearest Neighbors Approach to Analyze and Predict Air Quality in Delhi." Journal of Artificial Intelligence and Metaheuristics Volume 9, no. Issue 1 (2025): 23–29. DOI: https://doi.org/10.54216/JAIM.090104
Zaki, A., Mahmood, S. (2025) 'K-Nearest Neighbors Approach to Analyze and Predict Air Quality in Delhi', Journal of Artificial Intelligence and Metaheuristics, Volume 9(Issue 1), pp. 23–29. DOI: https://doi.org/10.54216/JAIM.090104
Zaki A, Mahmood S. K-Nearest Neighbors Approach to Analyze and Predict Air Quality in Delhi. Journal of Artificial Intelligence and Metaheuristics. 2025;Volume 9(Issue 1):23–29. DOI: https://doi.org/10.54216/JAIM.090104
A. Zaki, S. Mahmood, "K-Nearest Neighbors Approach to Analyze and Predict Air Quality in Delhi," Journal of Artificial Intelligence and Metaheuristics, vol. Volume 9, no. Issue 1, pp. 23–29, 2025. DOI: https://doi.org/10.54216/JAIM.090104
policy

Publisher's Note

The statements, opinions, and data presented in this article are solely those of the author(s) and do not necessarily represent those of ASPG, the journal, or its editors. ASPG and the editors disclaim responsibility for any harm arising from the use of any ideas, methods, instructions, or products described in this article, to the fullest extent permitted by applicable law.

Digital Archive Ready