Improving the Efﬁciency and Sustainability of Intelligent Electricity Inspection: IMFO-ELM Algorithm for Load Forecasting

: Electricity inspection is important to support sustainable development and is core to the marketing of electric power. In addition, it contributes to the effective management of power companies and to their ﬁnancial performance. Continuous improvement in the penetration rate of new energy generation can improve environmental standards and promote sustainable development, but creates challenges for electricity inspection. Traditional electricity inspection methods are time-consuming and quite inefﬁcient, which hinders the sustainable development of power ﬁrms. In this paper, a load-forecasting model based on an improved moth-ﬂame-algorithm-optimized extreme learning machine (IMFO-ELM) is proposed for use in electricity inspection. A chaotic map and improved linear decreasing weight are introduced to improve the convergence ability of the traditional moth-ﬂame algorithm to obtain optimal parameters for the ELM. Abnormal data points are screened out to determine the causes of abnormal occurrences by analyzing the model prediction results and the user’s actual power consumption. The results show that, compared with existing PSO-ELM and MFO-ELM models, the root mean square error of the proposed model is reduced by at least 1.92% under the same conditions, which supports application of the IMFO-ELM model in electricity inspection. The proposed power-load-forecasting-based abnormal data detection method can improve the efﬁciency of electricity inspection, enhance user experience, contribute to the intelligence level of power ﬁrms and promote their sustainable development. model and the MFO_ELM model. In addition, the degree of ﬁtting was higher. The test results show that the proposed method can effectively deal with non-linearity and uncertainty in the power load because of the superior convergence performance of the IMFO algorithm, resulting in improvement in the stability of prediction of the ELM model. The power inspection method based on load forecasting improves the ability to deal with uncertainty in the power load, thereby improving the ability to detect abnormal loads and, thus, enhancing the efﬁciency and sustainability of power inspection.


Introduction
New energy power generation has the advantages of being green, clean and sustainable, which is important for alleviating power shortages and protecting the environment. However, the high permeability of new energy generation has an impact on the stability of the power system, which increases the difficulty of abnormal load detection. An efficient power inspection method can improve the detection accuracy of abnormal conformity, reduce operating costs and promote the sustainable development of power firms. At the same time, improving the efficiency of electricity inspection can also improve service quality and enhance user experience. Many power firms have pursued ways of improving the sustainability of intelligent electricity inspection and reducing economic losses, such as by modifying lines, introducing high-tech power-stealing devices, and changing the performance of electric energy meters [1,2]. In addition, the costs of installing inspection equipment in some areas where electricity consumption is not concentrated, as well as the low efficiency of human inspection and waste of resources, have contributed to the challenges of electricity inspection [3]. Therefore, this study aims to improve the economy of electricity inspection and promote the sustainable development of power firms based on an improved moth-flame-algorithm-optimized extreme learning machine (ELM).
Information technology is being used to promote the development of power grids in the direction of digitization and informatization in contrast to the time-consuming and low-efficiency use of traditional manual meter-reading inspections [4]. At present, electricity inspection methods are usually based on the use of electric energy measurement technology with a high degree of automation. The measurement device converts electric power into an electric energy value to enable remote monitoring, which greatly reduces the use of human resources [5]. For example, England et al. [6] proposed a new Internet-based advanced measurement and control infrastructure, which enables real-time smart-grid load monitoring and control without delay. However, this method requires increase in the practical network bandwidth, which is expensive. To address this, Yip et al. [7] introduced loss factors and error terms in distribution lines and transformers, respectively, to estimate the extent of technical losses and capture measurement noise to identify potential energy fraud and the location of faulty meters at low cost. However, the system is difficult to operate. In addition, the volume of data collected by the power metering device is huge and the data diverse, which creates challenges for electricity inspection [8][9][10]. To solve this problem, it is argued here that the introduction of data analysis and data mining based on the application of electricity metering technique, intelligent analysis and monitoring of users' electricity consumption data, can reduce difficulties in operation and improve detection accuracy.
A power-consumption load-analysis method based on the IMFO-ELM model is proposed to address the shortcomings of existing electricity inspection methods and ensure that abnormal data detection is carried out accordingly. First, an improved moth-flame optimization algorithm is used to optimize the parameters of the ELM to improve power-load forecasting. Second, the detection value is used as the inspection value and the discriminant condition is set according to the relative error value between the inspection value and the actual load. The abnormal points and suspected abnormal points of the data are screened out, which facilitates further detection by the power department. The validity of the proposed audit method was verified using real data on electricity load provided by the European Network on Intelligent Technology (EUNITE). The proposed method has many advantages compared with the traditional electricity inspection method. The load-forecasting-based electricity inspection method applies the non-linear mapping ability of a machine learning model and the superior convergence performance of an artificial intelligence algorithm to improve the efficiency of power inspection by improving the convergence performance of the IMFO algorithm. The application of machine learning and artificial intelligence algorithms to the field of electricity inspection has improved the intelligence and automation level of electric power inspection, which is conducive to reducing the operating costs of electric power firms. The original contributions of this study include the following:

•
An electricity inspection method based on the IMFO-ELM model is proposed as, currently, the marketing inspection of power supply firms mainly relies on passive methods, such as manual inspection, and cannot identify abnormal users sufficiently quickly. • A novel IMFO algorithm with enhanced optimization ability is proposed to improve the intelligence level of electricity inspection and to promote the sustainable development of power firms.

•
The proposed electricity inspection method improves inspection efficiency, enhances user experience and reduces the operating cost of firms.
The remainder of the paper is organized as follows: Section 2 analyzes existing problems highlighted in the literature. Section 3 introduces the abnormal power load monitoring method. Section 4 presents the IMFO-ELM-based monitoring method. Evaluation of the effectiveness of the proposed electricity inspection method is covered in Section 5. The contributions of the study and its limitations are described in Section 6.

Literature Review
As an important part of electric power marketing, electricity inspection has great theoretical and application value for controlling marketing risks, improving the economic benefits of electric power firms, and promoting the sustainable development of electric power [10]. Electricity inspection methods have great theoretical and application value for: (1) improving the service quality of electricity inspection, (2) improving the reliability of electric power enterprise management, (3) improving power marketing systems, and (4) improving the standardization and efficiency of energy management in electric power firms. The development of new energy power generation techniques has brought many benefits but it has also changed the mode of operation of the power grid and increased the difficulty of abnormal load detection. Improving the economy and efficiency of electricity inspection is essential to improve the economic benefits, service quality and management performance of electric power firms. Efficient electricity inspection methods can reduce the operating costs of power firms, enhance user experience and promote the sustainable development of firms.
Cluster-analysis-based data-mining techniques are widely used in electricity inspection. For example, Viegas et al. [11] proposed a data-based method to detect sources of theft and other power losses, using the Gustafson-Kessel fuzzy clustering algorithm to cluster the data collected by smart meters to identify prototypes of typical consumption behavior and locate abnormal data points by comparing new data samples with consumption prototypes. Cheng et al. [12] proposed a power consumption detection method based on the power consumption information acquisition system of power firms. The K-means clustering algorithm was used to extract features and the random forest (RF) algorithm was used to classify the extracted features, being suitable for the processing of edge data. However, the performance of the K-means clustering algorithm requires improvement. Qu et al. [13] proposed an improved K-means clustering algorithm (K-SMOTE) for balancing the dataset and training the RF algorithm with the balanced dataset. Following classification, the trained RF algorithm was used for anomalous data detection. The abnormal data monitoring methods described can improve the accuracy of electricity inspection to a certain extent. However, the clustering method and the statistical analysis of power metering data requires significant quantities and high quality of data, so the computational cost is high, which reduces the applicability of the method.
Several studies in the field of electricity inspection have used artificial intelligence algorithms to improve data utilization and make the analysis process simpler and more effective. For instance, neural networks (NNs), the autoregressive moving average (ARMA) model, ELM, and the support vector machine (SVM) algorithm have been used in electricity inspection and load detection [14][15][16]. The classic load curve of users is obtained by analyzing the load of users, and the load is monitored and analyzed based on the evaluation method. Hasan et al. [17] proposed a power-theft-detection system based on a convolutional neural network and the long-and short-term memory (LSTM) structure, which can classify most classes (normal users) and a small number of classes (power-theft users). This method has enhanced classification accuracy. Ding et al. [18] proposed a real-time anomalydetection algorithm based on the LSTM approach and a Gaussian mixture model, which can perform high-quality real-time anomaly data detection.
In addition, Aslam et al. [19] proposed an LSTM-UNet-Adaboost power theft detection model composed of long short-term memory (LSTM), UNet and Adaboost, which combined the advantages of deep learning and ensemble learning to improve detection efficiency. Arif et al. [20] proposed an oversampling technique using a support vector machine and temporal convolutional network based on an enhanced multilayer perceptron. The former plays the role of balancing the data, and the latter undertakes classification. The model was found to perform better than a convolutional neural network and long-short-term memory network in electricity inspection. Akram et al. [21] introduced a RUSBoost technique and proposed the manta ray foraging model and the bird flocking algorithm model, which improved the accuracy of electricity theft detection. Taking account of imbalance in electricity consumption data, Banga et al. [22] designed a machine learning model which included six data-balancing techniques, and compared the performance of 12 classification algorithms, using the superposition ensemble algorithm to optimize the machine learning model to improve accuracy.
ELM has the advantages of simple structure, fast learning speed and better generalization performance compared with a traditional neural network and support vector machine. It only needs to specify the number of hidden neurons to obtain a unique optimal solution and has been widely used in electricity load analysis and inspection [23]. Shehzad et al. [24] combined a meta-heuristic algorithm and an automatic encoder technique and used the support vector machine to measure their ability to extract features and proposed a big data power system power-theft detection system, which can extract features with large variance from massive data. However, the prediction accuracy of the support vector machine was closely related to the selection of its parameters. Chen et al. [25] proposed a chicken swarm optimization algorithm to optimize the hyperparameters of the ELM, which can further improve the accuracy of the model. To improve the convergence speed, Fong et al. [26] proposed a hybrid algorithm combining the artificial bee colony and great deluge algorithm to solve the optimization problem to overcome the disadvantage of poor convergence ability in the later stage. The algorithm showed faster convergence speed, but its stability still requires improvement.
A new statistical analysis method, data envelopment analysis, is suitable for studying production systems with multiple inputs, and provides rich and useful information for decision-makers. Data envelopment analysis method is a quantitative analysis method that uses linear programming to evaluate the relative effectiveness of comparable units of the same type and is widely used to measure the efficiency of electric power inspection. For example, Mardani et al. [27] reviewed and summarized different data envelopment analysis models used to measure energy efficiency problems. The results obtained showed that data envelopment analysis methods were suitable for analyzing energy efficiency problems and have good application prospects. Zhao et al. [28] applied a three-stage data envelopment analysis method to measure the input-output efficiency of power generation companies in China. Tavassoli et al. [29] developed a network data envelopment analysis model to assess the sustainability of the electricity distribution network in Iran.
The characteristics of current research are summarized in Table 1. Table 1. The characteristics of current research.

Current Research Methods Characteristics
Cluster-analysis-based data-mining techniques, such as [11][12][13] High requirements on the quantity of the data; High computational cost Machine learning, such as [14][15][16][17][18][19][20][21][22][23] Strong non-linear mapping ability; Influence of super parameters on prediction stability Artificial intelligence algorithms, such as [24][25][26] Strong convergence; Easy to fall into local extreme value Data envelopment analysis, such as [27][28][29] Strong applicability; Wide application range This study presents a power load forecasting-based abnormal data detection method to improve the economy of electricity inspection and promote the sustainable development of electric power firms. First, an intelligent algorithm is used to optimize the parameters of ELM to improve the forecasting accuracy for the power load. Second, an improved moth-flame optimization method is proposed to improve the predictive power of ELM. Finally, the abnormal load is inspected based on the predicted power load.

Abnormal Power Load Monitoring
Electricity inspection, specifically, electricity consumption inspection, is an important part of current power marketing management and represents an important supervision and control link in the power supply marketing life cycle. Power theft and massive amounts of power consumption data generated by various metering devices and systems may appear abnormal in large quantities due to power grid fluctuations or equipment failures [30]. These abnormal data contain a large amount of important event information, which greatly affects the integrity and accuracy of power metering data. Traditional statistical methods are time-consuming, inefficient and inaccurate. The power sector is accelerating the transition to online inspection. Online monitoring includes machine-learning-based abnormal power load monitoring and empirical rule-based classification screening. Machine-learning-based abnormal power load monitoring has the advantages of being fast, accurate and adaptive. Monitoring data can come from various processes occurring in the power grid, such as maintenance, installation, measurement and so on.
The analysis and monitoring of load data in the power grid can provide important reference points for electricity inspection work. The abnormal data can be detected more accurately and the target range can be narrowed by comparing the actual data and the monitoring data. Without considering other load components, load changes in the distribution network also show a certain regularity, and the daily load curve can represent a kind of daily load change law due to the regularity of people's activities. This study utilizes real power load data provided by the European Intelligent Technology Network as the original load data [31]. The network collected the load data of power plants in eastern Slovakia. Seven days data from a seven-month period were used as the experimental data. Data was collected every 0.5 h. The obtained load curve is shown in Figure 1.
Finally, the abnormal load is inspected based on the predicted power load.

Abnormal Power Load Monitoring
Electricity inspection, specifically, electricity consumption inspection, is portant part of current power marketing management and represents an impor pervision and control link in the power supply marketing life cycle. Power theft an sive amounts of power consumption data generated by various metering devices a tems may appear abnormal in large quantities due to power grid fluctuations or ment failures [30]. These abnormal data contain a large amount of important even mation, which greatly affects the integrity and accuracy of power metering data tional statistical methods are time-consuming, inefficient and inaccurate. The pow tor is accelerating the transition to online inspection. Online monitoring includes m learning-based abnormal power load monitoring and empirical rule-based classi screening. Machine-learning-based abnormal power load monitoring has the adv of being fast, accurate and adaptive. Monitoring data can come from various pr occurring in the power grid, such as maintenance, installation, measurement and The analysis and monitoring of load data in the power grid can provide im reference points for electricity inspection work. The abnormal data can be detecte accurately and the target range can be narrowed by comparing the actual data monitoring data. Without considering other load components, load changes in th bution network also show a certain regularity, and the daily load curve can repr kind of daily load change law due to the regularity of people's activities. This stu lizes real power load data provided by the European Intelligent Technology Netw the original load data [31]. The network collected the load data of power plants in Slovakia. Seven days data from a seven-month period were used as the experimen Data was collected every 0.5 h. The obtained load curve is shown in Figure 1.  Figure 1 shows that, although the load sequence exhibits obvious randomn load peaks and valleys appear at roughly the same time in a similar period, and th overall trend and direction of change are consistent.
The power load is affected by various factors, including known factors and un factors. The known factors include the power supply units, the grid capacity, use tions, production capacity, etc. The unknown factors include weather conditions, r  Figure 1 shows that, although the load sequence exhibits obvious randomness, the load peaks and valleys appear at roughly the same time in a similar period, and the daily overall trend and direction of change are consistent.
The power load is affected by various factors, including known factors and unknown factors. The known factors include the power supply units, the grid capacity, user conditions, production capacity, etc. The unknown factors include weather conditions, regional economic activities, policy changes, etc. Due to the influence of these uncertainties, the values of historical data and related variables are often inaccurate, resulting in random deviation between the load forecasting results and the actual load values; that is, there is obvious uncertainty in load forecasting. Improving the forecasting accuracy and stability of the model is necessary to deal with the uncertainty of power-load forecasting. Traditional power inspection methods have difficulty dealing with the randomness and uncertainty of loads. Taking advantage of the periodicity of load changes, a corresponding load monitoring model was established using machine-learning methods, and an intelligent optimization algorithm was introduced to optimize the model to improve monitoring accuracy. The established load-monitoring model was used for electricity inspection analysis and the abnormal load data was detected by comparing the inspection values with the actual values. This method has the advantages of fast monitoring speed and high precision and can significantly improve the automation and informatization level of electricity inspection.

Load-Monitoring Method Based on Improved Extreme Learning Machine
Power load monitoring approaches are divided into monitoring models based on time series analysis and machine learning [32]. The time series analysis method is relatively simple but detection accuracy is poor and it is only suitable for monitoring a small amount of data or data with low requirements for results. The machine learning model is associated with excellent non-linear monitoring outcomes and is suitable for complex scenarios.
This study proposes an ELM model to predict load and the IMFO algorithm is employed to optimize the parameters of the ELM. The IMFO-ELM model has faster computing speed and better generalization ability compared with traditional methods.

Extreme Learning Machine
The classic ELM network structure consists of an input layer, a hidden layer and an output layer. The input layer contains n neurons, the hidden layer contains l neurons, and the output layer contains m neurons [33]. If there are P training samples (x i , y i ) and a differentiable activation function f (x) in an arbitrary interval, the output of any hidden layer node is expressed as: where ω i = [ω i1 , ω i2 , . . . , ω in ] T is the connection weight between the input layer and the hidden layer; e i is the node threshold of the i th hidden layer, and β i = [β i1 , β i2 , . . . , β in ] T is the weight between the hidden layer and the output layer; The above formula is transformed into: where Q is the output matrix as follows: Solve the least squares solution: Obtain the least squares solution:β The weights and thresholds of the ELM model need to be initialized and maintained at a fixed value during training; however, random initialization affects the speed and accuracy of the calculation, so the initial parameters need to be optimized.

Improved MFO Algorithm
The MFO algorithm mimics the relationship between moths and flames [34,35]. The optimization flow is shown below: 1.
Initialize the position of the moth; 2.
Calculate the fitness of the population according to the current problem; 3.
Update the current moth and flame positions according to the fitness value and reor-der the positions; 4.
Select the space position with a better fitness value to update to the position of the next generation of flame; 5.
Gradually reduce the number of flames into the next generation until the number of iterations is satisfied; 6.
Output and display the optimization results.
In the MFO algorithm, the moth position is defined as the problem to be solved, and the flame is defined to search for the optimal solution by updating the moth position in the process. The position of the moth is expressed as: where N represents the size of the moth population, D is the dimension of the problem represented by the moth and pmo N,D is the position of the N th moth in the d-dimensional space.
In solving a problem, the position of the moth is substituted into the fitness function, and the fitness matrix of the moth is obtained as follows: where f it pmo N is the fitness of the N th moth. Each moth in flight corresponds to a flame whose position and fitness matrices are as follows: POS fla is the position matrix corresponding to the flame; fla i,j is the first flame in the J th dimension; Fit fla is the fitness matrix, where each vector is the fitness corresponding to the flame position.
With a number of moths constantly searching for the flames, the position of moths and flames is updated differently in each iteration, so the updating strategy is also different. The moth moves in a spiral towards the flame and cannot exceed the search space during its flight. The location root update is as follows: where b is the defined spiral factor, fla j is the J th flame corresponding position, Dis i is the distance between the first moth and the fire; the distance between the moths and flames is defined by t. In Equation (10), if t is 1, the moths are farthest from the flames. If t is −1, the moths are nearest to the flames. The mathematical model of t is as follows: t = (a − 1) × rand + 1 (11) where, rand is used to represent a random number between 0 and 1. a decreases linearly with the number of iterations of the algorithm: where It is the current number of iterations and max_It represents the maximum number of iterations.
Although the MFO algorithm has the advantage of fewer adjustable parameters, the optimization performance needs to be further improved. To make the algorithm converge to the optimal value faster, reduce the amount of calculation of the algorithm and avoid falling into local optimization, this study uses chaotic mapping to initialize the population, as follows: where pos max represents the maximum value of the search space, pos min represents the minimum value of the search space, and M i is the chaos factor corresponding to the i th individual. In addition, t is affected by parameter a that affects the position update of the moth and the flame. In the actual process, a is smaller and changes more slowly in the later stages of iteration to increase the local search ability. The mathematical model formula of a is modified as follows:

Performance Test of IMFO Algorithm
The convergence speed and accuracy of the algorithm are judged by the test functions. Two single-peak test functions and two multi-peak test functions are selected from to verify the convergence performance of the IMFO algorithm. The selected test functions are shown in Table 2 [36][37][38][39].

Function
Range Dim In Table 2, f 1 (x) and f 2 (x) represent single-peak benchmark functions, f 3 (x) and f 4 (x) represent multi-peak benchmark functions. In addition, the search space of the benchmark functions is 10 dimensions.
To date, many artificial intelligence algorithms have been developed [40,41]. The PSO algorithm, crow search algorithm (CSA) and MFO algorithm were selected as the comparison algorithms [42,43]. To ensure reliability of the results, the population of each algorithm was set to 30 and the number of iterations was 1000. The relevant parameters for each algorithm are shown in Table 3.  Table 3 shows the parameters of different algorithms. For the PSO algorithm, c 1 is the learning coefficient and its value is 1.5. c 2 is the learning coefficient and its value is 1.2. w is the variable weight coefficient; its value varies from 0.4 to 0.9. For the CSA algorithm, AP represents the perception probability of the algorithm. fl represents the flight distance of the population. The local search ability of the population is strong when the flight distance is small; however, the global search ability of the population with large flight distance is strong. For the MFO algorithm, b is the spiral shape coefficient of the algorithm. For the IMFO algorithm, the same spiral coefficient is retained, but the parameter a that affects the value of distance parameter t changes with the number of iterations.
The computing environment was based on the Windows 10 system, MATLAB R2020a, with 8G memory and i5-6500 CPU. To prevent algorithm operation error affecting the experimental results, each algorithm was repeatedly run for 15 times to obtain the average value and deviation value for judgment; the test results obtained are shown in Table 4.  Table 4 presents a comparison of the results of the test functions produced by the different algorithms. The average value and standard deviation value of the final fitness value of the multiple results, as well as the best fitness value and the worst fitness value, were calculated as the evaluation indicators. According to the evaluation performance indicators, the MFO algorithm had a small fitness value in the operation results for singlepeak test function compared with the PSO and CSA algorithms. The improved IMFO algorithm performed better in terms of optimization effect and standard deviation, which confirms the effectiveness of the MFO algorithm. For the multi-peak test function f 3 (x), the optimization performance and stability of the MFO algorithm were close to that of the CSA algorithm and the performance was better than that of the PSO algorithm. However, the proposed IMFO algorithm showed a significant optimization effect; the obtained optimal fitness was 0, and the standard deviation was relatively small. For the benchmark function f 4 (x), both the IMFO and MFO algorithms showed better search results, but the optimization results for the IMFO algorithm were better compared with the MFO algorithm. The optimization ability of the proposed IMFO algorithm was verified by the results for the multi-peak test functions and the single peak test functions. Figure 2 shows the iteration curves of the four algorithms. The IMFO algorithm showed the best search ability and the fastest decline speed. The analysis results for the test function indicated that the IMFO algorithm improved the monitoring of the abnormal power load.
CSA algorithm and the performance was better than that of the PSO algorithm. However, the proposed IMFO algorithm showed a significant optimization effect; the obtained optimal fitness was 0, and the standard deviation was relatively small. For the benchmark function f4(x), both the IMFO and MFO algorithms showed better search results, but the optimization results for the IMFO algorithm were better compared with the MFO algorithm. The optimization ability of the proposed IMFO algorithm was verified by the results for the multi-peak test functions and the single peak test functions. Figure 2 shows the iteration curves of the four algorithms. The IMFO algorithm showed the best search ability and the fastest decline speed. The analysis results for the test function indicated that the IMFO algorithm improved the monitoring of the abnormal power load.

Power Load Monitoring Based on IMFO-ELM Model
The proposed method for electricity inspection proposed in this paper primarily involves two elements: one is electric power load forecasting based on the IMFO-ELM model, and the other is assessment of the abnormal load based on forecasting the electric power load. The IMFO algorithm is used to optimize the parameters of the ELM model, and the IMFO-ELM-model-based load-monitoring method is constructed based on this. The machine-learning-based electricity inspection method modeling process is as follows: 1. Determine test samples and training samples of the IMFO-ELM model; 2. Initialize algorithm parameters; 3. Use the IMFO algorithm to optimize the parameters of the ELM; 4. Train the IMFO-ELM model and test the model according to the test sample set; 5. Denormalize the monitored load data. 6. Inspect abnormal load based on forecast load.

Power Load Monitoring Based on IMFO-ELM Model
The proposed method for electricity inspection proposed in this paper primarily involves two elements: one is electric power load forecasting based on the IMFO-ELM model, and the other is assessment of the abnormal load based on forecasting the electric power load. The IMFO algorithm is used to optimize the parameters of the ELM model, and the IMFO-ELM-model-based load-monitoring method is constructed based on this. The machine-learning-based electricity inspection method modeling process is as follows:

1.
Determine test samples and training samples of the IMFO-ELM model; 2.
Use the IMFO algorithm to optimize the parameters of the ELM; 4.
Train the IMFO-ELM model and test the model according to the test sample set; 5.
Inspect abnormal load based on forecast load.
The modeling process for the machine-learning-based electricity inspection method is shown in Figure 3. The modeling process for the machine-learning-based electricity inspection metho is shown in Figure 3.

Abnormal Power Load Inspection Method
The MFO algorithm has a stronger ability to identify energy losses compared wit the PSO, DE, GA and other existing algorithms. However, the MFO algorithm also has th defect of easily falling into local extreme values and suffers from the problem of poo population diversity. This study involved modification of the MFO algorithm to produc an alternative IMFO algorithm to improve optimization ability. The convergence perfor mance test results show that the IMFO algorithm had stronger solving ability and wa suitable for optimizing unimodal and multi-modal test functions in comparison with ex isting algorithms. Existing machine learning models, such as SVM, BPNN and the ELM model have strong non-linear mapping and generalization ability and can better adapt t uncertainty in the power load. The mapping ability of ELM is affected by the super pa rameters. The superior optimization ability of the IMFO algorithm was used to explor the mapping ability of the ELM model. The IMFO-ELM method has several advantage compared to existing machine learning models.
With the continuous development of smart power distribution networks, multipl types and large volumes of data are generated. In addition, much abnormal data may b generated due to the influence of uncertain factors, such as power grid fluctuation, com munication failure and the abnormal power consumption of users. A load inspectio method based on the IMFO-ELM model is proposed. The inspection method using th IMFO-ELM model can more reliably predict users' electric power consumption. The pre dicted electric power consumption obtained by the IMFO-ELM model is compared wit actual electric power consumption to quickly and efficiently screen out abnormal dat points. The abnormal data points are determined by the relative error percentage (RE between the predicted value and the actual value. Next, the electric power consumptio inspection value is used to replace the predicted value for electric power consumption fo analysis. The relative error percentage is defined as follows:

Abnormal Power Load Inspection Method
The MFO algorithm has a stronger ability to identify energy losses compared with the PSO, DE, GA and other existing algorithms. However, the MFO algorithm also has the defect of easily falling into local extreme values and suffers from the problem of poor population diversity. This study involved modification of the MFO algorithm to produce an alternative IMFO algorithm to improve optimization ability. The convergence performance test results show that the IMFO algorithm had stronger solving ability and was suitable for optimizing unimodal and multi-modal test functions in comparison with existing algorithms. Existing machine learning models, such as SVM, BPNN and the ELM model have strong non-linear mapping and generalization ability and can better adapt to uncertainty in the power load. The mapping ability of ELM is affected by the super parameters. The superior optimization ability of the IMFO algorithm was used to explore the mapping ability of the ELM model. The IMFO-ELM method has several advantages compared to existing machine learning models.
With the continuous development of smart power distribution networks, multiple types and large volumes of data are generated. In addition, much abnormal data may be generated due to the influence of uncertain factors, such as power grid fluctuation, communication failure and the abnormal power consumption of users. A load inspection method based on the IMFO-ELM model is proposed. The inspection method using the IMFO-ELM model can more reliably predict users' electric power consumption. The predicted electric power consumption obtained by the IMFO-ELM model is compared with actual electric power consumption to quickly and efficiently screen out abnormal data points. The abnormal data points are determined by the relative error percentage (RE) between the predicted value and the actual value. Next, the electric power consumption inspection value is used to replace the predicted value for electric power consumption for analysis. The relative error percentage is defined as follows: In Equation (15), abnormal points and suspected abnormal points are identified quickly and efficiently from massive power consumption data and the users associated with abnormal points are marked for consideration by the electric power department. There are many reasons for the occurrence of abnormal data, the most important of which is the abnormal power consumption behavior of users, such as using electricity theft devices, changing the structure of electricity meters, etc. Abnormal data detection can help the power department to identify suspicious users in time and reduce property losses. Power equipment failures in the system at certain times can lead to sudden changes in power. The proposed electricity inspection method is designed to identify the problem in time and to give warnings to improve the security and stability of the system. A flowchart of the electricity inspection method based on load monitoring is shown in Figure 4.
In Equation (15), abnormal points and suspected abnormal points are identified quickly and efficiently from massive power consumption data and the users associated with abnormal points are marked for consideration by the electric power department. There are many reasons for the occurrence of abnormal data, the most important of which is the abnormal power consumption behavior of users, such as using electricity theft devices, changing the structure of electricity meters, etc. Abnormal data detection can help the power department to identify suspicious users in time and reduce property losses. Power equipment failures in the system at certain times can lead to sudden changes in power. The proposed electricity inspection method is designed to identify the problem in time and to give warnings to improve the security and stability of the system. A flowchart of the electricity inspection method based on load monitoring is shown in Figure 4.  Figure 4 shows the stages of the electricity inspection method. First, the pre-acquired dataset is input to the system. The constructed IMFO-ELM model is then used to predict the user's electricity consumption data. Second, the predicted electricity consumption data and the actual situation of users are compared and analyzed and the results of the comparison are assessed according to the set conditions. Finally, users with large error points are selected and marked and are identified as targets for abnormal electricity inspection.

Test and Analysis of the Inspection Method for Abnormal Electricity Load
The experimental data were obtained from EUNITE load test samples. The power load data for the week from January 1st to January 6th were selected, including 336 sample points in total. The data for the first five days were used as the training sample and the data for the sixth day were used as the test sample. The relative error (RE), root mean square error (RMSE) and mean absolute percentage error (MAPE) were used to verify the test effect of the model, as shown below:   Figure 4 shows the stages of the electricity inspection method. First, the pre-acquired dataset is input to the system. The constructed IMFO-ELM model is then used to predict the user's electricity consumption data. Second, the predicted electricity consumption data and the actual situation of users are compared and analyzed and the results of the comparison are assessed according to the set conditions. Finally, users with large error points are selected and marked and are identified as targets for abnormal electricity inspection.

Test and Analysis of the Inspection Method for Abnormal Electricity Load
The experimental data were obtained from EUNITE load test samples. The power load data for the week from January 1st to January 6th were selected, including 336 sample points in total. The data for the first five days were used as the training sample and the data for the sixth day were used as the test sample. The relative error (RE), root mean square error (RMSE) and mean absolute percentage error (MAPE) were used to verify the test effect of the model, as shown below: where Num is the number of samples; V i and U i are the actual value and the inspection value, respectively. The test indexes RMSE and MAPE simply and directly reflect the inspection accuracy of the model. To determine the validity of the IMFO_ELM model for abnormal electric power load inspection, the MFO_ELM and PSO_ELM models were used as comparison models. The test index values obtained by the three load inspection models under the same conditions are shown in Table 5.  Table 5 shows that the RMSE value for the IMFO_ELM model was 16.3630, which was 1.92% and 21.98% lower, respectively, compared to the other two models, indicating that the deviation in the inspection results for the IMFO_ELM model was smaller. In addition, the MAPE for the IMFO_ELM model was 0.021%, which was lower by 8.70% and 15.38%, respectively, compared to the other two models, indicating that there were fewer points with large error values for the test results of the IMFO_ELM model. The PSO algorithm exhibited the worst optimization effect on the ELM model, while the optimization effect of the IMFO algorithm was significantly improved. The test results showed that the IMFO_ELM model was more accurate for load inspection. The test results and relative error curves of the three load inspection models are shown in Figures 5 and 6.   Figure 5 presents a comparison between the inspection results and actual values of the PSO_ELM, MFO_ELM and IMFO_ELM load inspection models. The test results for the three inspection models were similar in terms of overall trend. However, the overall test results obtained by the IMFO_ELM load inspection model were closest to the original value compared with the PSO_ELM model and the MFO_ELM model. In addition, the degree of fitting was higher. The test results show that the proposed method can effectively deal with non-linearity and uncertainty in the power load because of the superior convergence performance of the IMFO algorithm, resulting in improvement in the stability of prediction of the ELM model. The power inspection method based on load forecasting improves the ability to deal with uncertainty in the power load, thereby improving the ability to detect abnormal loads and, thus, enhancing the efficiency and sustainability of power inspection.  The 24-h load data from the EUNITE competition from 1 January to 6 January were selected as training data, and the load data of 7 January were selected as inspection test data. The IMFO-ELM model was used for load inspection and the inspection values were compared with the actual values. The results of a comparison between the inspection curve obtained and the actual data curve are shown in Figure 7.  Figure 6 presents the relative error curves of the test values and the actual values for the three monitoring models. The relative errors of the PSO_ELM load inspection model fluctuated the most, followed by those for the MFO_ELM model. The relative errors of the IMFO_ELM model were smaller than those of the other two models at most points and its curves fluctuated slightly nearer to the zero value. Figures 5 and 6 show that the IMFO_ELM load inspection model proposed in this study demonstrated higher accuracy and stability during testing, supporting its use for abnormal data monitoring in electricity inspection.
The 24-h load data from the EUNITE competition from 1 January to 6 January were selected as training data, and the load data of 7 January were selected as inspection test data. The IMFO-ELM model was used for load inspection and the inspection values were compared with the actual values. The results of a comparison between the inspection curve obtained and the actual data curve are shown in Figure 7.    However, there were individual instances where the actual values were very high or low and samples at these moments were used as focal points for electricity inspection for further screening. The proposed approach represents a simple and efficient method based on load inspection for the detection of abnormal data in electricity inspection. To facilitate electricity inspection, the relative errors between the inspection values and the actual values are shown in Figure 8.  Figure 7 presents a comparison between the load inspection curve obtained by the IMFO_ELM load inspection model and the actual power consumption curve on 7 January. The proposed IMFO_ELM model showed high monitoring accuracy and reliability in load auditing and the overall trend in inspection values and actual power values was consistent. However, there were individual instances where the actual values were very high or low and samples at these moments were used as focal points for electricity inspection for further screening. The proposed approach represents a simple and efficient method based on load inspection for the detection of abnormal data in electricity inspection. To facilitate electricity inspection, the relative errors between the inspection values and the actual values are shown in Figure 8.  Figure 8 shows that the relative error between the inspection values and the actual values exceeded ±10% at 17:00, 17:30, 21:00 and 23:30, which were determined to be abnormal datapoints. At 1:00, 2:00, 3:00 and 20:30, the relative errors between the inspection values and the actual values were between ±5% and ±10% and were assessed as suspected abnormal points. The reasons for these anomalies included abnormal data collection by the power department and abnormal power consumption of users. The model and  Figure 8 shows that the relative error between the inspection values and the actual values exceeded ±10% at 17:00, 17:30, 21:00 and 23:30, which were determined to be abnormal datapoints. At 1:00, 2:00, 3:00 and 20:30, the relative errors between the inspection values and the actual values were between ±5% and ±10% and were assessed as suspected abnormal points. The reasons for these anomalies included abnormal data collection by the power department and abnormal power consumption of users. The model and method proposed in this study can screen out abnormal instances in electricity consumption data. This is beneficial for later troubleshooting by the power department and detection of abnormal electricity consumption behavior and can effectively reduce electricity consumption inspection requirements. The abnormal data was identified directly and effectively from massive power consumption data by comparing the relative errors between the inspection values and the actual values, which enabled rapid and efficient execution of electricity inspection.

Discussion
The development of new energy generation techniques has, to a great extent, alleviated the problem of power shortages. Such techniques have been developed due to the industrialization and systematization of new energy power generation and its green, clean and sustainable attributes. However, new energy power generation, such as photovoltaic power generation and wind power generation, entails high levels of randomness and volatility, which significantly increases the difficulty of electricity inspection. Electricity inspection is an important part of electric power marketing. Traditional electric power inspection methods have the disadvantages of low efficiency, high fault levels and lengthy procedures, which hinders the sustainable development of electric power firms and reduces their financial returns. Therefore, improving the efficiency of electricity inspection is necessary. An efficient electricity inspection method cannot only improve the management performance of power firms and user experience but can also promote the sustainable development of power marketing businesses, thereby improving their economic benefits.
Electric power marketing has a significant impact on the development of firms, and the effectiveness of marketing determines the overall development level of electric power firms. As an important part of electric power marketing, electricity inspection has a significant impact on the development of electric power firms. The study of electricity inspection methods is of great practical value. To improve the efficiency of electricity inspection and to promote the sustainable development of power firms, this study proposes a loadforecasting-based abnormal load detection method. By analyzing the difference between inspection results and the actual power consumption of users, abnormal data points are screened out quickly and efficiently. Abnormal users can be marked to further determine the cause of abnormalities, which assists electric power departments in investigation and improves user experience. The proposed method contributes to the theoretical development of electricity inspection, improves the economics of electricity inspection and the intelligence available to electric power enterprise management, and promotes the sustainable development of electric power marketing business. The practical usefulness and significance of the proposed method is summarized as follows:

•
Economic losses caused by electricity inspection are reduced by improving the efficiency of electricity inspection.

•
The efficient electricity inspection method improves the intelligence and informatization level of power enterprise management and promotes the sustainable development of power marketing businesses. • Improvement in abnormal load data detection accuracy improves user experience and the service level of power firms.
The proposed power inspection method based on IMFO-ELM can deal with uncertainty in the power load. The proposed model and the results are generalizable to other contexts and can help improve the sustainability of power marketing and the economic benefits of power firms. It can be used not only in the field of electricity inspection, but also in other fields, such as pattern recognition, graphic classification, life prediction, etc.
In addition to research on power inspection methods, future research directions and objectives may include effective electricity theft inspection, improvement in inspection business frameworks and the detection of malicious fraud in electrical energy consumption. For example, Kong et al. [44] developed a novel electricity theft inspection method to reduce economic losses of power companies. To improve inspection business frameworks, Xia et al. [45] devised a suspicion-assessment-based inspection algorithm to detect malicious users in a smart grid. Santos et al. [46] developed an effective and scalable system to predict fraud and detect abnormal electricity use.

Concluding Remarks
Electricity inspection is key to electric power marketing and has a significant impact on regulating users' electricity consumption behavior and improving the economic benefits of electric power firms. Efficient electricity inspection methods can not only improve user experience, but can also improve economic efficiency and the availability of intelligence to power firms. A load-monitoring-based electricity inspection method was proposed to improve inspection efficiency and to promote the sustainable development of power firms. The contributions of this study are as follows: • An IMFO algorithm with strong convergence capability was developed. For different types of test function, the convergence results of the IMFO algorithm were closest to the global optimal solution of 0, indicating that the IMFO algorithm has strong convergence ability.

•
The IMFO-ELM load inspection model was constructed by combination with the ELM model. Experimental results showed that, compared with the existing PSO-ELM and MFO-ELM models, the proposed load inspection model had higher monitoring accuracy with inspection error reduced by about 2%, thus, improving the efficiency of electricity inspection and supporting the sustainable development of power firms. • Abnormal data points were screened out quickly and efficiently by analyzing the difference between the inspection results of the IMFO-ELM model and the actual power consumption of users. Abnormal users were marked to further determine the causes of abnormalities. This can assist electric power departments to improve user experience.
Some limitations of the approach remain. The abnormal data monitoring method based on load forecasting proposed in this study can improve the efficiency and sustainability of electricity inspection to a certain extent. However, the ability of the IMFO-ELM monitoring model to describe load uncertainty requires improvement. In addition, the efficiency of inspection of abnormal data needs to be improved to ensure an intelligent and systematic approach to electricity inspection.
As a novel and popular mathematical programming approach in the performance measurement field, data envelopment analysis has been widely used in electric power and type energy analysis. In future research, stochastic data envelopment analysis, fuzzy data envelopment analysis, and robust data envelopment analysis will be considered to address uncertainty in electric loads.