The Indonesian Journal of Computer Science
Vol. 14 No. 6 (2025): The Indonesian Journal of Computer Science

Development of an LSTM-Based Power Monitoring and Prediction System for Campus Electrical Facilities Using ESP32 and PM2120

Sholikhah, Evi Nafiatus (Unknown)
Oktavia Rizqi Kurniawan (Unknown)
Dimas Pristovani Riananda (Unknown)
Mustika Kurnia Mayangsari (Unknown)
Rohmad Hadi Handayani (Unknown)



Article Info

Publish Date
03 Dec 2025

Abstract

This study develops a data acquisition system for monitoring, detecting, and forecasting electrical energy consumption to support efficient energy management. Electrical parameters such as voltage, current, and power are measured using a PM2120 power meter via Modbus RTU RS485 and processed by an ESP32 microcontroller. The data are displayed in real-time through a Nextion Human-Machine Interface (HMI) and utilized as input for a Long Short-Term Memory (LSTM) model trained on historical consumption data. Safety features include LED indicators that activate when current reaches 80% of maximum capacity and a buzzer that signals threshold violations. Experimental results demonstrate high prediction accuracy, with RMSE values of 0.38 kW (5.32%) for phase R, 0.47 kW (7.55%) for phase S, and 0.28 kW (5.39%) for phase T. Transmission latency averages two to three seconds, while prediction computation is under 10 seconds. The system effectively reflects consumption trends, making it a reliable decision-support tool for enhancing energy efficiency in small- to medium-scale installations.

Copyrights © 2025






Journal Info

Abbrev

ijcs

Publisher

Subject

Computer Science & IT Electrical & Electronics Engineering Engineering

Description

The Indonesian Journal of Computer Science (IJCS) is a bimonthly peer-reviewed journal published by AI Society and STMIK Indonesia. IJCS editions will be published at the end of February, April, June, August, October and December. The scope of IJCS includes general computer science, information ...