Component-based machine learning for indoor flow and temperature fields prediction: latent feature aggregation and flow interaction
• A component-based machine learning method for indoor environment prediction. • Merges flow features from two single-inlet components to predict a dual-inlet case. • Components is more flexible and reusable than monolithic model. • Enables real-time adaptation to add or remove components during design process. • The modular structure improves interpretability of machine learning predictions. Accurate and efficient prediction of indoor airflow and temperature distributions is essential for building energy optimization and occupant comfort control. However, traditional CFD simulations are computationally intensive, limiting their integration into real-time or design-iterative workflows. This study proposes a component-based machine learning (CBML) surrogate modeling approach to replace conventional CFD simulation for fast prediction of indoor air flow speed and temperature fields. The model consists of three neural networks: a convolutional autoencoder with residual connections (CAER) to extract and compress flow features, a multilayer perceptron (MLP) to map inlet velocities to latent representations, and a convolutional neural network (CNN) as an aggregator to combine single-inlet features into dual-inlet scenarios. A two-dimensional room with varying left and right air inlet velocities is used as a benchmark case, with CFD simulations providing training and testing data. Results show that the CBML model accurately and fast predicts two-component aggregated speed and temperature fields across both training and testing datasets. For 95 % of the flow field, the maximum absolute error is below 0.08 m/s in speed prediction and 0.4 °C in temperature prediction. Compared to monolithic surrogate models, the modular CBML structure enhances model transparency and flexibility while maintaining accuracy. Additionally, t-SNE visualization of the latent space confirms the model’s ability to differentiate and aggregate inlet-specific features in a physically consistent manner. This approach offers a promising solution for real-time indoor environmental prediction and provides novel opportunities for the integration of data-driven prediction in iterative processes of building design and control.
Authors
- Philipp Geyer (ORCID: https://orcid.org/0000-0002-0935-4361)
- Nils Thuerey (ORCID: https://orcid.org/0000-0001-6647-8910)
- Shaofan Wang (ORCID: https://orcid.org/0000-0002-3045-624X)
Institutions
- Leibniz University Hannover (DE)
- Technical University of Munich (DE)
Publication Details
- Journal
- Energy and Buildings
- Published
- 2026-01-04
- DOI
- https://doi.org/10.1016/j.enbuild.2026.116958
- Primary Topic
- Building Energy and Comfort Optimization
- Type
- article
- Field-Weighted Citation Impact
- 0.00