Calibration of Low-Cost LoRaWAN-Based IoT Air Quality Monitors Using the Super Learner Ensemble: A Case Study for Accurate Particulate Matter Measurement

Gokul Balagopal, Lakitha O. H. Wijeratne, John Waczak, Prabuddha Hathurusinghe, Muddassar Iqbal, Daniel Kiv, Adam Aker, Seth Lee, Vardhan Agnihotri, Christopher S. Simmons, David John Lary. (2025). Calibration of Low-Cost LoRaWAN-Based IoT Air Quality Monitors Using the Super Learner Ensemble: A Case Study for Accurate Particulate Matter Measurement. Sensors. https://doi.org/10.3390/s25051614

Abstract

This study calibrates an affordable, solar-powered LoRaWAN air quality monitoring prototype using the research-grade Palas Fidas Frog sensor. By leveraging the Super Learner machine learning technique, it develops cost-effective sensors for accurate PM (Particulate Matter) monitoring in low-resource settings. Data was collected by co-locating the Palas sensor and LoRaWAN devices under various climatic conditions over multiple days to ensure reliable calibration. The LoRaWAN air quality monitor integrates sensors that measure PM concentrations and meteorological parameters, including temperature, pressure, and humidity. The collected data were calibrated using precise PM concentrations and particle count density measured by the Palas sensor. Various regression models were evaluated, with the stacking model (Super Learner) demonstrating superior performance. By combining simple and complex models, the stacking model achieved the most accurate predictions, with an average test R2 value of 0.96 across all target variables. Specifically, it achieved R2 values of 0.99 for PM2.5 and 0.91 for PM10.0, demonstrating near-research-grade accuracy and underscoring the robustness of the calibration. This study offers a practical and scalable solution for cost-effective air quality monitoring, with significant potential for deployment in the Dallas-Fort Worth metroplex and similar urban areas.

Part of the publication list: https://davidlary.info/publications/

Characterizing the Temporal Variation of Airborne Particulate Matter in an Urban Area Using Variograms

Gokul Balagopal, Lakitha O. H. Wijeratne, John Waczak, Prabuddha Hathurusinghe, Muddassar Iqbal, Rittik Patra, Adam Aker, Seth Lee, Vardhan Agnihotri, Christopher S. Simmons, David John Lary. (2025). Characterizing the Temporal Variation of Airborne Particulate Matter in an Urban Area Using Variograms. Air. https://doi.org/10.3390/air3010007

Abstract

This study aims to determine the optimal frequency for monitoring airborne pollutants in densely populated urban areas to effectively capture their temporal variations. While environmental organizations worldwide typically update air quality data hourly, there is no global consensus on the ideal monitoring frequency to adequately resolve pollutant (Particulate Matter) time series. By applying temporal variogram analysis to particulate matter (PM) data over time, we identified specific measurement intervals that accurately reflect fluctuations in pollution levels. Using January 2023 air quality data from the Joppa neighborhood of Dallas, TX, Temporal Variogram analysis was conducted on three distinct days with varying PM2.5 pollution levels. For the most polluted day, the optimal sampling interval for PM2.5 was determined to be 12.25 seconds. This analysis shows that highly polluted days are associated with shorter sampling intervals, highlighting the need for highly granular observations to accurately capture variations in PM levels. Using the variogram analysis results from the most polluted day, we trained Machine Learning models that can predict the sampling time using meteorological parameters. Feature importance analysis revealed that humidity, temperature and wind speed could significantly impact the measurement time for PM2.5. The study also extends to the other size fractions measured by the air quality monitor. Our findings highlight how local conditions influence the frequency required to reliably track changes in air quality.

Part of the publication list: https://davidlary.info/publications/

Generative Simplex Mapping: Non-Linear Endmember Extraction and Spectral Unmixing for Hyperspectral Imagery

John Waczak, David John Lary. (2024). Generative Simplex Mapping: Non-Linear Endmember Extraction and Spectral Unmixing for Hyperspectral Imagery. Remote Sensing. https://doi.org/10.3390/rs16224316

Abstract

We introduce a new model for non-linear endmember extraction and spectral unmixing of hyperspectral imagery called Generative Simplex Mapping (GSM). The model represents endmember mixing using a latent space of points sampled within a (n−1)-simplex corresponding to n unique sources. Barycentric coordinates within this simplex are naturally interpreted as relative endmember abundances satisfying both the abundance sum-to-one and abundance non-negativity constraints. Points in this latent space are mapped to reflectance spectra via a flexible function combining linear and non-linear mixing. Due to the probabilistic formulation of the GSM, spectral variability is also estimated by a precision parameter describing the distribution of observed spectra. Model parameters are determined using a generalized expectation-maximization algorithm, which guarantees non-negativity for extracted endmembers. We first compare the GSM against three varieties of non-negative matrix factorization (NMF) on a synthetic data set of linearly mixed spectra from the USGS spectral database. Here, the GSM performed favorably for both endmember accuracy and abundance estimation with all non-linear contributions driven to zero by the fitting procedure. In a second experiment, we apply the GTM to model non-linear mixing in real hyperspectral imagery captured over a pond in North Texas. The model accurately identified spectral signatures corresponding to near-shore algae, water, and rhodamine tracer dye introduced into the pond to simulate water contamination by a localized source. Abundance maps generated using the GSM accurately track the evolution of the dye plume as it mixes into the surrounding water.

Part of the publication list: https://davidlary.info/publications/

Causality-Driven Feature Selection for Calibrating Low-Cost Airborne Particulate Sensors Using Machine Learning

Vinu Sooriyaarachchi, David John Lary, Lakitha O. H. Wijeratne, John Waczak. (2024). Causality-Driven Feature Selection for Calibrating Low-Cost Airborne Particulate Sensors Using Machine Learning. Sensors. https://doi.org/10.3390/s24227304

Abstract

With escalating global environmental challenges and worsening air quality, there is an urgent need for enhanced environmental monitoring capabilities. Low-cost sensor networks are emerging as a vital solution, enabling widespread and affordable deployment at fine spatial resolutions. In this context, machine learning for the calibration of low-cost sensors is particularly valuable. However, traditional machine learning models often lack interpretability and generalizability when applied to complex, dynamic environmental data. To address this, we propose a causal feature selection approach based on convergent cross mapping within the machine learning pipeline to build more robustly calibrated sensor networks. This approach is applied in the calibration of a low-cost optical particle counter OPC-N3, effectively reproducing the measurements of PM1 and PM2.5 as recorded by research-grade spectrometers. We evaluated the predictive performance and generalizability of these causally optimized models, observing improvements in both while reducing the number of input features, thus adhering to the Occam’s razor principle. For the PM1 calibration model, the proposed feature selection reduced the mean squared error on the test set by 43.2% compared to the model with all input features, while the SHAP value-based selection only achieved a reduction of 29.6%. Similarly, for the PM2.5 model, the proposed feature selection led to a 33.2% reduction in the mean squared error, outperforming the 30.2% reduction achieved by the SHAP value-based selection. By integrating sensors with advanced machine learning techniques, this approach advances urban air quality monitoring, fostering a deeper scientific understanding of microenvironments. Beyond the current test cases, this feature selection method holds potential for broader applications in other environmental monitoring applications, contributing to the development of interpretable and robust environmental models.

Part of the publication list: https://davidlary.info/publications/

IoT Based Sensing for Assessing Ambient Environmental Conditions and Air Quality Influences on Avian Vocal Behavior and Diversity

Mazhar Iqbal, Lakitha O. H. Wijeratne, John Waczak, Prabuddha M. H. Dewage, Gokul Balagopal, David John Lary. (2024). IoT Based Sensing for Assessing Ambient Environmental Conditions and Air Quality Influences on Avian Vocal Behavior and Diversity. Preprints.org. https://doi.org/10.20944/preprints202411.0281.v1

