Electricity Bill Prediction Based on a Particle Swarm Optimized Multilayer Perceptron Model

Authors

  • Ahmed Fahim Department of Computer Science, College of Computer Engineering and Sciences, Prince Sattam Bin Abdulaziz University, Al-Kharj, Saudi Arabia | Department of Computer Science, Faculty of Computers and Information, Suez University, Suez, Egypt
  • Ahmed M. Osman Department of Information Systems, Faculty of Computers and Information, Suez University, Suez, Egypt https://orcid.org/0009-0002-0527-533X
  • Zahraa Tarek Department of Computer Engineering and Information, College of Engineering, Wadi Ad Dwaser, Prince Sattam Bin Abdulaziz University, Al-Kharj, Saudi Arabia | Computer Science Department, Faculty of Computers and Information, Mansoura University, Mansoura, Egypt
  • Ahmed M. Elshewey Department of Computer Science, Faculty of Computers and Information, Suez University, P.O.Box:43221, Suez, Egypt | Applied Science Research Center, Applied Science Private University, Amman, Jordan https://orcid.org/0000-0002-3048-1920
Volume: 15 | Issue: 6 | Pages: 29515-29522 | December 2025 | https://doi.org/10.48084/etasr.14361

Abstract

Accurate household electricity bill prediction enables better budgeting for consumers and data-driven planning for utilities. This study develops and benchmarks five deep learning models on a publicly available Indian household electricity bill dataset that combines appliance usage and socio-demographic attributes. We propose a Particle Swarm Optimized Multilayer Perceptron (PSO-MLP) model that tunes network depth, width, learning rate, and regularization via Particle Swarm Optimization (PSO), and compare it against plain Multilayer Perceptron (MLP), Gated Recurrent Unit (GRU), Long Short-Term Memory (LSTM), and Recurrent Neural Network (RNN) architectures. The pipeline includes robust preprocessing (median imputation, scaling, and one-hot encoding), leakage-safe training/testing, and a comprehensive evaluation suite comprising Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), Mean Squared Error (MSE), coefficient of determination (R2), and Median Absolute Error (MedAE). Results show a near-deterministic fit: PSO-MLP achieves MAE=10.22, RMSE=12.99, MSE=168.92, R2=0.9998 MedAE=8.43; and a plain MLP attains MAE=10.29 with a similar R2, whereas recurrent models provide no advantage on this non-sequential, tabular task (RNN MAE=23.03). Error distributions confirm stable performance across the bill range with minimal bias. These findings indicate that carefully regularized feed-forward models—augmented with principled hyperparameter optimization—suffice to model household bills with very high fidelity, whereas more complex sequence models are unnecessary. The proposed framework offers a strong baseline for tariff-aware extensions and deployment-grade forecasting in Indian residential settings.

Keywords:

electricity bill prediction, deep learning, PSO, MLP, optimized MLP

Downloads

Download data is not yet available.

References

P. P. K. Reddy, N. P. G. Bhavani, and J. F. Roseline, "Prediction of locational electricity marginal prices with improved accuracy by using the Lasso algorithm over linear regression algorithm," in Applications of Mathematics in Science and Technology, 1st ed., B. T. Hung, M. Sekar, A. ESI, and R. S. Kumar, Eds. Boca Raton, FL, USA: CRC Press, 2025, pp. 670–674. DOI: https://doi.org/10.1201/9781003606659-129

T. V. Harshavardhan and S. Loganayagi, "Household electricity bill prediction using random forest algorithm over support vector machine algorithm with improved accuracy," in Recent Innovations in Sciences and Humanities, 1st ed., M. Priya and V. Anandan, Eds. Boca Raton, FL, USA: CRC Press, 2025, pp. 206–212. DOI: https://doi.org/10.1201/9781003606611-34

T. Zhu et al., "Electricity Bill Recovery Risk Prediction Based on Machine Learning Algorithm," Procedia Computer Science, vol. 262, pp. 1267–1273, Jan. 2025. DOI: https://doi.org/10.1016/j.procs.2025.05.169

P. Lazzeroni, G. Lorenti, and M. Repetto, "A Data-Driven Approach to Predict Hourly Load Profiles From Time-of-Use Electricity Bills," IEEE Access, vol. 11, pp. 60501–60515, 2023. DOI: https://doi.org/10.1109/ACCESS.2023.3286020

J. Han, L. Yu, A. Li, Y. Jiang, and H. Lv, "Artificial Intelligence Based Risk Prediction System for Electricity Bill Recovery," in 2024 Third International Conference on Distributed Computing and Electrical Circuits and Electronics, Ballari, India, 2024, pp. 1–5. DOI: https://doi.org/10.1109/ICDCECE60827.2024.10548630

W. N. H. W. A. Hadi, R. A. Rashid, M. A. Sarijari, S. Z. A. Hamid, and N. A. Muhammad, "Machine Learning Bill Prediction for IoT-based Utility Management System," in 2022 IEEE 6th International Symposium on Telecommunication Technologies, Johor Bahru, Malaysia, 2022, pp. 74–78. DOI: https://doi.org/10.1109/ISTT56288.2022.9966533

H. Dineep, M. Kamalesh, A. Prasanna T, A. Kk, S. K, and J. Kannan R, "Household Energy Bill Prediction Using Various Machine Learning Techniques." Social Science Research Network, Rochester, NY, Mar. 18, 2025. DOI: https://doi.org/10.2139/ssrn.5183320

M. S. Mahmud and M. H. Chowdhury, "A Smart System for Monthly Electrical Energy Consumption Prediction Using Machine Learning," International Journal of Information Engineering and Electronic Business, vol. 16, no. 6, pp. 42–61, Dec. 2024. DOI: https://doi.org/10.5815/ijieeb.2024.06.04

M. Gholamnia, N. Eslamirad, P. Sajadi, S. Masoumi, H. Shahabi, and F. Pilla, "Dynamic electricity pricing model with hourly and monthly adjustments: A time series-based approach," Energy Reports, vol. 13, pp. 5238–5251, Jun. 2025. DOI: https://doi.org/10.1016/j.egyr.2025.04.058

S. Zairi and M. Freihat, "Electric Load Forecasting using Machine Learning for Peak Demand Management in Smart Grids," Engineering, Technology & Applied Science Research, vol. 15, no. 3, pp. 23335–23346, Jun. 2025. DOI: https://doi.org/10.48084/etasr.10687

Suraj, "Indian Household Electricity Consumption Dataset." Kaggle. Available: https://www.kaggle.com/datasets/suraj520/indian-household-electricity-bill.

A. G. Gad, "Particle Swarm Optimization Algorithm and Its Applications: A Systematic Review," Archives of Computational Methods in Engineering, vol. 29, no. 5, pp. 2531–2561, Aug. 2022. DOI: https://doi.org/10.1007/s11831-021-09694-4

M. Al-Rajab and S. Loucif, "Sustainable EnergySense: a predictive machine learning framework for optimizing residential electricity consumption," Discover Sustainability, vol. 5, no. 1, Apr. 2024, Art. no. 55. DOI: https://doi.org/10.1007/s43621-024-00243-0

Downloads

How to Cite

[1]
A. Fahim, A. M. Osman, Z. Tarek, and A. M. Elshewey, “Electricity Bill Prediction Based on a Particle Swarm Optimized Multilayer Perceptron Model”, Eng. Technol. Appl. Sci. Res., vol. 15, no. 6, pp. 29515–29522, Dec. 2025.

Metrics

Abstract Views: 270
PDF Downloads: 212

Metrics Information