A multi-level data processing method and system in a smart grid

Through the multi-level data processing method in the smart grid, the comparison of weather comprehensive data and user electricity consumption is used to determine the similarity value, which solves the accuracy of user electricity consumption prediction when seasonal changes, and achieves the comparison of weather changes Effective prediction and scheduling of electricity consumption in large cases.

CN118586688BActive Publication Date: 2024-11-01HEFEI RONGYI ALUMINUM MOLD ENVIRONMENTAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411074783.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-01
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

In smart grids, when users analyze their electricity usage habits, when the seasonal changes or temperature changes are more obvious, when the electricity consumption data in the latest time period is predicted, the prediction accuracy is low and it is not convenient for power scheduling and processing .

Method used

Using multi-level data processing methods, we can obtain comprehensive weather data and demand prediction time points, establish historical intervals and periodic detection intervals, generate virtual points, and determine similarity values ​​by comparing user electricity consumption and weather data, combine valid points and licenses. Power consumption prediction is carried out to ensure the accuracy of the prediction results.

Benefits of technology

In the case of obvious weather changes, by determining the time period and weather conditions of the user, effective prediction of electricity consumption can be achieved, waste of electricity scheduling and improve prediction accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586688B_ABST
    Figure CN118586688B_ABST
Patent Text Reader

Abstract

The present application relates to a multi-level data processing method and system in a smart grid, and to the field of electric power technology. The method includes obtaining current weather comprehensive data and demand forecast time points; establishing historical intervals and periodic detection intervals on the time axis; generating virtual comparison intervals in the historical intervals; obtaining user power consumption at each time point and determining the overall deviation power consumption based on the user power consumption in the periodic detection interval and the user power consumption in the virtual comparison interval; defining a valid point when the overall deviation power consumption is less than the benchmark power consumption, and establishing a benchmarking time interval based on the valid point; determining a similarity value based on weather comprehensive data at each time point in the benchmarking time interval; determining the similarity value with the largest value based on a sorting rule, and outputting the user power consumption at the time point corresponding to the similarity value as the predicted power consumption for subsequent power scheduling. The present application has the effect of improving the accuracy of power consumption data prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electric power technology, and in particular to a multi-level data processing method and system in a smart grid. Background Art

[0002] Smart grid is a new type of power supply system, which uses modern communication, computer, automation and other technologies, and organically integrates with traditional power technology, greatly improving the intelligence level of the power grid. There are many types of multi-level data in the smart grid, including equipment operation data, power transaction data, user power consumption data, environmental monitoring data, fault diagnosis and prediction data, economic operation data, etc. Through intelligent analysis of various multi-level data, the smart grid can operate intelligently.

[0003] In the related technology, among the user electricity consumption data, the most important data to be analyzed is the user's electricity consumption habit data. By analyzing the user's electricity consumption habit data, the user's electricity consumption in a specific time period can be predicted, so that the overall electricity consumption in the user's area can be scheduled, so that the user's area can have better electricity consumption while reducing the occurrence of excessive electricity resources being wasted due to scheduling.

[0004] In the above-mentioned related technologies, when analyzing the user's electricity usage habits, the current required electricity consumption is generally predicted through the electricity consumption data in the most recent time period. However, when the analyzed time point happens to be a time point when seasonal changes or temperature changes are more obvious, the user's use of electrical equipment will show obvious changes. At this time, when predicting the required electricity consumption through the electricity consumption data in the most recent time period, the prediction result obtained when predicting the required electricity consumption is low in accuracy, which cannot facilitate the subsequent effective scheduling of electricity. Summary of the invention

[0005] In order to improve the accuracy of electricity consumption data prediction, the present application provides a multi-level data processing method and system in a smart grid.

[0006] In a first aspect, the present application provides a multi-level data processing method in a smart grid, which adopts the following technical solution:

[0007] A multi-level data processing method in a smart grid, comprising:

[0008] Obtain current comprehensive weather data and demand forecast time points;

[0009] On the preset time axis, a historical interval with a preset standard interval length between the rear endpoint and the demand forecast time point and a width of the historical time length is established, and a periodic detection interval with a preset periodic time length is established with the demand forecast time point as the rear endpoint;

[0010] Generate a virtual point with a variable position in the historical interval, and use the virtual point as the rear end point to establish a virtual comparison interval with a width consistent with the period detection interval;

[0011] Obtain the user's power consumption at each time point and compare the user's power consumption in the periodic detection interval and the user's power consumption in the virtual comparison interval one by one to determine the overall deviation power consumption;

[0012] When the overall deviation power consumption is less than the preset benchmark power consumption, the corresponding virtual point is defined as the effective point, and a benchmarking time interval is established based on the effective point and the demand forecast time point;

[0013] Compare the weather comprehensive data at each time point with the current weather comprehensive data during the benchmark time period to determine the similarity value;

[0014] The similarity value with the largest value is determined according to a preset sorting rule, and the user's power consumption at the time point corresponding to the similarity value is output as the predicted power consumption for subsequent power scheduling.

[0015] Optionally, the steps of establishing a benchmarking time interval according to the effective point and the demand forecast time point include:

[0016] Starting from the last valid point on the time axis, different valid points are combined in sequence to determine the valid combination;

[0017] In a valid combination, the combination time span is determined based on the two valid points that are farthest apart, and the valid number of combinations is determined by counting the valid points in the valid combination;

[0018] The effective distribution density is determined by calculating the combined time span and the combined effective quantity;

[0019] The effective distribution density determined by the first effective combination is defined as the benchmark density, and the qualified density range is determined by calculation based on the benchmark density and the preset allowable error ratio;

