arXiv:2610.19790cs.MAOct 2026

Manuscript Offprint

arXiv:2610.19790

One Agent per Zone: Decentralised Active Inference under Partial Observability for Multi-Zone HVAC Control on Edge Hardware

Panagiotis Kasnesis, Lazaros Toumanidis, Christos Chatzigeorgiou, Amalia Contiero Syropoulou, Miguel De Prado

Panagiotis Kasnesis Lazaros Toumanidis Christos Chatzigeorgiou Amalia Contiero Syropoulou Miguel De Prado

Waldiez P.C.

Waldiez P.C.

Waldiez P.C.

Maroussi, Greece

Maroussi, Greece

ThinGenious P.C.

PRAESC AI

Maroussi, Greece

Maroussi, Greece

Biel, Switzerland

Abstract—Multi-zone HVAC control is a shared-resource problem: zones on a floor share one fan and cooling coil, so each zone's demand affects its neighbours and the building's peak power. One controller per zone scales well and isolates faults, but each controller then observes only its own zone, not the shared air loop. In this work, we present a decentralised controller that assigns each zone an independent active-inference agent, which plans by minimising expected free energy and learns its zone dynamics online. The agents exchange no messages, so none depends on peers or a coordinator; each accounts for the unobserved coupling through a latent disturbance and a congestion signal derived from the metered power of the other floors. Fifteen agents are evaluated in EnergyPlus on a Sinergym office building against three rule-based controllers and three MADDPG fleets, one given the same floor meters. On five noisy weather years unseen during training, the fleet attains the lowest mean building peak (88.3 kW, 3 to 17 % below the baselines) and staggers the floor peaks better than any baseline, with a coincidence factor (building peak over the sum of the floor peaks) of 0.929 versus 0.936 to 0.994. Compared with a reactive rule at similar comfort (0.912 versus 0.916), it lowers the sum of monthly peaks, on which demand charges are billed, by 33 kW (4 %) in every year, at the cost of about 10 % more energy. It costs 9 % less per year than the proactive rule (at lower comfort) and 1 % less than the MADDPG fleet given the same floor meters, in every test year. The whole fleet runs on a single low-cost Raspberry Pi 5, closing the observation-to-action loop over MQTT in 442 ms at p95, far below the 15-minute control step.

Index Terms—edge AI, generative AI, active inference, multi-agent systems, building energy management

I. INTRODUCTION

Heating, ventilation and air conditioning (HVAC) systems account for a large share of the electricity consumed by commercial buildings, and their role is no longer limited to keeping the indoor temperature within a comfort band. Many commercial tariffs now charge for the highest power drawn in each billing month as well as for the energy consumed, and grid operators are increasingly interested in when buildings draw power, not only in how much they consume. As a consequence, a modern building controller has to maintain occupant comfort while also limiting and shaping the demand profile of the building.

For a building served by several air loops, the building peak depends not only on how large the peak of each loop is, but also on whether these peaks occur at the same time. This is measured by the coincidence factor, the ratio of the building peak to the sum of the individual loop peaks: a value of 1 means that all loops peak simultaneously, and lower values mean that their peaks are staggered in time. Reducing coincidence therefore lowers the building peak without necessarily reducing the energy used by each loop.

In a multi-zone building, the shared HVAC infrastructure induces a multi-agent control problem: zones served by the same air handler compete for limited fan and cooling capacity, so the actions of one zone affect the thermal conditions of the others. A single controller that decides all setpoints jointly could account for this coupling, but it scales poorly with the number of zones, is a single point of failure, and has to be redesigned whenever the zoning changes. We therefore consider a decentralised architecture in which each zone is controlled by an independent agent that observes only its own zone, without access to the full building state or communication with neighbouring agents. Variables such as the supply air conditions and the demand of the other zones still influence the local dynamics, but they are not observable by a zone agent and are therefore treated as latent disturbances.

This partial observability matters for two reasons. First, a zone agent cannot directly distinguish changes caused by its own thermal load from changes induced by the other zones on the same air handler; it has to infer their effect from its local observations. Second, peak demand is a collective phenomenon: the building peak is set when several zones call for cooling at the same time, which no zone can see from its own measurements. Effective decentralised control therefore requires agents that reason about hidden influences and, as we show, a minimal aggregate signal that reveals how busy the rest of the building is.

The dominant learning-based approach to this problem has been multi-agent deep reinforcement learning (DRL) under centralised training with decentralised execution (CTDE) [1], [2], in which a centralised critic observes the whole building during training while each deployed actor sees only its own zone. Although this paradigm works, it inherits the properties of its training regime: the coupling between zones is absorbed into the network weights rather than being represented explicitly, and the resulting policy is difficult to inspect at the moment it matters.

In this paper, we take a different route and assign each zone to an independent active-inference (AIF) agent [3]. Each agent maintains beliefs over a small set of discrete latent states, corrects them with Bayes' rule as new observations arrive, learns its own transition model online, and selects actions by evaluating how well each candidate action satisfies its comfort and energy preferences over the next two hours. The generative model also contains a hidden disturbance factor that is never observed: when a zone systematically runs warmer or cooler than its model predicts, the agent's belief about this factor shifts accordingly, which is how an agent accounts for an air-loop coupling that it cannot measure. In addition, every agent reads the metered power of the other two air loops as a congestion signal and becomes more reluctant to draw power when the rest of the building is already busy. AIF has recently been applied to building energy management with one agent per building and a supervising community-level agent [4]; however, to the best of our knowledge, this is the first work that applies decentralised AIF at the zone level to multi-zone HVAC control over a shared air loop, and evaluates it against both rule-based control (RBC) and DRL controllers on demand-related metrics.

The main contributions of this work are summarised as follows:

• We present a decentralised AIF controller for shared-resource HVAC systems, in which 15 zone agents stagger their demand across floors without exchanging a single message. Evaluated on five noisy weather years that were not seen during training, the AIF fleet achieves the lowest mean annual peak (88.3 kW) among the nine controllers that we tested and a lower coincidence factor (0.929) than any baseline.

• We identify why the fleet coordinates. Our ablations show that two ingredients are needed together: a real-time signal of what the rest of the building is drawing, and agents that respond to it differently from one another. Replacing the live signal with a constant of the same mean, or with the signal of the previous day, removes the effect, which rules out a higher energy price or a memorised daily pattern as explanations. Giving the same meters to a MADDPG fleet also lowers its peak, which supports the conclusion that the live load information, and not active inference alone, is what enables the staggering.

• We provide a transparent comparison with well-tuned RBCs, reporting the metrics on which simple rules still prevail and quantifying the demand charge at which the demand savings of the AIF fleet would compensate for its additional energy use.

• We show that all 15 agents run concurrently on a Raspberry Pi 5, with a p95 observation-to-action latency of 442 ms measured over the full MQTT round trip.

The remainder of this paper is organised as follows. Section II provides the necessary background on AIF, while Section III reviews related work. Section IV introduces the simulation testbed, the evaluation protocol and the controllers. Section V defines the evaluation metrics, Section VI presents the obtained results, and Section VII discusses their implications and limitations. Finally, Section VIII concludes the article. All code, trained models and benchmark harnesses are released under Apache 2.0 at https://github.com/waldiez/aif-sinergym.