Abstract

This study introduces a new approach to monitoring avian diversity and vocal behavior, as well as assessing their responses to environmental factors using IoT-based sensors. We utilized BirdNet, a deep learning model for identifying bird species by their vocalizations, to data from our MINTS-AI environmental sensors deployed across Dallas, Texas. The study investigates how ambient temperature, humidity, light intensity, and particulate matter concentrations affect bird behavior. The results show a positive correlation between bird diversity and temperature during winter, with a Pearson coefficients of 0.65 (2023) and 0.80 (2024), and R2 values of 0.43 and 0.64, respectively. In contrast, during summer, a negative correlation was found with Pearson coefficients of -0.63 (2023) and -0.34 (2024), with corresponding R2 values of 0.40 and 0.11. Machine learning models further highlighted species such as the Northern Mockingbird and Mississippi Kite as particularly sensitive to temperature changes. Humidity analysis revealed significant correlations of vocal activity for species like the Canada Goose and House Finch, indicating that vocal activity may depend on moisture levels. Light intensity also showed strong influences on species such as the Northern Mockingbird and Scissor-tailed Flycatcher, linking variations in light to vocal behavior. However, no significant relationship was found between particulate matter (PM2.5) concentrations and bird behavior. This methodology offers a new way to explore the effects of climate change on bird behavior over time, given adequate long-term data. These findings emphasize the important role of environmental changes in shaping bird populations and their ecological interactions.

Part of the publication list: https://davidlary.info/publications/

Providing Fine Temporal and Spatial Resolution Analyses of Airborne Particulate Matter Utilizing Complimentary In Situ IoT Sensor Network and Remote Sensing Approaches

Prabuddha M. H. Dewage, Lakitha O. H. Wijeratne, Xiaohe Yu, Mazhar Iqbal, Gokul Balagopal, John Waczak, Bharana Fernando, Matthew D. Lary, Shisir Ruwali, David John Lary. (2024). Providing Fine Temporal and Spatial Resolution Analyses of Airborne Particulate Matter Utilizing Complimentary In Situ IoT Sensor Network and Remote Sensing Approaches. Remote Sensing. https://doi.org/10.3390/rs16132454

Abstract

This study aims to provide analyses of the levels of airborne particulate matter (PM) using a two-pronged approach that combines data from in situ Internet of Things (IoT) sensor networks with remotely sensed aerosol optical depth (AOD). Our approach involved setting up a network of custom-designed PM sensors that could be powered by the electrical grid or solar panels. These sensors were strategically placed throughout densely populated areas of North Texas to collect data on PM levels, weather conditions, and other gases from September 2021 to June 2023. The collected data was then used to create models that predict PM concentrations in different size categories, demonstrating high accuracy with correlation coefficients greater than 0.9. This highlights the importance of collecting hyperlocal data with precise geographic and temporal alignment for PM analysis. Furthermore, we expanded our analysis to a national scale by developing machine learning models that estimate hourly PM2.5 levels throughout the continental United States. These models used high-resolution data from the Geostationary Operational Environmental Satellites (GOES-16) Aerosol Optical Depth (AOD) dataset, along with meteorological data from the European Center for Medium-Range Weather Forecasting (ECMWF), AOD reanalysis, and air pollutant information from the MERRA-2 database, covering the period from January 2020 to June 2023. Our models were refined using ground truth data from our IoT sensor network, the OpenAQ network, and the National Environmental Protection Agency (EPA) network, enhancing the accuracy of our remote sensing PM estimates. The findings demonstrate that the combination of AOD data with meteorological analyses and additional data sets can effectively model PM2.5 concentrations, achieving a significant correlation coefficient of 0.849. The reconstructed PM2.5 surfaces created in this study are invaluable for monitoring pollution events and performing detailed PM2.5 analyzes. These results were further validated through real-world observations from two in situ MINTS sensors located in Joppa (South Dallas) and Austin, confirming the effectiveness of our comprehensive approach to PM analysis. The US Environmental Protection Agency (EPA) recently updated the national standard for PM2.5 to 9 μg/m3, a move aimed at significantly reducing air pollution and protecting public health by lowering the allowable concentration of harmful fine particles in the air. Using our analysis approach to reconstruct the fine-time resolution PM2.5 distribution across the entire United States for our study period, we found that the entire nation encountered PM2.5 levels that exceeded 9 μg/m3 for more than 20% of the time of our analysis period, with the eastern United States and California experiencing concentrations exceeding 9 μg/m3 for over 50% of the time, highlighting the importance of regulatory efforts to maintain annual PM2.5 concentrations below 9 μg/m3.

