Electricity Bill Prediction Based on a Particle Swarm Optimized Multilayer Perceptron Model
Received: 27 August 2025 | Revised: 7 September 2025 | Accepted: 16 September 2025 | Online: 8 December 2025
Corresponding author: Ahmed Fahim
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 MLPDownloads
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
License
Copyright (c) 2025 Ahmed Fahim, Ahmed M. Osman, Zahraa Tarek, Ahmed M. Elshewey

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.
