Agentic AI Detects Energy Anomalies, Recommends Solutions.

Dihia Falouz, Aida Douaibia, Amine Bechar, Youssef Elmir, Abbes Amira, Adel Oulefki· June 30, 2026 View original

Summary

This paper proposes an end-to-end agentic AI pipeline for office buildings that combines deep time-series forecasting, variational anomaly detection, and LLM-based reasoning to generate prioritized, actionable maintenance recommendations for appliance-level energy anomalies. The system uses a multi-agent LangChain pipeline with reflective memory for operator feedback.

Managing energy consumption in office buildings often involves sifting through noisy alerts from appliance-level monitoring, which facility managers find difficult to act upon. This research introduces a comprehensive, end-to-end agentic AI pipeline designed to streamline this process. The system integrates deep time-series forecasting, specifically a hybrid Singular Spectrum Analysis (SSA) and Long Short-Term Memory (LSTM) model, with a per-appliance LSTM Variational Autoencoder (VAE) for anomaly detection. This setup flags abnormal daily consumption episodes across seven tracked office appliances. The core innovation lies in its three-stage LangChain pipeline, which leverages large language models (LLMs) for intelligent reasoning. A Context Agent dynamically retrieves relevant information, including model reliability, baseline data, and expert knowledge, and conditionally adds more context based on the anomaly's characteristics. A Diagnosis Agent then converts this evidence into a structured JSON diagnosis, which a Report Agent renders into a human-readable narrative with actionable maintenance recommendations. The system also features a reflective memory layer that incorporates operator feedback, continuously improving its recommendations. Benchmarking across 16 scenarios, including various spikes and shutdowns, showed the best LLM backend achieving 90.4/100, with even a local 7B-parameter model successfully passing all scenarios, demonstrating robust performance and efficiency in context retrieval.

Why it matters

Facility managers and building operators can significantly reduce energy waste and maintenance costs by receiving precise, actionable, and prioritized recommendations for appliance anomalies, moving beyond generic alerts.

How to implement this in your domain

  1. 1Pilot the agentic AI pipeline in a smart building environment to automate anomaly detection and maintenance recommendations.
  2. 2Integrate deep time-series forecasting and VAE-based anomaly detection into existing energy management systems.
  3. 3Develop LLM-driven reasoning agents to convert raw anomaly data into actionable insights for operational teams.
  4. 4Implement a feedback loop mechanism to continuously improve the AI's diagnostic accuracy and recommendation quality.
  5. 5Explore dynamic RAG (Retrieval Augmented Generation) strategies for context retrieval in other operational AI applications.

Who benefits

Commercial Real EstateFacilities ManagementEnergy ManagementSmart BuildingsIoT

Key takeaways

  • An agentic AI pipeline automates energy anomaly detection and recommendation generation.
  • It combines deep forecasting, VAE anomaly detection, and LLM-based reasoning.
  • A multi-stage LangChain pipeline provides structured, actionable maintenance advice.
  • The system demonstrates robust performance and efficient context retrieval, even with local LLMs.

Original post by Dihia Falouz, Aida Douaibia, Amine Bechar, Youssef Elmir, Abbes Amira, Adel Oulefki

"arXiv:2606.28467v1 Announce Type: new Abstract: Appliance-level energy monitoring in office buildings produces noisy alerts that non-expert facility managers struggle to use. This paper proposes an end-to-end agentic pipeline that combines deep time-series forecasting, variationa…"

View on X

Originally posted by Dihia Falouz, Aida Douaibia, Amine Bechar, Youssef Elmir, Abbes Amira, Adel Oulefki on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses