Enterprise power consumption growth prediction method and system

By combining the isolated forest and bat algorithms to optimize the long-short-term memory artificial neural network, the problems of high labor cost, strong subjectivity and insufficient utilization of time series relationships in the enterprise power consumption growth forecast model are solved, and a more accurate and scalable power prediction model is achieved. Consumption growth forecast.

CN115907119BActive Publication Date: 2024-10-18STATE GRID JIANGSU ELECTRIC POWER CO LTD SUZHOU BRANCH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211409167.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-11
Publication Date
2024-10-18
Estimated Expiration
2042-11-11

AI Technical Summary

Technical Problem

In the existing technology, enterprise power consumption growth point prediction models have problems such as high labor costs, difficulty in expansion, strong subjectivity, and insufficient utilization of data time series relationships, resulting in insufficient prediction accuracy.

Method used

The long-short-term memory artificial neural network is optimized by combining the isolated forest algorithm and the bat evolutionary biology algorithm to build an enterprise power consumption growth score prediction model. Through denoising processing and parameter optimization, time-series power consumption feature vectors are used for prediction.

Benefits of technology

It achieves more accurate forecasts of corporate power consumption growth, reduces labor costs, improves the scalability and accuracy of the model, and reduces the impact of subjectivity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115907119B_ABST
    Figure CN115907119B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and system for predicting the growth score of enterprise power consumption. The method comprises the following steps: Step 1: constructing a time series power consumption feature vector of an enterprise, manually scoring it, and constructing a training data set for enterprise growth score; Step 2: using an isolation forest algorithm to denoise the training data set; Step 3: using a bat evolutionary biology algorithm to optimize the initial weights and thresholds, thereby constructing a long short-term memory artificial neural network as an enterprise growth score prediction model, and using the training data set to train the enterprise growth score prediction model; Step 4: using the trained enterprise growth score prediction model to predict the growth score of the enterprise power consumption. The system comprises a time series power consumption feature vector and a growth score scoring module, a training data set construction module, and an enterprise growth score prediction model training module. The present invention uses the time series power big data to more accurately predict the enterprise growth score, with low labor costs, and better predict the growth potential of the enterprise.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power big data processing, and relates to a method and system for predicting the growth of enterprise power consumption by combining an isolation forest, a bat algorithm and a long short-term memory artificial neural network. Background Art

[0002] In the existing technology, expert experience models are generally used to construct enterprise power consumption growth subsystems, and traditional expert experience models usually use expert experience to select a few important data indicators to obtain enterprise power consumption growth scores. However, expert experience models also have shortcomings: first, the labor cost is too high; second, expert experience models are difficult to expand; third, expert experience models are highly subjective, and the results of enterprise power consumption growth analysis are often not accurate enough.

[0003] Based on this, when constructing an evaluation model to evaluate the growth potential of an enterprise, the following problems are often encountered: the manually labeled power data has a lot of noise and is not accurate enough; when using traditional convolutional neural networks, the time series relationship of the data cannot be utilized; the parameter setting of the time series model is relatively difficult, and human subjective parameters have a greater impact on network performance, and accuracy cannot be guaranteed. It is also difficult to use methods such as logistic regression, linear regression, and convolutional neural networks to obtain enterprise growth sub-models. Summary of the invention

[0004] The purpose of the present invention is to provide a method and system for predicting the growth score of enterprise power consumption by combining isolation forest, bat algorithm and long short-term memory artificial neural network, which can better utilize the time series power big data, more accurately predict the growth score of enterprise power consumption, and have low labor cost.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] A method for predicting the growth of enterprise power consumption includes the following steps:

[0007] Step 1: construct the time-series power consumption feature vector corresponding to each enterprise, and manually score the power consumption growth score of each enterprise, and use the time-series power consumption feature vector and manual scoring results of each enterprise to construct an enterprise growth score training data set;

[0008] Step 2: Using the isolation forest algorithm to perform denoising on the enterprise growth score training data set to remove abnormal data in the enterprise growth score training data set;

