AIR QUALITY PREDICTION USING IOT AND MACHINE LEARNING

Authors

  • Iwan Handoyo Putro UK Petra

DOI:

https://doi.org/10.9744/jte.19.1.%25p

Keywords:

Internet of Things, Air Quality Prediction, Beijing PM2.5 dataset, Machine Learning

Abstract

Air pollution has become a critical environmental and public health concern, particularly in urban areas where industrial activities and transportation contribute significantly to particulate matter emissions. The emergence of Internet of Things (IoT) technologies has enabled continuous and real-time monitoring of environmental conditions through distributed sensor networks. However, raw sensor data alone is insufficient without intelligent analysis for accurate forecasting and decision-making. This study proposes a machine learning-based approach for air quality prediction using IoT-derived environmental data. The Beijing PM2.5 dataset was utilized to simulate real-world IoT sensor measurements, incorporating meteorological and temporal features. Three machine learning models: Linear Regression, Random Forest, and Gradient Boosting were implemented and evaluated using standard performance metrics including Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and coefficient of determination (R²). Experimental results indicate that the Random Forest model achieved the best performance, with an RMSE of 47.05, and R² score of 0.75. In comparison, Gradient Boosting produced an RMSE of 66.27 and R² of 0.50, while Linear Regression showed the lowest performance with an RMSE of 80.14 and R² of 0.27. These results demonstrate that tree-based ensemble methods, particularly Random Forest, are more effective in capturing the nonlinear relationships present in environmental data. This work highlights the potential of integrating IoT sensing with machine learning models to support accurate air quality prediction and informed environmental management

References

[1] C. A. Pope, 3rd and D. W. Dockery, "Health effects of fine particulate air pollution: lines that connect," J Air Waste Manag Assoc, vol. 56, no. 6, pp. 709-42, Jun 2006.

[2] F. Karagulian et al., "Contributions to cities' ambient particulate matter (PM): A systematic review of local source contributions at global level," Atmospheric Environment, vol. 120, pp. 475-483, 2015.

[3] E. G. Snyder et al., "The changing paradigm of air pollution monitoring," Environ Sci Technol, vol. 47, no. 20, pp. 11369-77, Oct 15 2013.

[4] N. Castell et al., "Can commercial low-cost sensor platforms contribute to air quality monitoring and exposure estimates?," Environ Int, vol. 99, pp. 293-302, Feb 2017.

[5] A. R. Al-Ali, I. Zualkernan, and F. Aloul, "A Mobile GPRS-Sensors Array for Air Pollution Monitoring," IEEE Sensors Journal, vol. 10, no. 10, pp. 1666-1671, 2010.

[6] L. Atzori, A. Iera, and G. Morabito, "The Internet of Things: A survey," Computer Networks, vol. 54, no. 15, pp. 2787-2805, 2010.

[7] P. Asha et al., "IoT enabled environmental toxicology for air pollution monitoring using AI techniques," Environ Res, vol. 205, p. 112574, Apr 1 2022.

[8] J. Gubbi, R. Buyya, S. Marusic, and M. Palaniswami, "Internet of Things (IoT): A vision, architectural elements, and future directions," Future Generation Computer Systems, vol. 29, no. 7, pp. 1645-1660, 2013.

[9] M. Chen, S. Mao, and Y. Liu, "Big Data: A Survey," Mobile Networks and Applications, vol. 19, no. 2, pp. 171-209, 2014.

[10] P. Domingos, "A few useful things to know about machine learning," Communications of the ACM, vol. 55, no. 10, pp. 78-87, 2012.

[11] E. Gladkova and L. Saychenko, "Applying machine learning techniques in air quality prediction," Transportation Research Procedia, vol. 63, pp. 1999-2006, 2022.

[12] S. M. S. D. Malleswari and T. K. Mohana, "Air pollution monitoring system using IoT devices: Review," Materials Today: Proceedings, vol. 51, pp. 1147-1150, 2022.

[13] S. Chen. (2017, 7 April). Beijing PM2.5. Available: https://archive.ics.uci.edu/dataset/381/beijing+pm2+5+data

[14] H. Alrashidi, F. N. Sibai, A. Abonamah, M. Alrashidi, and A. Alsaber, "PM2.5: Air Quality Index Prediction Using Machine Learning: Evidence from Kuwait’s Air Quality Monitoring Stations," Sustainability, vol. 17, no. 20, 2025.

[15] A. Makhdoomi, M. Sarkhosh, and S. Ziaei, "PM(2.5) concentration prediction using machine learning algorithms: an approach to virtual monitoring stations," Sci Rep, vol. 15, no. 1, p. 8076, Mar 8 2025.

[16] S. M. Popescu et al., "Artificial intelligence and IoT driven technologies for environmental pollution monitoring and management," Frontiers in Environmental Science, vol. 12, 2024.

[17] G. Mani, J. K. Viswanadhapalli, and A. A. Stonier, "Prediction and forecasting of air quality index in Chennai using regression and ARIMA time series models," Journal of Engineering Research, vol. 10, no. 2, pp. 179-194, 2022.

[18] H. K. S. Doreswamy, Yogesh KM, Ibrahim Gad,, "Forecasting Air Pollution Particulate Matter (PM2.5) Using Machine Learning Regression Models," Procedia Computer Science, vol. 171, pp. 2057-2066, 2020.

Downloads

Published

2026-04-27

Issue

Section

Articles