Related Experiment Video
Updated: Aug 23, 2025

Interactive and Visualized Online Experimentation System for Engineering Education and Research
Published on: November 24, 2021
Internet-of-Things Based Hardware-in-the-Loop Framework for Model-Predictive-Control of Smart Building Ventilation
Abdelhak Kharbouch1,2, Anass Berouine1,3, Hamza Elkhoukhi1,2
1LERMA Lab, College of Engineering, The International University of Rabat, Technopolis Rabat-Shore Rocade Rabat-Salé, Sala El Jadida 11100, Morocco.
A new Hardware-In-the-Loop (HIL) framework integrates IoT, big data, and machine learning for smart building control. This approach optimizes ventilation systems, reducing energy use by 16% while ensuring good indoor air quality.
Area of Science:
- Building energy management
- Smart building control systems
- Predictive control algorithms
Background:
- Smart buildings require advanced control strategies for energy efficiency and occupant comfort.
- Existing control methods may not fully leverage real-time data and predictive capabilities.
- Hardware-In-the-Loop (HIL) simulations offer a robust platform for testing control algorithms in realistic conditions.
Purpose of the Study:
- To introduce and evaluate a Hardware-In-the-Loop (HIL) framework for implementing and assessing predictive control in smart buildings.
- To integrate Internet of Things (IoT), big data, machine learning, and Model Predictive Control (MPC) for HIL simulations.
- To optimize ventilation systems for maintaining indoor air quality and enhancing energy efficiency.
Main Methods:
- Development of an HIL framework combining IoT, big data, machine learning (LSTM), and MATLAB-based MPC.
- Deployment of the framework in a real-case scenario at the EEBLab test site.
- Implementation of the MPC controller on Raspberry Pi (RPi) hardware, utilizing forecasted occupant numbers to determine optimal ventilation flow rates.
Main Results:
- The proposed HIL framework successfully enabled the implementation and assessment of the MPC algorithm for a standalone ventilation system.
- Energy consumption was reduced by approximately 16% compared to an ON/OFF control strategy.
- Indoor air quality, specifically Carbon Dioxide (CO2) concentration, was maintained within the standard comfort range.
Conclusions:
- The developed HIL framework is effective for testing and validating predictive control strategies in smart buildings.
- The MPC approach, enhanced by real-time data and forecasting, significantly improves energy efficiency while maintaining indoor comfort.
- This integrated approach demonstrates a promising pathway for optimizing smart building operations.
Related Concept Videos
Open and closed-loop control systems
An open-loop control system operates without feedback from the output. It consists of two primary elements: the controller and the controlled process. The controller receives an input signal...
Mechanical Ventilation II: Invasive Ventilation
Negative-Pressure Ventilators
Negative-pressure ventilators create a vacuum around the chest or body to draw air into the lungs, simulating breathing. This method does not require an...
Mechanical Ventilation III: Noninvasive Ventilation
Noninvasive Positive-Pressure Ventilation...
PID Controller
PI Controller: Design
Heating and Cooling Curves
For instance, the addition of heat raises the temperature of a solid; the amount of heat absorbed depends on the heat capacity of the solid (q = mcsolidΔT). According to thermochemistry, the relation between the amount of heat absorbed or released by a substance, q, and its...

