User electric charge scheme analysis method based on BP neural network electric quantity prediction

The power prediction method based on BP neural network solves the problem of low power prediction accuracy in the existing technology, achieves more accurate power prediction and electricity fee analysis, provides users with the optimal electricity fee plan, and improves the service level of the electric power industry. .

CN118761540AInactive Publication Date: 2024-10-11STATE GRID HEBEI ELECTRIC POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410745558.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing power prediction methods have low prediction accuracy and cannot meet the power industry's demand for user power prediction. It is especially difficult to predict accurately when power is affected by multiple factors, and there is a lack of effective electricity bill analysis methods.

Method used

The power prediction method based on BP neural network is used to build an electricity bill calculation model by obtaining the user's historical monthly total power and daily peak power data. The BP neural network is used for power prediction and electricity bill analysis to select the optimal electricity bill plan.

Benefits of technology

It improves the accuracy of user power prediction, avoids tedious manual calculation of electricity bills one by one, provides more accurate and reasonable electricity bill options, and improves the service level of the power industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761540A_ABST
    Figure CN118761540A_ABST
Patent Text Reader

Abstract

The invention discloses a user electric charge scheme analysis method based on BP neural network electric quantity prediction. The method comprises the following steps: acquiring historical monthly total electric quantity data of a user in T months; acquiring historical daily peak electric quantity data of the user in T months, and calculating to obtain historical monthly peak electric quantity data of the T months; processing the historical monthly total electric quantity data and the historical monthly peak electric quantity data; performing prediction based on a BP neural network to obtain monthly electric quantity data of a future month; and constructing an electric charge calculation model of the user electric charge scheme, performing electric charge prediction based on the electric charge calculation model, and analyzing a predicted value to obtain an optimal electric charge scheme. According to the user electric charge scheme analysis method based on BP neural network electric quantity prediction designed by the invention, the user electric quantity can be predicted more accurately, so that the power utilization characteristics of the user can be deeply known, and a power grid electric charge scheme is a problem urgently needing to be solved by technicians in the field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electricity fee analysis and prediction, and more specifically to a method for analyzing user electricity fee plans based on BP neural network electricity quantity prediction. Background Art

[0002] The scale of my country's electricity retail market continues to expand, and the competition among power sales companies has become more severe. In the face of competitive pressure, it is of great significance to enhance users' sense of power acquisition and service experience. Research on user electricity forecasting and electricity fee analysis plays an important role in improving the economic efficiency of user electricity use, reducing user electricity costs, improving the service level of the power industry, and promoting the development of the power industry.

[0003] Electricity forecasting refers to extracting historical data of user electricity consumption from the original electricity data collected by the meter, and establishing a forecasting model to predict the user's future electricity consumption. Classic forecasting methods such as expert forecasting method and exponential smoothing method are convenient and simple to calculate. They can make preliminary forecasts of future electricity values ​​based on work experience or simple mathematical reasoning. However, the forecasting accuracy is low and cannot meet the requirements of current electricity forecasting work.

[0004] As people's living standards continue to improve, electrical equipment is becoming more diverse and varied, and electricity consumption is affected by many factors such as electrical power and time, making it difficult to predict. It is necessary to use intelligent algorithms to make predictions based on historical electricity consumption.

[0005] The publication number is CN116777049A, and the name is A method and system for predicting user electricity consumption. It specifically discloses a method and system for predicting user electricity consumption, which relates to the field of electricity consumption prediction. Taking the influencing factors of electricity consumption as characteristics, historical electricity consumption under different characteristic values ​​is obtained, and the electricity consumption and characteristic values ​​of a time period are taken as a sample. By adjusting the duration of the divided time period, a time series sample data set of multiple scales is obtained; a multi-scale electricity consumption prediction model is constructed, and the model is trained based on the time series sample data sets of multiple scales; the trained multi-scale electricity consumption prediction model is used to predict the user's electricity consumption in the next time period; the present invention is based on a long short-term memory network LSTM and a mixed density network MDN, considering the uncertainty of electricity consumption and the diversity of influencing factors, to construct a multi-scale electricity consumption prediction model; through preset durations of different scales, a multi-scale time series sample data set is obtained to train the model; the trained model is used to predict the probability of user electricity consumption, providing more accurate and richer data for user energy analysis.

[0006] Yang Liu, Wu Yanlin, Zhang Chao, Liu Chao, Jiang Bo, and Zhang Peng used wavelet analysis to predict electricity consumption in "Improved Least Squares Support Vector Machine Electricity Prediction Algorithm" (Power System and Clean Energy, 2017, 33(3):71-76). The method is weaker than BP neural network in terms of the expression ability of complex data processing. BP neural network can approximate any nonlinear mapping relationship when there are enough hidden layers and hidden nodes. It is a global approximation method with good generalization ability. The neural network improved by different optimization algorithms can be used to predict user electricity consumption. BP neural network has stronger prediction accuracy than traditional neural network, but there is no research on predicting user electricity consumption and analyzing electricity bill scheme based on this method.

[0007] Therefore, how to provide a user electricity fee plan analysis method based on BP neural network power prediction, which can more accurately predict user power consumption and thus gain an in-depth understanding of their own power consumption characteristics and power grid electricity fee plans is an urgent problem that technicians in this field need to solve. Summary of the invention

[0008] In view of this, the present invention provides a method for analyzing user electricity fee plans based on BP neural network electricity quantity prediction, aiming to solve the above technical problems.

[0009] In order to achieve the above object, the present invention adopts the following technical solution:

[0010] A method for analyzing user electricity fee plans based on BP neural network power forecasting includes the following steps:

[0011] Step S1, obtaining the user's historical monthly total electricity data for T months; obtaining the user's historical daily peak electricity data for T months, and calculating the historical monthly peak electricity data for T months;

[0012] Step S2, processing the historical monthly total electricity data and the historical monthly peak electricity data;

[0013] Step S3: Predict based on BP neural network to obtain the future T for Monthly electricity data for the month;

[0014] Step S4: construct an electricity fee calculation model for the user's electricity fee plan, perform electricity fee prediction based on the electricity fee calculation model, and analyze the predicted value to obtain the optimal electricity fee plan.

[0015] Furthermore, the step S1 of obtaining the user's T-month historical monthly total electricity consumption data is specifically as follows:

[0016]

[0017] Among them, W all (i) is the total monthly electricity data for the ith month, W is the electricity, Wall is the total power.

[0018] Furthermore, the step S1 of obtaining the user's T-month historical daily peak power data and calculating the T-month historical monthly peak power data is specifically:

[0019] Get the user's T-month historical daily peak power consumption data Among them, W peak,Day (i,j) is the peak power data of the jth day of the i-th month, W peak is the monthly peak power, W peak,Day is the daily peak electricity;

[0020] Sum the daily peak electricity in the i-th month and calculate the historical monthly peak electricity data for the T-th month

[0021]

[0022] Among them, W peak (i) is the monthly peak electricity data of the i-th month;

[0023]

[0024] Furthermore, the processing of the historical monthly total electricity data and the historical monthly peak electricity data in step S2 is specifically as follows:

[0025] The monthly total electricity consumption of the historical T months is Peak electricity consumption Assign historical data R to the power his .

[0026] Furthermore, the step S3 is specifically as follows:

[0027] Step S31: historical data R of power consumption his Processing is performed to generate (T+1-S1-s2) samples, and the i-th predicted sample X for for:

[0028]

[0029] Among them, d in is the input data, d out is the output data, s1 and s3 are the number of input layers and output layers respectively, and the response function is established

[0030] Step S32: Initialization: assigning initial values ​​of weighted values ​​w1, w2 and standard values ​​b1, b2.

[0031]

[0032] Among them, s2 is the number of hidden layers, eye(m,n) and zeros(m,n) are functions that generate an m-row and n-column matrix and set 1 and 0 respectively;

[0033] Step S33, z loops from 1 to (T+1-s1-s2) to calculate the total sample error;

[0034] Step S34, set an error threshold. If the total sample error is less than or equal to the error threshold, end the calculation and output the calculation result. Otherwise, return to step S33, re-iterate the calculation and modify the parameters for all samples until convergence, and obtain the power forecast data for the next s3 months.

[0035] Step S35: Get future T for Monthly forecast data R for , respectively assigned to the future T for Monthly total electricity Peak electricity consumption Electricity in Heyue Valley

[0036] Furthermore, the step S33 is specifically as follows:

[0037] Step S331: Perform forward calculation according to the corresponding function to obtain the j-th output of the hidden layer in the z-th cycle. and the jth output of the output layer

[0038]

[0039] Step S332: Calculate the error of each output point in the output layer, where the error of the j-th output of the output layer in the z-th cycle is

[0040] Step S333: In the reverse calculation, the weight is corrected once each time a sample is input. The correction amount of the weight between the hidden layer and the output layer is The correction amount of the weight between the input layer and the hidden layer is

[0041]

[0042] Where η is the learning step size, and 0≤η≤1.0, j=1,2,…,s3, i=1,2,…,s2, m=1,2,…,s1, and the correction amount of the standard value of the output layer is The correction amount of the hidden layer standard value is

[0043] Step S334: Get the total sample error as

[0044] Furthermore, the step S4 is specifically as follows:

[0045] Construct electricity fee plans, including one-household-one-meter tiered electricity prices, one-household-one-meter peak-valley electricity prices, combined meter electricity prices, and combined meter peak-valley electricity prices. Calculate each electricity fee plan, compare the electricity fee values ​​of each electricity fee plan, and select the electricity fee plan corresponding to the minimum electricity fee value as the optimal plan.

[0046] Furthermore, the one-household-one-meter tiered electricity price plan is:

[0047] Calculate the power of each gear. If the power Less than W one.all.1.max , then the first level of power W one.all.1 for If the power Greater than W one.all.1.max , less than W one.all.2.max , then the first level of power W one.all.1 W one.all.1.max , second gear power W one.all.2 for If the power Greater than W one.all.2.max , then the first level of power W one.all.1 W one.all.1.max , second gear power W one.all.2 W one.all.2.max , three levels of power W one.all.3 for

[0048] Calculate the electricity fee S for one household and one meter tiered electricity price one.all

[0049] S one.all =P one.all.1 W one.all.1 +P one.all.2 W one.al1.2 +P one.all.3 W one.a1l.3

[0050] Among them, P one.all.1 is the first-tier electricity price of one household and one meter, W one.all.1.max is the power threshold of the first gear, P one.all.2 is the second-tier electricity price of one household and one meter, W one.all.2.max is the second level power threshold, P one.all.3 There are three tiers of electricity prices for one household, one meter.

[0051] Furthermore, the peak-valley electricity price scheme for one household and one meter is:

[0052]

[0053] Among them, P one.peak is the peak electricity price of one household and one meter, Pone.valley It is the valley electricity price for the peak-valley electricity price for one household with one meter.

[0054] Furthermore, it is characterized in that

[0055] The combined meter electricity price scheme is:

[0056]

[0057] Among them, S merge.all is the electricity price under the combined meter electricity price scheme, P merge.all It is the combined meter electricity price;

[0058] The combined peak and valley electricity price plan is:

[0059]

[0060] Among them, P merge.peak is the peak electricity price of the combined peak and valley electricity price, P merge.valley It is the valley electricity price of the combined peak-valley electricity price.

[0061] The above technical solution includes at least the following technical effects:

[0062] It can be seen from the above technical solution that the present invention discloses a method for analyzing user electricity fee plans based on BP neural network electricity forecasting. Compared with the prior art, the present invention proposes a method for calculating user electricity consumption using a BP neural network, which improves the accuracy of user electricity forecasting. By modeling the power grid electricity fee plan, tedious and complicated manual calculations are avoided. Through electricity forecasting and electricity fee calculation, a basis is provided for users to reasonably choose electricity fee plans. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0064] Figure 1 The present invention is a flow chart of a method for analyzing user electricity fee plans based on BP neural network electricity quantity prediction. DETAILED DESCRIPTION

[0065] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0066] See attached Figure 1 The embodiment of the present invention discloses a method for analyzing a user electricity fee plan based on BP neural network power prediction, comprising the following steps:

[0067] Step S1, obtaining the user's historical monthly total electricity data for T months; obtaining the user's historical daily peak electricity data for T months, and calculating the historical monthly peak electricity data for T months;

[0068] Step S2, processing the historical monthly total electricity data and the historical monthly peak electricity data;

[0069] Step S3: Predict based on BP neural network to obtain the future T for Monthly electricity data for the month;

[0070] Step S4: construct an electricity fee calculation model for the user's electricity fee plan, perform electricity fee prediction based on the electricity fee calculation model, and analyze the predicted value to obtain the optimal electricity fee plan.

[0071] To further optimize the above technical solution, the acquisition of the user's historical monthly total electricity consumption data for T months in step S1 is specifically as follows:

[0072]

[0073] Among them, W all (i) is the total monthly electricity data for the ith month, W is the electricity, W all is the total power.

[0074] To further optimize the above technical solution, the historical daily peak power data of the user for T months in step S1 is obtained, and the historical monthly peak power data for T months is calculated as follows:

[0075] Get the user's T-month historical daily peak power consumption data Among them, W peak,Day (i,j) is the peak power data of the jth day of the i-th month, W peak is the monthly peak power, W peak,Day is the daily peak electricity;

[0076] Sum the daily peak electricity in the i-th month and calculate the historical monthly peak electricity data for the T-th month

[0077]

[0078] Among them, W peak (i) is the monthly peak electricity data of the i-th month;

[0079]

[0080] In order to further optimize the above technical solution, the processing of the historical monthly total electricity data and the historical monthly peak electricity data in step S2 is specifically as follows:

[0081] The monthly total electricity consumption of the historical T months is Peak electricity consumption Assign historical data R to the power his .

[0082] To further optimize the above technical solution, step S3 is specifically as follows:

[0083] Step S31: historical data R of power consumption his Processing is performed to generate (T+1-s1-s2) samples, and the i-th predicted sample X for for:

[0084]

[0085] Among them, d in is the input data, d out is the output data, s1 and s3 are the number of input layers and output layers respectively, and the response function is established

[0086] Step S32: Initialization: assigning initial values ​​of weighted values ​​w1, w2 and standard values ​​b1, b2.

[0087]

[0088] Among them, s2 is the number of hidden layers, eye(m,n) and zeros(m,n) are functions that generate an m-row and n-column matrix and set 1 and 0 respectively;

[0089] Step S33, z loops from 1 to (T+1-s1-s2) to calculate the total sample error;

[0090] Step S34, set an error threshold. If the total sample error is less than or equal to the error threshold, end the calculation and output the calculation result. Otherwise, return to step S33, re-iterate the calculation and modify the parameters for all samples until convergence, and obtain the power forecast data for the next s3 months.

[0091] Step S35: Get future T for Monthly forecast data R for , respectively assigned to the future T for Monthly total electricity Peak electricity consumption Electricity in Heyue Valley

[0092] To further optimize the above technical solution, step S33 is specifically as follows:

[0093] Step S331: Perform forward calculation according to the corresponding function to obtain the j-th output of the hidden layer in the z-th cycle. and the jth output of the output layer

[0094]

[0095] Step S332: Calculate the error of each output point in the output layer, where the error of the j-th output of the output layer in the z-th cycle is

[0096] Step S333: In the reverse calculation, the weight is corrected once each time a sample is input. The correction amount of the weight between the hidden layer and the output layer is The correction amount of the weight between the input layer and the hidden layer is

[0097]

[0098] Where η is the learning step size, and 0≤η≤1.0, j=1,2,…,s3, i=1,2,…,s2, m=1,2,…,s1, and the correction amount of the standard value of the output layer is The correction amount of the hidden layer standard value is

[0099] Step S334: Get the total sample error as

[0100] To further optimize the above technical solution, step S4 is specifically as follows:

[0101] Construct electricity fee plans, including one-household-one-meter tiered electricity prices, one-household-one-meter peak-valley electricity prices, combined meter electricity prices, and combined meter peak-valley electricity prices. Calculate each electricity fee plan, compare the electricity fee values ​​of each electricity fee plan, and select the electricity fee plan corresponding to the minimum electricity fee value as the optimal plan.

[0102] In order to further optimize the above technical solution, the one-household-one-meter tiered electricity price plan is as follows:

[0103] Calculate the power of each gear. If the power Less than W one.all.1.max , then the first level of power W one.all.1 for If the power Greater than W one.all.1.max , less than W one.all.2.max , then the first level of power W one.all.1 W one.all.1.max , second gear power W one.all.2 for If the power Greater than W one.all.2.max , then the first level of power W one.all.1W one.all.1.max , second gear power W one.all.2 W one.all.2.max , three levels of power W one.all.3 for

[0104] Calculate the electricity fee S for one household and one meter tiered electricity price one.all

[0105] S one.all =P one.all.1 W one.all.1 +P one.all.2 W one.all.2 +P one.all.3 W one.all.3

[0106] Among them, P one.all.1 is the first-tier electricity price of one household and one meter, W one.all.1.max is the power threshold of the first gear, P one.all.2 is the second-tier electricity price of one household and one meter, W one.all.2.max is the second level power threshold, P one.all.3 There are three tiers of electricity prices for one household, one meter.

[0107] In order to further optimize the above technical solution, the peak-valley electricity price scheme for one household and one meter is as follows:

[0108]

[0109] Among them, P one.peak is the peak electricity price of one household and one meter, P one.valley It is the valley electricity price for the peak-valley electricity price for one household with one meter.