Part of the publication list: https://davidlary.info/publications/

Unsupervised Characterization of Water Composition with UAV-Based Hyperspectral Imaging and Generative Topographic Mapping

John Waczak, Adam Aker, Lakitha O. H. Wijeratne, Shawhin Talebi, Bharana Fernando, Prabuddha M. H. Dewage, Mazhar Iqbal, Matthew D. Lary, David Schaefer, Gokul Balagopal, David John Lary. (2024). Unsupervised Characterization of Water Composition with UAV-Based Hyperspectral Imaging and Generative Topographic Mapping. Remote Sensing. https://doi.org/10.3390/rs16132430

Abstract

Unmanned Aerial Vehicles (UAVs) equipped with hyperspectral imagers have emerged as an essential technology for the characterization of inland water bodies. The high spectral and spatial resolutions of these systems enable the retrieval of a plethora of optically-active water quality parameters via band ratio algorithms and machine learning methods. However, fitting and validating these models requires access to sufficient quantities of in situ reference data which are time-consuming and expensive to obtain. In this study, we demonstrate how the Generative Topographic Mapping (GTM), a Bayesian realization of the Self-organizing Map, can be used to visualize high-dimensional hyperspectral imagery and extract spectral signatures corresponding to unique endmembers present in the water. Using data collected across a North Texas pond, we first apply the GTM to visualize the distribution of captured reflectance spectra revealing small-scale spatial variability of water composition. Next, we demonstrate how the nodes of the fitted GTM can be interpreted as unique spectral endmembers. Using extracted endmembers together with the normalized spectral similarity score, we are able to efficiently map the abundance of near shore algae as well as the evolution of a rhodamine tracer dye used to simulate water contamination by a localized source.

Part of the publication list: https://davidlary.info/publications/

Case study in machine learning for predicting moderate pressure plasma behavior

Shadhin Hussain, David John Lary, Kentaro Hara, Kallol Bera, Shahid Rauf, Matthew Goeckner. (2024). Case study in machine learning for predicting moderate pressure plasma behavior. Journal of Vacuum Science & Technology A. https://doi.org/10.1116/6.0003434

Abstract

Modeling and forecasting the dynamics of complex systems, such as moderate pressure capacitively coupled plasma (CCP) systems, remains a challenge due to the interactions of physical and chemical processes across multiple scales. Historically, optimization for a given application would be accomplished via a design of experiment (DOE) study across the various external control parameters. Machine learning (ML) techniques show the potential to “forecast” process conditions not tested in a traditional DOE study and thereby allow better optimization and control of a plasma tool. In this article, we have used standard DOE as well as ML predictions to analyze I-V data in a moderate-pressure CCP system. We have demonstrated that supervised regression ML techniques can be a useful tool for extrapolating data even when a plasma system is undergoing a transition in the heating mode, in this case from the alpha to gamma mode. Classification analysis of control parameters is another possible application of ML techniques that can be deployed for system control. Here, we show that given a large set of measured data, the models can identify the gas ratio in the feed gas as well as correctly identify the operating pressure and electrode gap in almost all the cases.

Part of the publication list: https://davidlary.info/publications/

Estimating Inhaled Nitrogen Dioxide from the Human Biometric Response

