Rule-Based and Reinforcement Learning Approaches in Multi-Agent Systems for Indoor Microclimate Control

Authors

DOI:

https://doi.org/10.31861/sisiot2026.1.01006

Keywords:

smart home control, edge artificial intelligence, reinforcement learning, multi agent system, Internet of Things

Abstract

This paper presents the design, implementation, and experimental validation of an edge-based agentic artificial intelligence system for adaptive smart home control. Unlike conventional rule-based automation, which relies on fixed threshold logic and predefined responses, the proposed approach models the home environment as a decision-making process in which an autonomous agent learns optimal control strategies through interaction with its surroundings. The system is deployed on a resource-constrained microcontroller platform and operates without reliance on cloud infrastructure, ensuring low latency, enhanced privacy, and reduced network dependency. Environmental parameters including temperature, humidity, illumination level, and weather-related signals are continuously monitored and encoded into a discrete state representation. Based on these states, the agent selects control actions for fan motor and LED lighting using a reinforcement learning strategy. The reward mechanism integrates comfort deviation and energy consumption into a unified objective function, enabling goal-directed behavior rather than reactive switching. The learning process gradually enables the agents to form stable control policies, resulting in convergence of environmental parameters toward their optimal values. Experimental evaluation conducted over a rule based and reinforcement learning approaches and extended condition based on microclimate parameters. The findings show that the agents progressively learn optimal control strategies, resulting in a compact clustering of environmental states around target values and demonstrating robust performance despite possible sensor noise and random action exploration. The proposed architecture illustrates how embedded reinforcement learning can transform traditional automation into a self-adaptive, memory-driven intelligent agent suitable for real-time smart home environments. The study confirms the feasibility of implementing agentic artificial intelligence on edge device ESP32 connected with sensors in porotype and highlights its potential for scalable, autonomous building control applications.

Downloads

Download data is not yet available.

Author Biographies

  • Roman Mysiuk, Ivan Franko National University of Lviv

    PhD in Computer Science with hands-on experience in test automation, data analytics, and machine learning technologies across multiple domains. He has over 7 years of experience in the IT industry and 5 years in academia, combining practical software development with research and teaching.

  • Stepan Bautin, Ivan Franko National University of Lviv

    Student pursuing a bachelor's degree in Computer Science, focused on designing and implementing AI-powered information systems. Research field includes artificial intelligence, smart environments, IoT integration, and applied machine learning for real-world applications.

References

F. Serepas, I. Papias, K. Christakis, N. Dimitropoulos, and V. Marinakis, “Lightweight Embedded IoT Gateway for Smart Homes Based on an ESP32 Microcontroller,” Computers, vol. 14, no. 391, 2025, doi: 10.3390/computers14090391.

D. Hercog, T. Lerher, M. Truntič, and O. Težak, “Design and Implementation of ESP32-Based IoT Devices,” Sensors, vol. 23, 6739, 2023, doi: 10.3390/s23156739.

G. Kaur et al., “Design and Implementation of an Intelligent Home Automation System Using ESP32 and IoT Integration,” in Proc. ICDAM 2025, Springer, Lecture Notes in Networks and Systems, vol. 1594, 2026, doi: 10.1007/978-3-032-02949-2_42.

P. Skibel, F. Matiko, and I. Demkiv, “Remote Monitoring System for Microclimate Parameters of Smart Home and Industrial Premises Based on ESP8266 Microcontroller,” Energy Engineering and Control Systems, vol. 11, no. 2, pp. 199–209, 2025, doi: 10.23939/jeecs2025.02.199.

M. Iqbal et al., “Prototype of Automatic Security and Control System for Smart Home Using ESP32 Microcontroller,” Journal of Emerging Innovations in Engineering, vol. 1, no. 02, pp. 54–65, 2025, doi: 10.65664/jeie.v1i02.9.

