{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,8]],"date-time":"2026-03-08T14:17:52Z","timestamp":1772979472684,"version":"3.50.1"},"reference-count":44,"publisher":"MDPI AG","issue":"5","license":[{"start":{"date-parts":[[2026,3,6]],"date-time":"2026-03-06T00:00:00Z","timestamp":1772755200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100021680","name":"NOVA LINCS","doi-asserted-by":"crossref","award":["UID\/04516\/2025"],"award-info":[{"award-number":["UID\/04516\/2025"]}],"id":[{"id":"10.13039\/501100021680","id-type":"DOI","asserted-by":"crossref"}]},{"name":"European Union through the FEDER"},{"name":"INTERREG programs","award":["AGERAR+ (0091_AGERAR_PLUS_6_E)"],"award-info":[{"award-number":["AGERAR+ (0091_AGERAR_PLUS_6_E)"]}]},{"name":"INTERREG programs","award":["CEL_RURAL (0081_CEL_RURAL_6_E_V3)"],"award-info":[{"award-number":["CEL_RURAL (0081_CEL_RURAL_6_E_V3)"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sustainability"],"abstract":"<jats:p>The transition towards sustainable educational campuses requires robust energy management strategies that integrate operational oversight with advanced analytics. This paper presents a campus-scale electricity monitoring system at the University of Algarve, designed to support the institution\u2019s sustainability goals through continuous monitoring, data reliability, portability, and scalability to handle concurrent high-frequency campus-wide telemetry. The system consolidates heterogeneous meters into a unified platform, enabling precise tracking of energy consumption and photovoltaic generation. Beyond operational efficiency, the platform incorporates a data-driven analytical layer featuring short-term forecasting using Prophet, chosen for its computational scalability, and a hybrid anomaly detection scheme combining forecast residuals with Isolation Forest. These capabilities facilitate the early identification of waste and abnormal consumption patterns, directly contributing to energy conservation and carbon footprint reduction. Validated across multiple buildings, the system demonstrates both portability to different energy profiles and high data continuity, reducing the cognitive load on facility managers. By providing a reproducible blueprint for intelligent energy monitoring, this work supports institutions in their pursuit of energy efficiency and sustainable development, aligning operational practices with broader environmental objectives.<\/jats:p>","DOI":"10.3390\/su18052589","type":"journal-article","created":{"date-parts":[[2026,3,6]],"date-time":"2026-03-06T13:00:02Z","timestamp":1772802002000},"page":"2589","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Smart Energy Monitoring for Sustainable Campuses: A Hybrid Anomaly Detection Approach Based on Prophet and Isolation Forest"],"prefix":"10.3390","volume":"18","author":[{"ORCID":"https:\/\/orcid.org\/0009-0004-5246-9027","authenticated-orcid":false,"given":"\u00c2ngelo","family":"Sousa","sequence":"first","affiliation":[{"name":"ISE, Universidade do Algarve, 8005-139 Faro, Portugal"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-4803-7964","authenticated-orcid":false,"given":"Pedro J. S.","family":"Cardoso","sequence":"additional","affiliation":[{"name":"ISE, Universidade do Algarve, 8005-139 Faro, Portugal"},{"name":"NOVA LINCS, Universidade do Algarve, 8005-139 Faro, Portugal"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4203-1679","authenticated-orcid":false,"given":"J\u00e2nio","family":"Monteiro","sequence":"additional","affiliation":[{"name":"ISE, Universidade do Algarve, 8005-139 Faro, Portugal"},{"name":"CISCA, Universidade do Algarve, 8005-139 Faro, Portugal"}]}],"member":"1968","published-online":{"date-parts":[[2026,3,6]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Moura, P., Moreno, J.I., L\u00f3pez L\u00f3pez, G., and Alvarez-Campana, M. (2021). IoT Platform for Energy Sustainability in University Campuses. Sensors, 21.","DOI":"10.3390\/s21020357"},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Amaxilatis, D., Akrivopoulos, O., Mylonas, G., and Chatzigiannakis, I. (2017). An IoT-Based Solution for Monitoring a Fleet of Educational Buildings Focusing on Energy Efficiency. Sensors, 17.","DOI":"10.3390\/s17102296"},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Quispe, E.C., Viveros Mira, M., Chamorro D\u00edaz, M., Castrill\u00f3n Mendoza, R., and Vidal Medina, J.R. (2025). Energy Management Systems in Higher Education Institutions\u2019 Buildings. Energies, 18.","DOI":"10.3390\/en18071810"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"115512","DOI":"10.1016\/j.enbuild.2025.115512","article-title":"Optimization of PV and battery systems in university campuses: A combined planning and operation approach under uncertainties","volume":"335","author":"Furukakoi","year":"2025","journal-title":"Energy Build."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"191","DOI":"10.1016\/j.enbuild.2017.02.058","article-title":"An ensemble learning framework for anomaly detection in building energy consumption","volume":"144","author":"Araya","year":"2017","journal-title":"Energy Build."},{"key":"ref_6","doi-asserted-by":"crossref","unstructured":"Billanes, J.D., Ma, Z.G., and J\u00f8rgensen, B.N. (2025). Data-Driven Technologies for Energy Optimization in Smart Buildings: A Scoping Review. Energies, 18.","DOI":"10.3390\/en18020290"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Liu, H., Liang, J., Liu, Y., and Wu, H. (2023). A Review of Data-Driven Building Energy Prediction. Buildings, 13.","DOI":"10.3390\/buildings13020532"},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Swaminathan, S., Wang, X., Zhou, B., and Baldi, S. (2018). A University Building Test Case for Occupancy-Based Building Automation. Energies, 11.","DOI":"10.3390\/en11113145"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"493","DOI":"10.1016\/j.enbuild.2014.08.017","article-title":"Effects of real-time eco-feedback and organizational network dynamics on energy efficient behavior in commercial buildings","volume":"84","author":"Gulbinas","year":"2014","journal-title":"Energy Build."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"35","DOI":"10.1038\/s41560-018-0282-1","article-title":"Real-time feedback promotes energy conservation in the absence of volunteer selection bias and monetary incentives","volume":"4","author":"Tiefenbeck","year":"2018","journal-title":"Nat. Energy"},{"key":"ref_11","unstructured":"United Nations (2026, January 06). The 17 Sustainable Development Goals. Available online: https:\/\/sdgs.un.org\/goals."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"152","DOI":"10.1016\/j.enbuild.2012.12.020","article-title":"Power monitoring system for university buildings: Architecture and advanced analysis tools","volume":"59","author":"Fuertes","year":"2013","journal-title":"Energy Build."},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Dat, M.N., Trung, K.D., Minh, P.V., Van, C.D., Tran, Q.T., and Ngoc, T.N. (2023). Assessment of energy efficiency using an energy monitoring system: A case study of a major energy-consuming enterprise in Vietnam. Energies, 16.","DOI":"10.3390\/en16135214"},{"key":"ref_14","unstructured":"(2019). Energy Measurement and Monitoring Plan (Standard No. EN 17267:2019). Technical Report."},{"key":"ref_15","unstructured":"Modbus Organization (2006). Modbus Application Protocol Specification V1.1b3, Modbus Organization. Available online: https:\/\/www.modbus.org\/modbus-specifications."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Fielding, R.T., Nottingham, M., and Reschke, J. (2022). HTTP Semantics, Internet Engineering Task Force (IETF). RFC 9110.","DOI":"10.17487\/RFC9110"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Bray, T. (2017). The JavaScript Object Notation (JSON) Data Interchange Format, Internet Engineering Task Force (IETF). RFC 8259.","DOI":"10.17487\/RFC8259"},{"key":"ref_18","unstructured":"Fielding, R.T. (2000). Architectural Styles and the Design of Network-Based Software Architectures. [Ph.D. Thesis, University of California]."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Manowska, A., Wycisk, A., Nowrot, A., and Pielot, J. (2023). The use of the MQTT protocol in measurement, monitoring and control systems as part of the implementation of energy management systems. Electronics, 12.","DOI":"10.3390\/electronics12010017"},{"key":"ref_20","unstructured":"(2016). Information Technology\u2014Message Queuing Telemetry Transport (MQTT) v3.1.1 (Standard No. ISO\/IEC 20922:2016). Technical Report; ISO\/IEC JTC 1."},{"key":"ref_21","unstructured":"OpenEnergyMonitor (2025, October 17). EmonCMS User Guide. Available online: https:\/\/docs.openenergymonitor.org\/emoncms\/index.html."},{"key":"ref_22","unstructured":"(2025, October 17). Home Assistant. Energy Management with Home Assistant. Available online: https:\/\/www.home-assistant.io\/docs\/energy\/."},{"key":"ref_23","unstructured":"MathWorks (2025, October 17). ThingSpeak IoT Analytics Platform. Available online: https:\/\/thingspeak.com."},{"key":"ref_24","unstructured":"Arduino (2025, October 17). Arduino Internet of Things Cloud. Available online: https:\/\/cloud.arduino.cc\/."},{"key":"ref_25","unstructured":"Grafana Labs (2025, October 17). Grafana Documentation. Available online: https:\/\/grafana.com\/docs\/grafana\/latest\/."},{"key":"ref_26","unstructured":"PostgreSQL Global Development Group (2025, October 17). PostgreSQL Documentation. Available online: https:\/\/www.postgresql.org\/docs\/current\/."},{"key":"#cr-split#-ref_27.1","unstructured":"European Union (2019). Directive"},{"key":"#cr-split#-ref_27.2","unstructured":"(EU) 2019\/944 of the European Parliament and of the Council of 5 June 2019 on common rules for the internal market for electricity and amending Directive 2012\/27\/EU. Off. J. Eur. Union, 158, 125-199."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"1131","DOI":"10.1057\/s41274-016-0149-4","article-title":"A literature review on dynamic pricing of electricity","volume":"68","author":"Dutta","year":"2017","journal-title":"J. Oper. Res. Soc."},{"key":"ref_29","unstructured":"ERSE (2025, October 17). Tarifas e Pre\u00e7os para a Energia El\u00e9trica e Outros Servi\u00e7os em 2025. Available online: https:\/\/www.erse.pt\/media\/xczdo4as\/tep-se-2025.pdf."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"381","DOI":"10.1016\/j.esd.2023.04.017","article-title":"Energy modeling and predictive control of environmental quality for building energy management using machine learning","volume":"74","author":"Faiz","year":"2023","journal-title":"Energy Sustain. Dev."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"107370","DOI":"10.1016\/j.tej.2024.107370","article-title":"A Transformer based approach to electricity load forecasting","volume":"37","author":"Chan","year":"2024","journal-title":"Electr. J."},{"key":"ref_32","doi-asserted-by":"crossref","unstructured":"Albahli, S. (2025). LSTM vs. Prophet: Achieving Superior Accuracy in Dynamic Electricity Demand Forecasting. Energies, 18.","DOI":"10.3390\/en18020278"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"37","DOI":"10.1080\/00031305.2017.1380080","article-title":"Forecasting at Scale","volume":"72","author":"Taylor","year":"2018","journal-title":"Am. Stat."},{"key":"ref_34","unstructured":"Taylor, S.J., and Letham, B. (2025, October 17). Prophet: Forecasting at Scale. Available online: https:\/\/facebook.github.io\/prophet\/."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"100292","DOI":"10.1016\/j.egyai.2023.100292","article-title":"Attention boosted autoencoder for building energy anomaly detection","volume":"14","author":"Pydi","year":"2023","journal-title":"Energy AI"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"751","DOI":"10.1007\/s42979-024-03113-8","article-title":"Machine Learning-Based Energy Optimization and Anomaly Detection for Heterogeneous Wireless Sensor Network","volume":"5","author":"Sharma","year":"2024","journal-title":"SN Comput. Sci."},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Yifei, S., Bo, F., Jieying, K., and Lai, Z. (2022). Electricity Consumption Behavior Analysis Based on DE-DBSCAN. Proceedings of the 2022 4th International Conference on Electrical Engineering and Control Technologies (CEECT), IEEE.","DOI":"10.1109\/CEECT55960.2022.10030657"},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Mendes, T., Cardoso, P.J.S., Monteiro, J., and Raposo, J. (2023). Anomaly detection of consumption in hotel units: A case study comparing isolation forest and variational autoencoder algorithms. Appl. Sci., 13.","DOI":"10.3390\/app13010314"},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Liu, F.T., Ting, K.M., and Zhou, Z.H. (2008). Isolation Forest. Proceedings of the 2008 Eighth IEEE International Conference on Data Mining, IEEE.","DOI":"10.1109\/ICDM.2008.17"},{"key":"ref_40","unstructured":"Solar-Log GmbH (2025, October 30). Solar-Log Base Manual 5.x. Available online: https:\/\/www.solar-log.com\/fileadmin\/user_upload\/documents\/Handbuecher_und_Inlet\/en_GB\/SolarLog_Base_Manual_5_x_EN.pdf."},{"key":"ref_41","unstructured":"Open-Meteo (2025, October 30). Weather Forecast API Documentation. Available online: https:\/\/open-meteo.com\/en\/docs."},{"key":"ref_42","unstructured":"Arm Research (2025, October 17). Mango: Parallel Hyperparameter Tuning Library\u2014Documentation. Available online: https:\/\/arm-mango.readthedocs.io\/."},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"764","DOI":"10.1016\/j.jesp.2013.03.013","article-title":"Detecting outliers: Do not use standard deviation around the mean, use absolute deviation around the median","volume":"49","author":"Leys","year":"2013","journal-title":"J. Exp. Soc. Psychol."}],"container-title":["Sustainability"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2071-1050\/18\/5\/2589\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,3,8]],"date-time":"2026-03-08T05:30:28Z","timestamp":1772947828000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2071-1050\/18\/5\/2589"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,3,6]]},"references-count":44,"journal-issue":{"issue":"5","published-online":{"date-parts":[[2026,3]]}},"alternative-id":["su18052589"],"URL":"https:\/\/doi.org\/10.3390\/su18052589","relation":{},"ISSN":["2071-1050"],"issn-type":[{"value":"2071-1050","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,3,6]]}}}