[0020] When the effective distribution density is within the qualified density range, the effective point in the effective combination is defined as the permitted point;

[0021] The permitted interval is determined based on the continuous and uninterrupted permitted points with the last permitted point on the time axis as the starting point, and the permitted point farthest from the last permitted point in the permitted interval is defined as the boundary point;

[0022] The boundary point and the demand forecast time point are used as two endpoints to establish a benchmark time interval.

[0023] Optionally, the step of comparing the weather comprehensive data at each time point with the current weather comprehensive data in the benchmark time interval to determine the similarity value includes:

[0024] Get the weather data type of each weather comprehensive data;

[0025] Determine the data simulation value corresponding to the weather comprehensive data under the weather data type according to the preset simulation matching relationship;

[0026] Determine the calculation weight value corresponding to the weather data type according to the preset weight matching relationship;

[0027] Perform difference calculation based on the data simulated values ​​of the same weather data type to determine the data simulated difference;

[0028] The similarity value is determined based on all the data simulated differences and the corresponding calculated weight values.

[0029] Optionally, after the similarity value is determined, the multi-level data processing method further includes:

[0030] Determine whether there are at least two time points with the same and maximum similarity values;

[0031] If there are not at least two time points with the same and maximum similarity values, the predicted power consumption is determined and outputted according to the user power consumption corresponding to the time point;

[0032] If there are at least two time points with the same and maximum similarity values, the corresponding time points are defined as candidate points, and the overall deviation power consumption is determined according to each candidate point in the benchmark time interval;

[0033] According to the sorting rules, the overall deviation power consumption with the smallest value among the candidate points is determined, and the user power consumption corresponding to the candidate point corresponding to the overall deviation power consumption is defined as the standard power consumption;

[0034] Determine the standard power consumption range according to the standard power consumption and the preset allowable deviation value, and define the power consumption of users in the alternative point within the standard power consumption range as effective power consumption;

[0035] The predicted power consumption is determined and output by averaging all the effective power consumption.

[0036] Optionally, after the effective point is defined, the multi-level data processing method in the smart grid further includes:

[0037] When there is no valid point, obtain the same users in the same area;

[0038] In the periodic detection interval, the user power consumption of the same user in the area and the user power consumption of the current analysis user are compared one by one to determine the user similarity deviation value;

[0039] Determine the user similarity deviation value with the smallest value according to the sorting rule, and define the users in the same region corresponding to the user similarity deviation value as users with similar behaviors;

[0040] Determine a corresponding similarity value according to users with similar behaviors, and judge whether the similarity value is greater than a preset benchmark requirement value;

[0041] If the similarity value is greater than the benchmark demand value, the power consumption of the user at the corresponding time point of the user with similar behavior is used as the predicted power consumption of the current analyzed user and output;

[0042] If the similarity value is not greater than the benchmark demand value, users with similar behaviors are re-determined among the remaining users in the same area according to the user similarity deviation value until the predicted power consumption is determined or the user similarity deviation value is greater than the preset invalid deviation value.

[0043] Optionally, after the user similarity deviation value is determined, the multi-level data processing method in the smart grid further includes:

[0044] Determine whether there are at least two users in the same area with the same and minimum similarity deviation values;

[0045] If there are no at least two users in the same area with the same and smallest user similarity deviation values, determine users with similar behaviors based on the users in the same area;

[0046] If there are at least two users in the same area with the same and smallest user similarity deviation values, a comparison time point is selected in the periodic detection interval according to a preset comparison quantity;

[0047] Perform one-to-one comparison based on the power consumption of users at the comparison time point to determine the comparison deviation value;

[0048] Determine the comparison deviation value with the smallest value according to the sorting rule, and use the comparison deviation value as the representative deviation value of users in the same area;

[0049] A representative deviation value with the smallest value is determined according to the sorting rule, and users in the same area corresponding to the representative deviation value are determined as users with similar behaviors.

[0050] Optionally, after the predicted power consumption is output, the multi-level data processing method in the smart grid further includes:

[0051] In the periodic detection interval, the difference between the user's power consumption at each time point and the corresponding predicted power consumption is calculated to determine the predicted deviation value;

[0052] The average deviation value is determined by calculating the mean value according to the absolute value of each prediction deviation value, and the overall prediction deviation is determined by calculating the absolute value of each prediction deviation value and the average deviation value;

[0053] Determine whether the overall forecast deviation is less than the preset effective qualified deviation;

[0054] If the overall forecast deviation is less than the valid qualified deviation, the forecast correction value is determined by averaging all forecast deviation values, and the forecast power consumption is updated according to the forecast correction value;

[0055] If the overall predicted deviation is not less than the effective qualified deviation, the predicted signal corresponding to the average deviation value is determined according to the preset prediction matching relationship, and the predicted signal is output synchronously with the predicted power consumption.

[0056] In a second aspect, the present application provides a multi-level data processing system in a smart grid, which adopts the following technical solution:

[0057] A multi-level data processing system in a smart grid, comprising:

[0058] The acquisition module is used to obtain the current comprehensive weather data and demand forecast time point;

[0059] A processing module, connected to the acquisition module and the judgment module, for storing and processing information;

[0060] A judgment module, connected with the acquisition module and the processing module, for judging the information;

[0061] The processing module establishes a historical interval on a preset time axis with a preset standard interval length between the rear endpoint and the demand forecast time point and a width of the historical time length, and establishes a period detection interval with a preset period length width with the demand forecast time point as the rear endpoint;

