Ensuring occupant well-being, improving energy efficiency, and optimizing indoor environments based on accurate thermal comfort predictions constitute key objectives in smart buildings. However, traditional models such as the Predicted Mean Value (PMV) and adaptive approaches often rely on static assumptions and fail to capture the complex interplay between environmental conditions, occupant preferences, and contextual factors such as climate, season, and building characteristics. We present a Hierarchical Context Attention (HCA)-based approach that leverages multisource contextual data, including building attributes, geographic information, environmental parameters, and seasonal fluctuations, together with transformer-based deep learning to address these limitations. The framework employs HCA to dynamically model dependencies across contextual layers and utilizes Multi-Head Self-Attention (MHSA) to capture intricate interrelationships among thermal comfort features while eliminating redundancy. The experimental results demonstrate that our model is more efficient than state-of-the-art approaches, achieving a high accuracy of 0.802 and an F1-score of 0.795 for multiclass thermal comfort prediction. In addition, the ROC analysis and confusion matrix results further validated its robustness and generalization across diverse indoor conditions. For adaptive Heating, Ventilation and Air Conditioning (HVAC) optimization and next-generation smart building systems, the proposed HCA framework provides context-aware, data-efficient, and scalable solutions. Our code is available at \url{https://github.com/MODAL-UNINA/HCA-FORMER}.

HCA-Former: A Context-Aware Transformer for Adaptive Thermal Comfort Prediction / Sarwar, Sundas; Chun-Wei Lin, Jerry; Arne Jordanger, Lars; Izzo, Stefano; Annunziata, Daniela; Piccialli, Francesco. - IEEE Transactions on Sustainable Computing:(2025).

HCA-Former: A Context-Aware Transformer for Adaptive Thermal Comfort Prediction

Sundas Sarwar;Stefano Izzo;Daniela Annunziata;Francesco Piccialli
2025

Abstract

Ensuring occupant well-being, improving energy efficiency, and optimizing indoor environments based on accurate thermal comfort predictions constitute key objectives in smart buildings. However, traditional models such as the Predicted Mean Value (PMV) and adaptive approaches often rely on static assumptions and fail to capture the complex interplay between environmental conditions, occupant preferences, and contextual factors such as climate, season, and building characteristics. We present a Hierarchical Context Attention (HCA)-based approach that leverages multisource contextual data, including building attributes, geographic information, environmental parameters, and seasonal fluctuations, together with transformer-based deep learning to address these limitations. The framework employs HCA to dynamically model dependencies across contextual layers and utilizes Multi-Head Self-Attention (MHSA) to capture intricate interrelationships among thermal comfort features while eliminating redundancy. The experimental results demonstrate that our model is more efficient than state-of-the-art approaches, achieving a high accuracy of 0.802 and an F1-score of 0.795 for multiclass thermal comfort prediction. In addition, the ROC analysis and confusion matrix results further validated its robustness and generalization across diverse indoor conditions. For adaptive Heating, Ventilation and Air Conditioning (HVAC) optimization and next-generation smart building systems, the proposed HCA framework provides context-aware, data-efficient, and scalable solutions. Our code is available at \url{https://github.com/MODAL-UNINA/HCA-FORMER}.
2025
HCA-Former: A Context-Aware Transformer for Adaptive Thermal Comfort Prediction / Sarwar, Sundas; Chun-Wei Lin, Jerry; Arne Jordanger, Lars; Izzo, Stefano; Annunziata, Daniela; Piccialli, Francesco. - IEEE Transactions on Sustainable Computing:(2025).
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11588/1028334
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact