chrisricard.com
Archive aisle lined with shelves of case boxes and card-catalog drawers

Automatic HVAC Control With Real-Time Occupancy Recognition and Simulation-Guided Model Predictive Control in Low-Cost Embedded System

July 17, 2026 · 2.9 MB

A 2017 Masdar Institute paper describing a Raspberry Pi system that counts occupants by video and runs on-board building simulations to control air conditioning, saving over 30% energy in a mosque.

Overview

Building automation can cut the energy used by heating, ventilation and air conditioning (HVAC), but traditional systems rely on inaccurate occupancy sensors and oversimplified thermal models. Passive infrared and ultrasound sensors, for instance, miss people who sit still for long periods and have limited range in large spaces. Muhammad Aftab, Chien Chen, Chi-Kin Chau and Talal Rahwan of the Masdar Institute of Science and Technology argue that cheap, powerful embedded computers now make more sophisticated control possible.

The System

The authors built an occupancy-predictive HVAC controller on a Raspberry Pi 3 with three main features:

  • Occupancy recognition: video processing and machine learning detect and count occupants' silhouettes in real time
  • Occupancy prediction: the system analyses patterns and forecasts when the space will be used, adapting a general method to the specific building
  • Simulation-guided control: an EnergyPlus building simulator, ported to the Raspberry Pi, models the building's thermal response so the controller can decide when to start and stop cooling

The building model was calibrated against measured data using the Building Controls Virtual Test Bed software.

Deployment

The system was tested in the large public indoor space of a mosque, a building with fairly predictable occupancy patterns and packaged rooftop HVAC units. Occupancy recognition reached 90% accuracy and prediction 85%. The control system saved more than 30% of energy while keeping comfort within acceptable limits.

Conclusions

The authors say the system could work in other buildings with large public spaces, and they released their Raspberry Pi version of EnergyPlus for other researchers. Irregular occupancy remains a challenge, and they plan to explore robust online control that needs less prediction.

Why It Matters

The paper shows how low-cost hardware can bring advanced, simulation-based climate control to real buildings.

Page 1 of Automatic HVAC Control With Real-Time Occupancy Recognition and Simulation-Guided Model Predictive Control in Low-Cost Embedded System
Page 1 · click to open the full PDF
Open full PDF (2.9 MB) ↗

Source

Muhammad Aftab et al. (2017). Automatic HVAC control with real-time occupancy recognition and simulation-guided model predictive control in low-cost embedded system. Energy and Buildings, 154, 141–156.

View original (opens in a new tab)DOI 10.1016/j.enbuild.2017.07.077

More from Physical Sciences, Math & Engineering

See all 164 in Physical Sciences, Math & Engineering →