[0062] The processing module generates a virtual point with a variable position in the historical interval, and uses the virtual point as the rear end point to establish a virtual comparison interval with a width consistent with the period detection interval;

[0063] The acquisition module acquires the user's power consumption at each time point and enables the processing module to compare the user's power consumption in the periodic detection interval and the user's power consumption in the virtual comparison interval one by one to determine the overall deviation power consumption;

[0064] When the judgment module determines that the overall deviation power consumption is less than the preset benchmark power consumption, the processing module defines the corresponding virtual point as a valid point, and establishes a benchmark time interval according to the valid point and the demand forecast time point;

[0065] The processing module compares the weather comprehensive data at each time point with the current weather comprehensive data in the benchmark time interval to determine the similarity value;

[0066] The processing module determines the similarity value with the largest value according to a preset sorting rule, and outputs the user's power consumption at the time point corresponding to the similarity value as the predicted power consumption for subsequent power scheduling.

[0067] In summary, the present application includes at least one of the following beneficial technical effects:

[0068] When predicting electricity consumption in the case of significant weather changes, the actual time period of the user can be determined first, and then compared with the specific weather conditions to achieve electricity consumption prediction;

[0069] In the case where the historical data of a single user cannot predict the current electricity consumption, the electricity consumption of the current user can be predicted based on the specific conditions of other users in the user's area, thereby achieving effective prediction of electricity consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 It is a flow chart of the multi-level data processing method in smart grid.

[0071] Figure 2 It is a flow chart of the method for establishing the benchmark time interval.

[0072] Figure 3 is a flow chart of a method for determining a similarity value.

[0073] Figure 4 is a flow chart of the time point screening method.

[0074] Figure 5 is a flow chart that behaves like a user-determined method.

[0075] Figure 6 It is a flowchart of the method for screening users in the same region.

[0076] Figure 7 It is a flow chart of the method for correcting the predicted electricity consumption.

[0077] Figure 8 It is a module flow chart of the multi-level data processing method in smart grid. DETAILED DESCRIPTION

[0078] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-Figure 8 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0079] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0080] The embodiment of the present application discloses a multi-level data processing method in a smart grid. When predicting user electricity consumption, the actual time period generated by the current user is determined based on the historical data under the user's account name, and then the electricity consumption data under the same weather conditions at this time point is found, and prediction is made based on the electricity consumption data, so that the user's electricity consumption can still be better predicted when the weather changes are more obvious.

[0081] Reference Figure 1 ,The method flow of the multi-level data processing method in the smart grid includes the following steps:

[0082] Step S100: Obtain current comprehensive weather data and demand forecast time point.

[0083] Comprehensive weather data includes data that can reflect specific weather conditions, such as humidity, temperature, wind direction, air pressure, season, etc. This comprehensive weather data can be predicted and obtained through the weather forecast system; the demand forecast time point is the time point when the user's electricity consumption needs to be predicted. Generally speaking, this time point is specific to the date, such as a forecast for November 11th.

[0084] Step S101: Establish a historical interval on a preset time axis with a preset standard interval length between the rear endpoint and the demand forecast time point and a width of the historical length, and establish a periodic detection interval with a preset periodic length with the demand forecast time point as the rear endpoint.

[0085] The time axis is a coordinate axis formed by the combination of various time points. The time axis points from the time points that have passed to the time points that have not yet arrived. The standard interval duration is the interval duration set by the staff for obtaining data on the user's historical behavior habits, such as 2 months. The historical duration is the duration set by the staff to detect the user's historical behavior habits, such as 1 year. Establishing a historical interval can effectively collect and analyze historical data; the cycle duration is a fixed duration set by the staff, such as seven days a week. Establishing a cycle detection interval can obtain electricity consumption data within the cycle duration, which is convenient for subsequent analysis.

[0086] Step S102: Generate a virtual point with a variable position in the historical interval, and use the virtual point as the rear end point to establish a virtual comparison interval with a width consistent with the period detection interval.

[0087] A virtual point is a time point in a historical interval. Establishing a virtual comparison interval can facilitate the acquisition of data within the period length of the historical process, which is convenient for subsequent analysis.

[0088] Step S103: obtaining the user power consumption at each time point and performing a one-to-one comparison according to the user power consumption in the periodic detection interval and the user power consumption in the virtual comparison interval to determine the overall deviation power consumption.

[0089] The user's electricity consumption is the value of electricity used on the day at the corresponding time point. The overall deviation electricity consumption is the deviation value obtained by comparing the user's electricity consumption in the two intervals one by one. The calculation formula is: , where Y is the overall deviation power consumption, I 1n is the user's power consumption at the nth time point in the periodic detection interval, I 2n is the user's power consumption at the nth time point in the virtual comparison interval. The one-to-one comparison method is to compare the first time point in the periodic detection interval with the first time point in the virtual comparison interval, and so on.

[0090] Step S104: When the overall deviation power consumption is less than the preset reference power consumption, the corresponding virtual point is defined as a valid point, and a benchmark time interval is established according to the valid point and the demand forecast time point.

[0091] The benchmark power consumption is the maximum overall deviation power consumption set by the staff to determine that the power consumption behaviors of two intervals are relatively similar. When the overall deviation power consumption is less than the benchmark power consumption, it means that the power consumption behaviors of the virtual comparison interval and the current periodic detection interval are relatively similar. At this time, the corresponding virtual point is defined as a valid point to achieve the distinction between different virtual points, which is convenient for subsequent analysis; the benchmark time interval is an interval established with the valid point and the demand forecast time point as two endpoints. When there are multiple valid points, you can select any valid point to determine the benchmark time interval, or you can determine the benchmark time interval according to the method in steps S200-S206, which will not be repeated here.

