Exploring large language models for indoor occupancy measurement in smart office buildings

IF 7.6 1区 工程技术 Q1 CONSTRUCTION & BUILDING TECHNOLOGY
Irfan Qaisar , Kailai Sun , Qianchuan Zhao
{"title":"Exploring large language models for indoor occupancy measurement in smart office buildings","authors":"Irfan Qaisar ,&nbsp;Kailai Sun ,&nbsp;Qianchuan Zhao","doi":"10.1016/j.buildenv.2025.113860","DOIUrl":null,"url":null,"abstract":"<div><div>Accurately measuring building occupancy is essential for optimizing Heating, Ventilation, and Air Conditioning control and enhancing energy efficiency in smart buildings. However, existing machine learning models often struggle to generalize across diverse occupancy patterns with limited data. Recent advances in large language models present new opportunities by leveraging contextual reasoning and few-shot learning to enhance performance in smart building systems. This study proposes an LLM-based framework for real-time indoor occupancy measurement, incorporating few-shot learning, chain-of-thought reasoning, and in-context learning techniques. This study explores how LLMs can enable accurate and data-efficient occupancy measurement for indoor occupant-centric control and energy optimization. We evaluate LLMs’ performance against traditional models across two case studies: binary occupancy detection and multi-level occupancy estimation. Experiments are conducted using two real-world datasets collected from office buildings in China and Singapore. Results indicate that LLMs consistently outperform traditional models across various time intervals and training/testing configurations. Under a 4-day training/1-day testing setup, DeepSeek-R1 achieves 95.92% accuracy and a 96.1% F1-score, while Gemini-Pro attains 94.14% accuracy in multi-level estimation with only 1 day of training. An occupant-centric control (OCC) simulation and ablation study were implemented in EnergyPlus with real data to improve energy efficiency and comfort. These findings highlight the adaptability and robustness of LLMs, positioning them as promising tools for real-time occupancy measurement in smart office environments. Code and implementation details are available at: <span><span>https://github.com/kailaisun/LLM-occupancy</span><svg><path></path></svg></span>.</div></div>","PeriodicalId":9273,"journal":{"name":"Building and Environment","volume":"287 ","pages":"Article 113860"},"PeriodicalIF":7.6000,"publicationDate":"2025-10-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Building and Environment","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0360132325013307","RegionNum":1,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"CONSTRUCTION & BUILDING TECHNOLOGY","Score":null,"Total":0}
引用次数: 0

Abstract

Accurately measuring building occupancy is essential for optimizing Heating, Ventilation, and Air Conditioning control and enhancing energy efficiency in smart buildings. However, existing machine learning models often struggle to generalize across diverse occupancy patterns with limited data. Recent advances in large language models present new opportunities by leveraging contextual reasoning and few-shot learning to enhance performance in smart building systems. This study proposes an LLM-based framework for real-time indoor occupancy measurement, incorporating few-shot learning, chain-of-thought reasoning, and in-context learning techniques. This study explores how LLMs can enable accurate and data-efficient occupancy measurement for indoor occupant-centric control and energy optimization. We evaluate LLMs’ performance against traditional models across two case studies: binary occupancy detection and multi-level occupancy estimation. Experiments are conducted using two real-world datasets collected from office buildings in China and Singapore. Results indicate that LLMs consistently outperform traditional models across various time intervals and training/testing configurations. Under a 4-day training/1-day testing setup, DeepSeek-R1 achieves 95.92% accuracy and a 96.1% F1-score, while Gemini-Pro attains 94.14% accuracy in multi-level estimation with only 1 day of training. An occupant-centric control (OCC) simulation and ablation study were implemented in EnergyPlus with real data to improve energy efficiency and comfort. These findings highlight the adaptability and robustness of LLMs, positioning them as promising tools for real-time occupancy measurement in smart office environments. Code and implementation details are available at: https://github.com/kailaisun/LLM-occupancy.
探索智能写字楼室内占用率测量的大语言模型
准确测量建筑物占用率对于优化采暖、通风和空调控制以及提高智能建筑的能源效率至关重要。然而,现有的机器学习模型往往难以在有限的数据下概括不同的占用模式。大型语言模型的最新进展通过利用上下文推理和少量学习来提高智能建筑系统的性能,提供了新的机会。本研究提出了一个基于llm的实时室内占用率测量框架,结合了少镜头学习、思维链推理和情境学习技术。本研究探讨了llm如何能够实现以室内乘员为中心的控制和能源优化的准确和数据高效的占用测量。我们通过两个案例研究来评估llm与传统模型的性能:二进制占用检测和多级占用估计。实验使用从中国和新加坡的办公楼收集的两个真实数据集进行。结果表明,llm在不同的时间间隔和训练/测试配置中始终优于传统模型。在4天的训练/1天的测试设置下,DeepSeek-R1达到95.92%的准确率和96.1%的f1分数,而Gemini-Pro在仅1天的训练下就达到了94.14%的多级估计准确率。在EnergyPlus中进行了以乘员为中心的控制(OCC)模拟和烧蚀研究,以提高能源效率和舒适度。这些发现突出了llm的适应性和稳健性,使其成为智能办公环境中实时占用率测量的有前途的工具。代码和实现细节可在:https://github.com/kailaisun/LLM-occupancy。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Building and Environment
Building and Environment 工程技术-工程:环境
CiteScore
12.50
自引率
23.00%
发文量
1130
审稿时长
27 days
期刊介绍: Building and Environment, an international journal, is dedicated to publishing original research papers, comprehensive review articles, editorials, and short communications in the fields of building science, urban physics, and human interaction with the indoor and outdoor built environment. The journal emphasizes innovative technologies and knowledge verified through measurement and analysis. It covers environmental performance across various spatial scales, from cities and communities to buildings and systems, fostering collaborative, multi-disciplinary research with broader significance.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信