Smart Electricity Consumption Analysis and Short-Term Prediction System Using Java and MySQL

Uncategorized

Authors: Sahil Shashikant Mahabdi, Dr. Deepak Singh

Abstract: Household electricity use rises and falls with daily routines, the appliances in use, who is at home, the weather, and much else. Without a clear record of readings over time, it is hard for a household to notice when its consumption has changed or to guess what it will need next. This paper proposes a lightweight Smart Electricity Consumption Analysis and Short-Term Prediction System built with Core Java and MySQL. The application stores timestamped readings, works out daily and monthly consumption, and presents usage summaries. It flags unusually high readings with a simple historical-threshold rule and estimates near-term consumption with a moving-average baseline. JDBC links the Java code to the MySQL database, and Java Swing provides the desktop interface. The forecasting component is compared with a simple persistence baseline using Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and Mean Absolute Percentage Error (MAPE). Alert quality is judged on labelled test cases using precision, recall, and F1-score. Household load forecasting and appliance-level anomaly detection have already been studied with statistical and machine-learning methods, so this work does not claim to invent electricity forecasting. Its contribution is a low-cost, explainable implementation, together with an empirical evaluation of consumption summaries, simple prediction, and easy-to-understand alerts inside a Java–MySQL application. Results are reported on a synthetic dataset generated for prototype validation; evaluation on real household data is still needed.

DOI: https://doi.org/10.5281/zenodo.24553874

× How can I help you?