Binbusayyis Adel, Sha Mohemmed
Department of Software Engineering, College of Computer Engineering and Sciences, Prince Sattam bin Abdulaziz University, Saudi Arabia.
Heliyon. 2024 Dec 31;11(1):e41507. doi: 10.1016/j.heliyon.2024.e41507. eCollection 2025 Jan 15.
The prediction of energy consumption in households is essential due to the reliance on electrical appliances for daily activities. Accurate assessment of energy demand is crucial for effective energy generation, preventing overloads and optimizing energy storage. Traditional techniques have limitations in accuracy and error rates, necessitating advancements in prediction techniques. To enhance prediction accuracy, a proposed smart city system utilizes the Household Energy Consumption dataset, employing deep learning algorithms. In the beginning, data pre-processing addresses missing values and performs feature scaling for normalizing independent variables. Followed by that, Modified Deep CNN-Bi-LSTM (Convolutional Neural Network and Bi-directional Long Short Term Memory) with attention mechanism is utilized for regression which extracts temporal and spatial complex features. Deep CNN extracts features impacting energy consumption whereas Bi-LSTM with attention layer finds suitability for regression as it is capable of modelling irregular trends in the time-series components, where the attention mechanism is implemented to enhance the decoder's ability to selectively focus on the most relevant segments of the input sequence. This is achieved through a weighted integration of all encoded input trajectories, allowing the model to dynamically emphasize the vectors that carry the highest significance for accurate predictions. Based on regression outcomes from analysis taken in hourly, daily and monthly time intervals, enhanced prediction accuracy is estimated through evaluation metrics such as MSE (Mean Square Error), MAPE (Mean Absolute Percentage Error) and RMSE (Root Mean Square Error) which determines the efficacy of the system, where Specifically, the proposed model achieves MSE of 0.123, MAE of 0.22, and MAPE of 324.12. Furthermore, this model demonstrates a training time of 692.12 s and a prediction time of just 1.87 s. Therefore, present research highlights the critical need for accurate energy consumption prediction in households, driven by the increasing reliance on electrical appliances in daily life.
由于日常活动依赖电器,家庭能源消耗预测至关重要。准确评估能源需求对于有效发电、防止过载和优化储能至关重要。传统技术在准确性和错误率方面存在局限性,因此需要改进预测技术。为了提高预测准确性,一个提议的智慧城市系统利用家庭能源消耗数据集,采用深度学习算法。首先,数据预处理解决缺失值问题,并对自变量进行特征缩放以进行归一化。随后,利用带有注意力机制的改进深度卷积神经网络-双向长短期记忆(Convolutional Neural Network and Bi-directional Long Short Term Memory,简称Deep CNN-Bi-LSTM)进行回归,该方法可提取时间和空间复杂特征。深度卷积神经网络提取影响能源消耗的特征,而带有注意力层的双向长短期记忆适合进行回归,因为它能够对时间序列组件中的不规则趋势进行建模,其中注意力机制的实现是为了增强解码器有选择地关注输入序列最相关部分的能力。这是通过对所有编码输入轨迹进行加权积分来实现的,使模型能够动态强调对准确预测具有最高重要性的向量。基于每小时、每天和每月时间间隔的分析回归结果,通过均方误差(Mean Square Error,简称MSE)、平均绝对百分比误差(Mean Absolute Percentage Error,简称MAPE)和均方根误差(Root Mean Square Error,简称RMSE)等评估指标估计增强的预测准确性,这些指标决定了系统的有效性,具体而言,所提出的模型实现了0.123的MSE、0.22的平均绝对误差(Mean Absolute Error,简称MAE)和324.12的MAPE。此外,该模型的训练时间为692.12秒,预测时间仅为1.87秒。因此,当前研究强调了由于日常生活中对电器的依赖增加,家庭准确能源消耗预测的迫切需求。