IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v17y2025i19p8531-d1756238.html

Development of Real-Time IoT-Based Air Quality Forecasting System Using Machine Learning Approach

Author

Listed:
  • Onem Yildiz

    (Department of Electrical and Electronics Engineering, Aydin Adnan Menderes University, Aydin 09100, Türkiye)

  • Hilmi Saygin Sucuoglu

    (Department of Mechanical Engineering, Aydin Adnan Menderes University, Aydin 09100, Türkiye)

Abstract

Air quality monitoring and forecasting have become increasingly critical in urban environments due to rising pollution levels and their impact on public health. Recent advances in Internet of Things (IoT) technology and machine learning offer promising alternatives to traditional monitoring stations, which are limited by high costs and sparse deployment. This paper presents the development of a real-time, low-cost air quality forecasting system that integrates IoT-based sensing units with predictive machine learning algorithms. The proposed system employs low-cost gas sensors and microcontroller-based hardware to monitor pollutants such as particulate matter, carbon monoxide, carbon dioxide and volatile organic compounds. A fully functional prototype device was designed and manufactured using Fused Deposition Modeling (FDM) with modular and scalable features. The data acquisition pipeline includes on-device adjustment, local smoothing, and cloud transfer for real-time storage and visualization. Advanced feature engineering and a multi-model training strategy were used to generate accurate short-term forecasts. Among the models tested, the GRU-based deep learning model yielded the highest performance, achieving R 2 values above 0.93 and maintaining latency below 130 ms, suitable for real-time use. The system also achieved over 91% accuracy in health-based AQI category predictions and demonstrated stable performance without sensor saturation under high-pollution conditions. This study demonstrates that combining embedded hardware, real-time analytics, and ML-driven forecasting enables robust and scalable air quality management solutions, contributing directly to sustainable development goals through enhanced environmental monitoring and public health responsiveness.