[0092] Step S105: Compare the weather comprehensive data at each time point with the current weather comprehensive data in the benchmark time interval to determine a similarity value.

[0093] The similarity value is a numerical value reflecting the similarity of weather conditions at two time points. The larger the value is, the more similar the weather conditions at the two time points are. The specific calculation method can be described in steps S300 to S304.

[0094] Step S106: Determine the similarity value with the largest value according to the preset sorting rule, and output the user's power consumption at the time point corresponding to the similarity value as the predicted power consumption for subsequent power scheduling.

[0095] The sorting rule is a method set by the staff to sort the size of values, such as the bubble method. The sorting rule can be used to determine the maximum similarity value of the value, that is, the time point corresponding to the similarity value is most similar to the electricity consumption behavior at the current demand forecast time point. At this time, the user's electricity consumption at this time point is output as the predicted electricity consumption to achieve effective prediction of electricity consumption.

[0096] Reference Figure 2 The steps of establishing the benchmarking time interval according to the effective point and the demand forecast time point include:

[0097] Step S200: starting from the last valid point on the time axis, combining different valid points in sequence to determine a valid combination.

[0098] A valid combination is a combination formed by combining all valid points. For example, if there are three valid points ABC from the beginning to the end on the time axis, then the corresponding valid combinations include CB and CBA.

[0099] Step S201: Determine the combination time span according to the two valid points that are farthest apart in the valid combination, and count the valid points in the valid combination to determine the valid number of the combination.

[0100] The combination time span is the time interval between the two valid points in the valid combination that are farthest apart on the time axis. Taking the above-mentioned valid combination ABC as an example, the corresponding combination time span is the time interval between time point A and time point C; the effective number of combinations is the total number of valid points in the valid combination.

[0101] Step S202: Calculate according to the combined time span and the combined effective quantity to determine the effective distribution density.

[0102] The effective distribution density is the value obtained by dividing the combined time span by the effective number of combinations.

[0103] Step S203: defining the effective distribution density determined by the first effective combination as a reference density, and performing calculations based on the reference density and a preset allowable error ratio to determine a qualified density range.

[0104] The benchmark density is defined to distinguish different valid distribution densities for subsequent analysis. The first valid combination is the first determined valid combination. Taking the above-mentioned valid points as ABC as an example, the corresponding valid combination is BC. The allowable error ratio is the density change ratio allowed when the recognized density set by the staff does not change significantly, which is generally 30%-50%. The corresponding value can be obtained by multiplying the benchmark density by the allowable error ratio. The two endpoint values ​​can be obtained by adding and subtracting the benchmark density. The interval range determined by these two endpoint values ​​is the qualified density range.

[0105] Step S204: When the effective distribution density is within the qualified density range, define the effective points in the effective combination as permitted points.

[0106] When the effective distribution density is within the qualified density range, it means that the effective points determined at this time are basically obtained by the same actual user under the same user name. At this time, the corresponding effective points are defined as permitted points for identification to facilitate subsequent analysis.

[0107] Step S205: Taking the last permitted point on the time axis as the starting point, determining the permitted interval according to the continuous permitted points, and defining the permitted point farthest from the last permitted point in the permitted interval as the boundary point.

[0108] The permitted interval is the maximum interval with the valid point as the endpoint and all valid points within the interval are permitted points. Boundary points are defined to distinguish different permitted points for subsequent analysis.

[0109] Step S206: Establish a benchmark time interval based on the boundary point and the demand forecast time point as two endpoints.

[0110] Using boundary points to determine the benchmarking time interval can determine the valid points obtained by the same actual user. The valid points determined before the boundary points may not be obtained by the current actual residents, so they are eliminated to make the determined benchmarking time interval more accurate.

[0111] Reference Figure 3 The steps of comparing the weather comprehensive data at each time point and the current weather comprehensive data in the benchmark time interval to determine the similarity value include:

[0112] Step S300: Obtain the weather data type of each weather comprehensive data.

[0113] The weather data type is the data type of comprehensive weather data, such as temperature, season, etc.

[0114] Step S301: determining a data simulation value corresponding to the weather comprehensive data under the weather data type according to a preset simulation matching relationship.

[0115] The data simulation value is the simulated numerical value corresponding to the weather comprehensive data under the weather data type, which is used to calculate the similarity value. Different weather data types and weather comprehensive data correspond to different data simulation values. Therefore, the staff will establish the simulated matching relationship in advance so that data that does not contain numerical values ​​such as seasons can be processed by data simulation, thereby facilitating the calculation of the similarity value.

[0116] Step S302: determining a calculation weight value corresponding to the weather data type according to a preset weight matching relationship.

[0117] The calculation weight value is the calculation parameter when calculating the similarity value of each type of data. Since different types of data have different effects on electricity consumption, the corresponding calculation weight values ​​are also different. For example, the impact of temperature on electricity consumption is far greater than the impact of haze on electricity consumption. Therefore, the calculation weight value corresponding to temperature is larger. The weight matching relationship between the two is established and entered in advance by the staff.

[0118] Step S303: performing difference calculation according to the data simulation values ​​of the same weather data type to determine the data simulation difference.

[0119] The data simulation difference is the difference between the data simulation values ​​of the same weather data type, and the difference is an absolute value.

[0120] Step S304: Calculate based on all the data simulated differences and the corresponding calculation weight values ​​to determine the similarity value.

