Meridia Insight Tech for Good Frontiers

A heat-pump controller learned in a virtual house—and then faced the real one

A controller trained entirely in simulation was put to work in an occupied home, where it kept indoor temperatures inside the chosen comfort limits without

30-minute decisions let a simulated policy steer a real home’s heat pump and floor valves.

A heat-pump controller learned in a virtual house was put in charge of heating a real, occupied home—and, according to the paper’s abstract, kept indoor temperatures within the chosen comfort limits without being fine-tuned on site. That is a meaningful step for building automation, where a clever simulation result is not the same thing as a system that can operate amid real weather, household routines and imperfect equipment models.

The result is promising, but it needs a careful reading. The paper’s clearest contribution is an end-to-end test of a route from simulation to deployment. The materials provided here do not include a numerical real-world energy saving, a quantified comparison against the home’s previous controller, or enough detail about the length of the deployment to estimate performance over a whole heating season. Feasibility is the finding; energy savings remain an open question.

The challenge begins underfoot. A hydronic underfloor heating system warms water that circulates through pipes embedded in or beneath the floor. The floor then releases heat gradually into rooms. That stored warmth can make indoor temperatures stable and comfortable, but it also means the system reacts slowly: an adjustment now may not noticeably change the room for hours. A controller that waits for a room to get cold before turning up the heat can be late to the problem—and may keep heating after the room has reached comfort.

That delay matters for heat pumps. Their efficiency generally benefits when they can deliver heat at relatively low water temperatures, rather than being forced to produce very hot water. But the controller must balance that efficiency against the need to keep every room comfortable. Manjavacas and colleagues set out to test whether deep reinforcement learning could make those decisions, first in simulation and then in a real residence (Manjavacas et al., 2026).

Figure 1: Overview of the proposed two-phase methodology used to design, train, and validate the DRL controller in simulation and real-building operation
Figure 1: Overview of the proposed two-phase methodology used to design, train, and validate the DRL controller in simulation and real-building operation Source: Antonio Manjavacas, David Suárez-Caro

The Science

Deep reinforcement learning, or DRL, is a way to teach a software agent to make decisions through repeated experience. The agent observes conditions, takes an action, and receives a reward or penalty based on what follows. Here, its task was to manage heating while balancing two competing aims: keep indoor temperatures within comfort bands and limit heat-pump electricity use.

The problem is difficult because the agent cannot see or control everything that shapes a home’s temperature. It receives information such as indoor and outdoor temperatures, humidity, weather and time of day. The building itself has its own thermal memory: heat moves through floors, walls and furnishings at different rates. In reinforcement-learning terms, the controller operates with an incomplete picture of a complex, changing system.

The authors split the work into two phases. First came a pilot study in EnergyPlus, a building-energy simulation program, connected to the agent through Sinergym, a software framework for training and testing building-control algorithms. The team compared several learning algorithms and ways of dividing control between heat-pump water temperature and underfloor circuit valves. Each simulated episode represented a heating season, running from November 15 to March 15; decisions were made every 30 minutes.

The three control setups varied what the agent could change. In Case 1, it adjusted the heat pump’s supply-water temperature, while flow to the floor circuits was handled separately. In Case 2, it controlled the opening of each circuit’s valve, with the heat-pump supply temperature held at 35°C. In Case 3, it controlled both the valves and supply temperature. A valve determines how much heated water flows through a particular floor loop, so the joint-control case gave the agent a broader set of levers—and a more complicated task.

The reward function assigned penalties to both energy consumption and temperatures outside each zone’s comfort range. A crucial design choice is that the study’s formula reduces the energy penalty when comfort violations rise. In effect, the agent is allowed to use more power when people are uncomfortable. That is a sensible priority for a heating controller, but it also means results depend partly on how the researchers set the weights that translate comfort and power into a single score.

For the second phase, the team created a digital twin: a simulation model intended to represent a specific real building. They trained agents in that virtual version, installed the equipment needed for control and monitoring, and deployed the best-performing agent in the physical residence without additional online fine-tuning. The agent adjusted heat-pump supply temperature and floor-valve positions as conditions changed.