[0009] Step 3: Using a bat evolutionary biology algorithm to optimize the initial weights and thresholds in the long short-term memory artificial neural network, thereby constructing a long short-term memory artificial neural network as an enterprise growth score prediction model, and using the enterprise growth score training data set after denoising to train the enterprise growth score prediction model;

[0010] Step 4: Use the trained enterprise growth score prediction model to predict the enterprise's electricity consumption growth score.

[0011] In the step 1, the historical electricity load level index, the historical electricity price level index and the electricity consumption interaction capability index of the enterprise are calculated, and the calculation results are concatenated as the time series electricity consumption feature vector.

[0012] The historical electricity load level indicators include an electricity consumption growth rate indicator and an electricity consumption stability indicator;

[0013] The historical electricity fee level indicators include the actual electricity fee indicator, the receivable electricity fee level indicator and the receivable electricity fee trend indicator;

[0014] The electricity consumption interaction capability index includes the capability index of enterprises to interact with operators to expand equipment capacity.

[0015] The step 2 comprises the following steps:

[0016] Step 2.1: Randomly select attributes in the enterprise growth score training data set;

[0017] Step 2.2: Take the data values ​​of the randomly selected attributes as observations;

[0018] Step 2.3: recursively perform step 2.2 until all data values ​​in the enterprise growth score training data set are selected, thereby generating a corresponding decision binary tree according to the selection order;

[0019] Step 2.4: Repeat steps 2.1 to 2.3 to generate a number of decision binary trees, use the generated decision binary trees to construct an isolation forest, and judge abnormal data based on the abnormal scores generated by the isolation forest, so as to remove abnormal data in the enterprise growth score training data set whose abnormal scores are higher than the set score threshold.

[0020] In step 2.4, first calculate the path length h(x) from the root node to the leaf node in the decision binary tree, then calculate the average path length c(n) of the corresponding decision binary tree, and finally calculate as the anomaly score.

[0021] The step 3 comprises the following steps:

[0022] Step 3.1: Build a basic long short-term memory artificial neural network model;

[0023] Step 3.2: Optimizing the basic long-short term memory artificial neural network model according to the bat evolutionary biology algorithm to obtain the enterprise growth score prediction model;

[0024] Step 3.3: Use the denoised enterprise growth score training data set to train the enterprise growth score prediction model.

[0025] The step 3.2 comprises the following steps:

[0026] Step 3.2.1: Set the number of bats N, dimension d, number of iterations t, pulse loudness A, pulse frequency r, and pulse frequency range [Q min ,Q max ], position range [x min ,x max ] and the fitness function of the bat evolutionary biology algorithm;

[0027] Step 3.2.2: Iterate the i-th bat according to the input gate and output gate of the basic long short-term memory artificial neural network model to calculate the search pulse frequency Q of the i-th bat i , the speed of the i-th bat at time t The position of the i-th bat at time t

[0028] Step 3.2.3: Generate a random number rand1, and compare the random number rand with the search pulse frequency Q of the i-th bat i If the random number rand is greater than the search pulse frequency Q of the i-th bat, i , then the current optimal solution x for the bat position is obtained through the forget gate of the basic long short-term memory artificial neural network model best A replacement is generated, otherwise an out-of-bounds processing is performed on the memory unit of the basic long short-term memory artificial neural network model;

[0029] Step 3.2.4: For the speed of the i-th bat at time t Find the fitness function f new , generate a new random number rand2, if the new random number rand2 is less than the impulse loudness A and the speed of the i-th bat at time t The corresponding fitness function f new If the fitness function of the current position is smaller than the fitness function of the current position, then the speed of the i-th bat at time t is The corresponding fitness function f new Set to the fitness function fitness of the current position;

[0030] Step 3.2.5: Compare the speed of the i-th bat at time t The corresponding fitness function f new and the current optimal fitness function value f min , if the speed of the i-th bat at time t is The corresponding fitness function f new Less than the current optimal fitness function value f min , then the current optimal fitness function value f min Replaced by the speed of the i-th bat at time t The corresponding fitness function f new and the position of the i-th bat at time t Assign the current optimal solution x to the bat's position best , while changing the pulse loudness A and pulse frequency r;

[0031] Step 3.2.6: Repeat the above steps until the maximum number of iterations or the current optimal fitness function value f is reached min Less than the set value;

[0032] Step 3.2.7: Use the optimization results of the bat evolutionary biology algorithm as the initial weights and thresholds in the long short-term memory artificial neural network.

[0033] In step 3.2.1, the fitness function is:

[0034]

[0035] Among them, o is the bat number, p is the data number, o ip and T ip Determine the output value and true value of the model's long short-term memory artificial neural network under sample data p for the o-th bat, where m is the total number of samples;

[0036] In step 3.2.2, the search pulse frequency Q of the i-th bat i The calculation formula is:

[0037] Q i =Q min +(Q max -Q min )*γ,

[0038] The speed of the i-th bat at time t The calculation formula is:

[0039]

[0040] The position of the i-th bat at time t The calculation formula is:

[0041]

[0042] Among them, Q min is the minimum search pulse frequency, Q max is the maximum search pulse frequency, γ is a random number between 0 and 1, is the speed of the i-th bat at time t-1, is the position of the i-th bat at time t-1, x best is the optimal position;

[0043] In step 3.2.3, the formula for performing out-of-bounds processing on the memory unit of the basic long short-term memory artificial neural network model is:

[0044]

[0045]

[0046] Among them, ρ is a random value from 0 to 1, AV t is the average value of the pulse direction of the bat group at time t;

[0047] In step 3.2.5, the formula for changing the pulse loudness A and the pulse frequency r is:

[0048]

[0049]

[0050] Wherein, α and ε are the step sizes in the bat evolutionary biology algorithm.

[0051] In step 3.2.1, the dimension d is calculated as follows:

[0052] d=4*j*k+4*k+j*k*l,

[0053] Among them, j, k, and l respectively represent the number of input layers, hidden layers, and output layers of the basic long short-term memory artificial neural network model.

[0054] A system for predicting the growth of enterprise electricity consumption, comprising:

[0055] The enterprise's time-series power consumption feature vector and growth score scoring module is used to construct the time-series power consumption feature vector corresponding to each enterprise and manually score the power consumption growth score of each enterprise;

[0056] A training data set construction module is used to construct an enterprise growth score training data set by using the time-series power consumption feature vectors of each enterprise and the manual scoring results, and to perform denoising on the enterprise growth score training data set by using an isolation forest algorithm to remove abnormal data in the enterprise growth score training data set;

[0057] The enterprise growth score prediction model training module is used to optimize the initial weights and thresholds in the long short-term memory artificial neural network using a bat evolutionary biology algorithm, thereby constructing a long short-term memory artificial neural network as an enterprise growth score prediction model, using the enterprise growth score training data set after denoising to train the enterprise growth score prediction model, and using the trained enterprise growth score prediction model to predict the enterprise's electricity consumption growth score.

[0058] Due to the application of the above technical scheme, the present invention has the following advantages compared with the prior art: the present invention can better utilize the time-series power big data, so as to more accurately predict the growth points of enterprise power consumption, and has lower labor costs, and can better predict the growth potential of enterprises. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Attached Figure 1 The present invention is a flowchart of the enterprise electricity consumption growth prediction method. DETAILED DESCRIPTION

[0060] The present invention will be further described below in conjunction with the embodiments shown in the accompanying drawings.

[0061] Embodiment 1: As shown in the attached Figure 1 As shown, a method for predicting the growth of enterprise electricity consumption includes the following steps:

[0062] Step 1: Construct the time-series power consumption feature vector corresponding to each enterprise, and manually score the power consumption growth score of each enterprise. Use the time-series power consumption feature vector of each enterprise and the manual scoring results to construct the enterprise growth score training data set.

[0063] In step 1, the historical electricity load level index, historical electricity fee level index and electricity consumption interaction capability index of the enterprise are calculated, and the calculation results are spliced ​​as the time series electricity consumption feature vector, so as to construct the enterprise growth point training data set, as follows:

[0064] 1) The historical electricity load level indicators of the enterprise, including electricity consumption growth rate indicators and electricity consumption stability indicators.

[0065] The electricity consumption growth rate index includes the year-on-year growth rate index of the enterprise's electricity consumption in the most recent period (such as the last 12 months) compared with the previous period (such as the last 12 months). The electricity consumption stability index includes the electricity consumption fluctuation level index of the enterprise in the most recent period (such as the last 12 months) among local peers and the monthly electricity consumption difference index of the enterprise in the most recent period (such as the last 12 months). The calculation method is:

[0066] The year-on-year growth rate of the enterprise's electricity consumption in the most recent period (such as the last 12 months) compared with the previous period (such as the last 12 months) = u; the fluctuation rate of the enterprise's electricity consumption in the most recent period (such as the last 12 months) = v, which is the month-on-month comparison of the enterprise's electricity consumption level in the most recent period (such as the last 12 months) and the electricity consumption level of its peers in the most recent period (such as the last 12 months); the monthly electricity consumption difference of the enterprise in the most recent period (such as the last 12 months) = w, which is the difference between the maximum and minimum values ​​of the monthly electricity consumption of the enterprise in the most recent period (such as the last 12 months).

[0067] 2) The enterprise's historical electricity fee level indicators, including actual electricity fee indicators, receivable electricity fee level indicators and receivable electricity fee trend indicators.

[0068] The actual payment situation includes the average monthly electricity charges paid and the actual electricity consumption of the enterprise in the recent period (such as the past 12 months). The level of electricity charges receivable includes the monthly electricity charges receivable in the recent period (such as the past 12 months). The trend of electricity charges receivable includes the growth trend of electricity charges receivable in the recent period (such as the past 12 months). The calculation method is:

[0069] The average monthly electricity bill actually paid by the enterprise in the most recent period (such as the last 12 months) = h million yuan, the average monthly actual electricity consumption of the enterprise in the most recent period (such as the last 12 months) = i kWh, the monthly electricity bill receivable by the enterprise in the most recent period (such as the last 12 months) = j million yuan, the increase in electricity bill receivable by the enterprise in the most recent period (such as the last 12 months) compared with the previous period (such as the previous 12 months) = k million yuan.

[0070] 3) The enterprise’s electricity consumption interaction capability indicators, including the enterprise’s capability indicators to interact with operators to expand equipment capacity.

[0071] The ability index of enterprises to interact with operators to expand equipment capacity includes the cumulative capacity increase index in the recent period (such as the past 24 months) and the cumulative capacity reduction index in the recent period (such as the past 24 months). The calculation method is:

[0072] The cumulative number of capacity increases in the recent period (such as the past 24 months) is z1, and the cumulative number of capacity reductions in the recent period (such as the past 24 months) is z2.

[0073] The historical electricity load level indicators, historical electricity price level indicators and electricity consumption interaction capability indicators of the enterprises extracted above are spliced ​​in the order of indicators to form a time-series power consumption feature vector, and each indicator is an attribute involved in the time-series power consumption feature vector.

[0074] Step 2: Use the isolation forest algorithm to denoise the enterprise growth score training data set and remove abnormal data in the enterprise growth score training data set.

[0075] This step 2 includes the following steps:

[0076] Step 2.1: Randomly select attributes from the enterprise growth points training data set;

[0077] Step 2.2: Take the data values ​​of the randomly selected attributes as observations;

[0078] Step 2.3: Recursively repeat step 2.2 until all data values ​​in the enterprise growth points training data set are selected, thereby generating a corresponding decision binary tree according to the selection order;

[0079] Step 2.4: Repeat steps 2.1 to 2.3 to generate several decision binary trees, use the generated decision binary trees to construct an isolation forest, and judge the abnormal data based on the anomaly score generated by the isolation forest, so as to remove the abnormal data in the enterprise growth score training data set whose anomaly score is higher than the set score threshold (such as 0.9).

[0080] Step 2.4 is as follows:

[0081] First, let the test data x go down along the corresponding conditional branch in the decision binary tree until it reaches the leaf node, and record the path length h(x) passed in the process, that is, the number of edges passed from the root node to the final leaf node, that is, calculate the path length h(x) from the root node to the leaf node in the decision binary tree. The calculation formula is as follows:

[0082] h(x)=e+(T.size)

[0083] Among them, e is a numerical constant, which is the base of the natural logarithm function, and T.size represents the number of samples in the same leaf node as sample x.

[0084] Then calculate the average path length c(n) of the corresponding decision binary tree, that is, calculate the average path length c(T.size) of T.size samples to construct a binary tree, where the calculation formula of c(n) is as follows:

[0085]

[0086] Among them, 0.5772156649 is the Euler constant.

[0087] Finally, the normalization method is used to calculate the anomaly score based on h(x) and c(n). The specific formula is as follows:

[0088]

[0089] Where E(h(x)) is the mean of h(x).

[0090] If the calculated anomaly score is greater than 0.9, it is abnormal data and needs to be removed.

[0091] Step 3: Use the bat evolutionary biology algorithm to optimize the initial weights and thresholds in the long short-term memory artificial neural network, thereby constructing a long short-term memory artificial neural network as an enterprise growth score prediction model, and use the denoised enterprise growth score training data set to train the enterprise growth score prediction model.

[0092] This step 3 includes the following steps:

[0093] Step 3.1: Build a basic long short-term memory artificial neural network model.

[0094] Building a basic long short-term memory artificial neural network model is based on the following four parts:

[0095] (1) Input Gate

[0096] i t =δ(W i ·[h t-1 ,x t ]+b i )

[0097] Among them, W i is the weight matrix of the input gate, b i represents the bias, and δ is the sigmoid function as shown below:

[0098]

[0099] (2) Output Gate

[0100] o t =δ(W o ·[h t-1 ,x t ]+b o )

[0101] Among them, W o is the weight matrix of the output gate, b o represents the bias, and δ is the sigmoid function.

[0102] (3) Forget Gate

[0103] ft =δ(W f ·[h t-1 ,x t ]+b f )

[0104] Among them, W f is the weight matrix of the forget gate, b f represents the bias, and δ is the sigmoid function.

[0105] (4) Memory unit

[0106] c t =tanh(W c ·[h t-1 ,x t ]+b c )

[0107] c t =f t ·c t-1 +i t ·c t

[0108] Among them, W c is the weight matrix of the memory unit, b c Representing the bias, the tanh function is as follows:

[0109]

[0110] The output of the basic LSTM artificial neural network is determined by the input gate and the cell state:

[0111] h t =o t tanh(c t )

[0112] When initializing the model, assign c0=0, h0=0.

[0113] Step 3.2: Optimize the basic long short-term memory artificial neural network model according to the bat evolutionary biology algorithm to obtain the enterprise growth score prediction model. The specific process is as follows:

[0114] Step 3.2.1: Set the number of bats N (default value is 100), dimension d (related to the structure of the long short-term memory artificial neural network), number of iterations t (default value is 1000), pulse loudness A (default value is 10), pulse frequency r (default value is 50), pulse frequency range [Q min ,Q max ] (the minimum default value is 1, the maximum default value is 100), the position range [x min ,x max] (the minimum default value is 2 and the maximum default value is 150) and the fitness function of the bat evolutionary biology algorithm.

[0115] The calculation method of dimension d is:

[0116] d=4*j*k+4*k+j*k*l,

[0117] Among them, j, k, and l represent the number of input layers, hidden layers, and output layers of the basic long short-term memory artificial neural network model, respectively.

[0118] The fitness function is:

[0119]

[0120] Among them, o is the bat number, p is the data number, o ip and T ip Determine the output value and true value of the model long short-term memory artificial neural network under sample data p for the o-th bat, and m is the total number of samples.

[0121] Step 3.2.2: Iterate the i-th bat according to the input gate and output gate of the basic long short-term memory artificial neural network model to calculate the search pulse frequency Q of the i-th bat i , the speed of the i-th bat at time t The position of the i-th bat at time t

[0122] The search pulse frequency Q of the i-th bat i The calculation formula is:

[0123] Q i =Q min +(Q max -Q min )*γ

[0124] The speed of the i-th bat at time t The calculation formula is:

[0125]

[0126] The position of the i-th bat at time t The calculation formula is:

[0127]

[0128] Among them, Q min is the minimum search pulse frequency, Q max is the maximum search pulse frequency, γ is a random number between 0 and 1, is the speed of the i-th bat at time t-1, is the position of the i-th bat at time t-1, x best is the optimal position;

[0129] Step 3.2.3: Generate a random number rand1 and compare the random number rand with the search pulse frequency Q of the i-th bat i If the random number rand is greater than the search pulse frequency Q of the i-th bat, i , then the current optimal solution x for the bat position is obtained through the forget gate of the basic long short-term memory artificial neural network model best A replacement is generated, otherwise the memory unit of the basic long short-term memory artificial neural network model is processed out of bounds. The specific formula is as follows:

[0130]

[0131]

[0132] Among them, ρ is a random value from 0 to 1, AV t is the average value of the pulse direction of the bat group at time t, that is, the specific calculation process of the cross-border processing is: Greater than x max , then Set to x max ;like Less than x min , then Set to x min , the rest constant.

[0133] Step 3.2.4: For the speed of the i-th bat at time t Find the fitness function f new (Using the fitness function formula in step 3.2.1), generate a new random number rand2. If the new random number rand2 is less than the impulse loudness A and the speed of the i-th bat at time t is The corresponding fitness function f new If the fitness function of the current position is smaller than the fitness function of the current position, then the speed of the i-th bat at time t is The corresponding fitness function f new Set to the fitness function fitness of the current position, that is

[0134]

[0135] Step 3.2.5: Compare the speed of the i-th bat at time t The corresponding fitness function f new and the current optimal fitness function value f min , if the speed of the i-th bat at time t is The corresponding fitness function f new Less than the current optimal fitness function value f min , then the current optimal fitness function value f min Replaced by the speed of the i-th bat at time t The corresponding fitness function f new and the position of the i-th bat at time t Assign the current optimal solution x to the bat's position best , while changing the pulse loudness A and pulse frequency r, the formula is:

[0136]

[0137]

[0138] Among them, α and ε are the step sizes in the bat evolutionary biology algorithm, and the default values ​​are both 0.9.

[0139] Step 3.2.6: Repeat the above steps until the maximum number of iterations or the current optimal fitness function value f is reached min Less than the set value (the default setting is 0.9);

[0140] Step 3.2.7: Use the optimization results of the bat evolutionary biology algorithm as the initial weights and thresholds in the long short-term memory artificial neural network.

[0141] Step 3.3: Use the denoised enterprise growth score training data set to train the enterprise growth score prediction model.

[0142] Step 4: Use the trained enterprise growth score prediction model to predict the enterprise's electricity consumption growth score.

[0143] The enterprise power consumption growth score prediction system for implementing the above-mentioned enterprise power consumption growth score prediction method includes a time-series power consumption feature vector and growth score scoring module of the enterprise connected by communication, a training data set construction module and an enterprise growth score prediction model training module. The enterprise time-series power consumption feature vector and growth score scoring module is used to construct the time-series power consumption feature vector corresponding to each enterprise, and manually score the power consumption growth score of each enterprise. The training data set construction module is used to construct the enterprise growth score training data set using the time-series power consumption feature vector and the manual scoring result of each enterprise, and use the isolation forest algorithm to denoise the enterprise growth score training data set to remove abnormal data in the enterprise growth score training data set. The enterprise growth score prediction model training module is used to use the bat evolutionary biology algorithm to optimize the initial weights and thresholds in the long short-term memory artificial neural network, so as to construct a long short-term memory artificial neural network as an enterprise growth score prediction model, use the denoised enterprise growth score training data set to train the enterprise growth score prediction model, and use the trained enterprise growth score prediction model to predict the enterprise's power consumption growth score.

[0144] The beneficial effects of the present invention are as follows:

[0145] The present invention firstly extracts the enterprise electricity consumption characteristics through a data-based classification method, transforms the data requirements for the enterprise electricity consumption behavior from quantitative to qualitative, and greatly increases the scalability of the model; secondly, the model indicator feature vector and the isolation forest algorithm are used for denoising, and the enterprise growth model is constructed and trained through the long short-term memory artificial neural network algorithm optimized by the bat algorithm. Compared with the methods such as logistic regression, linear regression, and convolutional neural network, the present invention has the following advantages:

[0146] The present invention combines the enterprise growth score prediction method analysis model of the isolation forest, bat algorithm and long short-term memory artificial neural network. When constructing the training set, we use the isolation forest algorithm to denoise and remove the abnormal data in the data set, which improves the signal-to-noise ratio and increases the accuracy of the training set. The enterprise growth score model of the present invention can overcome the defect of the traditional expert experience model that the subjectivity is strong, and can use the power big data from the time series aspect. Compared with the traditional long short-term memory artificial neural network, the model optimized by the bat algorithm can better reduce the influence of human subjective parameters on network performance, and overcome the subjectivity and inaccuracy of the expert manual evaluation method.

[0147] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for predicting the growth of enterprise electricity consumption, characterized by: The enterprise power consumption growth prediction method comprises the following steps: Step 1: construct the time-series power consumption feature vector corresponding to each enterprise, and manually score the power consumption growth score of each enterprise, and use the time-series power consumption feature vector and manual scoring results of each enterprise to construct an enterprise growth score training data set; Step 2: Using the isolation forest algorithm to perform denoising on the enterprise growth score training data set to remove abnormal data in the enterprise growth score training data set; Step 3: Using a bat evolutionary biology algorithm to optimize the initial weights and thresholds in the long short-term memory artificial neural network, thereby constructing a long short-term memory artificial neural network as an enterprise growth score prediction model, and using the enterprise growth score training data set after denoising to train the enterprise growth score prediction model; Step 4: using the trained enterprise growth score prediction model to predict the enterprise's electricity consumption growth score; The step 2 comprises the following steps: Step 2.1: Randomly select attributes in the enterprise growth score training data set; Step 2.2: Take the data values ​​of the randomly selected attributes as observations; Step 2.3: recursively perform step 2.2 until all data values ​​in the enterprise growth score training data set are selected, thereby generating a corresponding decision binary tree according to the selection order; Step 2.4: Repeat steps 2.1 to 2.3 to generate a plurality of decision binary trees, use the generated decision binary trees to construct an isolation forest, and judge abnormal data according to the abnormal scores generated by the isolation forest, so as to remove abnormal data in the enterprise growth score training data set whose abnormal scores are higher than the set score threshold; In step 2.4, first calculate the path length h(x) from the root node to the leaf node in the decision binary tree, then calculate the average path length c(n) of the corresponding decision binary tree, and finally calculate as the anomaly score; The step 3 comprises the following steps: Step 3.1: Build a basic long short-term memory artificial neural network model; Step 3.2: Optimizing the basic long-short term memory artificial neural network model according to the bat evolutionary biology algorithm to obtain the enterprise growth score prediction model; Step 3.3: using the denoised enterprise growth score training data set to train the enterprise growth score prediction model; The step 3.2 comprises the following steps: Step 3.2.1: Set the number of bats N, dimension d, number of iterations t, pulse loudness A, pulse frequency r, and pulse frequency range [Q min ,Q max ], position range [x min ,x max ] and the fitness function of the bat evolutionary biology algorithm; Step 3.2.2: Iterate the i-th bat according to the input gate and output gate of the basic long short-term memory artificial neural network model to calculate the search pulse frequency Q of the i-th bat i , the speed of the i-th bat at time t The position of the i-th bat at time t Step 3.2.3: Generate a random number rand1, and compare the random number rand with the search pulse frequency Q of the i-th bat i If the random number rand is greater than the search pulse frequency Q of the i-th bat, i , then the current optimal solution x for the bat position is obtained through the forget gate of the basic long short-term memory artificial neural network model best A replacement is generated, otherwise an out-of-bounds processing is performed on the memory unit of the basic long short-term memory artificial neural network model; Step 3.2.4: For the speed of the i-th bat at time t Find the fitness function f new , generate a new random number rand2, if the new random number rand2 is less than the impulse loudness A and the speed v of the i-th bat at time t i The fitness function f corresponding to t new If the fitness function of the current position is smaller than the fitness function of the current position, then the speed v of the i-th bat at time t is i The fitness function f corresponding to t new Set to the fitness function fitness of the current position; Step 3.2.5: Compare the speed of the i-th bat at time t The corresponding fitness function f new and the current optimal fitness function value f min , if the speed of the i-th bat at time t is The corresponding fitness function f new Less than the current optimal fitness function value f min , then the current optimal fitness function value f min Replaced by the speed of the i-th bat at time t The corresponding fitness function f new and the position of the i-th bat at time t Assign the current optimal solution x to the bat's position best , while changing the pulse loudness A and pulse frequency r; Step 3.2.6: Repeat the above steps until the maximum number of iterations or the current optimal fitness function value f is reached min Less than the set value; Step 3.2.7: Using the optimization results of the bat evolutionary biology algorithm as the initial weights and thresholds in the long short-term memory artificial neural network; In step 3.2.1, the fitness function is: Among them, o is the bat number, p is the data number, o ip and T ip Determine the output value and true value of the model's long short-term memory artificial neural network under sample data p for the o-th bat, where m is the total number of samples; In step 3.2.2, the search pulse frequency Q of the i-th bat i The calculation formula is: Q i =Q min +(Q max -Q min )*γ, The speed of the i-th bat at time t The calculation formula is: The position of the i-th bat at time t The calculation formula is: Among them, Q min is the minimum search pulse frequency, Q max is the maximum search pulse frequency, γ is a random number between 0 and 1, is the speed of the i-th bat at time t-1, is the position of the i-th bat at time t-1, x best is the optimal position; In step 3.2.3, the formula for performing out-of-bounds processing on the memory unit of the basic long short-term memory artificial neural network model is: Among them, ρ is a random value from 0 to 1, AV t is the average value of the pulse direction of the bat group at time t; In step 3.2.5, the formula for changing the pulse loudness A and the pulse frequency r is: Wherein, α and ε are the step sizes in the bat evolutionary biology algorithm; In step 3.2.1, the dimension d is calculated as follows: d=4*j*k+4*k+j*k*l, Among them, j, k, and l respectively represent the number of input layers, hidden layers, and output layers of the basic long short-term memory artificial neural network model.

