{"title":"Multi-step fusion model for predicting indoor temperature in residential buildings based on attention mechanism and neural network","authors":"Guozhong Zheng , Ruilin Jia , Wenwen Yi , Xinru Yue","doi":"10.1016/j.jobe.2025.112057","DOIUrl":null,"url":null,"abstract":"<div><div>Indoor temperature prediction is vital in HVAC system control, ensuring thermal comfort and energy efficiency. This study aims to propose a multi-step indoor temperature prediction model. Firstly, correlations between indoor temperature and environmental parameters are analyzed to select input parameters. Secondly, input parameters are processed by a convolutional neural network (CNN) and bi-directional long short-term memory network. Gramian angular fields are used to convert the indoor temperature data input to CNN into two-dimensional images, enabling model to extract spatial features and capture temporal dependencies. Dung beetle optimizer and attention mechanism enhance feature extraction, and point prediction results are obtained using a weight fusion method based on model error. Thirdly, the recursive multi-step prediction method is employed to extend the point prediction model into a multi-step prediction model. Finally, a case study on residential buildings in Hong Kong is conducted to demonstrate the model's applicability. The results show that the indoor temperature, outdoor temperature and indoor relative humidity strongly correlate with indoor temperature, and they are selected as input parameters. The MAE, MAPE, RMSE and R<sup>2</sup> of the fusion model achieve 0.0227, 0.015, 0.0497 and 0.9970. Compared with single models, they reduce by 83.2%, 68.7% and 69.7%. It accurately predicts indoor temperature for the next 4 h with MAE, MAPE, RMSE and R<sup>2</sup> of 0.0495, 0.003, 0.0627 and 0.9937. The proposed model significantly improves the accuracy of indoor temperature prediction, providing methodological support for intelligent building temperature control and safeguarding residents' thermal health.</div></div>","PeriodicalId":15064,"journal":{"name":"Journal of building engineering","volume":"102 ","pages":"Article 112057"},"PeriodicalIF":6.7000,"publicationDate":"2025-02-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of building engineering","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2352710225002931","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"CONSTRUCTION & BUILDING TECHNOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
Indoor temperature prediction is vital in HVAC system control, ensuring thermal comfort and energy efficiency. This study aims to propose a multi-step indoor temperature prediction model. Firstly, correlations between indoor temperature and environmental parameters are analyzed to select input parameters. Secondly, input parameters are processed by a convolutional neural network (CNN) and bi-directional long short-term memory network. Gramian angular fields are used to convert the indoor temperature data input to CNN into two-dimensional images, enabling model to extract spatial features and capture temporal dependencies. Dung beetle optimizer and attention mechanism enhance feature extraction, and point prediction results are obtained using a weight fusion method based on model error. Thirdly, the recursive multi-step prediction method is employed to extend the point prediction model into a multi-step prediction model. Finally, a case study on residential buildings in Hong Kong is conducted to demonstrate the model's applicability. The results show that the indoor temperature, outdoor temperature and indoor relative humidity strongly correlate with indoor temperature, and they are selected as input parameters. The MAE, MAPE, RMSE and R2 of the fusion model achieve 0.0227, 0.015, 0.0497 and 0.9970. Compared with single models, they reduce by 83.2%, 68.7% and 69.7%. It accurately predicts indoor temperature for the next 4 h with MAE, MAPE, RMSE and R2 of 0.0495, 0.003, 0.0627 and 0.9937. The proposed model significantly improves the accuracy of indoor temperature prediction, providing methodological support for intelligent building temperature control and safeguarding residents' thermal health.
期刊介绍:
The Journal of Building Engineering is an interdisciplinary journal that covers all aspects of science and technology concerned with the whole life cycle of the built environment; from the design phase through to construction, operation, performance, maintenance and its deterioration.