Shisir Ruwali, Bharana Fernando, Shawhin Talebi, Lakitha O. H. Wijeratne, John Waczak, Prabuddha M. H. Madusanka, David John Lary, John Sadler, Tatiana Lary, Matthew D. Lary, Adam Aker. (2024). Estimating Inhaled Nitrogen Dioxide from the Human Biometric Response. Advances in Environmental and Engineering Research. https://doi.org/10.21926/aeer.2402011

Abstract

Breathing clean air is crucial for maintaining good human health. The air we inhale can significantly impact our physical and mental well-being, influenced by parameters such as particulate matter and gases (e.g. carbon dioxide, carbon monoxide, and nitrogen dioxide). Building on previous research that explored the effects of particulate matter (PM) in specific environments, analyzed using biometric indicators and machine learning models; this work focuses on the effects and estimation of inhaled nitrogen dioxide (NO2). This study involved a cyclist equipped with sensors to monitor various biometric parameters. In addition, an electric car following the cyclist measured the ambient NO2 levels using an onboard sensor. A total of 329 biometric variables have been taken into account, of which 320 biometric variables are cognitive responses extracted using an electroencephalogram (EEG) and 9 biometric variables are physiological responses extracted using several sensors. Inhaled NO2 levels are first estimated initially by making use of all 329 variables, then using 9 physiological responses and finally using only 6 of the 9 physiological responses. The study also uses a ranking method to pinpoint which biometric variables most significantly estimate inhaled NO2 levels. Furthermore, it investigates the linear and non-linear relationship between certain variables and inhaled NO2. The general precision of the prediction for the data set was moderate, as indicated by the coefficient of determination (R2) and the root mean square error (RMSE) between the true and estimated values of NO2 to be 0.35 and 5.41 ppb, respectively, in the test set. A higher accuracy in the prediction of lower values of NO2 levels was qualitatively observed using a scatter diagram and a Quantile-Quantile plot where the data were more plentiful. For more robust conclusions, additional data and refined machine learning models are necessary.

Part of the publication list: https://davidlary.info/publications/

Quantifying Inhaled Concentrations of Particulate Matter, Carbon Dioxide, Nitrogen Dioxide, and Nitric Oxide Using Observed Biometric Responses with Machine Learning

Shisir Ruwali, Shawhin Talebi, Bharana Fernando, Lakitha O. H. Wijeratne, John Waczak, Prabuddha M. H. Dewage, David John Lary, John Sadler, Tatiana Lary, Matthew D. Lary, Adam Aker. (2024). Quantifying Inhaled Concentrations of Particulate Matter, Carbon Dioxide, Nitrogen Dioxide, and Nitric Oxide Using Observed Biometric Responses with Machine Learning. BioMedInformatics. https://doi.org/10.3390/biomedinformatics4020057

Abstract

In this study, we adopt a unique approach by utilizing the responses of human autonomic systems to gauge the abundance of pollutants in inhaled air. Air pollution has numerous impacts on human health on a variety of time scales. This study uses biometric observations of the human autonomic response on the second timescale to investigate how the human body autonomically responds to inhaled pollutants in microenvironments, including particulate matter. PM1 and PM2.5, carbon dioxide (CO2), nitrogen dioxide (NO2), and nitric oxide (NO) on small temporal and spatial scales. These pollutants are exemplars of the wider human exposome. We compare two experimental approaches that use a similar methodology, employing a biometric suite to capture the physiological responses of cyclists and sensors to monitor the pollutants in the air surrounding them. We employ machine learning algorithms to estimate the levels of these pollutants and decipher the body’s automatic reactions to them. We observed high precision in predicting PM1, PM2.5 and CO2 using a limited set of biometrics from participants. Although the predictions for NO2 and NO were reliable at lower concentrations, the precision varied throughout the data range. This discrepancy suggests the potential to improve our models with more comprehensive data collection or advanced machine learning techniques.

Part of the publication list: https://davidlary.info/publications/