Journal of Artificial Intelligence and Metaheuristics JAIM 2833-5597 10.54216/JAIM https://www.americaspg.com/journals/show/3519 2022 2022 K-Nearest Neighbors Approach to Analyze and Predict Air Quality in Delhi Computer Science and Intelligent Systems Research Center, Blacksburg 24060, Virginia, USA. Ahmed Ahmed School of Finance and Economics, Jiangsu University, Zhenjiang, People’s Republic of China. Shahid Mahmood 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 airquality 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. 2025 2025 34 43 10.54216/JAIM.090104 https://www.americaspg.com/articleinfo/28/show/3519