journal article·2024-05-17Open access

IAQ Prediction in Apartments Using Machine Learning Techniques and Sensor Data

Monika Maciejewska, Andi Azizah, Andrzej Szczurek

Applied Sciences· Volume 14· Issue 10

Abstract

This study explores the capability of machine learning techniques (MLTs) in predicting IAQ in apartments. Sensor data from kitchen air monitoring were used to determine the conditions in the living room. The analysis was based on several air parameters—temperature, relative humidity, CO2 concentration, and TVOC—recorded in five apartments. Multiple input–multiple output prediction models were built. Linear (multiple linear regression and multilayer perceptron (MLP)) and nonlinear (decision trees, random forest, k-nearest neighbors, and MLP) methods were investigated. Five-fold cross-validation was applied, where four apartments provided data for model training and the remaining one was the source of the test data. The models were compared using performance metrics (R2, MAPE, and RMSE). The naive approach was used as the benchmark. This study showed that linear MLTs performed best. In this case, the coefficients of determination were highest: R2 = 0.94 (T), R2 = 0.94 (RH), R2 = 0.63 (CO2), R2 = 0.84 (TVOC, based on the SGP30 sensor), and R2 = 0.92 (TVOC, based on the SGP30 sensor). The prediction of distinct indoor air parameters was not equally effective. Based on the lowest percentage error, best predictions were attained for indoor air temperature (MAPE = 1.57%), relative humidity (MAPE = 2.97%RH), and TVOC content (MAPE = 0.41%). Unfortunately, CO2 prediction was loaded with high error (MAPE = 20.83%). The approach was particularly effective in open-kitchen apartments, and they could be the target for its application. This research offers a method that could contribute to attaining effective IAQ control in apartments.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Air Quality Monitoring and Forecasting

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Faculty of Environmental Engineering, Wroclaw University of Science and Technology, Wybrzeze Wyspianskiego 27, 50-370 Wroclaw, Poland

References (49)

Show source-provided references
1. (2024, May 12). World Air Quality Report. Available online: https://www.jagranjosh.com/general-knowledge/world-air-quality-report-2020-all-about-delhi-being-the-most-polluted-capital-of-the-world-1615966983-1.
2. United States Environmental Protection Agency (2024, May 12). Introduction to Indoor Air Quality, Available online: https://www.epa.gov/indoor-air-quality-iaq/introduction-indoor-air-quality.
3. An electronic nose based on carbon nanotube -titanium dioxide hybrid nanostructures for detection and discrimination of volatile organic compounds10.1016/j.snb.2022.131418 ↗
4. Peters, T., and Zheng, C. (2024). Evaluating Indoor Air Quality Monitoring Devices for Healthy Homes, Buildings. Buildings, 14.10.3390/buildings14010102 ↗
5. Yasin, A., Delaney, J., Cheng, C.-T., and Pang, T.Y. (2022). The Design and Implementation of an IoT Sensor-Based Indoor Air Quality Monitoring System Using Off-the-Shelf Devices. Appl. Sci., 12.10.3390/app12199450 ↗
6. Monitoring summertime indoor overheating and pollutant risks and natural ventilation patterns of seniors in public housing10.1177/1420326X221148728 ↗
7. Indoor air quality and occupants’ ventilation habits in China: Seasonal measurement and long-term monitoring10.1016/j.buildenv.2018.06.002 ↗
8. Indoor air quality in substandard housing in Hong Kong10.1016/j.scs.2019.101583 ↗
9. Particulate Matter Mass Concentration in Residential Prefabricated Buildings Related to Temperature and Moisture, World Multidisciplinary Civil Engineering-Architecture-Urban Planning Symposium—WMCAUS10.1088/1757-899X/245/4/042068 ↗
10. Window operation behaviour and indoor air quality during lockdown: A monitoring-based simulation-assisted study in London10.1177/01436244211017786 ↗
11. Dimdiņa, I., Lešinskis, A., Krūmiņš, Ē., Šnīdere, L., and Zagorskis, V. (2011, January 12–13). Indoor air quality and energy efficiency in multi-apartment buildings before and after renovation: A case study of two buildings in Riga. Proceedings of the 3rd International Conference Civil Engineering’11 Proceedings IV Engineering of Environmental Energy, Jelgava, Latvia.
12. Gupta, R., and Zahir, S. (2022, January 12–16). Indoor air quality in social housing flats retrofitted with heat pumps. Proceedings of the 17th International Conference on Indoor Air Quality and Climate, INDOOR AIR, Kuopio, Finland.
13. Seasonal variations and the influence of ventilation rates on IAQ: A case study of five low-energy London apartments10.1177/1420326X211017175 ↗
14. Guyot, G., Jardinier, E., Parsy, F., Berthin, S., Hallemans, E., Roux, E., Charrier, S., and Legrée, M. (2022, January 4–6). Smart Ventilation Performance Durability Assessment: Preliminary Results from a Long-Term Residential Monitoring of Humidity-based Demand-Controlled Ventilation, Indoor Environmental Quality Performance Approaches (IAQ 2022), PT 1. Proceedings of the 7th venticool Conference, Athens, Greece.
15. Kim, H.-H., Kwak, M.-J., Kim, K.-J., Gwak, Y.-K., Lee, J.-H., and Yang, H.-H. (2020). Evaluation of IAQ Management Using an IoT-Based Indoor Garden. Int. J. Environ. Res. Public Health, 17.10.3390/ijerph17061867 ↗
16. Profile of occupant activity impact on indoor air—Method of its determination10.1016/j.enbuild.2017.11.052 ↗
17. Perceived air quality and satisfaction during implementation of an automated indoor air quality monitoring and control system10.1016/j.buildenv.2023.110713 ↗
18. Sakamoto, H., Uchiyama, S., Isobe, T., Kunugita, N., Ogura, H., and Nakayama, S.F. (2021). Spatial Variations of Indoor Air Chemicals in an Apartment Unit and Personal Exposure of Residents. Int. J. Environ. Res. Public Health, 18.10.3390/ijerph182111511 ↗
19. Sidhardhan, S., and Das, D. (2021, January 27–29). Indoor Carbon dioxide (CO2) level control using Wearable smart watches over a wireless channel. Proceedings of the International conference on computer communication and informatics (iccci), Coimbatore, India.10.1109/ICCCI50826.2021.9402692 ↗
20. Assessment of kitchen emissions using a backpropagation neural network model based on urinary hydroxy polycyclic aromatic hydrocarbons10.1016/j.envpol.2020.114915 ↗
21. A cross-sectional field study of bedroom ventilation and sleep quality in Denmark during the heating season10.1016/j.buildenv.2022.109557 ↗
22. Estimating indoor galaxolide concentrations using predictive models based on objective assessments and data about dwelling characteristics10.1080/08958378.2018.1432729 ↗
23. Mohri, A.T.M., and Rostamizadeh, A. (2012). Foundation of Machine Learning, MIT Pr.
24. Characterization of coarse particulate matter in school gyms10.1016/j.envres.2011.03.010 ↗
25. Development and comparison of regression models and feedforward backpropagation neural network models to predict seasonal indoor PM2.5–10 and PM2.5 concentrations in naturally ventilated schools10.1016/j.apr.2015.09.001 ↗
26. Multivariate methods for indoor PM10 and PM2.5 modelling in naturally ventilated schools buildings10.1016/j.atmosenv.2014.05.007 ↗
27. Indoor Air Quality associations with sick building syndrome: An application of decision tree technology10.1016/j.buildenv.2020.107446 ↗
28. Yuchi, W. (2017). Modelling Fine Particulate Matter Concentrations Inside the Homes of Pregnant Women in Ulaanbaatar, Mongolia. [Master’s Thesis, Simon Fraser University].
29. Evaluation of random forest regression and multiple linear regression for predicting indoor fine particulate matter concentrations in a highly polluted city10.1016/j.envpol.2018.11.034 ↗
30. Using machine learning algorithms to multidimensional analysis of subjective thermal comfort in a library10.1016/j.buildenv.2022.108790 ↗
31. Comparative analysis on predictability of natural ventilation rate based on machine learning algorithms10.1016/j.buildenv.2021.107744 ↗
32. Machine learning and statistical models for predicting indoor air quality10.1111/ina.12580 ↗
33. Modeling indoor air carbon dioxide concentration using artificial neural network10.1007/s13762-018-1642-x ↗
34. Maciejewska, M., Azizah, A., and Szczurek, A. (2023). Co-Dependency of IAQ in Functionally Different Zones of Open-Kitchen Restaurants Based on Sensor Measurements Explored via Mutual Information Analysis. Sensors, 23.10.3390/s23177630 ↗
35. Steering the interpretability of decision trees using lasso regression—An evolutionary perspective10.1016/j.ins.2023.118944 ↗
36. The role of decision tree representation in regression problems—An evolutionary perspective10.1016/j.asoc.2016.07.007 ↗
37. Breiman, L. (2017). Classification and Regression Trees, Routledge. [1st ed.].10.1201/9781315139470 ↗
38. Random Forests10.1023/A:1010933404324 ↗
39. Targeting predictors in random forest regression10.1016/j.ijforecast.2022.02.010 ↗
40. Generalized random forests10.1214/18-AOS1709 ↗
41. A random forest guided tour10.1007/s11749-016-0481-7 ↗
42. Suitability of KNN Regression in the Development of Interaction based Software Fault Prediction Models10.1016/j.ieri.2014.03.004 ↗
43. Uniform consistency of kNN regressors for functional variables10.1016/j.spl.2013.04.017 ↗
44. DNNR: Differential Nearest Neighbors Regression
45. Kramer, O. (2013). Dimensionality Reduction with Unsupervised Nearest Neighbors, Springer.10.1007/978-3-642-38652-7 ↗
46. Introduction to Multivariate Regression Analysis
47. Simple linear and multivariate regression models10.1016/j.aller.2011.02.001 ↗
48. Learning-based CO2 concentration prediction: Application to indoor air quality control using demand-controlled ventilation10.1016/j.buildenv.2021.108164 ↗
49. Plevris, V., Solorzano, G., Bakas, N.P., and Seghier, M.E.A.B. (2022, January 5–9). Investigation of Performance Metrics in Regression Analysis and Machine Learning-Based Prediction Models. Proceedings of the ECCOMAS Congress 2022, 8th European Congress on Computational Methods in Applied Sciences and Engineering, Oslo, Norway.10.23967/eccomas.2022.155 ↗