Machine Learning–Based Calibration and Performance Evaluation of Low-Cost Internet of Things Air Quality Sensors

Low-cost air quality sensors (LCSs) are increasingly being used in environmental monitoring due to their affordability and portability. However, their sensitivity to environmental factors can lead to measurement inaccuracies, necessitating effective calibration methods to enhance their reliability. In this study, an Internet of Things (IoT)-based air quality monitoring system was developed and tested using the most commonly preferred sensor types for air quality measurement: fine particulate matter (PM<sub>2.5</sub>), carbon dioxide (CO<sub>2</sub>), temperature, and humidity sensors. To improve sensor accuracy, eight different machine learning (ML) algorithms were applied: Decision Tree (DT), Linear Regression (LR), Random Forest (RF), k-Nearest Neighbors (kNN), AdaBoost (AB), Gradient Boosting (GB), Support Vector Machines (SVM), and Stochastic Gradient Descent (SGD). Sensor performance was evaluated by comparing measurements with a reference device, and the best-performing ML model was determined for each sensor. The results indicate that GB and kNN achieved the highest accuracy. For CO<sub>2</sub> sensor calibration, GB achieved R<sup>2</sup> = 0.970, RMSE = 0.442, and MAE = 0.282, providing the lowest error rates. For the PM<sub>2.5</sub> sensor, kNN delivered the most successful results, with R<sup>2</sup> = 0.970, RMSE = 2.123, and MAE = 0.842. Additionally, for temperature and humidity sensors, GB demonstrated the highest accuracy with the lowest error values (R<sup>2</sup> = 0.976, RMSE = 2.284). These findings demonstrate that, by identifying suitable ML methods, ML-based calibration techniques can significantly enhance the accuracy of LCSs. Consequently, they offer a viable and cost-effective alternative to traditional high-cost air quality monitoring systems. Future studies should focus on long-term data collection, testing under diverse environmental conditions, and integrating additional sensor types to further advance this field.

Authors

Institutions

Publication Details

Journal
Sensors
Published
2025-05-19
DOI
https://doi.org/10.3390/s25103183
Citations
12
Primary Topic
Air Quality Monitoring and Forecasting
Type
article
Field-Weighted Citation Impact
9.59
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Machine Learning–Based Calibration and Performance Evaluation of Low-Cost Internet of Things Air Quality Sensors

Mehmet Taştan
12 citations
Sensors
Air Quality Monitoring and Forecasting
9.59
article

Machine Learning–Based Calibration and Performance Evaluation of Low-Cost Internet of Things Air Quality Sensors

Mehmet Taştan
article en
12 citations

Abstract

Low-cost air quality sensors (LCSs) are increasingly being used in environmental monitoring due to their affordability and portability. However, their sensitivity to environmental factors can lead to measurement inaccuracies, necessitating effective calibration methods to enhance their reliability. In this study, an Internet of Things (IoT)-based air quality monitoring system was developed and tested using the most commonly preferred sensor types for air quality measurement: fine particulate matter (PM<sub>2.5</sub>), carbon dioxide (CO<sub>2</sub>), temperature, and humidity sensors. To improve sensor accuracy, eight different machine learning (ML) algorithms were applied: Decision Tree (DT), Linear Regression (LR), Random Forest (RF), k-Nearest Neighbors (kNN), AdaBoost (AB), Gradient Boosting (GB), Support Vector Machines (SVM), and Stochastic Gradient Descent (SGD). Sensor performance was evaluated by comparing measurements with a reference device, and the best-performing ML model was determined for each sensor. The results indicate that GB and kNN achieved the highest accuracy. For CO<sub>2</sub> sensor calibration, GB achieved R<sup>2</sup> = 0.970, RMSE = 0.442, and MAE = 0.282, providing the lowest error rates. For the PM<sub>2.5</sub> sensor, kNN delivered the most successful results, with R<sup>2</sup> = 0.970, RMSE = 2.123, and MAE = 0.842. Additionally, for temperature and humidity sensors, GB demonstrated the highest accuracy with the lowest error values (R<sup>2</sup> = 0.976, RMSE = 2.284). These findings demonstrate that, by identifying suitable ML methods, ML-based calibration techniques can significantly enhance the accuracy of LCSs. Consequently, they offer a viable and cost-effective alternative to traditional high-cost air quality monitoring systems. Future studies should focus on long-term data collection, testing under diverse environmental conditions, and integrating additional sensor types to further advance this field.

SensorsVol. 25(10)
Manisa Celal Bayar University (TR)
Responsible consumption and production, Life in Land
Openalex Percentile: Top 2%
Air Quality Monitoring and Forecasting
9.59
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.