Figure 2: Overview of the agent–environment interaction during simulation-based training and evaluation, using Sinergym as the interface between the DRL agent and EnergyPlus
Figure 2: Overview of the agent–environment interaction during simulation-based training and evaluation, using Sinergym as the interface between the DRL agent and EnergyPlus Source: Antonio Manjavacas, David Suárez-Caro

What They Found

The headline finding is that deployment was possible: the authors report that the controller maintained indoor temperatures within prescribed comfort limits while dynamically changing the water temperature and valve positions. It was not simply an algorithm evaluated on a computer; the study carried a trained policy into an occupied building.

The pilot results show why choosing a controller is not a matter of picking the lowest number in one column. Across the three control cases and four algorithms, the lowest mean comfort violation reported in the supplied table was 0.30°C, for TQC in Case 3. The lowest mean power was 298.63 W, for RecPPO in Case 3—but that same combination had a mean comfort violation of 0.91°C. The best result on one measure did not automatically deliver the best result on another.

Pilot simulation: mean comfort violation by agent and control case

The paper’s supplied pilot-study table reports mean comfort violation in degrees Celsius. Lower values indicate fewer average deviations from the comfort band; uncertainty terms are omitted here to keep the plotted measure clear.

Pilot simulation: mean comfort violation by agent and control case
LabelValue
Case 1 · PPO0.34 °C
Case 1 · TQC0.42 °C
Case 1 · SAC0.32 °C
Case 1 · RecPPO0.35 °C
Case 2 · PPO0.47 °C
Case 2 · TQC0.41 °C
Case 2 · SAC0.39 °C
Case 2 · RecPPO0.87 °C

The comfort results also varied with the control setup. Case 1, where the agent adjusted supply-water temperature, produced mean comfort violations from 0.32°C to 0.42°C across the four algorithms. Case 2, which left supply temperature fixed and used valves as the agent’s controls, ranged from 0.39°C to 0.87°C. Case 3, with both temperature and valves under agent control, ranged from 0.30°C to 0.91°C. Those ranges are averages in a pilot simulation, not guarantees for every room or every moment.

Pilot simulation: mean heat-pump power by agent and control case

Mean power consumption reported in the pilot-study table. It is a simulation comparison, not a measured real-world saving.

Pilot simulation: mean heat-pump power by agent and control case
LabelValue
Case 1 · PPO317.39 W
Case 1 · TQC326.56 W
Case 1 · SAC317.09 W
Case 1 · RecPPO321.2 W
Case 2 · PPO331.01 W
Case 2 · TQC357.31 W
Case 2 · SAC336.42 W
Case 2 · RecPPO346.49 W

Mean power consumption in the pilot table ranged from 298.63 W to 357.31 W. The 298.63 W result belongs to RecPPO in Case 3, while the 357.31 W result belongs to TQC in Case 2. But the spread and variability matter: the reported standard deviations are large relative to many of the means. For example, Case 3 RecPPO’s power was listed as 298.63 ± 23.23 W, while Case 2 TQC was 357.31 ± 378.87 W. The data supplied do not establish that the lowest mean represents a reliable energy advantage across changing conditions.

Pilot simulation: mean reward by agent and control case

The reward combines a penalty for heat-pump power and a penalty for comfort violations. Values are negative; closer to zero is better under the study’s reward definition.

Pilot simulation: mean reward by agent and control case
LabelValue
Case 1 · PPO-0.32
Case 1 · TQC-0.37
Case 1 · SAC-0.31
Case 1 · RecPPO-0.33
Case 2 · PPO-0.39
Case 2 · TQC-0.38
Case 2 · SAC-0.36
Case 2 · RecPPO-0.59

The reward scores reinforce the same point. The reward combines comfort and power according to a chosen formula, so it is not a universal measure of controller quality. SAC in Case 1 had the best listed mean reward, −0.31; TQC in Case 3 followed at −0.32. The paper’s pilot table marks the Case 3 TQC combination as having the lowest comfort violation, while the lowest power belongs to a different algorithm. A practical controller has to make those compromises in service of a comfort policy that occupants and operators accept.