[0110] In order to further optimize the above technical solution, the combined meter electricity price solution is as follows:

[0111]

[0112] Among them, P merge.all is the electricity price under the combined meter electricity price scheme, P merge.all It is the combined meter electricity price;

[0113] The combined peak and valley electricity price plan is:

[0114]

[0115] Among them, P merge.peak is the peak electricity price of the combined peak and valley electricity price, P merge.valley It is the valley electricity price of the combined peak-valley electricity price.

[0116] Table 1 Low voltage residential electricity prices

[0117]

[0118]

[0119] Taking the low-voltage residential electricity price of Hebei Southern Power Grid as an example, the electricity price is shown in Table 1. The first-level power threshold W one.all.1.max =180kwh, second level power threshold W one.all.2.max =280kwh.

[0120] The first tier of the one-household-one-meter tiered electricity price is P one.all.1 =0.52 yuan / kwh, the second-tier electricity price is P one.all.2 =0.57 yuan / kwh, the third-tier electricity price is P one.all.3 =0.82 yuan / kwh.

[0121] Calculate the power of each gear. If the power If it is less than 180kwh, the first level of power is W one.all.1 for If the power If it is greater than 180kwh and less than 280kwh, the first level of power is W one.all.1 The second gear power is 180kwh. one.all.2 for If the power If it is greater than 280kwh, the first level of power is W one.all.1 The second gear power is 180kwh. one.all.2 280kwh, three-speed power W one.all.3 for Calculate the electricity fee S for one household and one meter tiered electricity price one.all

[0122] S one.all =0.52×W one.all.1 +0.57×W one.all.2 +0.82×W one.all.3

[0123] The peak-valley electricity price difference between one household and one meter is P one.peak = 0.03 yuan / kwh, the peak electricity price difference is P one.valley = -0.22 yuan / kwh. Calculate the peak and valley electricity price of one household and one meter S one.peak-valley

[0124]

[0125] The combined electricity price is P merge.all = 0.5362 yuan / kwh, calculate the electricity cost S of the combined meter electricity price merge.all

[0126]

[0127] The peak electricity price of the combined peak and valley electricity price is P merge.peak = 0.57 yuan / kwh, the off-peak electricity price is P merge.valley = 0.31 yuan / kwh. Calculate the combined peak and valley electricity charges S merge.peak-valley

[0128]

[0129] A user electricity fee plan analysis method based on BP neural network power forecasting is designed according to the present invention. Compared with the prior art, the present invention proposes a BP neural network method for calculating user power consumption, which improves the accuracy of user power consumption forecasting. By modeling the power grid power fee plan, tedious and complicated manual calculations are avoided. Through power forecasting and power fee calculation, a basis is provided for users to reasonably choose electricity fee plans.

[0130] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0131] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for analyzing user electricity fee plans based on BP neural network power prediction, characterized in that: The following steps are involved: Step S1, obtaining the user's historical monthly total electricity data for T months; obtaining the user's historical daily peak electricity data for T months, and calculating the historical monthly peak electricity data for T months; Step S2, processing the historical monthly total electricity data and the historical monthly peak electricity data; Step S3: Predict based on BP neural network to obtain the future T for Monthly electricity data for the month; Step S4: construct an electricity fee calculation model for the user's electricity fee plan, perform electricity fee prediction based on the electricity fee calculation model, and analyze the predicted value to obtain the optimal electricity fee plan.

2. The method for analyzing user electricity fee plans based on BP neural network power prediction according to claim 1 is characterized in that: The step S1 of obtaining the user's historical monthly total electricity consumption data for T months is specifically as follows: Among them, W all (i) is the total monthly electricity data for the ith month, W is the electricity, W all is the total power.

3. The method for analyzing user electricity fee plans based on BP neural network power prediction according to claim 1 is characterized in that: In step S1, the user's historical daily peak power data for T months is obtained, and the historical monthly peak power data for T months is calculated as follows: Get the user's T-month historical daily peak power consumption data Among them, W peak,Day (i,j) is the peak power data of the jth day of the i-th month, W peak is the monthly peak power, W peak,Day is the daily peak electricity; Sum the daily peak electricity in the i-th month and calculate the historical monthly peak electricity data for the T-th month Among them, W peak (i) is the monthly peak electricity data of the i-th month; 4. The method for analyzing user electricity fee plans based on BP neural network power prediction according to claim 1 is characterized in that: The processing of the historical monthly total electricity data and the historical monthly peak electricity data in step S2 is specifically as follows: The monthly total electricity consumption of the historical T months is Peak electricity consumption Assign historical data R to the power his .

5. The method for analyzing user electricity fee plans based on BP neural network power prediction according to claim 1 is characterized in that: The step S3 is specifically as follows: Step S31: historical data R of power consumption his Processing is performed to generate (T+1-S1-s2) samples, and the i-th predicted sample X for for: Among them, d in is the input data, d out is the output data, s1 and s3 are the number of input layers and output layers respectively, and the response function is established Step S32: Initialization: assigning initial values ​​of weighted values ​​w1, w2 and standard values ​​b1, b2. Among them, s2 is the number of hidden layers, eye(m,n) and zeros(m,n) are functions that generate an m-row and n-column matrix and set 1 and 0 respectively; Step S33, z loops from 1 to (T+1-s1-s2) to calculate the total sample error; Step S34, set an error threshold. If the total sample error is less than or equal to the error threshold, end the calculation and output the calculation result. Otherwise, return to step S33, re-iterate the calculation and modify the parameters for all samples until convergence, and obtain the power forecast data for the next s3 months. Step S35: Get future T for Monthly forecast data R for , respectively assigned to the future T for Monthly total electricity Peak electricity consumption Electricity in Heyue Valley 6. A method for analyzing user electricity fee plans based on BP neural network power prediction according to claim 5, characterized in that: The step S33 is specifically as follows: Step S331: Perform forward calculation according to the corresponding function to obtain the j-th output of the hidden layer in the z-th cycle. and the jth output of the output layer Step S332: Calculate the error of each output point in the output layer, where the error of the j-th output of the output layer in the z-th cycle is Step S333: In the reverse calculation, the weight is corrected once each time a sample is input. The correction amount of the weight between the hidden layer and the output layer is The correction amount of the weight between the input layer and the hidden layer is Where η is the learning step size, and 0≤η≤1.0, j=1,2,…,s3, i=1,2,…,s2, m=1,2,…,s1, and the correction amount of the standard value of the output layer is The correction amount of the hidden layer standard value is Step S334: Get the total sample error as 7. The method for analyzing user electricity fee plans based on BP neural network power prediction according to claim 1 is characterized in that: The step S4 is specifically as follows: Construct electricity fee plans, including one-household-one-meter tiered electricity prices, one-household-one-meter peak-valley electricity prices, combined meter electricity prices, and combined meter peak-valley electricity prices. Calculate each electricity fee plan, compare the electricity fee values ​​of each electricity fee plan, and select the electricity fee plan corresponding to the minimum electricity fee value as the optimal plan.

8. The method for analyzing user electricity fee plans based on BP neural network power prediction according to claim 7 is characterized in that: The one-household-one-meter tiered electricity price plan is: Calculate the power of each gear. If the power Less than W one.all.1.max , then the first level of power W one.all.1 for If the power Greater than W one.all.1.max , less than W one.all.2.max , then the first level of power W one.all.1 W one.all.1.max , second gear power W one.all.2 for If the power Greater than W one.all.2.max , then the first level of power W one.all.1 W one.all.l.max , second gear power W one.all.2 W one.all.2.max , three levels of power W one.all.3 for Calculate the electricity fee S for one household and one meter tiered electricity price one.all S one.all =P one.all.1 W one.all.1 +P one.all.2 W one.all.2 +P one.all.3 W one.all.3 Among them, P one.all.1 is the first-tier electricity price of one household and one meter, W one.all.1max is the power threshold of the first gear, P one.all.2 is the second-tier electricity price of one household and one meter, W one.all.2.max is the second level power threshold, Pon e.all.3 There are three tiers of electricity prices for one household, one meter.

9. The method for analyzing user electricity fee plans based on BP neural network power prediction according to claim 7, characterized in that: The peak-valley electricity price scheme for one household and one meter is: Among them, P one.peak is the peak electricity price of one household and one meter, P one.valley It is the valley electricity price for the peak-valley electricity price for one household with one meter.

10. The method for analyzing user electricity fee plans based on BP neural network power prediction according to claim 7, characterized in that: The combined meter electricity price scheme is: Among them, S merge.all is the electricity price under the combined meter electricity price scheme, P merge.all It is the combined meter electricity price; The combined peak and valley electricity price plan is: Among them, P merge.peak is the peak electricity price of the combined peak and valley electricity price, P merge.valley It is the valley electricity price of the combined peak-valley electricity price.