InsightBuild: LLM-Powered Causal Reasoning in Smart Building Systems
Pinaki Prasad Guha Neogi, Ahmad Mohammadshirazi, Rajiv Ramnath · 2025
Read InsightBuild: LLM-Powered Causal Reasoning in Smart Building Systems by Pinaki Prasad Guha Neogi, Ahmad Mohammadshirazi, Rajiv Ramnath (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-08235.txt.
Introduction
Smart buildings log mountains of sensor data, yet managers still struggle to learn why energy use spikes. Pinaki Prasad Guha Neogi and co-authors present InsightBuild in this 2025 paper, a two-stage system that finds causes first and explains them in plain words second.
A light statistical module tests which signals drive which, using temperature, heating settings, and occupancy from two real building data sets. A tuned language model then turns those cause links into short, practical explanations. Checked against expert-labeled cases, the pairing produced clear and precise accounts, helping managers spot waste and fix it faster.
Catalog record
| CREATOR | Pinaki Prasad Guha Neogi, Ahmad Mohammadshirazi, Rajiv Ramnath |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 17 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2507-08235
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
InsightBuild: LLM-Powered Causal Reasoning in Smart Building Systems Pinaki Prasad Guha Neogi, Ahmad Mohammadshirazi, Rajiv Ramnath Abstract Smart buildings generate vast streams of sensor and control data, but facility managers often lack clear explanations for anomalous energy usage. We propose InsightBuild , a two-stage framework that integrates causality analysis with a fine-tuned large language model (LLM) to provide human-readable, causal explanations of energy consumption patterns. First, a lightweight causal inference module applies Granger causality tests and structural causal discovery on building telemetry (e.g., temperature, HVAC settings, occupancy) drawn from Google Smart Buildings and Berkeley Office datasets. Next, an LLM—fine-tuned on aligned pairs of sensor-level causes and textual explanations—receives as input the detected causal relations and generates concise, actionable explanations. We evaluate InsightBuild on two real-world datasets (Google: 2017–2022; Berkeley: 2018–2020), using expert-annotated ground-truth causes for a held-out set of anomalies. Our results demonstrate that combining explicit causal discovery with LLM-based natural language generation yields clear, precise explanations that assist facility managers in diagnosing & mitigating energy inefficiencies. † † affiliationnotice: Equal contribution 1 Introduction Modern commercial buildings are equipped with hundreds of sensors (e.g., temperature, CO 2 , occupancy) and actuators (e.g., dampers, valve positions) that record minute-by-minute data points on indoor environment and control commands ( Mohammadshirazi et al. 2022 ; Mohammadshirazi et al. 2023 ; Mohammadshirazi et al. 2024 ) . While sophisticated optimization controllers can adjust HVAC schedules to reduce energy use, when an anomaly or spike in consumption occurs, facility managers need clear explanations ( Mawson & Hughes 2021 ) : “Why did energy use surge at 3 PM yesterday?” Traditional dashboards display raw time-series charts ( Moens et al. 2024 ) , but they do not explain why an event happened. Recent research has begun to explore data-driven fault detection and simple rule-based alerts, yet these often produce generic messages (“Possible HVAC inefficiency”) that lack causal insight ( Chen et al. 2023 ) . Whereas, Large Language Models (LLMs) have demonstrated prowess at generating coherent explanations when provided structured inputs. However, purely LLM-based explanations risk producing plausible but inaccurate “hallucinations” if they lack explicit causal grounding ( Matarazzo & Torlone 2025 ; Naveed et al. 2023 ) . In this work, we propose InsightBuild—a two-stage system combining (1) an explicit causal inference module to detect likely causal drivers of an observed energy anomaly, and (2) an LLM fine-tuned to translate these causal relations into natural language. By explicitly discovering causality among building variables (e.g., occupancy → zone temperature → energy use), InsightBuild ensures explanations are rooted in the underlying physical system, while the LLM component delivers human-readable insights. We validate InsightBuild on two publicly available datasets: the Google Smart Buildings dataset and the Berkeley Office Building dataset . Our primary contributions are: (i) We design a causal inference pipeline for building telemetry that applies Granger causality tests on time-series features and prunes spurious edges via structural discovery. (ii) We construct a specialized fine-tuning corpus of (causal graph, textual explanation) pairs from expert annotations, enabling the LLM to learn mappings from discovered causes to concise, actionable explanations. (iii) We demonstrate that InsightBuild achieves significant gains in explanation accuracy and expert satisfaction compared to strong baselines, over held-out anomalies in both datasets. 2 Related Work Building Energy Forecasting and Anomaly Detection. Traditional rule-based approaches are still widely used in building energy monitoring, where fixed threshold rules are employed to identify anomalies and generate simple explanations ( Karbasforoushha et al. 2024 ) . However, these methods lack adaptability to complex interactions between variables such as occupancy, temperature, and HVAC dynamics. Deep learning-based forecasting methods, such as DeepAR ( Salinas et al. 2020 ; Neogi ) , offer probabilistic multivariate forecasts that have been applied for anomaly detection in energy time-series, but they do not provide interpretable causal explanations for the detected anomalies. Similarly, nature-inspired ( Neogi 2019 ; Guha Neogi et al. 2020 ) and physics-based ( Guha Neogi & Goswami 2021 ; Kar & Neogi 2020 ) approaches have also been applied in various machine learning tasks. Though they often yield strong predictive performance, they lack mechanisms to explain why a particular outcome occurs—highlighting the broader need for interpretable causal frameworks like ours. Causal Inference for Time-Series Data. Causal inference provides a principled framework to move beyond correlation and derive explanatory relationships among building variables. Classical methods like Granger causality ( Granger 1969 ) and structural causal models (SCM) ( Glymour & Zhang 2019 ) have long been applied in time-series causal discovery. More recently, neural network-based frameworks such as the Temporal Causal Discovery Framework (TCDF) ( Nauta et al. 2019 ) leverage convolutional neural networks to directly infer time-lagged causal relationships from multivariate sequences. Transformer-based models such as the Causal Transformer ( Zhu et al. 2024 ; Zhang et al. 2025 ) further exploit attention mechanisms to capture nonlinear dependencies. While effective in detecting causal links, these models typically output causal graphs rather than generating user-friendly explanations suitable for facility operators. LLMs for Reasoning and Explanation. Transformer-based LLMs like GPT ( Brown et al. 2020 ; OpenAI 2023 ) , or LLaMA ( Meta AI 2025 ; Touvron et al. 2023 ) have demonstrated strong reasoning abilities and zero-shot generalization in multiple domains ( Kojima et al. 2022 ; Wei et al. 2022 ) . Recent studies show that vanilla LLMs (vLLM) can generate plausible explanations when prompted, but may hallucinate unsupported causal claims without explicit grounding in domain data ( Liu et al. 2023 ) . Prior work also shows that domain-specific fine-tuning can substantially improve explanation accuracy and factual consistency. Combining Causal Inference with LLMs. There has been limited work at the intersection of causal inference and LLM-based explanation generation. Our proposed framework InsightBuild is, to our knowledge, the first to explicitly integrate statistically-grounded causal discovery (via Granger causality and structural pruning) with LLM fine-tuning to generate natural language explanations for building energy anomalies. 3 Methodology Figure 1 : Illustrative example in Google Building B: raw total energy (top), detected anomaly at 14:00 (red), occupancy in Zone 3 (middle), and zone temperature in Zone 3 (bottom). InsightBuild correctly identifies occupancy↑ as primary driver. In Figure 2 , we present the workflow of the proposed method, and in this section we explain them in details. Figure 2 : Overview of InsightBuild framework. Time-series data is first preprocessed and fed into a causal discovery module. Detected causal relations for a target anomaly are passed to a fine-tuned LLM, which generates a human-readable explanation. 3.1 Data Preprocessing We consider multi-dimensional time series \{x_{t}^{i}\} , where i indexes sensor or control variables (e.g., zone temperature, damper position, occupancy count) and t denotes time (hourly for Google; 15 min for Berkeley). Steps: 1. Missing Value Imputation : We apply forward-fill for short gaps ( \leq 2 intervals) and linear interpolation for longer gaps. Variables with >20\% missing data are excluded. 2. Alignment : All variables are resampled at a unified hourly timestamp (Google) or 15 min (Berkeley) using pandas’ resample(...).mean() . 3. Normalization : Each sensor’s readings are standardized to zero mean and unit variance within each building, to ensure comparability for causality tests. 4. Anomaly Detection : We prelabel anomalies using a simple z-score threshold ( |z|>3 )