A Systematic Study of Popular Software Packages and AI/ML Models for Calibrating In Situ Air Quality Data: An Example with Purple Air Sensors

Accurate air pollution monitoring is critical to understand and mitigate the impacts of air pollution on human health and ecosystems. Due to the limited number and geographical coverage of advanced, highly accurate sensors monitoring air pollutants, many low-cost and low-accuracy sensors have been d...

Full description

Saved in:
Bibliographic Details
Main Authors: Seren Smith, Theodore Trefonides, Anusha Srirenganathan Malarvizhi, Shyra LaGarde, Jiakang Liu, Xiaoguo Jia, Zifu Wang, Jacob Cain, Thomas Huang, Mohammad Pourhomayoun, Grace Llewellyn, Wai Phyo, Sina Hasheminassab, Joe Roberts, Kevin Marlis, Daniel Q. Duffy, Chaowei Yang
Format: Article
Language:English
Published: MDPI AG 2025-02-01
Series:Sensors
Subjects:
Online Access:https://www.mdpi.com/1424-8220/25/4/1028
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:Accurate air pollution monitoring is critical to understand and mitigate the impacts of air pollution on human health and ecosystems. Due to the limited number and geographical coverage of advanced, highly accurate sensors monitoring air pollutants, many low-cost and low-accuracy sensors have been deployed. Calibrating low-cost sensors is essential to fill the geographical gap in sensor coverage. We systematically examined how different machine learning (ML) models and open-source packages could help improve the accuracy of particulate matter (PM) 2.5 data collected by Purple Air sensors. Eleven ML models and five packages were examined. This systematic study found that both models and packages impacted accuracy, while the random training/testing split ratio (e.g., 80/20 vs. 70/30) had minimal impact (0.745% difference for R<sup>2</sup>). Long Short-Term Memory (LSTM) models trained in RStudio and TensorFlow excelled, with high R<sup>2</sup> scores of 0.856 and 0.857 and low Root Mean Squared Errors (RMSEs) of 4.25 µg/m<sup>3</sup> and 4.26 µg/m<sup>3</sup>, respectively. However, LSTM models may be too slow (1.5 h) or computation-intensive for applications with fast response requirements. Tree-boosted models including XGBoost (0.7612, 5.377 µg/m<sup>3</sup>) in RStudio and Random Forest (RF) (0.7632, 5.366 µg/m<sup>3</sup>) in TensorFlow offered good performance with shorter training times (<1 min) and may be suitable for such applications. These findings suggest that AI/ML models, particularly LSTM models, can effectively calibrate low-cost sensors to produce precise, localized air quality data. This research is among the most comprehensive studies on AI/ML for air pollutant calibration. We also discussed limitations, applicability to other sensors, and the explanations for good model performances. This research can be adapted to enhance air quality monitoring for public health risk assessments, support broader environmental health initiatives, and inform policy decisions.
ISSN:1424-8220