[0121] The calculation formula is , where X is the similarity value, α is a fixed parameter used for calculation, τ n is the calculated weight value corresponding to the nth type of data, M n It is the data simulation difference corresponding to the nth type of data.

[0122] Reference Figure 4 , after the similarity value is determined, the multi-level data processing method further includes:

[0123] Step S400: Determine whether there are at least two time points with the same and maximum similarity values.

[0124] The purpose of the judgment is to find out whether there are multiple time points that meet the requirements, so as to facilitate the subsequent determination of the predicted power consumption.

[0125] Step S4001: If there are not at least two time points with the same and maximum similarity values, the predicted power consumption is determined and outputted based on the user power consumption corresponding to the time point.

[0126] When there are not at least two time points with the same and maximum similarity values, it means that there is only one time point that meets the requirements. At this time, the predicted power consumption can be determined based on the user power consumption at the corresponding time point.

[0127] Step S4002: If there are at least two time points with the same and maximum similarity values, the corresponding time points are defined as candidate points, and the overall deviation power consumption is determined according to each candidate point in the benchmark time interval.

[0128] When there are at least two time points with the same and maximum similarity values, it means that there are multiple time points that meet the requirements. At this time, the time points need to be further screened and processed; alternative points are defined to distinguish different time points.

[0129] Step S401: determining the overall deviation power consumption with the smallest value among the candidate points according to the sorting rule, and defining the user power consumption corresponding to the candidate point corresponding to the overall deviation power consumption as the standard power consumption.

[0130] The sorting rules can be used to determine the overall deviation power consumption with the smallest value, that is, the alternative point is closest to the power consumption habits at the current demand forecast time point. At this time, the corresponding user power consumption is defined as the standard power consumption for subsequent analysis.

[0131] Step S402: Determine a standard power consumption range according to the standard power consumption and a preset allowable deviation value, and define the power consumption of users in the candidate point that is within the standard power consumption range as effective power consumption.

[0132] The allowable deviation value is the maximum difference allowed when the overall electricity consumption is close to the standard electricity consumption, as set by the staff. The two endpoints of the standard electricity consumption range are the standard electricity consumption minus the allowable deviation value and the standard electricity consumption plus the allowable deviation value. The electricity consumption of users within the standard electricity consumption range is defined as effective electricity consumption to distinguish the electricity consumption of different users, which is convenient for subsequent analysis.

[0133] Step S403: Calculate the average of all effective power consumption to determine the predicted power consumption and output it.

[0134] The effective power consumption is used to perform average calculation to determine the predicted power consumption, so that the determined predicted power consumption is more accurate.

[0135] Reference Figure 5 After the effective point definition is completed, the multi-level data processing method in the smart grid also includes:

[0136] Step S500: when there is no valid point, obtaining users in the same area under the same area.

[0137] When there is no valid point, it means that the specific situation of the actual residents under the user's name cannot be determined. At this time, if the weather similarity value is determined in the historical data of the user currently being analyzed, there is a high possibility that the electricity consumption forecast will be inaccurate, so further analysis is needed; users in the same area are other users in the same area as the user currently undergoing electricity consumption forecast analysis, and the specific scope of the area is set by the staff according to actual conditions, such as the same community, the same street, the same city, etc.

[0138] Step S501: performing a one-to-one comparison between the power consumption of users in the same area and the power consumption of the currently analyzed user in a periodic detection interval to determine a user similarity deviation value.

[0139] The user similarity deviation value is the deviation value of the electricity usage habits of two users in the same time period. The larger the value, the more different the electricity usage habits of the two users are. The specific calculation method is consistent with the above-mentioned overall deviation electricity consumption, which will not be repeated here.

[0140] Step S502: determining the user similarity deviation value with the smallest value according to the sorting rule, and defining users in the same region corresponding to the user similarity deviation value as users with similar behaviors.

[0141] The sorting rules can be used to determine the user similarity deviation value with the smallest value, that is, the electricity usage habits of the same users in the area corresponding to the user similarity deviation value are closest to the electricity usage habits of the currently analyzed user. At this time, they are defined as users with similar behaviors to distinguish the same users in different areas, which is convenient for subsequent analysis.

[0142] Step S503: determining a corresponding similarity value according to users with similar behaviors, and judging whether the similarity value is greater than a preset reference requirement value.

[0143] The benchmark demand value is the minimum similarity value that must be met when comparing the weather and determining that the weather is relatively similar. The purpose of the judgment is to find out whether the weather experienced by users with similar behavior includes the weather for the current predicted electricity consumption.

[0144] Step S504: if the similarity value is greater than the reference demand value, the power consumption of the user at the corresponding time point of the user with similar behavior is used as the predicted power consumption of the current analyzed user and output.

[0145] When the similarity value is greater than the benchmark demand value, it indicates that there is weather that meets the requirements. At this time, the user's electricity consumption at the time point of the weather that meets the requirements corresponding to users with similar behaviors is output as the predicted electricity consumption, so as to achieve a reasonable prediction of the electricity consumption of the current analyzed user at the demand prediction time point.

[0146] Step S500: If the similarity value is not greater than the reference demand value, users with similar behaviors are re-determined among the remaining users in the same area according to the user similarity deviation value until the predicted power consumption is determined or the user similarity deviation value is greater than the preset invalid deviation value.

[0147] When the similarity value is not greater than the benchmark demand value, it means that the user with similar behavior has not experienced the current weather conditions in history. At this time, the user with similar behavior can be re-determined among the remaining users until a reasonable prediction output of the predicted power consumption can be made or the user similarity deviation value is greater than the invalid deviation value, where the invalid deviation value is the minimum user similarity deviation value set by the staff to determine that the power usage habits of two users are very different. When the user similarity deviation value is greater than the invalid deviation value, it means that there are no remaining users with power usage habits similar to those of the current user. At this time, an unpredictable signal can be output to the management platform, allowing the staff to manually intervene and handle it.

[0148] Reference Figure 6 , after the user similarity deviation value is determined, the multi-level data processing method in the smart grid also includes:

[0149] Step S600: Determine whether there are at least two users in the same area whose similarity deviation values ​​are the same and the smallest.

[0150] The purpose of the judgment is to find out whether there are multiple users in the same region that meet the requirements, so that when there are multiple users in the same region, they can all be regarded as users with similar behaviors and further screen them.

[0151] Step S6001: If there are no at least two users in the same area whose user similarity deviation values ​​are the same and the smallest, users with similar behaviors are determined based on the users in the same area.

[0152] When there are not at least two users in the same area with the same and smallest user similarity deviation values, it means that there is only one user in the same area that meets the requirements, and in this case, it can be determined as a user with similar behaviors.

[0153] Step S6002: If there are at least two users in the same area with the same user similarity deviation value and the smallest user similarity deviation value, a comparison time point is selected in the periodic detection interval according to a preset comparison quantity.

[0154] When there are at least two users in the same area with the same and smallest similarity deviation values, it means that the users in the same area need to be screened; the comparison number is a fixed number set by the staff, which is generally the number of time points in the periodic detection interval minus one. For example, if there are 3 time points in the periodic detection interval, the comparison number is 2; the comparison time point is the time point selected in the periodic detection interval, that is, the time point that needs to be analyzed. For example, if the 3 time points in the periodic detection interval are J, K, and L, the combinations that can be selected as comparison time points by colleagues include JK, JL, and KL.

[0155] Step S601: Perform a one-to-one comparison based on the power consumption of users at the comparison time point to determine a comparison deviation value.

[0156] The comparison deviation value is the result value obtained by comparing the users in the same area with the current analysis user and the comparison time points in the periodic detection interval one by one. This value reflects the difference in electricity usage habits of the two users at the comparison time points. The larger the value, the more different the electricity usage habits of the two users. The specific calculation method is consistent with the overall deviation electricity consumption, so it will not be repeated here.

[0157] Step S602: Determine the comparison deviation value with the smallest value according to the sorting rule, and use the comparison deviation value as the representative deviation value of users in the same area.

[0158] The comparison deviation value with the smallest numerical value can be determined through the sorting rules, which means that the comparison time point determined under this comparison deviation value is closest to the power usage habits of the currently analyzed user. At this time, it is defined as the representative deviation value to indicate the deviation in power usage habits between users in the same area and the currently analyzed user.

[0159] Step S603: determining a representative deviation value with the smallest value according to the sorting rule, and determining users in the same area corresponding to the representative deviation value as users with similar behaviors.

[0160] The representative deviation value with the smallest numerical value can be determined through the sorting rules, that is, the user in the same area corresponding to the representative deviation value has the closest electricity usage habits to the currently analyzed user. At this time, they can be determined as users with similar behaviors. When there are still multiple users with the same and smallest representative deviation values, the comparison number can be reduced by one to re-determine the representative deviation value until the most suitable user with similar behavior is determined.

[0161] Reference Figure 7 After the predicted power consumption is output, the multi-level data processing method in the smart grid also includes:

[0162] Step S700: performing difference calculation based on the user's power consumption at each time point and the corresponding predicted power consumption in the periodic detection interval to determine the predicted deviation value.

[0163] The prediction deviation value is the difference between the predicted power consumption predicted at each time point in the periodic detection interval and the actual user power consumption. The difference is a relative value and is determined by subtracting the predicted power consumption from the user power consumption.

[0164] Step S701: performing mean calculation based on the absolute values ​​of the prediction deviation values ​​to determine the average deviation value, and performing calculation based on the absolute values ​​of the prediction deviation values ​​and the average deviation value to determine the prediction overall deviation.

[0165] The average deviation value is the average of the absolute values ​​of each predicted deviation value. The overall predicted deviation is a parameter that reflects whether the deviation between the predicted amount and the actual amount is stable. The smaller the value, the more stable the deviation. The calculation formula is: , where Q is the overall prediction deviation, R n is the nth prediction deviation value, is the average deviation value.

[0166] Step S702: Determine whether the predicted overall deviation is less than the preset valid qualified deviation.

[0167] The effective qualified deviation is the maximum overall forecast deviation that needs to be met when the deviation between the predicted quantity and the actual quantity is relatively stable, and the purpose of the judgment is to find out whether the deviation between the predicted quantity and the actual quantity is stable.

[0168] Step S7021: If the overall prediction deviation is less than the valid qualified deviation, the average of all prediction deviation values ​​is calculated to determine the prediction correction value, and the predicted power consumption is updated according to the prediction correction value.

[0169] When the overall prediction deviation is less than the effective qualified deviation, it means that the deviation is relatively stable. At this time, the prediction correction value can be obtained by using the mean calculation of all the prediction deviation values. The predicted power consumption can be updated by adding the predicted power consumption to the predicted correction value, thereby further improving the accuracy of the determined predicted power consumption.

[0170] Step S7022: If the predicted overall deviation is not less than the valid qualified deviation, the prediction signal corresponding to the average deviation value is determined according to the preset prediction matching relationship, and the prediction signal is output synchronously with the predicted power consumption.

[0171] When the overall prediction deviation is not less than the effective qualified deviation, it means that the deviation is unstable. At this time, a prediction signal can be output to identify the situation. The prediction signal includes a small deviation signal, a moderate deviation signal and a large deviation signal. Different average deviation values ​​correspond to different prediction signals. The prediction matching relationship between the two is entered in advance by the staff. By synchronously outputting the prediction signal and the predicted power consumption, the management personnel can know the overall situation of the power consumption forecast, which is convenient for subsequent processing.

[0172] Reference Figure 8 Based on the same inventive concept, an embodiment of the present invention provides a multi-level data processing system in a smart grid, including:

[0173] The acquisition module is used to obtain the current comprehensive weather data and demand forecast time point;

[0174] A processing module, connected to the acquisition module and the judgment module, for storing and processing information;

[0175] A judgment module, connected with the acquisition module and the processing module, for judging the information;

[0176] The processing module establishes a historical interval on a preset time axis with a preset standard interval length between the rear endpoint and the demand forecast time point and a width of the historical time length, and establishes a period detection interval with a preset period length width with the demand forecast time point as the rear endpoint;

[0177] The processing module generates a virtual point with a variable position in the historical interval, and uses the virtual point as the rear end point to establish a virtual comparison interval with a width consistent with the period detection interval;

[0178] The acquisition module acquires the user's power consumption at each time point and enables the processing module to compare the user's power consumption in the periodic detection interval and the user's power consumption in the virtual comparison interval one by one to determine the overall deviation power consumption;

[0179] When the judgment module determines that the overall deviation power consumption is less than the preset benchmark power consumption, the processing module defines the corresponding virtual point as a valid point, and establishes a benchmark time interval according to the valid point and the demand forecast time point;

[0180] The processing module compares the weather comprehensive data at each time point with the current weather comprehensive data in the benchmark time interval to determine the similarity value;

[0181] The processing module determines the similarity value with the largest value according to the preset sorting rules, and outputs the user's power consumption at the time point corresponding to the similarity value as the predicted power consumption for subsequent power scheduling;

[0182] The benchmarking time interval establishment module is used to establish a more appropriate benchmarking time interval;

[0183] A similarity value determination module is used to calculate and determine the similarity value based on different weather comprehensive data;

[0184] The time point screening module performs screening processing on unique time points when the similarity values ​​are consistent and the maximum;

[0185] The module for determining users with similar behaviors introduces the determination of users with similar behaviors to facilitate the prediction of power consumption when the power consumption cannot be predicted using the user's own data;

[0186] The regional identical user screening module screens multiple regional identical users that meet the requirements to identify the only user with similar behavior for subsequent calculation and analysis;

[0187] The forecast correction module is used to correct the current forecast power consumption according to the historical forecast situation.

[0188] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

Claims

1. A multi-level data processing method in a smart grid, characterized in that: include: Obtain current comprehensive weather data and demand forecast time points; On the preset time axis, a historical interval with a preset standard interval length between the rear endpoint and the demand forecast time point and a width of the historical time length is established, and a periodic detection interval with a preset periodic time length is established with the demand forecast time point as the rear endpoint; Generate a virtual point with a variable position in the historical interval, and use the virtual point as the rear end point to establish a virtual comparison interval with a width consistent with the period detection interval; Obtain the user power consumption at each time point and compare the user power consumption in the periodic detection interval and the user power consumption in the virtual comparison interval one by one to determine the overall deviation power consumption, where Y is defined as the overall deviation power consumption, I 1n is the user's power consumption at the nth time point in the periodic detection interval, I 2n is the user's power consumption at the nth time point in the virtual comparison interval, ; When the overall deviation power consumption is less than the preset benchmark power consumption, the corresponding virtual point is defined as the effective point, and a benchmarking time interval is established based on the effective point and the demand forecast time point; Compare the weather comprehensive data at each time point with the current weather comprehensive data during the benchmark time period to determine the similarity value; The similarity value with the largest value is determined according to a preset sorting rule, and the user's power consumption at the time point corresponding to the similarity value is output as the predicted power consumption for subsequent power scheduling.

2. The multi-level data processing method in the smart grid according to claim 1, characterized in that: The steps to establish a benchmark time interval based on the effective point and demand forecast time point include: Starting from the last valid point on the time axis, different valid points are combined in sequence to determine the valid combination; In a valid combination, the combination time span is determined based on the two valid points that are farthest apart, and the valid number of combinations is determined by counting the valid points in the valid combination; The effective distribution density is determined by calculating the combined time span and the combined effective quantity; The effective distribution density determined by the first effective combination is defined as the benchmark density, and the qualified density range is determined by calculation based on the benchmark density and the preset allowable error ratio; When the effective distribution density is within the qualified density range, the effective point in the effective combination is defined as the permitted point; The permitted interval is determined based on the continuous and uninterrupted permitted points with the last permitted point on the time axis as the starting point, and the permitted point farthest from the last permitted point in the permitted interval is defined as the boundary point; The boundary point and the demand forecast time point are used as two endpoints to establish a benchmark time interval.

3. The multi-level data processing method in the smart grid according to claim 1, characterized in that: The steps of comparing the weather comprehensive data at each time point with the current weather comprehensive data in the benchmark time interval to determine the similarity value include: Get the weather data type of each weather comprehensive data; Determine the data simulation value corresponding to the weather comprehensive data under the weather data type according to the preset simulation matching relationship, wherein the data simulation value is the simulated numerical value corresponding to the weather comprehensive data under the weather data type and used to calculate the similarity value; Determine the calculation weight value corresponding to the weather data type according to the preset weight matching relationship; Perform difference calculation based on the data simulated values ​​of the same weather data type to determine the data simulated difference; The similarity value is determined based on all the data simulated differences and the corresponding calculated weight values.

