Smart Building Recommendations with LLMs: A Semantic Comparison Approach
Open Access
Abstract
The increasing need for sustainable energy management in smart buildings calls for cost-effective solutions that balance energy efficiency and occupant comfort. This article presents a Large Language Model (LLM)-based recommendation system capable of generating proactive, context-aware suggestions from dynamic building conditions. The system was trained on a combination of real-world data and Sinergym simulations, capturing inputs such as weather conditions, forecasts, energy usage, electricity prices, and detailed zone parameters. Five models were fine-tuned and evaluated: GPT-2-Small, GPT-2-Medium, DeepSeek-R1-Distill-Qwen-1.5B, DeepSeek-R1-Distill-Qwen-7B, and GPT-4. To enhance evaluation precision, a novel metric, the Zone-Aware Semantic Reward (ZASR), was developed, combining Sentence-BERT with zone-level scoring and complemented by F1-Score metrics. While GPT-4 demonstrated strong performance with minimal data, its high inference cost limits scalability. In contrast, open-access models like DeepSeek-R1-Distill-Qwen-1.5B, DeepSeek-R1-Distill-Qwen-7B, and GPT-2-Medium required larger datasets but matched or exceeded GPT-4’s performance at significantly lower cost. The system demonstrated adaptability across diverse building types, supported by heterogeneous datasets and parameter normalization. Importantly, the system was also deployed in a real-world multi-zone residential building in Thessaloniki, Greece. During a two-week operational period under near-identical weather and occupancy conditions, the model-assisted recommendations contributed to an estimated 10% reduction in electricity consumption, showcasing the practical potential of LLM-based recommendations in live building environments.Keywords
Funding Information
- European Commission Horizon Europe-Harmonise: Hierarchical and Agile Resource Management Optimization for Networks in Smart Energy Communities (101138595)
This publication has 24 references indexed in Scilit:
- Fast machine learning for building management systemsArtificial Intelligence Review, 2025
- Prompt engineering to inform large language model in automated building energy modelingEnergy, 2025
- EPlus-LLM: A large language model-based computing platform for automated building energy modelingApplied Energy, 2024
- Designing Home Automation Routines Using an LLM-Based ChatbotDesigns, 2024
- Advanced proactive anomaly detection in multi-pattern home appliances for energy optimizationInternet of Things, 2024
- Alternative Approaches to HVAC Control of Chat Generative Pre-Trained Transformer (ChatGPT) for Autonomous Building System OperationsBuildings, 2023
- An End-to-End Implementation of a Service-Oriented Architecture for Data-Driven Smart BuildingsIEEE Access, 2023
- Large Language Models as Recommendation Systems in MuseumsElectronics, 2023
- Nearly optimal demand side management for energy, thermal, EV and storage loads: An Approximate Dynamic Programming approach for smarter buildingsEnergy and Buildings, 2022
- Automated control calibration exploiting exogenous environment energy: An Israeli commercial building case studyEnergy and Buildings, 2016