2. The method for predicting the growth of enterprise power consumption according to claim 1, characterized in that: In the step 1, the historical electricity load level index, the historical electricity price level index and the electricity consumption interaction capability index of the enterprise are calculated, and the calculation results are concatenated as the time series electricity consumption feature vector.

3. The method for predicting the growth of enterprise power consumption according to claim 2, characterized in that: The historical electricity load level indicators include an electricity consumption growth rate indicator and an electricity consumption stability indicator; The historical electricity fee level indicators include the actual electricity fee indicator, the receivable electricity fee level indicator and the receivable electricity fee trend indicator; The electricity consumption interaction capability index includes the capability index of enterprises to interact with operators to expand equipment capacity.

4. A system for predicting the growth of enterprise power consumption, used to implement the method for predicting the growth of enterprise power consumption as claimed in claim 1, characterized in that: The enterprise power consumption growth prediction system includes: The enterprise's time-series power consumption feature vector and growth score scoring module is used to construct the time-series power consumption feature vector corresponding to each enterprise and manually score the power consumption growth score of each enterprise; A training data set construction module is used to construct an enterprise growth score training data set by using the time-series power consumption feature vectors of each enterprise and the manual scoring results, and to perform denoising on the enterprise growth score training data set by using an isolation forest algorithm to remove abnormal data in the enterprise growth score training data set; The enterprise growth score prediction model training module is used to optimize the initial weights and thresholds in the long short-term memory artificial neural network using a bat evolutionary biology algorithm, thereby constructing a long short-term memory artificial neural network as an enterprise growth score prediction model, using the enterprise growth score training data set after denoising to train the enterprise growth score prediction model, and using the trained enterprise growth score prediction model to predict the enterprise's electricity consumption growth score.

Citation Information

Patent Citations

  • Method for predicting power demand based on random forest model optimized by bat algorithm

    CN113869552A

  • Prediction method for safety assessment of coal mill

    CN114021449A

  • Regional carbon emission prediction method and device and terminal equipment

    CN114781720A