4. The multi-level data processing method in the smart grid according to claim 3, characterized in that: After the similarity value is determined, the multi-level data processing method further includes: Determine whether there are at least two time points with the same and maximum similarity values; If there are not at least two time points with the same and maximum similarity values, the predicted power consumption is determined and outputted according to the user power consumption corresponding to the time point; If there are at least two time points with the same and maximum similarity values, the corresponding time points are defined as candidate points, and the overall deviation power consumption is determined according to each candidate point in the benchmark time interval; According to the sorting rules, the overall deviation power consumption with the smallest value among the candidate points is determined, and the user power consumption corresponding to the candidate point corresponding to the overall deviation power consumption is defined as the standard power consumption; Determine the standard power consumption range according to the standard power consumption and the preset allowable deviation value, and define the power consumption of users in the alternative point within the standard power consumption range as effective power consumption; The predicted power consumption is determined and output by averaging all the effective power consumption.

5. The multi-level data processing method in the smart grid according to claim 1, characterized in that: After the effective point is defined, the multi-level data processing method in the smart grid also includes: When there is no valid point, obtain the same users in the same area; In the periodic detection interval, the user power consumption of the same user in the area and the user power consumption of the current analysis user are compared one by one to determine the user similarity deviation value; Determine the user similarity deviation value with the smallest value according to the sorting rule, and define the users in the same region corresponding to the user similarity deviation value as users with similar behaviors; Determine a corresponding similarity value according to users with similar behaviors, and judge whether the similarity value is greater than a preset benchmark requirement value; If the similarity value is greater than the benchmark demand value, the power consumption of the user at the corresponding time point of the user with similar behavior is used as the predicted power consumption of the current analyzed user and output; If the similarity value is not greater than the benchmark demand value, users with similar behaviors are re-determined among the remaining users in the same area according to the user similarity deviation value until the predicted power consumption is determined or the user similarity deviation value is greater than the preset invalid deviation value.

6. The multi-level data processing method in the smart grid according to claim 5, characterized in that: After the user similarity deviation value is determined, the multi-level data processing method in the smart grid also includes: Determine whether there are at least two users in the same area with the same and minimum similarity deviation values; If there are no at least two users in the same area with the same and smallest user similarity deviation values, determine users with similar behaviors based on the users in the same area; If there are at least two users in the same area with the same and smallest user similarity deviation values, a comparison time point is selected in the periodic detection interval according to a preset comparison quantity; Perform one-to-one comparison based on the power consumption of users at the comparison time point to determine the comparison deviation value; Determine the comparison deviation value with the smallest value according to the sorting rule, and use the comparison deviation value as the representative deviation value of users in the same area; A representative deviation value with the smallest value is determined according to the sorting rule, and users in the same area corresponding to the representative deviation value are determined as users with similar behaviors.

7. The multi-level data processing method in the smart grid according to claim 1, characterized in that: After predicting the power consumption output, the multi-level data processing method in the smart grid also includes: In the periodic detection interval, the difference between the user's power consumption at each time point and the corresponding predicted power consumption is calculated to determine the predicted deviation value; The average deviation value is determined by calculating the mean value according to the absolute value of each prediction deviation value, and the overall prediction deviation is determined by calculating the absolute value of each prediction deviation value and the average deviation value; Determine whether the overall forecast deviation is less than the preset effective qualified deviation; If the overall forecast deviation is less than the valid qualified deviation, the forecast correction value is determined by averaging all forecast deviation values, and the forecast power consumption is updated according to the forecast correction value; If the overall predicted deviation is not less than the effective qualified deviation, the predicted signal corresponding to the average deviation value is determined according to the preset prediction matching relationship, and the predicted signal is output synchronously with the predicted power consumption.

8. A multi-level data processing system in a smart grid, characterized in that: include: The acquisition module is used to obtain the current comprehensive weather data and demand forecast time point; A processing module, connected to the acquisition module and the judgment module, for storing and processing information; A judgment module, connected with the acquisition module and the processing module, for judging the information; The processing module establishes a historical interval on a preset time axis with a preset standard interval length between the rear endpoint and the demand forecast time point and a width of the historical time length, and establishes a period detection interval with a preset period length width with the demand forecast time point as the rear endpoint; The processing module generates a virtual point with a variable position in the historical interval, and uses the virtual point as the rear end point to establish a virtual comparison interval with a width consistent with the period detection interval; The acquisition module acquires the user power consumption at each time point and enables the processing module to compare the user power consumption in the periodic detection interval and the user power consumption in the virtual comparison interval one by one to determine the overall deviation power consumption, where Y is defined as the overall deviation power consumption, I 1n is the user's power consumption at the nth time point in the periodic detection interval, I 2n is the user's power consumption at the nth time point in the virtual comparison interval, ; When the judgment module determines that the overall deviation power consumption is less than the preset benchmark power consumption, the processing module defines the corresponding virtual point as a valid point, and establishes a benchmark time interval according to the valid point and the demand forecast time point; The processing module compares the weather comprehensive data at each time point with the current weather comprehensive data in the benchmark time interval to determine the similarity value; The processing module determines the similarity value with the largest value according to a preset sorting rule, and outputs the user's power consumption at the time point corresponding to the similarity value as the predicted power consumption for subsequent power scheduling.