M. Y. Yakubovych, V. L. Lyashkevych, and R. Y. Shuvar, “Energy Conservation as One of the Components of the Management System for the Smart Sustainable Workspaces,” Electronics and Information Technologies, vol. 29, pp. 79–94, 2025, doi: 10.30970/eli.29.8.

O. L. Korenivska et al., “IoT Monitoring System for Microclimate Parameters in Educational Institutions Using Edge Devices,” in CEUR Workshop Proceedings, vol. 3374, 2023. Available: https://ceur-ws.org/Vol-3374/paper05.pdf

D. Sinaga et al., “Design and Implementation of an ESP32-Based IoT Smart Room System with Automated Temperature, Ventilation, and Lighting Control,” Journal of Intelligent Systems, Embedded Systems, and Computer Engineering, vol. 1, no. 1, pp. 1–11, 2026, doi: 10.65358/rva03t27.

G. Verma et al., “Smart Home Automation with Smart Security System over the Cloud,” in Proc. 14th Int. Conf. on Computing Communication and Networking Technologies (ICCCNT), Delhi, India, 2023, pp. 1–7, doi: 10.1109/ICCCNT56998.2023.10306548.

S. Kouah et al., “Internet of Things-Based Multi-Agent System for the Control of Smart Street Lighting,” Electronics, vol. 13, no. 3673, 2024, doi: 10.3390/electronics13183673.

M. Russo et al., “Advancing Robotic Systems with Distributed Multi-Agent Digital Twins: A Scalable and Adaptive Framework,” SN Computer Science, vol. 6, no. 975, 2025, doi: 10.1007/s42979-025-04525-w.

K. M. et al., “Design and Implementation of Dual-Function System for Inventory Management and Safety: IoT-Based Monitoring and Gas Detection,” in Proc. 2025 Int. Conf. on Multi-Agent Systems for Collaborative Intelligence (ICMSCI), Erode, India, 2025, pp. 400–407, doi: 10.1109/ICMSCI62561.2025.10894350.

H. Zhang, R. Zhang, and J. Sun, “Developing Real-Time IoT-Based Public Safety Alert and Emergency Response Systems,” Scientific Reports, vol. 15, no. 29056, 2025, doi: 10.1038/s41598-025-13465-7.

A. Dobrovolskis, E. Kazanavičius, and L. Kižauskienė, “Building XAI-Based Agents for IoT Systems,” Applied Sciences, vol. 13, no. 4040, 2023, doi: 10.3390/app13064040.

K. Mandaric, A. Keselj Dilberovic, and G. Jezic, “A Multi-Agent System for Service Provisioning in an Internet-of-Things Smart Space Based on User Preferences,” Sensors, vol. 24, no. 1764, 2024, doi: 10.3390/s24061764.

A. Stevenson, M. Panwar, R. Hovsapian, and A. Sarwat, “Efficient Reinforcement Learning for Real-Time Hardware-Based Energy System Experiments,” Proc. AAAI Symposium Series, vol. 2, no. 1, pp. 153–158, 2024, doi: 10.1609/aaaiss.v2i1.27663.

S. Bautin and R. Mysiuk, “Intelektualna systema monitorynhu klimatychnyh umov ta keruvannya prystroyamy na bazi mikrokontrolera ESP32,” Radioelectronics and Computer Technologies: Proceedings of the 2nd Ukrainian Scientific-Practical Seminar, I. D. Karbovnyk, ed. Lviv, Ukraine: Ivan Franko National University of Lviv, 2026. Available: https://electronics.lnu.edu.ua/wp-content/uploads/RCT-2026-Abstracts.pdf (In Ukrainian)

Downloads


Abstract views: 0

Published

2026-06-30

Issue

Section

Articles

How to Cite

[1]
R. Mysiuk and S. Bautin, “Rule-Based and Reinforcement Learning Approaches in Multi-Agent Systems for Indoor Microclimate Control”, SISIOT, vol. 4, no. 1, p. 01006, Jun. 2026, doi: 10.31861/sisiot2026.1.01006.

Similar Articles

51-60 of 79

You may also start an advanced similarity search for this article.