The study therefore offers two kinds of evidence, which should not be blurred together. Its numerical table compares agents under pilot simulations. Its real-building result, as described in the supplied abstract, establishes that a policy trained in a digital twin could control the physical system and maintain the stated comfort limits. The excerpt does not provide numerical real-building temperature violations, electricity use, or a baseline comparison, so the simulation figures cannot be presented as measured savings in the home.

Why This Changes Things

Buildings account for a substantial share of energy use and emissions, and heating is a central part of that burden in many climates. Heat pumps can provide heating efficiently, especially when paired with low-temperature systems such as underfloor loops. But their potential depends not only on hardware; it also depends on controls that coordinate supply temperature, building response and occupants’ comfort. A system that is technically efficient but poorly controlled can waste energy or leave rooms uncomfortable.

The paper addresses a gap between algorithm research and operational reality. Many building-control studies stop in simulation, where researchers can run years of experience quickly and safely. Real buildings bring constraints that a model may not capture: sensor noise, actuator delays, household habits, equipment quirks and weather that differs from the training data. Moving from a digital twin to an occupied home without online retraining is therefore a practical test of model-to-reality transfer.

It is also a test of workflow. A deployed learning controller must receive trustworthy measurements, issue valid actions, handle failures and remain observable to people responsible for the heating system. The paper’s two-stage structure—pilot exploration followed by a building-specific digital twin—suggests a cautious path: use simulation to narrow design choices, then validate in the building rather than treating simulation scores as proof of real-world benefit.

(a) Comfort violations
(a) Comfort violations Source: Antonio Manjavacas, David Suárez-Caro

There is an important distinction between control sophistication and demonstrated impact. This study indicates that a DRL controller can operate a real UFH–heat-pump installation while respecting the stated comfort bounds. It does not, in the supplied material, quantify how many kilowatt-hours or euros it saved, whether it outperformed the home’s existing controller, or how consistently it performed across a full heating season. Those are not minor details: they determine whether a promising demonstration can justify broad adoption.

Nor does one home establish that a policy transfers easily to another. Buildings differ in insulation, layout, floor construction, heat-pump capacity, control hardware and patterns of occupancy. A digital twin has to represent enough of those characteristics for training to produce useful behaviour. The paper’s own methodology recognizes this challenge: its pilot explores algorithm and control choices, while its case study builds a model for a particular residence rather than assuming one universal policy will suit every home.

What’s Next

The next test is a longer, more transparent field comparison. A useful follow-up would report energy consumption and comfort together, across a defined deployment period, against a credible baseline such as the building’s previous control strategy. It should show how often and by how much temperatures crossed the comfort limits, how much electricity the heat pump used, and whether the controller’s actions changed over different weather and occupancy conditions.

It would also help to know how the digital twin was calibrated and how closely it matched the real building before deployment. The supplied paper includes details of modifications to some modeled material properties, but not enough results here to assess the model’s prediction error. Reporting that error would help other teams judge how much model accuracy is needed before they trust a simulation-trained policy in a real home.

A sensible deployment should also include guardrails. A conventional control layer could enforce safe operating limits, preserve a fallback heating mode and alert an operator when sensors or actuators behave unexpectedly. Such safeguards do not negate learning; they recognize that warmth is a service people depend on, not a benchmark score. Explainability matters too: occupants and technicians need some way to understand why a system is changing water temperatures or closing particular loops.

Finally, broader trials should test whether training methods can reduce the cost of building a separate digital twin for every residence. If policies can transfer between similar homes—or adapt safely using limited local data—the approach could become much more scalable. That prospect is especially interesting for heat pumps and radiant systems, whose slow dynamics make predictive control valuable but whose diversity makes one-size-fits-all settings hard to achieve.

This study does not yet show that reinforcement learning cuts household heating bills or emissions. It shows something earlier and necessary: a controller trained in a simulated version of a home could be installed in the actual one and keep temperatures within the stated comfort limits. That is a door opened, not a finish line crossed. The next papers—and the next winters—will need to show whether the same route can deliver reliable comfort and measurable energy savings across many buildings.

Comments (0)

No comments yet. Be the first to share your thoughts.