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. 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.
    2. 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.
    3. 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.
    4. 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.
    5. 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.
    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. 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.
    3. 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.
    4. 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.
    5. 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.
    6. Kong, Dongmin & Liang, Junwei & Liu, Chenhao, 2022. "Invisible enemy: The health impact of ozone," China Economic Review, Elsevier, vol. 72(C).
    7. 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.
    8. 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.
    9. Tang, Lianzhou & Xu, Wenli, 2025. "Patronage and pollution," Journal of Environmental Economics and Management, Elsevier, vol. 130(C).
    10. 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).
    11. 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.
    12. Li, Zheng, 2025. "Polluting my downwind neighbor: Evidence of interjurisdictional free riding from air polluter locations in China," Journal of Environmental Economics and Management, Elsevier, vol. 130(C).
    13. Ying Su & Chunyan Lu & Xiaoqing Lin & Lianxiu Zhong & Yibin Gao & Yifan Lei, 2020. "Analysis of Spatio-temporal Characteristics and Driving Forces of Air Quality in the Northern Coastal Comprehensive Economic Zone, China," Sustainability, MDPI, vol. 12(2), pages 1-23, January.
    14. Liu, Ziheng, 2025. "CO2-driven crop comparative advantage and planting decision: Evidence from US cropland," Food Policy, Elsevier, vol. 130(C).
    15. Shen, Peng & Wang, Xincheng & Wang, Yinxiao & Wang, Yucheng & Yu, Chu A.(Alex) & Zhang, Shuhuai, 2026. "Air pollution exposure and donation to its victims: Evidence from online charitable giving," Journal of Environmental Economics and Management, Elsevier, vol. 135(C).
    16. Mohammad Arar & Chuloh Jung, 2021. "Improving the Indoor Air Quality in Nursery Buildings in United Arab Emirates," IJERPH, MDPI, vol. 18(22), pages 1-19, November.
    17. Olexiy Kyrychenko, 2021. "Environmental Regulations, Air Pollution, and Infant Mortality in India: A Reexamination," CERGE-EI Working Papers wp703, The Center for Economic Research and Graduate Education - Economics Institute, Prague.
    18. Ling Zhang & Changjin Ou & Dhammika Magana-Arachchi & Meththika Vithanage & Kanth Swaroop Vanka & Thava Palanisami & Kanaji Masakorala & Hasintha Wijesekara & Yubo Yan & Nanthi Bolan & M. B. Kirkham, 2021. "Indoor Particulate Matter in Urban Households: Sources, Pathways, Characteristics, Health Effects, and Exposure Mitigation," IJERPH, MDPI, vol. 18(21), pages 1-33, October.
    19. Francesco Lolli & Antonio Maria Coruzzolo & Samuele Marinello & Asia Traini & Rita Gamberini, 2022. "A Bibliographic Analysis of Indoor Air Quality (IAQ) in Industrial Environments," Sustainability, MDPI, vol. 14(16), pages 1-26, August.
    20. Wu, Xiaofei & Ma, Jie & Gao, Yanyan & Li, Bin & Chen, Xueli & Song, Malin, 2023. "Policy uncertainty and air pollution: Evidence from the turnover of local officials in China," Economic Analysis and Policy, Elsevier, vol. 80(C), pages 532-543.

    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 (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.