Shaethayine. Ra,*, M.A.H.S. Thathsaranib, Ashvinda Iddamalgodac, Prof. Anuradha Jayakodyd
Shaethayine. R
Depatment of Computer Systems Engineering, Sri Lanka Institude of Information Technology, Malabe, Sri Lanka
a.[email protected], b.[email protected], c.[email protected], d.[email protected]
*Corresponding Author
The rapid proliferation of Internet of Things (IoT) devices and advancements in machine learning (ML) have opened new possibilities for creating intelligent, energy-efficient workplaces. This paper presents the design, implementation, and empirical evaluation of an AI and IoT-enabled smart office system with cloud-based energy optimization. The proposed architecture integrates six ML models a power threshold alert classifier, a power anomaly detector, a dynamic bandwidth allocator, a real-time task classifier, a multi-label issues detection model, and an environmental monitoring model into a unified microservices-based platform. IoT hardware includes the ESP32 microcontroller, PZEM-004T power sensor, DHT22 temperature-humidity sensor, and MQ2 gas sensor constitutes the real-time data acquisition layer. Datasets ranging from 10,000 to 100,000 samples per domain were used for model training. Evaluation demonstrates exceptional performance: Power Model 1 achieved 99.8% classification accuracy, Power Model 2 attained 100% anomaly detection accuracy, the Bandwidth Allocator yielded R² = 1.00, the Task Classifier reached 100% accuracy, the Issues Detection model achieved 100% subset accuracy with zero Hamming loss, and the Environmental Monitor achieved 98.9% accuracy using a Support Vector Machine. A two-week live office pilot confirmed a 22.4% reduction in energy consumption, sub-second alert latency, zero false positives on anomaly detection, and a mean System Usability Scale (SUS) score of 82.5. These findings demonstrate that unified, AI-driven IoT architecture significantly outperforms siloed approaches to smart office energy management.
Internet of Things, Machine Learning, Smart Office, Energy Optimization, Anomaly Detection, Bandwidth Allocation
Shaethayine. R, M.A.H.S. Thathsarani, Ashvinda Iddamalgoda, Prof. Anuradha Jayakody (2026). AI and IoT-Enabled Smart Office System with Cloud-Based Energy Optimization. Journal of Artificial Intelligence and Systems, 8, 60–73. https://doi.org/10.33969/AIS.2026.080104.
[1] S. Yoon, J. Park, and T. Kim, "Energy management in smart office buildings: A review of IoT and AI integration approaches," Energy and Buildings, vol. 267, p. 112158, 2022. doi: 10.1016/j.enbuild.2022.112158.
[2] International Energy Agency, "Buildings – Analysis," IEA, Paris, 2023. [Online]. Available: https://www.iea.org/topics/buildings.
[3] M. Jain, S. Gupta, and A. Sharma, "Siloed vs. integrated IoT architectures for building energy management: A comparative review," Sensors, vol. 22, no. 14, p. 5413, 2022. doi: 10.3390/s22145413.
[4] P. Bhatt, S. Bhatt, and L. George, "Occupancy-based HVAC control using PIR sensors: Early developments and limitations," J. Build. Eng., vol. 30, p. 101218, 2020. doi: 10.1016/j.jobe.2020.101218.
[5] A. Meng, H. Chen, and Z. Li, "Multi-sensor IoT networks for commercial building energy benchmarking," IEEE Internet Things J., vol. 8, no. 12, pp. 9731–9744, 2021. doi: 10.1109/JIOT.2021.3053442.
[6] L. Yang, X. Liu, and W. Chen, "Random forest-based HVAC energy consumption prediction using multi-sensor inputs," Appl. Energy, vol. 292, p. 116876, 2021. doi: 10.1016/j.apenergy.2021.116876.
[7] R. Zhao and J. Liu, "Application-aware bandwidth allocation in enterprise networks using XGBoost classification," IEEE Trans. Netw. Serv. Manag., vol. 19, no. 3, pp. 3021–3034, 2022. doi: 10.1109/TNSM.2022.3140229.
[8] Z. Fang, Y. Wang, and G. Sun, "Autoencoder-based anomaly detection for HVAC system fault diagnosis," Build. Environ., vol. 225, p. 109615, 2022. doi: 10.1016/j.buildenv.2022.109615.
[9] W. Chen, H. Li, and S. Zhang, "Multi-label anomaly detection across power, network, and environmental domains in smart buildings," IEEE Trans. Ind. Inform., vol. 19, no. 1, pp. 512–524, 2023. doi: 10.1109/TII.2022.3149287.
[10] R. Patel, A. Singh, and M. Kumar, "ESP32 as an IoT edge device: Performance evaluation for sensor data acquisition and transmission," Electronics, vol. 11, no. 5, p. 731, 2022. doi: 10.3390/electronics11050731.
[11] X. Huang, L. Zhou, and Q. Zhang, "PZEM-004T-based low-cost power quality monitoring system for office environments," Measurement, vol. 194, p. 110994, 2022. doi: 10.1016/j.measurement.2022.110994.
[12] K. Tran, D. Nguyen, and B. Le, "Comparative analysis of MQTT and REST for IoT telemetry in smart building applications," Future Internet, vol. 14, no. 6, p. 173, 2022. doi: 10.3390/fi14060173.
[13] A. Garg, R. Sharma, and N. Joshi, "Microservices architecture for scalable ML model serving in industrial IoT systems," IEEE Access, vol.10, pp. 54321–54336, 2022. doi: 10.1109/ACCESS.2022.3176012.
[14] J. Lin, C. Luo, and T. Yang, "Controlled simulation of anomalous events for smart building ML dataset augmentation: A methodological review," Sensors, vol. 23, no. 8, p. 4102, 2023. doi: 10.3390/s23084102.
[15] S. Kumar and A. Roy, "Partial integration of IoT energy and security systems for commercial buildings: Lessons from a case study," in Proc. IEEE Int. Conf. Smart Energy Syst. (ICSES), 2023, pp. 1–8. doi: 10.1109/ICSES.2023.10106234.
[16] N. Chawla, K. Bowyer, L. Hall, and W. Kegelmeyer, "SMOTE: Synthetic minority over-sampling technique," J. Artif. Intell. Res., vol. 16, pp. 321–357, 2002. doi: 10.1613/jair.953.
[17] H. Wang, X. Li, and J. Chen, "AI-driven energy optimizations in commercial buildings: A systematic literature review," Renew. Sustain. Energy Rev., vol. 173, p. 113084, 2023. doi: 10.1016/j.rser.2023.113084.
[18] F. Moretti, S. Pizzuti, S. Squartini, and M. Annunziato, "Neural network adaptive control for real-time energy optimizations in smart buildings," IEEE Trans. Ind. Electron., vol. 68, no. 10, pp. 10087– 10097, 2021. doi: 10.1109/TIE.2020.3026285.
[19] M. Alshammari and A. Naseer, "Edge computing for IoT-based smart office energy management: A performance analysis," IEEE Internet Things J., vol. 9, no. 5, pp. 3524–3538, 2022. doi: 10.1109/JIOT.2021.3113512.
[20] S. Singh, P. Gupta, and R. Yadav, "Ensemble methods vs. deep learning for tabular IoT sensor data classification: A comparative study," Expert Syst. Appl., vol. 210, p. 118449, 2022. doi: 10.1016/j.eswa.2022.118449.
[21] Global Industry Analysts, Smart Office Market – Global Industry Perspectives, Comprehensive Analysis and Forecast 2023–2030. San Jose, CA: GIA, 2023.
[22] J. Brooke, "SUS: A 'quick and dirty' usability scale," in Usability Evaluation in Industry, P. W. Jordan et al., Eds. London: Taylor & Francis, 1996, pp. 189–194.
[23] Dept. for Energy Security and Net Zero, "Energy Consumption in the UK 2023," DESNZ, London, 2023. [Online]. Available: https://www.gov.uk/government/statistics/energy-consumption-in- the-uk.
[24] A. Beloglazov, R. Buyya, Y. Lee, and A. Zomaya, "A taxonomy and survey of energy-efficient data centers and cloud computing systems," Adv. Comput., vol. 82, pp. 47–111, 2011. doi: 10.1016/B978-0-12- 385512-1.00003-7.
[25] J. Allen et al., "Associations of cognitive function scores with carbon dioxide, ventilation, and volatile organic compound exposures in office workers," Environ. Health Perspect., vol. 124, no. 6, pp. 805–812, 2016. doi: 10.1289/ehp.1510037.
[26] T. Li, A. Sahu, A. Talwalkar, and V. Smith, "Federated learning: Challenges, methods, and future directions," IEEE Signal Process. Mag., vol. 37, no. 3, pp. 50–60, 2020. doi: 10.1109/MSP.2020.2975749.
[27] H. Merz, T. Hansemann, and C. Hubner, Building Automation: Communication Systems with EIB/KNX, LON and BACnet, 2nd ed. Berlin: Springer, 2018. doi: 10.1007/978-3-319-73223-3.
[28] S. Banbury et al., "Benchmarking TinyML systems: Challenges and direction," in Proc. 3rd MLSys Workshop on MLOps, 2020. [Online]. Available: https://arxiv.org/abs/2003.04821.
[29] A. Hajduk and M. Morawski, "IoT-based environmental monitoring in smart offices: Sensor selection and deployment strategies," Electronics, vol. 12, no. 3, p. 567, 2023. doi: 10.3390/electronics12030567.
[30] D. Mocrii, Y. Chen, and P. Musilek, "IoT-based smart homes: A review of system architecture, software, communications, privacy and security," Internet Things, vol. 1–2, pp. 81–98, 2018. doi: 10.1016/j.iot.2018.08.009.