Electrical load forecasting provides knowledge about future consumption and generation of electricity. There is a high level of fluctuation behavior between energy generation and consumption. Sometimes, the energy demand of the consumer becomes higher than the energy already generated, and vice versa. Electricity load forecasting provides a monitoring framework for future energy generation, consumption, and making a balance between them. In this paper, we propose a framework, in which deep learning and supervised machine learning techniques are implemented for electricity-load forecasting. A three-step model is proposed, which includes: feature selection, extraction, and classification. The hybrid of Random Forest (RF) and Extreme Gradient Boosting (XGB) is used to calculate features’ importance. The average feature importance of hybrid techniques selects the most relevant and high importance features in the feature selection method. The Recursive Feature Elimination (RFE) method is used to eliminate the irrelevant features in the feature extraction method. The load forecasting is performed with Support Vector Machines (SVM) and a hybrid of Gated Recurrent Units (GRU) and Convolutional Neural Networks (CNN). The meta-heuristic algorithms, i.e., Grey Wolf Optimization (GWO) and Earth Worm Optimization (EWO) are applied to tune the hyper-parameters of SVM and CNN-GRU, respectively. The accuracy of our enhanced techniques CNN-GRU-EWO and SVM-GWO is 96.33% and 90.67%, respectively. Our proposed techniques CNN-GRU-EWO and SVM-GWO perform 7% and 3% better than the State-Of-The-Art (SOTA). In the end, a comparison with SOTA techniques is performed to show the improvement of the proposed techniques. This comparison showed that the proposed technique performs well and results in the lowest performance error rates and highest accuracy rates as compared to other techniques.
In the smart grid (SG), user consumption data are increasing very rapidly. Some users consume electricity legally, while others steal it. Electricity theft causes significant damage to power grids, affects power supply efficiency, and reduces utility revenues. This study helps utilities reduce the problems of electricity theft, inefficient electricity monitoring, and abnormal electricity consumption in smart grids. To this end, an electricity theft dataset from the state grid corporation of China (SGCC) is employed and this study develops a novel model, a mixture of convolutional neural network and gated recurrent unit (CNN-GRU), for automatic power theft detection. Moreover, the hyperparameters of the proposed model are tuned using a meta-heuristic method, the cuckoo search (CS) algorithm. The class imbalance problem is solved using the synthetic minority oversampling technique (SMOTE). The clean data are trained and then tested with the proposed classification. Extensive simulations are performed based on real energy consumption data. The simulated results show that the proposed theft detection model (CNN-GRU-CS) solved the theft classification problem better than other approaches in terms of effectiveness and accuracy by 10% on average. The calculated accuracy of the proposed method is 92% and the precision is 94%.