Predicting and Visualizing Air Quality Index (AQI) using IoT and Machine Learning: An Experimental Study
Keywords:
Air quality index, Deep learning, Environmental sensing, IoT, LSTM, Machine learning, Meteorological parameters, PM2.5, Real-time monitoring, ThingSpeakAbstract
Air quality deterioration has emerged as a critical environmental and public health challenge globally, particularly in rapidly urbanizing regions. This research presents a comprehensive framework for real-time Air Quality Index (AQI) prediction using Internet of Things (IoT) technology integrated with advanced machine learning algorithms. We developed a Portable AQI Detector Kit equipped with multi-pollutant sensors and deployed it in Indore, Madhya Pradesh, India, to collect continuous data on PM2.5, PM10, NOx, SO2, and CO concentrations. An improved long short-term memory (ILSTM) neural network model was developed and compared against traditional forecasting methods, including LSTM, ARIMA, and SARIMA. The ILSTM model achieved superior performance with an RMSE of 39.688 and an R² of 0.973, outperforming other baseline models. Additionally, we developed a Multivariate Recursive Linear Regressive Model (MRLRM) that incorporates meteorological parameters (temperature, humidity, wind speed) to enhance prediction accuracy, achieving an R² improvement of 0.068 over Support Vector Regression models. The system employs the MQTT protocol for cloud-based data transmission to the ThingSpeak platform, enabling real-time visualization and public accessibility. This integrated approach demonstrates significant advancement in predictive environmental monitoring, providing actionable insights for pollution control and public health protection.
References
P. Kalia and M. A. Ansari, “IoT-based air quality and particulate matter concentration monitoring system,” Materials Today: Proceedings, vol. 32, pp. 468–475, Mar. 2020, doi: https://doi.org/10.1016/j.matpr.2020.02.179
R. Bascom, P. A. Bromberg, D. A. Costa, R. Devlin, D. W. Dockery, M. W. Frampton et al., “Health effects of outdoor air pollution,” American Journal of Respiratory and Critical Care Medicine, vol. 153, no. 1, pp. 3–50, 1996, doi: https://doi.org/10.1164/ajrccm.153.1.8542133
T.-M. Chen, W. G. Kuschner, J. Gokhale, S. Shofer, “Outdoor air pollution: Nitrogen dioxide, sulfur dioxide, and carbon monoxide health effects,” American Journal of the Medical Sciences, vol. 333, no. 4, pp. 249–256, Apr. 2007, doi: https://doi.org/10.1097/MAJ.0b013e31803b900f
C. Xiaojun, L. Xianpeng and X. Peng, “IoT-based air pollution monitoring and forecasting system,” 2015 International Conference on Computer and Computational Sciences (ICCCS), Greater Noida, India, 2015, pp. 257–260, doi: https://doi.org/10.1109/ICCACS.2015.7361361
N. Ding, Q. Dai and Y. Fan, “Design of Arduino PM2.5 air quality monitoring system,” 2021 IEEE International Conference on Power Electronics, Computer Applications (ICPECA), Shenyang, China, 2021, pp. 798–800, doi: https://doi.org/10.1109/ICPECA51329.2021.9362553
C. J., S. M. N., P. Sultana, and J. Senthil, “IoT-based real time air pollution monitoring system,” International Journal of Grid and High Performance Computing, vol. 11, no. 4, pp. 28–41, Oct. 2019, doi: https://doi.org/10.4018/ijghpc.2019100103
T. W. Hesterberg, W. B. Bunn, R. O. McClellan, A. K. Hamade, C. M. Long, and P. A. Valberg, “Critical review of the human data on short-term nitrogen dioxide (NO₂) exposures: Evidence for NO₂ no-effect levels,” Critical Reviews in Toxicology, vol. 39, no. 9, pp. 743–781, doi: https://doi.org/10.3109/10408440903294945
H. Elkadhi and R. Ben Hamida, “The short-term effects of air pollution on health in Sfax (Tunisia): An ARDL cointegration procedure,” 2014 International Conference and Utility Exhibition on Green Energy for Sustainable Development (ICUE), Pattaya, Thailand, 2014, pp. 1–4, doi: https://ieeexplore.ieee.org/document/6828950
K.-H. Kim, E. Kabir, and S. Kabir, “A review on the human health impact of airborne particulate matter,” Environment International, vol. 74, pp. 136–143, Jan. 2015, doi: https://doi.org/10.1016/j.envint.2014.10.005
V. Barot and V. Kapadia, “Air Quality Monitoring Systems using IoT: A Review,” 2020 International Conference on Computational Performance Evaluation (ComPE), Shillong, India, 2020, pp. 226–231, doi: https://doi.org/10.1109/ComPE49325.2020.9200053
S. Muthukumar, W. Sherine Mary, S. Jayanthi, R. Kiruthiga and M. Mahalakshmi, “IoT based air pollution monitoring and control system,” 2018 International Conference on Inventive Research in Computing Applications (ICIRCA), Coimbatore, India, 2018, pp. 1286–1288, doi: https://doi.org/10.1109/ICIRCA.2018.8597240
C. H B, V. G S, V. R, A. K., “Air quality index prediction using machine learning techniques,” International Journal for Research in Applied Science & Engineering Technology, vol. 13, no. 1, pp. 2062–2066, Jan. 2025, doi: https://doi.org/10.22214/ijraset.2025.66727
D. Nuvolone, D. Balzi, M. Chini, D. Scala, F. Giovannini, and A. Barchielli, “Short-term association between ambient air pollution and risk of hospitalization for acute myocardial infarction: Results of the cardiovascular risk and air pollution in Tuscany (RISCAT) Study,” American Journal of Epidemiology, vol. 174, no. 1, pp. 63–71, Jul. 2011, doi: https://doi.org/10.1093/aje/kwr046
A. Bilska-Wilkosz, M. Górny, and M. Iciek, “Biological and pharmacological properties of carbon monoxide: A general overview,” Oxygen, vol. 2, no. 2, pp. 130–151, May 2022, doi: https://doi.org/10.3390/oxygen2020012
V. Sajjan, P. Sharma, “Research on an IoT based air pollution monitoring system,” International Journal of Innovative Technology and Exploring Engineering, vol. 8, no. 9S2, pp. 553–558, Jul. 2019, doi: https://doi.org/10.35940/ijitee.I1116.0789S219
S. A. Abdul-Wahab, C. S. Bakheit, and S. M. Al-Alawi, “Principal component and multiple regression analysis in modelling of ground-level ozone and factors affecting its concentrations,” Environmental Modelling & Software, vol. 20, no. 10, pp. 1263–1271, Oct. 2005, doi: https://doi.org/10.1016/j.envsoft.2004.09.001
J. Heer, J. Mackinlay, C. Stolte and M. Agrawala, “Graphical histories for visualization: Supporting analysis, communication, and evaluation,” in IEEE Transactions on Visualization and Computer Graphics, vol. 14, no. 6, pp. 1189–1196, Nov.–Dec. 2008, doi: https://doi.org/10.1109/tvcg.2008.137
B. Ahlgren, M. Hidell and E. C. H. Ngai, “Internet of Things for smart cities: Interoperability and open data,” in IEEE Internet Computing, vol. 20, no. 6, pp. 52–56, Nov.–Dec. 2016, doi: https://doi.org/10.1109/MIC.2016.124
S. M. Al-Alawi, S. A. Abdul-Wahab, C. S. Bakheit, “Combining principal component regression and artificial neural networks for more accurate predictions of ground-level ozone,” Environmental Modelling & Software, vol. 23, no. 4, pp. 396–403, Apr. 2008, doi: https://doi.org/10.1016/j.envsoft.2006.08.007
G. Andrienko and N. Andrienko, “A general framework for using aggregation in visual exploration of movement data,” The Cartographic Journal, vol. 47, no. 1, pp. 22–40, Jan. 2010, doi: https://doi.org/10.1179/000870409x12525737905042
G. Andrienko et al., “Space, time and visual analytics,” International Journal of Geographical Information Science, vol. 24, no. 10, pp. 1577–1600, Oct. 2010, doi: https://doi.org/10.1080/13658816.2010.508043
M. Arhami, N. Kamali, and M. M. Rajabi, “Predicting hourly air pollutant levels using artificial neural networks coupled with uncertainty analysis by Monte Carlo simulations,” Environmental Science and Pollution Research, vol. 20, pp. 4777–4789, Jan. 2013, doi: https://doi.org/10.1007/s11356-012-1451-6
C. Reche, X. Querol, A. Alastuey, M. Viana, J. Pey, T. Moreno, “New considerations for PM, Black Carbon and particle number concentration for air quality monitoring across different European cities,” Atmospheric Chemistry and Physics, vol. 11, no. 13, doi: https://doi.org/10.5194/acp-11-6207-2011
T. Banerjee and R. K. Srivastava, “Evaluation of environmental impacts of Integrated Industrial Estate—Pantnagar through application of air and water quality indices,” Environmental Monitoring and Assessment, vol. 172, pp. 547–560, Feb. 2010, doi: https://doi.org/10.1007/s10661-010-1353-3
T. Banerjee, S. C. Barman, and R. K. Srivastava, “Application of air pollution dispersion modeling for source-contribution assessment and model performance evaluation at integrated industrial estate-Pantnagar,” Environmental Pollution, vol. 159, no. 4, pp. 865–875, Apr. 2011, doi: https://doi.org/10.1016/j.envpol.2010.12.026
A. K. Mishra and T. Shibata, “Climatological aspects of seasonal variation of aerosol vertical distribution over central Indo-Gangetic belt (IGB) inferred by the space-borne lidar CALIOP,” Atmospheric Environment, vol. 46, pp. 365–375, Jan. 2012, doi: https://doi.org/10.1016/j.atmosenv.2011.09.052
C. Borrego et al., “Assessment of air quality microsensors versus reference methods: The EuNetAir Joint Exercise – Part II,” Atmospheric Environment, vol. 193, pp. 127–142, Nov. 2018, doi: https://doi.org/10.1016/j.atmosenv.2018.08.028
M. Bostock, V. Ogievetsky and J. Heer, “D³ data-driven documents,” in IEEE Transactions on Visualization and Computer Graphics, vol. 17, no. 12, pp. 2301–2309, Dec. 2011, doi: https://doi.org/10.1109/TVCG.2011.185
L. Bui, “Breathing smarter: A critical look at representations of air quality sensing data across platforms and publics,” 2015 IEEE First International Smart Cities Conference (ISC2), Guadalajara, Mexico, 2015, pp. 1–5, doi: https://doi.org/10.1109/ISC2.2015.7366185
T.-C. Bui, V.-D. Le, S.-K. Cha, “A deep learning approach for forecasting air pollution in South Korea using LSTM,” arXiv, Apr. 2018, doi: https://doi.org/10.48550/arXiv.1804.07891
X.-N. Bui et al., “Estimating PM10 concentration from drilling operations in open-pit mines using an assembly of SVR and PSO,” Applied Sciences, vol. 9, no. 14, p. 2806, Jul. 2019, doi: https://doi.org/10.3390/app9142806
J. Burke, D. Estrin, M. Hansen, A. Parker, N. Ramanathan, S. Reddy, M. B. Srivastava, “Participatory sensing,” In Proceedings of the 4th ACM Conference on Embedded Networked Sensor Systems, Jan. 2006, Available: https://escholarship.org/uc/item/19h777qd
M. Cai, Y. Yin, and M. Xie, “Prediction of hourly air pollutant concentrations near urban arterials using artificial neural network approach,” Transportation Research Part D: Transport and Environment, vol. 14, no. 1, pp. 32–41, Jan. 2009, doi: https://doi.org/10.1016/j.trd.2008.10.004
Z. Cai, Q. Wang, M. Weng, S. Jiang, and Q. Du, “Information organization and visualization mechanism of electronic map,” Geo-spatial Information Science, vol. 11, no. 4, pp. 262–268, 2008, doi: https://doi.org/10.1007/s11806-008-0148-y
G. Camprodon et al., “Smart citizen kit and station: An open environmental monitoring system for citizen participation and scientific experimentation,” HardwareX, vol. 6, Oct. 2019, doi: https://doi.org/10.1016/j.ohx.2019.e00070
D. C. Carslaw and K. Ropkins, “openair — An R package for air quality data analysis,” Environmental Modelling & Software, vol. 27–28, pp. 52–61, 2012, doi: https://doi.org/10.1016/j.envsoft.2011.09.008
M. Caselli, L. Trizio, G. de Gennaro, and P. Ielpo, “A simple Feedforward neural network for the PM10 Forecasting: Comparison with a Radial Basis Function Network and a Multivariate Linear Regression Model,” Water, Air, and Soil Pollution, vol. 201, pp. 365–377, Dec. 2008, doi: https://doi.org/10.1007/s11270-008-9950-2
A. Chaloulakou, G. Grivas, and N. Spyrellis, “Neural Network and Multiple Regression Models for PM10 Prediction in Athens: A comparative assessment,” Journal of the Air & Waste Management Association, vol. 53, no. 10, pp. 1183–1190, 2003, doi: https://doi.org/10.1080/
2003.10466276
T. Chen and C. Guestrin, “XGBoost: A scalable Tree Boosting system,” Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining - KDD ’16, pp. 785–794, Aug. 2016, doi: https://doi.org/10.1145/2939672.2939785
L. -J. Chen et al., “An open framework for participatory PM2.5 monitoring in smart cities,” in IEEE Access, vol. 5, pp. 14441–14454, 2017, doi: https://doi.org/10.1109/ACCESS.2017.