Next Article in Journal
From Interpretable Models to Clinical Implementation: Advances in AI-Assisted Medical Diagnostics
Previous Article in Journal
Integration of Building Information Modelling and Economic Multi-Criteria Decision-Making with Neural Networks: Towards a Smart Renewable Energy Community
Previous Article in Special Issue
A Unified AI Architecture for Self-Regulated Learning: Cognitive Modeling, Meta-Learning, and Continual Adaptation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Comparative Development of Machine Learning Models for Short-Term Indoor CO2 Forecasting Using Low-Cost IoT Sensors: A Case Study in a University Smart Laboratory

by
Zhanel Baigarayeva
1,2,3,
Assiya Boltaboyeva
1,2,3,*,
Zhuldyz Kalpeyeva
1,
Raissa Uskenbayeva
1,
Maksat Turmakhan
1,3,*,
Adilet Kakharov
2,3,
Aizhan Anartayeva
1 and
Aiman Moldagulova
1
1
Institute of Automation and Information Technology, Satbayev University, Almaty 050013, Kazakhstan
2
Faculty of Information Technologies and Artificial Intelligence, Al-Farabi Kazakh National University, Almaty 050040, Kazakhstan
3
LLP “Kazakhstan R&D Solutions”, Almaty 050056, Kazakhstan
*
Authors to whom correspondence should be addressed.
Algorithms 2026, 19(5), 328; https://doi.org/10.3390/a19050328
Submission received: 23 January 2026 / Revised: 20 April 2026 / Accepted: 22 April 2026 / Published: 24 April 2026
(This article belongs to the Special Issue Emerging Trends in Distributed AI for Smart Environments)

Abstract

Unlike reactive systems, mechanical ventilation controlled by CO2 concentration operates at a target efficiency that dynamically increases whenever the target CO2 level is exceeded. This approach eliminates the typical ‘dead-time’ and prevents air quality degradation by ensuring the system adjusts its performance immediately in response to concentration changes. In this work, the study focuses on the development and evaluation of data-driven predictive models for near-term indoor CO2 forecasting that can be integrated into pre-occupancy ventilation strategies, rather than designing a complete control scheme. Experimental data were collected over four months in a 48 m2 smart laboratory configured as an open-plan office, where a heterogeneous IoT sensing architecture logged synchronized time-series measurements of CO2 and microclimate variables (temperature, relative humidity, PM2.5, TVOCs), together with acoustic noise levels and appliance-level energy consumption used as indirect occupancy-related signals. Raw telemetry was transformed into a 22-feature state vector using a structured feature engineering method incorporating z-score standardization, cyclic time encodings, multi-horizon CO2 lags, rolling statistics, momentum features, and non-linear interactions to represent temporal autocorrelation and daily periodicity. The study benchmarks multiple regression paradigms, including simple baselines and ensemble methods, and found that an automated multi-level stacked ensemble achieved the highest predictive fidelity for short-term forecasting, with an Mean Absolute Error (MAE) of 32.97 ppm across an observed CO2 range of 403–2305 ppm, representing improvements of approximately 24% and 43% over Linear Regression and K-Nearest Neighbors (KNN), respectively. Temporal diagnostics showed strong phase alignment with observed CO2 rises during occupancy transitions and statistically reliable prediction intervals. Five-fold walk-forward cross-validation confirmed the temporal stability of these results, with top models achieving consistent R2 values of 0.93–0.95 across Folds 2–5. These results demonstrate that, within a single-room university laboratory setting, historical sensor data from low-cost IoT devices can support accurate short-term CO2 forecasting, providing a predictive layer that could support future proactive ventilation scheduling aimed at reducing CO2 lag at the start of occupancy while avoiding unnecessary ventilation runtime. Generalization to other building types and occupancy profiles requires further validation.
Keywords: indoor air quality (IAQ); carbon dioxide forecasting; machine learning (ML); Internet of Things (IoT); demand-controlled ventilation (DCV); feature engineering; smart buildings indoor air quality (IAQ); carbon dioxide forecasting; machine learning (ML); Internet of Things (IoT); demand-controlled ventilation (DCV); feature engineering; smart buildings

Share and Cite

MDPI and ACS Style

Baigarayeva, Z.; Boltaboyeva, A.; Kalpeyeva, Z.; Uskenbayeva, R.; Turmakhan, M.; Kakharov, A.; Anartayeva, A.; Moldagulova, A. Comparative Development of Machine Learning Models for Short-Term Indoor CO2 Forecasting Using Low-Cost IoT Sensors: A Case Study in a University Smart Laboratory. Algorithms 2026, 19, 328. https://doi.org/10.3390/a19050328

AMA Style

Baigarayeva Z, Boltaboyeva A, Kalpeyeva Z, Uskenbayeva R, Turmakhan M, Kakharov A, Anartayeva A, Moldagulova A. Comparative Development of Machine Learning Models for Short-Term Indoor CO2 Forecasting Using Low-Cost IoT Sensors: A Case Study in a University Smart Laboratory. Algorithms. 2026; 19(5):328. https://doi.org/10.3390/a19050328

Chicago/Turabian Style

Baigarayeva, Zhanel, Assiya Boltaboyeva, Zhuldyz Kalpeyeva, Raissa Uskenbayeva, Maksat Turmakhan, Adilet Kakharov, Aizhan Anartayeva, and Aiman Moldagulova. 2026. "Comparative Development of Machine Learning Models for Short-Term Indoor CO2 Forecasting Using Low-Cost IoT Sensors: A Case Study in a University Smart Laboratory" Algorithms 19, no. 5: 328. https://doi.org/10.3390/a19050328

APA Style

Baigarayeva, Z., Boltaboyeva, A., Kalpeyeva, Z., Uskenbayeva, R., Turmakhan, M., Kakharov, A., Anartayeva, A., & Moldagulova, A. (2026). Comparative Development of Machine Learning Models for Short-Term Indoor CO2 Forecasting Using Low-Cost IoT Sensors: A Case Study in a University Smart Laboratory. Algorithms, 19(5), 328. https://doi.org/10.3390/a19050328

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop