International Journal of Emerging Research in Engineering, Science, and Management
Vol. 5, Issue 4, pp. 27-47, Oct-Dec 2026.
https://doi.org/10.58482/ijeresm.v5i4.3
Received: 23 Mar 2026 | Revised: 04 Oct 2026 | Accepted: 12 Oct 2026 | Published: 29 Oct 2026
This work is licensed under a Creative Commons Attribution 4.0 International License.
An AI–IoT-Integrated Vision-Based Localized Energy Management System for Smart Classrooms
G. Mallikharjuna Rao
Tummala Aravinda Babu
Department of ECE, Chaitanya Bharathi Institute of Technology (CBIT), Gandipet, Hyderabad, Telangana – 500075, India.
Abstract: Conventional classroom energy management systems often treat the entire room as a single occupancy zone, leaving fans and lights on even when only a few seating areas are occupied. This paper integrates a vision-based, localized energy management framework that uses the Ultralytics YOLOv8n model for real-time, zone-based occupancy detection in a 3×2 grid. The captured frames are resized to 640 × 480 pixels and filtered using a polygonal Region of Interest to analyze the classroom seating area. People are detected within localized bounding boxes using a bottom-centre point; perspective transformation accounts for the camera’s inclination and mounting angle; and each person is assigned to one of the six zones arranged in a logical 3-column, 2-row grid. The multithreaded software architecture includes a dedicated camera acquisition thread that protects the frame buffer, and inference runs on every third frame to maintain real-time responsiveness. Based on the zone-wise occupancy, states are stabilized by state persistence, and ON/OFF decisions are made independently for the fan loads in each zone. The system was evaluated and implemented in a single classroom scenario. The results demonstrate reliable person detection, perspective-corrected zone assignment, and consistent localization of load-control behavior; however, the findings are limited to the evaluated configuration and architecture and are intended to support future extensions toward multi-classroom deployment.
Keywords: Smart classroom, AIoT, vision-based occupancy detection, energy optimization, energy efficiency, sustainable buildings.
References
- P. Chaudhari, Y. Xiao, M. M.-C. Cheng, and T. Li, “Fundamentals, Algorithms, and Technologies of Occupancy Detection for Smart Buildings Using IoT Sensors,” Sensors, vol. 24, no. 7, p. 2123, Mar. 2024, doi: 10.3390/s24072123. https://doi.org/10.3390/s24072123
- I. Khan, O. Zedadra, A. Guerrieri, and G. Spezzano, “Occupancy Prediction in IoT-Enabled Smart Buildings: Technologies, methods, and future directions,” Sensors, vol. 24, no. 11, p. 3276, May 2024, doi: 10.3390/s24113276. https://doi.org/10.3390/s24113276
- K. M. Al-Obaidi, M. Hossain, N. a. M. Alduais, H. S. Al-Duais, H. Omrany, and A. Ghaffarianhoseini, “A review of Using IoT for Energy Efficient Buildings and Cities: A Built Environment Perspective,” Energies, vol. 15, no. 16, p. 5991, Aug. 2022, doi: 10.3390/en15165991. https://doi.org/10.3390/en15165991
- W. Zhang, J. Li, P. W. Tien, and J. K. Calautit, “Vision-based occupancy detection in indoor environments: A comparison of standard RGB and thermal cameras,” Journal of Building Engineering, vol. 114, p. 114215, Oct. 2025, doi: 10.1016/j.jobe.2025.114215. https://doi.org/10.1016/j.jobe.2025.114215
- P. W. Tien, S. Wei, and J. Calautit, “A Computer Vision-Based Occupancy and Equipment Usage Detection Approach for reducing building energy demand,” Energies, vol. 14, no. 1, p. 156, Dec. 2020, doi: 10.3390/en14010156. https://doi.org/10.3390/en14010156
- M. Jia, A. Komeily, Y. Wang, and R. S. Srinivasan, “Adopting Internet of Things for the development of smart buildings: A review of enabling technologies and applications,” Automation in Construction, vol. 101, pp. 111–126, Feb. 2019, doi: 10.1016/j.autcon.2019.01.023. https://doi.org/10.1016/j.autcon.2019.01.023
- Y. Agarwal, B. Balaji, R. Gupta, J. Lyles, M. Wei, and T. Weng, “Occupancy-driven energy management for smart building automation,” in Proceedings of the 2nd ACM Workshop on Embedded Sensing Systems for Energy-Efficiency in Building, 2010, pp. 1–6, doi: 10.1145/1878431.1878433. https://doi.org/10.1145/1878431.1878433
- W. Zhang, J. Calautit, P. W. Tien, Y. Wu, and S. Wei, “Deep learning models for vision-based occupancy detection in high occupancy buildings,” Journal of Building Engineering, vol. 98, p. 111355, Nov. 2024, doi: 10.1016/j.jobe.2024.111355. https://doi.org/10.1016/j.jobe.2024.111355
- J. Redmon, S. Divvala, R. Girshick, and A. Farhadi, “You Only Look Once: Unified, Real-Time Object Detection,” 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 2016, pp. 779–788, doi: 10.1109/CVPR.2016.91. https://doi.org/10.1109/CVPR.2016.91
- S. Ren, K. He, R. Girshick, and J. Sun, “Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 39, no. 6, pp. 1137–1149, June 2017, doi: 10.1109/TPAMI.2016.2577031. https://doi.org/10.1109/TPAMI.2016.2577031
- W. Liu et al., “SSD: Single Shot MultiBox Detector,” in Computer Vision – ECCV 2016, Lecture Notes in Computer Science, vol. 9905, pp. 21–37, 2016, doi: 10.1007/978-3-319-46448-0_2. https://doi.org/10.1007/978-3-319-46448-0_2
- H. H. Nguyen, T. N. Ta, N. C. Nguyen, V. T. Bui, H. M. Pham, and D. M. Nguyen, “YOLO Based Real-Time Human Detection for Smart Video Surveillance at the Edge,” 2020 IEEE Eighth International Conference on Communications and Electronics (ICCE), Phu Quoc Island, Vietnam, 2021, pp. 439–444, doi: 10.1109/ICCE48956.2021.9352144. https://doi.org/10.1109/ICCE48956.2021.9352144
- R. Djehaiche, S. Aidel, A. Sawalmeh, N. Saeed, and A. H. Alenezi, “Adaptive Control of IoT/M2M Devices in Smart Buildings Using Heterogeneous Wireless Networks,” IEEE Sensors Journal, vol. 23, no. 7, pp. 7836–7849, Apr. 2023, doi: 10.1109/JSEN.2023.3247007. https://doi.org/10.1109/JSEN.2023.3247007
- K. Ma and R. Sun, “Introducing WebSocket-Based Real-Time Monitoring System for remote intelligent buildings,” International Journal of Distributed Sensor Networks, vol. 9, no. 12, p. 867693, Dec. 2013, doi: 10.1155/2013/867693. https://doi.org/10.1155/2013/867693
- H. Choi, M. Fujimoto, T. Matsui, S. Misaki, and K. Yasumoto, “Wi-CaL: WiFi Sensing and Machine Learning Based Device-Free Crowd Counting and Localization,” IEEE Access, vol. 10, pp. 24395–24410, 2022, doi: 10.1109/ACCESS.2022.3155812. https://doi.org/10.1109/ACCESS.2022.3155812
- A. I. Golam Mowla, R. Hossain, and Asaduzzaman, “CSI-Based People Counting in WiFi Networks: Leveraging Occupancy Detection,” 2024 IEEE International Conference on Computing, Applications and Systems (COMPAS), Cox's Bazar, Bangladesh, 2024, pp. 1–6, doi: 10.1109/COMPAS60761.2024.10796139. https://doi.org/10.1109/COMPAS60761.2024.10796139
- I. Fette and A. Melnikov, “The WebSocket Protocol,” RFC 6455, Dec. 2011, doi: 10.17487/RFC6455. https://doi.org/10.17487/RFC6455
© 2026 The Author(s). Published by IJERESM. This work is licensed under the Creative Commons Attribution 4.0 International License.
Archiving: All articles are permanently archived in Zenodo IJERESM Community.
