[Paper Review] Towards the Detection of Building Occupancy with Synthetic Environmental Data
This paper proposes a transfer learning approach that leverages synthetically generated CO2 dynamics data from building simulations to reduce the need for real-world occupancy data in deep learning models. By pre-training a convolutional neural network on 400 days of simulated CO2 data and fine-tuning it on minimal real data (as little as one day), the method achieves higher accuracy and F1 scores with significantly fewer training epochs, demonstrating effective knowledge transfer from synthetic to real-world occupancy detection tasks.
Information about room-level occupancy is crucial to many building-related tasks, such as building automation or energy performance simulation. Current occupancy detection literature focuses on data-driven methods, but is mostly based on small case studies with few rooms. The necessity to collect room-specific data for each room of interest impedes applicability of machine learning, especially data-intensive deep learning approaches, in practice. To derive accurate predictions from less data, we suggest knowledge transfer from synthetic data. In this paper, we conduct an experiment with data from a CO$_2$ sensor in an office room, and additional synthetic data obtained from a simulation. Our contribution includes (a) a simulation method for CO$_2$ dynamics under randomized occupant behavior, (b) a proof of concept for knowledge transfer from simulated CO$_2$ data, and (c) an outline of future research implications. From our results, we can conclude that the transfer approach can effectively reduce the required amount of data for model training.
Motivation & Objective
- To address the challenge of limited real-world occupancy data for training deep learning models in building automation.
- To investigate whether synthetic environmental data from physical simulations can effectively transfer knowledge to real-world occupancy detection tasks.
- To reduce the data collection burden for room-specific occupancy modeling by leveraging pre-trained models from simulated data.
- To evaluate the performance of transfer learning using synthetic CO2 data against conventional training with real data.
- To explore the feasibility of using simulation-based data to enable data-efficient deep learning in building energy and automation systems.
Proposed method
- A two-stage simulation pipeline was developed: first simulating occupant presence and actions, then simulating CO2 concentration dynamics using a mass balance equation.
- Synthetic CO2 data was generated for 400 virtual office days with randomized occupant behavior and room-specific parameters such as volume and infiltration rate.
- A base deep learning model (convolutional neural network) was pre-trained on the synthetic CO2 data to learn general occupancy-related patterns.
- Transfer learning was applied by initializing the target model with the pre-trained weights and fine-tuning it on real-world CO2 sensor data from a single office room.
- The model was trained using RMSprop optimizer with a fixed learning rate of 0.001, batch size of 70, and early stopping after 20 epochs of no improvement.
- Performance was evaluated using accuracy and F1 score, with 10-fold cross-validation using different subsets of 1, 2, 3, or 4 days of real data for training.
Experimental results
Research questions
- RQ1Can synthetic CO2 data generated from physical simulations effectively improve the performance of occupancy detection models on real-world data?
- RQ2To what extent does transfer learning from synthetic data reduce the required amount of real-world training data for occupancy detection?
- RQ3How does the performance of a transfer learning model compare to a non-transfer model when trained on limited real data?
- RQ4Does knowledge transfer from synthetic data improve model robustness, as indicated by reduced variance in performance metrics?
- RQ5Can a pre-trained model on synthetic data generalize well enough to achieve high accuracy on real-world test data without extensive fine-tuning?
Key findings
- The transfer learning model achieved a test accuracy of 0.920 with only 2 days of real training data, matching the 0.910 accuracy of the non-transfer model trained on 4 days of real data.
- With just one day of real data, the transfer model reached 0.870 accuracy, compared to 0.860 for the non-transfer model with two days of data.
- The transfer model achieved a higher F1 score (0.866 ± 0.038) than the non-transfer model (0.829 ± 0.056) when trained on two days of real data.
- The transfer model required significantly fewer training epochs—averaging less than 30 epochs—compared to 91.3 epochs for the non-transfer model when trained on one day of data.
- The standard deviation of performance metrics was reduced in the transfer model, indicating improved robustness across different data splits.
- The pre-trained base model achieved 0.981 accuracy and 0.963 F1 score on 100 simulated test days, but performed poorly on real data without fine-tuning, confirming the necessity of the transfer step.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.