Dynamic Occupancy Measurement for Smart Buildings: A Few-shot Large Language Model Approach

Accurate indoor occupancy measurement is essential for energy-efficient smart buildings and optimized HVAC control. Traditional deep-learning models often struggle with dynamic occupancy patterns and limited data availability. Recently, Large Language Models (LLMs) have emerged as promising solutions due to their adaptability and contextual learning capabilities. This study proposes an LLMs-based building occupancy detection and estimation framework with few-shot learning and in-context learning (ICL). This study evaluates three advanced LLMs (LLaMA 3.2, Gemini-Pro, DeepSeek-R1) against traditional models (Logistic Regression, Decision Tree, XGBoost) using real-world datasets collected in China and Singapore. Results indicate that LLMs consistently achieve superior performance, especially under limited training data conditions. For occupancy detection tasks, Gemini-Pro reached 95.0% accuracy with a 4-day training split and maintained 95.8% accuracy even with a reduced 1-day training period. Similarly, in occupancy estimation tasks, Gemini-Pro achieved 91.2% accuracy (4-day training) and maintained robust performance (94.1%) in a 1-day training scenario. Besides, this study simulates occupancy-centric control using real-world occupancy data in one office, verifying the potential of the proposed framework for saving building energy (10%–30%) and improving occupant comfort.

Authors

Institutions

Publication Details

Published
2025-08-17
DOI
https://doi.org/10.1109/case58245.2025.11163957
Citations
1
Primary Topic
Human Mobility and Location-Based Analysis
Type
article
Field-Weighted Citation Impact
2.18
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Dynamic Occupancy Measurement for Smart Buildings: A Few-shot Large Language Model Approach

Qianchuan Zhao, Kailai Sun, Irfan Qaisar
1 citations
Human Mobility and Location-Based Analysis
2.18
article

Dynamic Occupancy Measurement for Smart Buildings: A Few-shot Large Language Model Approach

Qianchuan Zhao, Kailai Sun, Irfan Qaisar
article en
1 citations

Abstract

Accurate indoor occupancy measurement is essential for energy-efficient smart buildings and optimized HVAC control. Traditional deep-learning models often struggle with dynamic occupancy patterns and limited data availability. Recently, Large Language Models (LLMs) have emerged as promising solutions due to their adaptability and contextual learning capabilities. This study proposes an LLMs-based building occupancy detection and estimation framework with few-shot learning and in-context learning (ICL). This study evaluates three advanced LLMs (LLaMA 3.2, Gemini-Pro, DeepSeek-R1) against traditional models (Logistic Regression, Decision Tree, XGBoost) using real-world datasets collected in China and Singapore. Results indicate that LLMs consistently achieve superior performance, especially under limited training data conditions. For occupancy detection tasks, Gemini-Pro reached 95.0% accuracy with a 4-day training split and maintained 95.8% accuracy even with a reduced 1-day training period. Similarly, in occupancy estimation tasks, Gemini-Pro achieved 91.2% accuracy (4-day training) and maintained robust performance (94.1%) in a 1-day training scenario. Besides, this study simulates occupancy-centric control using real-world occupancy data in one office, verifying the potential of the proposed framework for saving building energy (10%–30%) and improving occupant comfort.

Singapore-MIT Alliance for Research and Technology (SG), Tsinghua University (CN)
Openalex Percentile: Top 11%
Human Mobility and Location-Based Analysis
2.18
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Dynamic Occupancy Measurement for Smart Buildings: A Few-shot Large Language Model Approach — Qianchuan Zhao, Kailai Sun, et al. · (2025) | TGRS Research Map | TGRS