Suggested Citation

  • Onem Yildiz & Hilmi Saygin Sucuoglu, 2025. "Development of Real-Time IoT-Based Air Quality Forecasting System Using Machine Learning Approach," Sustainability, MDPI, vol. 17(19), pages 1-26, September.
  • Handle: RePEc:gam:jsusta:v:17:y:2025:i:19:p:8531-:d:1756238
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/17/19/8531/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/17/19/8531/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Vinh Van Tran & Duckshin Park & Young-Chul Lee, 2020. "Indoor Air Pollution, Related Human Diseases, and Recent Trends in the Control and Improvement of Indoor Air Quality," IJERPH, MDPI, vol. 17(8), pages 1-27, April.
    2. Hao Zhou & Tao Wang & Hongchao Zhao & Zicheng Wang, 2022. "Updated Prediction of Air Quality Based on Kalman-Attention-LSTM Network," Sustainability, MDPI, vol. 15(1), pages 1-25, December.
    3. He, Guojun & Fan, Maoyong & Zhou, Maigeng, 2016. "The effect of air pollution on mortality in China: Evidence from the 2008 Beijing Olympic Games," Journal of Environmental Economics and Management, Elsevier, vol. 79(C), pages 18-39.
    4. He Zhang & Ravi Srinivasan, 2020. "A Systematic Review of Air Quality Sensors, Guidelines, and Measurement Studies for Indoor Air Quality Management," Sustainability, MDPI, vol. 12(21), pages 1-38, October.
    5. Mauro Castelli & Fabiana Martins Clemente & Aleš Popovič & Sara Silva & Leonardo Vanneschi, 2020. "A Machine Learning Approach to Predict Air Quality in California," Complexity, Hindawi, vol. 2020, pages 1-23, August.
    6. Ying Yan & Yuangang Li & Maohua Sun & Zhenhua Wu, 2019. "Primary Pollutants and Air Quality Analysis for Urban Air in China: Evidence from Shanghai," Sustainability, MDPI, vol. 11(8), pages 1-18, April.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Sasikumar Gurumoorthy & Aruna Kumari Kokku & Przemysław Falkowski-Gilski & Parameshachari Bidare Divakarachari, 2023. "Effective Air Quality Prediction Using Reinforced Swarm Optimization and Bi-Directional Gated Recurrent Unit," Sustainability, MDPI, vol. 15(14), pages 1-19, July.
    2. Lee, Munseob & Finerman, Rachel, 2021. "COVID-19, commuting flows, and air quality," Journal of Asian Economics, Elsevier, vol. 77(C).
    3. Li, Ke & Yuan, Weihong & Li, Jianglong & Ai, Hongshan, 2021. "Effects of time-dependent environmental regulations on air pollution: Evidence from the Changsha-Zhuzhou-Xiangtan region, China," World Development, Elsevier, vol. 138(C).
    4. Ju, Heng & Tang, Yao & Zhang, Meilan, 2024. "Air Pollution's Grip: Drug Cost and Its Heterogeneity in China," MPRA Paper 121154, University Library of Munich, Germany.
    5. Chih‐Hsuan Wang & Chia‐Rong Chang, 2023. "Forecasting air quality index considering socioeconomic indicators and meteorological factors: A data granularity perspective," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(5), pages 1261-1274, August.
    6. Du,Xinming & Maruyama Rentschler,Jun Erik & Russ,Jason Daniel, 2023. "People's Unequal Exposure to Air Pollution : Evidence for the World's Coal-FiredPower Plants," Policy Research Working Paper Series 10400, The World Bank.
    7. Colmer, Jonathan & Lin, Dajun & Liu, Siying & Shimshack, Jay, 2021. "Why are pollution damages lower in developed countries? Insights from high-Income, high-particulate matter Hong Kong," Journal of Health Economics, Elsevier, vol. 79(C).
    8. Evangelina Dardati & Ramiro de Elejalde & Eugenio Giolito, 2024. "On the short‐term impact of pollution: The effect of PM 2.5 on emergency room visits," Health Economics, John Wiley & Sons, Ltd., vol. 33(3), pages 482-508, March.
    9. Ordoñez, Pablo J., 2020. "Power Plants, Air Pollution, and Health in Colombia," 2020 Annual Meeting, July 26-28, Kansas City, Missouri 304284, Agricultural and Applied Economics Association.
    10. Halkos, George & Managi, Shunsuke, 2023. "New developments in the disciplines of environmental and resource economics," Economic Analysis and Policy, Elsevier, vol. 77(C), pages 513-522.
    11. Kong, Dongmin & Liang, Junwei & Liu, Chenhao, 2022. "Invisible enemy: The health impact of ozone," China Economic Review, Elsevier, vol. 72(C).
    12. He Zhang & Ravi Srinivasan & Vikram Ganesan, 2021. "Low Cost, Multi-Pollutant Sensing System Using Raspberry Pi for Indoor Air Quality Monitoring," Sustainability, MDPI, vol. 13(1), pages 1-15, January.
    13. Li, Shanjun & Liu, Yanyan & Purevjav, Avralt-Od & Yang, Lin, 2019. "Does subway expansion improve air quality?," Journal of Environmental Economics and Management, Elsevier, vol. 96(C), pages 213-235.
    14. Shilei Liu & Jinlei Qi & Jintao Xu & Yuanyuan Yi & Peng Yin & Maigeng Zhou, 2024. "Forest Mitigates Short-Term Health Risk of Air Pollution: Evidence from China," Environmental & Resource Economics, Springer;European Association of Environmental and Resource Economists, vol. 87(8), pages 2163-2204, August.
    15. Chen, Xian & Liu, Yang & Wen, Fenghua, 2024. "Air pollution and the digital transformation," International Review of Economics & Finance, Elsevier, vol. 96(PC).
    16. Ma, Teng & Takeuchi, Kenji, 2020. "Cleaning up the air for the 2008 Beijing Olympic Games: Empirical study on China's thermal power sector," Resource and Energy Economics, Elsevier, vol. 60(C).
    17. Tang, Lianzhou & Xu, Wenli, 2025. "Patronage and pollution," Journal of Environmental Economics and Management, Elsevier, vol. 130(C).
    18. Dong, Yan & Tian, Jinhuan & Wen, Qiang, 2022. "Environmental regulation and outward foreign direct investment: Evidence from China," China Economic Review, Elsevier, vol. 76(C).
    19. Liu, Cenjie & Fang, Jiayu & Xie, Rui, 2021. "Energy policy and corporate financial performance: Evidence from China's 11th five-year plan," Energy Economics, Elsevier, vol. 93(C).
    20. Wang, Jie & Wang, Wanwan & Yuan, Fang, 2023. "Air pollution and corporate risk-taking: Evidence from China," International Review of Economics & Finance, Elsevier, vol. 86(C), pages 570-586.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jsusta:v:17:y:2025:i:19:p:8531-:d:1756238. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager The email address of this maintainer does not seem to be valid anymore. Please ask MDPI Indexing Manager to update the entry or send us the correct address (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.