← Latest papers
💻 computer science

Human-in-the-Loop Reinforcement Learning for Energy-Efficient Smart Home Recommendations

This paper presents a human-in-the-loop reinforcement learning system that utilizes a Proximal Policy Optimization agent trained on real-time occupant feedback and anchored by a rule-based prior to deliver adaptive, energy-efficient smart home recommendations, achieving significant annual consumption reductions while preserving occupant comfort.

Original authors: youcef GUENFAF, youcef ZAFOUNE, Amdjed Baha-eddine Chaabane, Abdnour Benmeridja, Dounia Fatma Zohra Rehab, Douniazed Daouadji, Imad Yacine Karoum

Published 2026-11-12
📖 7 min read🧠 Deep dive

Original authors: youcef GUENFAF, youcef ZAFOUNE, Amdjed Baha-eddine Chaabane, Abdnour Benmeridja, Dounia Fatma Zohra Rehab, Douniazed Daouadji, Imad Yacine Karoum

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Every home is a living machine, constantly shifting between states of activity and rest. In a modern smart home, this machine is equipped with sensors that watch for movement, thermostats that feel the air, and appliances that hum with electricity. For years, the goal of home energy management has been to make this machine run more efficiently. The traditional approach has been to program it with fixed rules: turn off the lights at 10 PM, lower the heat when no one is home, or run the dishwasher only when electricity is cheap. But human life is rarely that rigid. Routines change with the seasons, with new jobs, or with the arrival of a new family member. A system that cannot adapt to these shifts often ends up wasting energy by trying to enforce a schedule that no longer fits, or it is simply turned off by frustrated residents who feel their comfort is being sacrificed for a theoretical saving.

The challenge, then, is to create a system that learns from the people who live in the house, rather than just imposing a schedule upon them. This requires a different kind of intelligence, one that treats the occupant's reaction as a teacher. If a resident accepts a suggestion to lower the thermostat, the system learns that this was a good idea. If they reject it, the system learns that the suggestion was wrong for that moment. This concept, known as human-in-the-loop learning, allows a computer to refine its behavior through direct interaction, building a unique understanding of a specific household's habits and preferences without needing a massive library of pre-collected data. It is a shift from telling the home what to do, to asking it what it needs, and then learning from the answer.

A team of researchers at the University of Sciences and Technology Houari Boumediene in Algeria has built and tested a system based on this idea. They created a smart home recommendation engine that does not rely on a pre-programmed script or a massive historical dataset. Instead, it learns entirely from the daily acceptances and rejections of the people living in the house. The system is designed to be safe and practical from day one. When the system is first turned on, it does not guess blindly. It starts with a set of sensible, rule-based suggestions, such as turning off lights when a room is empty. As the residents interact with the system, a learning algorithm gradually takes over, adjusting its recommendations to match the specific tastes of that family. The researchers tested this system in a detailed computer simulation of a three-person household over the course of a full year, using a virtual version of a real smart home platform to generate realistic daily routines and weather conditions.

The core of their invention is a hybrid architecture that combines two different ways of thinking. One part is a deterministic rule engine, which acts as a safety net. It knows basic physics and common sense: do not heat a room that is already hot, and do not leave lights on in an empty room. The other part is a learning agent, a type of artificial intelligence that improves over time. Crucially, the learning agent does not ignore the rules; it watches them. The system feeds the rule-based suggestions into the agent's "mind" as a reference point. This allows the agent to start with sensible behavior immediately, avoiding the awkward period where a learning system might make nonsensical suggestions that would annoy or confuse the residents. As the agent receives feedback, it learns when to follow the rules and when to deviate from them based on what the residents actually prefer.

To make this work, the researchers built a complete digital ecosystem. They created a server that manages the data and a mobile application that residents use to interact with the system. When the system detects a situation—such as a room being occupied while the heating is too high—it sends a notification to the resident's phone. The message explains what the system noticed, what it suggests doing, and why. The resident then has a simple choice: accept the suggestion or reject it. If they accept, the system learns that its logic was sound. If they reject it, the system learns that its logic was off for that specific context. This loop of suggestion and response is the fuel that drives the learning process. The researchers also included a mechanism to handle disagreements between multiple people in the same house, using a weighted voting system to find a compromise that respects the preferences of all family members.

The results of the year-long simulation were promising. When the system was tested under a realistic scenario where residents sometimes accepted suggestions and sometimes rejected them, the home saved an average of 6.4 percent of its annual energy consumption. In the most favorable months, the savings reached as high as 15.6 percent. The researchers also tested an ideal scenario where every single suggestion was accepted, which showed a potential for 14.2 percent annual savings, with peaks of 27.8 percent in certain months. These numbers are significant because they were achieved without sacrificing comfort. The system learned to save energy primarily during times when the residents were flexible, such as in the spring and autumn, rather than forcing uncomfortable changes during the extreme heat of summer or the cold of winter.

The study also compared this learning system against two other approaches: a traditional rule-based system that never learns, and a different type of learning algorithm that is better suited for simple, on-or-off decisions. The new system outperformed both. It was particularly effective in the transitional seasons, where the traditional rule-based system often made mistakes by turning heating or cooling on when it wasn't needed. The learning system, having seen the residents' reactions, knew exactly when to hold back. It also proved superior to the other learning algorithm because it could handle continuous adjustments, such as setting a thermostat to a precise temperature, rather than being limited to a few fixed options.

The researchers are careful to note that these findings come from a simulation, not a physical house with real people. The data was generated by a computer program that mimicked the behavior of a family, including their daily routines and how they might react to different suggestions. While the simulation was built to be as realistic as possible, incorporating weather patterns and seasonal changes, it cannot capture the unpredictable nature of real life, such as unexpected guests or sudden changes in routine. The authors acknowledge that the next step is to install the system in a real home to see how it performs with actual residents. They also plan to expand the system to handle more types of appliances and to incorporate electricity prices into its learning, so it can save money as well as energy.

Despite the limitations of a simulated environment, the study demonstrates a clear path forward for smart home technology. It shows that a system can learn to be energy-efficient without being intrusive or rigid. By anchoring the learning process in a set of safe, basic rules and then letting the residents guide the system through their daily choices, the researchers have created a model that respects both the need for efficiency and the complexity of human life. The system does not try to control the home; it tries to understand it, learning from every interaction to become a better partner in managing the energy of the house.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →