Characteristic analysis method and device for load data, computer equipment, readable storage medium and program product

By performing data cleaning, normalization and correction of multiple influencing factors on the load data in the power system, the problem of poor performance of traditional models in small sample scenarios is solved, and rapid update deployment and load characteristic analysis with high performance are achieved.

CN118626883APending Publication Date: 2024-09-10GUANGZHOU SHUIMU QINGHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410615844.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Traditional machine learning models perform poorly in small sample scenarios such as extreme weather and holidays, and deep learning models consume a large amount of computing resources. They have problems such as high algorithm complexity, large sample data requirements, and low model update efficiency, resulting in the inability to update quickly. deploy.

Method used

By obtaining the historical active power data of the target area, perform data cleaning and normalization processing, classify it into working days and holidays, and conduct sequence clustering respectively, and use the preset multi-influencing factor correction method to correct the cluster center curve in real time and summarize Obtain typical optimal load characteristic curve.

Benefits of technology

It achieves rapid update and deployment in new scenarios, saves training costs, requires fewer effective samples, and maintains good performance in a variety of application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626883A
    Figure CN118626883A
Patent Text Reader

Abstract

The invention relates to a load data characteristic analysis method and device, computer equipment, a storage medium and a computer program product, and relates to the technical field of power systems. According to the method, the technical effects of greatly saving the training cost, requiring less effective sample quantity and still having good performance in various application scenes can be achieved. The method comprises the following steps: preprocessing historical active power data of a target region to obtain target load data; performing sequence clustering on the classified workday load data and holiday load data to obtain a workday optimal clustering center curve and a holiday optimal clustering center curve; according to the current load data set updated every day, correcting the workday optimal clustering center curve in real time; performing real-time correction on the optimal clustering center curve of the holidays and festivals by using a preset multivariate influence factor correction method; and summarizing the corrected optimal clustering center curves to obtain a typical optimal load characteristic curve of the target region.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power systems, and in particular to a method, device, computer equipment, computer-readable storage medium, and computer program product for analyzing characteristics of load data. Background Art

[0002] In the power system, the characteristic analysis of load data is a key technology to ensure the stable operation and efficient dispatch of the power grid. Accurate load characteristic analysis helps power companies optimize resource allocation, reduce operating costs, and improve their ability to respond to emergencies. Although traditional machine learning models have improved algorithm accuracy, they do not perform well in small sample scenarios such as extreme weather and holidays. This is mainly because these scenarios lack sufficient data samples, and the black box characteristics of machine learning models limit their application in actual business decision-making.

[0003] The current common method is to use deep learning models with a large number of parameters to perform characteristic analysis of load data, but this requires huge computing and storage resources, and has problems such as high algorithm complexity, large sample data requirements, and low model update efficiency, which makes it impossible to quickly update and deploy this solution in new scenarios. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for characteristic analysis of load data in order to solve the above technical problems.

[0005] In a first aspect, the present application provides a method for analyzing characteristics of load data, comprising:

[0006] Acquire historical active power data of the target area, perform data cleaning and normalization on the historical active power data, and obtain target load data;

[0007] The target load data is classified according to working days and holidays, and sequence clustering is performed on the working day load data and the holiday load data respectively to obtain the working day optimal cluster center curve and the holiday optimal cluster center curve;

[0008] According to the current load data set updated daily, the optimal cluster center curve of the working day is corrected in real time;

[0009] Using a preset multivariate influencing factor correction method, the optimal cluster center curve of the holidays is corrected in real time;

[0010] The corrected working day optimal cluster center curve and the corrected holiday optimal cluster center curve are summarized to obtain a typical optimal load characteristic curve of the target area.

[0011] In one embodiment, the performing data cleaning and normalization processing on the active power data to obtain target load data includes:

[0012] Detect abnormal values ​​and missing values ​​in the historical active power data, eliminate the abnormal values ​​and complete the missing values ​​to obtain the historical active power data after data cleaning; standardize the active power data after data cleaning according to the daily maximum active power value of the target area to obtain the historical active power data with a value range within a preset interval as the target load data.

[0013] In one embodiment, the process of performing sequence clustering on the workday load data and the holiday load data to obtain the workday optimal cluster center curve and the holiday optimal cluster center curve includes:

[0014] In the working day load data and the holiday load data, a preset number of initial cluster centroids are determined respectively; based on the initial cluster centroids, the remaining samples in the working day load data and the holiday load data are determined, and the dynamic time warping distances from the remaining samples to the initial cluster centroids are calculated respectively; based on the dynamic time warping distances, the working day load data and the holiday load data are serially clustered respectively to obtain the working day optimal cluster center curve and the holiday optimal cluster center curve.

[0015] In one embodiment, the method of using a preset multivariate influencing factor correction method to correct the optimal holiday cluster center curve in real time includes:

[0016] According to the preset feature types and time ranges, the features to be input are determined; the features to be input are input into a pre-built prediction result contribution calculation model to obtain the target contribution of each feature to be input to the load prediction result; based on the target contribution, the optimal cluster center curve for holidays is corrected in real time.

[0017] In one embodiment, before the holiday optimal cluster center curve is corrected in real time based on the target contribution, the method further includes:

[0018] A load forecasting model is constructed according to the features to be input; and the optimal clustering center curve of the holidays is corrected in real time based on the target contribution, including: based on the target contribution, the post-explanation model to be trained is trained until the output result of the trained post-explanation model is consistent with the output result of the load forecasting model; and the optimal clustering center curve of the holidays is corrected in real time using the trained post-explanation model.

[0019] In one embodiment, after obtaining the historical active power data of the target area, the method further includes:

[0020] According to the collection date and preset sampling point of the historical active power data, an active power sequence corresponding to the historical active power data is generated; based on the active power sequence, a load database is constructed; according to the current load data set updated daily, the load database is rolled over and updated.

[0021] In a second aspect, the present application further provides a load data characteristic analysis device, comprising:

[0022] A data processing module is used to obtain historical active power data of a target area, perform data cleaning and normalization processing on the historical active power data, and obtain target load data;

[0023] A sequence clustering module is used to classify the target load data according to working days and holidays, and to perform sequence clustering on the working day load data and the holiday load data, respectively, to obtain the optimal cluster center curve for working days and the optimal cluster center curve for holidays;

[0024] A first correction module is used to correct the optimal cluster center curve of the working day in real time according to the current load data set updated daily;

[0025] A second correction module is used to correct the optimal cluster center curve of holidays in real time by using a preset multivariate influencing factor correction method;

[0026] The data aggregation module is used to aggregate the revised working day optimal cluster center curve and the revised holiday optimal cluster center curve to obtain a typical optimal load characteristic curve of the target area.

[0027] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0028] Obtain historical active power data of the target area, perform data cleaning and normalization processing on the historical active power data, and obtain target load data; classify the target load data according to weekdays and holidays, and perform sequence clustering on the weekday load data and the holiday load data, respectively, to obtain the optimal cluster center curve for weekdays and the optimal cluster center curve for holidays; perform real-time correction on the optimal cluster center curve for weekdays according to the current load data set updated daily; perform real-time correction on the optimal cluster center curve for holidays using a preset multivariate influencing factor correction method; summarize the corrected optimal cluster center curve for weekdays and the corrected optimal cluster center curve for holidays to obtain the typical optimal load characteristic curve for the target area.

[0029] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0030] Obtain historical active power data of the target area, perform data cleaning and normalization processing on the historical active power data, and obtain target load data; classify the target load data according to weekdays and holidays, and perform sequence clustering on the weekday load data and the holiday load data, respectively, to obtain the optimal cluster center curve for weekdays and the optimal cluster center curve for holidays; perform real-time correction on the optimal cluster center curve for weekdays according to the current load data set updated daily; perform real-time correction on the optimal cluster center curve for holidays using a preset multivariate influencing factor correction method; summarize the corrected optimal cluster center curve for weekdays and the corrected optimal cluster center curve for holidays to obtain the typical optimal load characteristic curve for the target area.

[0031] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0032] Obtain historical active power data of the target area, perform data cleaning and normalization processing on the historical active power data, and obtain target load data; classify the target load data according to weekdays and holidays, and perform sequence clustering on the weekday load data and the holiday load data, respectively, to obtain the optimal cluster center curve for weekdays and the optimal cluster center curve for holidays; perform real-time correction on the optimal cluster center curve for weekdays according to the current load data set updated daily; perform real-time correction on the optimal cluster center curve for holidays using a preset multivariate influencing factor correction method; summarize the corrected optimal cluster center curve for weekdays and the corrected optimal cluster center curve for holidays to obtain the typical optimal load characteristic curve for the target area.

[0033] The load data characteristic analysis method, device, computer equipment, computer readable storage medium and computer program product obtain target load data by cleaning and normalizing historical active power data; classify target load data by weekdays and holidays, and perform sequence clustering on workday load data and holiday load data respectively to obtain workday optimal cluster center curve and holiday optimal cluster center curve; then, according to the current load data set updated daily, the workday optimal cluster center curve is corrected in real time; then, the holiday optimal cluster center curve is corrected in real time using the preset multivariate influencing factor correction method; finally, the corrected workday optimal cluster center curve and the corrected holiday optimal cluster center curve are summarized to obtain the typical optimal load characteristic curve of the target area. In this scheme, multivariate influencing factors are used to correct the holiday optimal cluster center curve in real time, and the problem of insufficient number of effective samples in load characteristic analysis is fully considered, and a load characteristic analysis process considering multivariate influencing factor correction is constructed, thereby achieving the technical effect of greatly saving training costs, requiring fewer effective samples, and still having good performance in a variety of application scenarios, so that the scheme can be quickly updated and deployed in new scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0035] FIG1 is a diagram showing an application environment of a method for analyzing characteristics of load data in one embodiment;

[0036] Figure 2 is a flow chart of a method for analyzing characteristics of load data in one embodiment;

[0037] Figure 3 is a schematic flow chart of a sequence clustering step in one embodiment;

[0038] Figure 4 It is a flowchart of a method for analyzing characteristics of load data in a specific embodiment;

[0039] Figure 5 A schematic diagram of a flow chart of a method for analyzing characteristics of load data in an application embodiment;

[0040] Figure 6 is a structural block diagram of a device for analyzing characteristics of load data in one embodiment;

[0041] FIG. 7 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. 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.

[0043] The characteristic analysis method of load data provided in the embodiment of the present application can be applied to the application environment shown in FIG1. ​​The terminal communicates with the server through a network. The data storage system can store data that the server needs to process. The data storage system can be integrated on the server, or placed on the cloud or other network servers.

[0044] Specifically, the characteristic analysis method of load data provided in the embodiment of the present application can be executed by a server.

[0045] Exemplarily, the server obtains historical active power data of the target area, performs data cleaning and normalization on the historical active power data, and obtains target load data; the server classifies the target load data according to weekdays and holidays, and performs sequence clustering on the weekday load data and the holiday load data, respectively, to obtain the optimal cluster center curve for weekdays and the optimal cluster center curve for holidays; the server makes real-time corrections to the optimal cluster center curve for weekdays based on the current load data set updated daily; the server makes real-time corrections to the optimal cluster center curve for holidays using a preset multivariate influencing factor correction method; the server summarizes the corrected optimal cluster center curve for weekdays and the corrected optimal cluster center curve for holidays to obtain the typical optimal load characteristic curve for the target area.

[0046] In the application environment shown in FIG1 , the terminal may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The server may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services.

[0047] In an exemplary embodiment, Figure 2 As shown, a method for analyzing characteristics of load data is provided, and the method is applied to the server in FIG. 1 as an example for explanation, including the following steps S201 to S205. Among them:

[0048] Step S201, obtaining historical active power data of a target area, performing data cleaning and normalization processing on the historical active power data, and obtaining target load data.

[0049] The historical active power data can be the active power sequence obtained on the kth day after a given daily sampling point m: After N days of load data collection, a load data set is formed .

[0050] Specifically, the server responds to the characteristic analysis instruction of the load data, obtains the historical active power data of the target area, performs data cleaning and normalization processing on the historical active power data, and obtains the target load data.

[0051] Step S202, classify the target load data according to working days and holidays, and perform sequence clustering on the working day load data and the holiday load data respectively to obtain the optimal cluster center curve for working days and the optimal cluster center curve for holidays.

[0052] Among them, sequence clustering is a clustering method for time series data. Its goal is to classify time series samples with similar patterns or trends into the same category. By clustering time series data, it can help discover patterns and trends in the data, thereby providing support for decision-making and prediction.

[0053] Specifically, the server classifies the target load data into weekdays and holidays, and performs sequence K-means clustering based on DTW distance (Dynamic Time Warping) on ​​the weekday load data and the holiday load data, respectively, to obtain the optimal cluster center curve for weekdays and the optimal cluster center curve for holidays.

[0054] Step S203, based on the current load data set updated daily, the optimal cluster center curve for the working day is corrected in real time.

[0055] The optimal cluster center curve for working days can be selected by evaluating the clustering results of different cluster numbers (k) in the working day load data to help determine the most appropriate clustering results.

[0056] The current load data set updated daily can be obtained by rolling update in the load database with newly added daily actual load data.

[0057] Specifically, the server obtains the current load data set updated daily from the load database, and performs real-time correction on the optimal cluster center curve of the working day according to the current load data set updated daily.

[0058] Step S204, using a preset multivariate influencing factor correction method, the optimal cluster center curve for holidays is corrected in real time.

[0059] The optimal cluster center curve for holidays can be selected by evaluating the clustering results of different cluster numbers (k) in the holiday load data to help determine the most appropriate clustering results.

[0060] Specifically, the server uses a multivariate influencing factor correction method based on SHAP value (SHapley Additive exPlanations) analysis to make real-time corrections to the optimal cluster center curve for holidays.

[0061] Step S205 , summarizing the revised optimal cluster center curve for working days and the revised optimal cluster center curve for holidays to obtain a typical optimal load characteristic curve for the target area.

[0062] The typical optimal load characteristic curve may be a curve used in a power system to describe the response of a load to a voltage. This curve is usually nonlinear, and its shape depends on the nature of the load and the operating state of the system.

[0063] Specifically, the server aggregates and merges the revised optimal cluster center curve for working days and the revised optimal cluster center curve for holidays to obtain a typical optimal load characteristic curve for the target area.

[0064] In the above load data characteristic analysis method, the target load data is obtained by cleaning and normalizing the historical active power data; the target load data is classified according to working days and holidays, and the working day load data and holiday load data are sequence clustered respectively to obtain the optimal cluster center curve for working days and the optimal cluster center curve for holidays; then the optimal cluster center curve for working days is corrected in real time according to the current load data set updated daily; then the optimal cluster center curve for holidays is corrected in real time using the preset multivariate influencing factor correction method; finally, the corrected working day optimal cluster center curve and the corrected holiday optimal cluster center curve are summarized to obtain the typical optimal load characteristic curve of the target area. In this scheme, multivariate influencing factors are used to correct the optimal cluster center curve for holidays in real time, and the problem of insufficient number of effective samples in load characteristic analysis is fully considered. A load characteristic analysis process considering the correction of multivariate influencing factors is constructed, thereby achieving the technical effect of greatly saving training costs, requiring fewer effective samples, and still having good performance in a variety of application scenarios, so that the scheme can be quickly updated and deployed in new scenarios.

[0065] In one embodiment, data cleaning and normalization are performed on historical active power data to obtain target load data, which specifically includes the following steps:

[0066] Detect outliers and missing values ​​in the historical active power data, remove outliers and fill in missing values ​​to obtain historical active power data after data cleaning; normalize the active power data after data cleaning according to the daily maximum active power value of the target area to obtain historical active power data within the preset range as target load data.

[0067] Among them, normalization can be a data preprocessing technology, which is often used to make data dimensionless, make different features comparable, and eliminate calculation errors caused by different dimensions; the core idea of ​​normalization is to convert the original data in a certain way so that its value range is between 0 and 1.

[0068] Specifically, the server detects abnormal values ​​and missing values ​​in the historical active power data, eliminates abnormal values ​​and fills in missing values ​​to obtain historical active power data after data cleaning; according to the daily maximum active power value of the target area, the active power data after data cleaning is normalized to obtain historical active power data within a preset range as target load data.

[0069] For example, outlier removal can be performed by using the Z-Score method to detect outliers. By calculating the ratio of the difference between the data point and the mean and the standard deviation, it is determined whether the data point is an outlier:

[0070]

[0071] in, refers to the sampling value of the jth data point on the i-th day, is the mean value of the load database, refers to the standard deviation of the load database; when When it is greater than 3 or less than -3, the data point is identified as an outlier and interpolated using two adjacent points. For the load data of the Nth day, if the number of outliers exceeds 20%, they are directly deleted.

[0072] Missing value filling can be used to interpolate missing values ​​or discontinuous data in the load database:

[0073]

[0074] in, is the sampling time to be interpolated, and is the known sampling time, and are known data points, are the data points to be interpolated.

[0075] Normalization processing can use the maximum daily active power value of the target area as the benchmark value, normalize the original data points, and scale the data to Range:

[0076]

[0077] in, It is the maximum daily active power value in the target area.

[0078] In this embodiment, the target load data that meets the requirements of characteristic analysis is accurately obtained by removing abnormal values, filling missing values, and normalizing the historical active power data.

[0079] In one embodiment, if Figure 3 As shown, the workday load data and holiday load data are clustered separately to obtain the optimal cluster center curve for workdays and the optimal cluster center curve for holidays, which specifically includes the following steps:

[0080] Step S301, determining a preset number of initial cluster centroids in the workday load data and the holiday load data respectively.

[0081] Step S302, according to the initial cluster centroid, determine the remaining samples in the workday load data and the holiday load data, and calculate the dynamic time warping distance from the remaining samples to the initial cluster centroid respectively.

[0082] Step S303, based on the dynamic time warping distance, sequence clustering is performed on the workday load data and the holiday load data respectively to obtain the workday optimal cluster center curve and the holiday optimal cluster center curve.

[0083] Among them, Dynamic Time Warping (DTW) is a parameter used to measure the similarity between two time series.

[0084] Specifically, the server randomly selects a preset number of initial cluster centroids from the weekday load data and holiday load data; based on the initial cluster centroids, the server determines the remaining samples in the weekday load data and holiday load data, and calculates the dynamic time warping distances from the remaining samples to the initial cluster centroids respectively; based on the dynamic time warping distance, the server performs sequence clustering on the weekday load data and the holiday load data respectively, and obtains the optimal cluster center curve for weekdays and the optimal cluster center curve for holidays.

[0085] For example, the DTW distance-based sequence K-means clustering method can be clustered based on the DTW distance between sequences. The DTW distance calculation method between two sequences can be achieved by constructing a cost matrix C and finding a path that minimizes the distance from the starting point (1, 1) to the end point (m, n). The elements in the cost matrix are The calculation formula is:

[0086]

[0087] Among them, m and n are the lengths of the two sequences respectively; Represents the Euclidean distance between i and j.

[0088] The above-mentioned sequential K-means clustering method specifically includes the following steps:

[0089] 1) Randomly select k sequences in the load database as the initial clustering centroids;

[0090] 2) Calculate the DTW distance from the remaining samples to the cluster center and assign them to the cluster with the closest distance;

[0091] 3) After all samples are assigned, update the centroid within the cluster;

[0092] 4) Repeat steps 2) and 3) and end when the cluster to which the sample belongs does not change.

[0093] In this embodiment, by performing sequence K-means clustering on the weekday load data and the holiday load data respectively, the time series data can be effectively processed, and the time information in the sequence can be better retained, thereby obtaining more practical weekday optimal cluster center curves and holiday optimal cluster center curves.

[0094] In one embodiment, the optimal cluster center curve of holidays is corrected in real time using a preset multivariate influencing factor correction method, which specifically includes the following steps:

[0095] According to the preset feature types and time range, the features to be input are determined; the features to be input are input into the pre-built prediction result contribution calculation model to obtain the target contribution of each feature to the load forecast result; based on the target contribution, the optimal cluster center curve for holidays is corrected in real time.

[0096] Among them, the features to be input may be holiday type, temperature, region, and historical load value factors, etc.

[0097] Among them, the prediction result contribution calculation model can be:

[0098]

[0099] In the above formula, Q is the set formed by all subsets of I that contain feature i; is the number of elements in the set Q, Join alliance for feature i The probability of; its denominator represents the number of permutations of n features, and the numerator represents the alliance middle, front The number of permutations of the feature i entering the alliance, and then feature i entering, and then multiplying by the latter The number of permutations of features entering the alliance. After feature i joins the alliance, its contribution to the alliance is .

[0100] Specifically, the server determines the features to be input according to the preset feature types and time ranges; inputs the features to be input into the pre-built prediction result contribution calculation model to obtain the target contribution of each feature to the load forecast result; and based on the target contribution, performs real-time correction on the optimal cluster center curve for holidays.

[0101] For example, the multivariate influencing factor correction method based on SHAP value analysis can include the following steps:

[0102] 1) Considering holiday type, temperature, region and historical load value factors as characteristic values, construct a load forecasting model ; Assume that the forecast day is D, then the load data of the D day is predicted using the characteristic values ​​from D-30 days to D-1 days;

[0103] 2) Calculate the Shapley contribution value of each input feature to the load forecast result. The calculation method is:

[0104]

[0105] 3) Constructing a post-hoc explanation model based on Shapley contribution value , quantify the impact of features on the original model decision through Shapley contribution value, and satisfy the post-explanation model The results are consistent with the original model The results are consistent with:

[0106]

[0107] in, is the average value predicted by the load forecasting model, and C is the total number of features.

[0108] 4) Using post hoc explanation models The optimal cluster center curve for holidays is modified, that is, the value of the optimal cluster center curve for holidays is used as , using the Shapley contribution value of each feature Make corrections.

[0109] In this embodiment, the optimal cluster center curve of holidays is corrected in real time by using a preset multivariate influencing factor correction method, so as to accurately obtain a corrected optimal cluster center curve of holidays that takes timeliness into consideration.

[0110] In one embodiment, before the optimal cluster center curve of holidays is corrected in real time based on the target contribution, the method of the present application further includes the following steps:

[0111] Construct a load forecasting model based on the input features;

[0112] Based on the target contribution, the optimal cluster center curve for holidays is corrected in real time, which specifically includes the following steps:

[0113] Based on the target contribution, the post-event explanation model to be trained is trained until the output result of the trained post-event explanation model is consistent with the output result of the load forecasting model; the trained post-event explanation model is used to perform real-time correction on the optimal cluster center curve of holidays.

[0114] Specifically, the server builds a load forecasting model based on the input features; based on the target contribution, the server trains the post-explanation model to be trained until the output result of the trained post-explanation model is consistent with the output result of the load forecasting model; and uses the trained post-explanation model to perform real-time corrections on the optimal clustering center curve for holidays.

[0115] In this embodiment, the optimal cluster center curve of holidays is corrected in real time by using the trained post-explanatory model, so as to accurately obtain the corrected optimal cluster center curve of holidays that takes timeliness into consideration. At the same time, it is conducive to promoting the interaction between business personnel and the model, so that the newly obtained load data can be fed back to the model.

[0116] In one embodiment, after obtaining the historical active power data of the target area, the method of the present application further includes the following steps:

[0117] According to the collection date and preset sampling point of the historical active power data, the active power sequence corresponding to the historical active power data is generated; based on the active power sequence, the load database is constructed; according to the current load data set updated daily, the load database is rolled over and updated.

[0118] Specifically, the server generates an active power sequence corresponding to the historical active power data according to the collection date and preset sampling point of the historical active power data; constructs a load database based on the active power sequence; and performs rolling updates on the load database according to the current load data set updated daily.

[0119] For example, the active power data of the target area can be the active power sequence obtained on the kth day given the daily sampling point m. After N days of load data collection, a load database is formed. .

[0120] In this embodiment, a load database is constructed based on the active power sequence, and the load database is rolled over according to the current load data set updated daily, thereby achieving efficient storage and utilization of load data.

[0121] In one embodiment, Figure 4 As shown, a characteristic analysis of load data in a specific embodiment is provided, which specifically includes the following steps:

[0122] Step S401, obtaining historical active power data of the target area, detecting abnormal values ​​and missing values ​​in the historical active power data, removing abnormal values ​​and completing missing values, and obtaining historical active power data after data cleaning.

[0123] Step S402, based on the daily maximum active power value of the target area, the active power data after data cleaning is normalized to obtain historical active power data within a preset range as target load data.

[0124] Step S403, classify the target load data according to weekdays and holidays, and determine a preset number of initial cluster centroids in the weekday load data and the holiday load data respectively; based on the initial cluster centroids, determine the remaining samples in the weekday load data and the holiday load data, and calculate the dynamic time warping distances from the remaining samples to the initial cluster centroids respectively.

[0125] Step S404, based on the dynamic time warping distance, sequence clustering is performed on the workday load data and the holiday load data respectively to obtain the workday optimal cluster center curve and the holiday optimal cluster center curve.

[0126] Step S405: According to the current load data set updated daily, the optimal cluster center curve of the working day is corrected in real time.

[0127] Step S406, determining the features to be input according to the preset feature types and time ranges; inputting the features to be input into the pre-built prediction result contribution calculation model to obtain the target contribution of each of the features to be input to the load prediction result.

[0128] Step S407, constructing a load forecasting model according to the features to be input; training the post-explanation model to be trained based on the target contribution until the output result of the trained post-explanation model is consistent with the output result of the load forecasting model; using the trained post-explanation model, performing real-time correction on the optimal cluster center curve for holidays.

[0129] Step S408: The corrected working day optimal cluster center curve and the corrected holiday optimal cluster center curve are summarized to obtain a typical optimal load characteristic curve of the target area.

[0130] In the above-mentioned load data characteristic analysis method, the problem of insufficient number of effective samples in load characteristic analysis is fully considered, and a load characteristic analysis process that considers the correction of multiple influencing factors is constructed. The transparency of the model is improved through characteristic explanatory analysis, which promotes the interaction between business personnel and the model, so that the newly acquired load data can be fed back into the model to achieve continuous improvement of the model.

[0131] In one embodiment, Figure 5 As shown, a characteristic analysis of load data in an application embodiment is provided, which specifically includes the following steps:

[0132] Step 1: Obtain active power data in the target area and build a load database.

[0133] Step 2: Preprocess the original data samples, including removing outliers, filling in missing values, and normalizing the original data samples to obtain preprocessed load data.

[0134] Step 3: Classify the preprocessed load data according to working days and holidays, and use the sequential K-means clustering method based on DTW distance to cluster the working day load data and holiday load data respectively, and obtain the optimal cluster center curves for working days and holidays respectively.

[0135] Step 4: The optimal cluster center curve obtained in step 3 is corrected in real time according to the differences between weekdays and holidays: for weekdays, the load database with newly added daily actual load data is updated using the method in step 3 to obtain the corrected optimal cluster center curve for weekdays; for holidays, the multivariate influencing factor correction method based on SHAP value analysis is used to obtain the corrected optimal cluster center curve for holidays; the result after real-time correction is the typical optimal load characteristic curve of the target area after correction considering the multivariate influencing factors.

[0136] The beneficial effects brought by the above embodiments are as follows:

[0137] This solution fully considers the problem of insufficient number of effective samples in load characteristic analysis, constructs a load characteristic analysis process that considers correction of multiple influencing factors, and improves the transparency of the model through feature explanatory analysis, promotes interaction between business personnel and the model, and enables newly acquired load data to be fed back into the model to achieve continuous improvement of the model.

[0138] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0139] Based on the same inventive concept, the embodiment of the present application also provides a load data characteristic analysis device for implementing the load data characteristic analysis method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more load data characteristic analysis device embodiments provided below can refer to the limitations of the load data characteristic analysis method above, and will not be repeated here.

[0140] In an exemplary embodiment, Figure 6 As shown, a characteristic analysis device for load data is provided, comprising:

[0141] The data processing module 601 is used to obtain the historical active power data of the target area, perform data cleaning and normalization on the historical active power data, and obtain the target load data;

[0142] The sequence clustering module 602 is used to classify the target load data according to working days and holidays, and perform sequence clustering on the working day load data and the holiday load data respectively to obtain the optimal cluster center curve for working days and the optimal cluster center curve for holidays;

[0143] The first correction module 603 is used to correct the optimal cluster center curve on the working day in real time according to the current load data set updated daily;

[0144] The second correction module 604 is used to correct the holiday optimal cluster center curve in real time by using a preset multivariate influencing factor correction method;

[0145] The data aggregation module 605 is used to aggregate the revised working day optimal cluster center curve and the revised holiday optimal cluster center curve to obtain a typical optimal load characteristic curve of the target area.

[0146] In one embodiment, the data processing module 601 is also used to detect abnormal values ​​and missing values ​​in the historical active power data, eliminate abnormal values ​​and fill in missing values ​​to obtain historical active power data after data cleaning; according to the daily maximum active power value of the target area, the active power data after data cleaning is normalized to obtain historical active power data within a preset range as target load data.

[0147] In one embodiment, the sequence clustering module 602 is also used to determine a preset number of initial cluster centroids in the weekday load data and the holiday load data, respectively; based on the initial cluster centroids, the remaining samples in the weekday load data and the holiday load data are determined, and the dynamic time warping distances from the remaining samples to the initial cluster centroids are calculated, respectively; based on the dynamic time warping distance, the weekday load data and the holiday load data are sequence clustered, respectively, to obtain the optimal cluster center curve for the weekday and the optimal cluster center curve for the holiday.

[0148] In one embodiment, the second correction module 604 is also used to determine the features to be input according to the preset feature types and time ranges; input the features to be input into the pre-built prediction result contribution calculation model to obtain the target contribution of each feature to be input to the load forecast result; based on the target contribution, the optimal cluster center curve of holidays is corrected in real time.

[0149] In one embodiment, the characteristic analysis device of load data also includes a model building module, which is used to build a load prediction model based on the input characteristics; the second correction module 604 is also used to train the post-explanation model to be trained based on the target contribution until the output result of the trained post-explanation model is consistent with the output result of the load prediction model; the trained post-explanation model is used to perform real-time correction on the optimal cluster center curve of holidays.

[0150] In one embodiment, the characteristic analysis device of load data also includes a data update module, which is used to generate an active power sequence corresponding to the historical active power data based on the collection date and preset sampling point of the historical active power data; construct a load database based on the active power sequence; and roll-up the load database based on the current load data set updated daily.

[0151] Each module in the above-mentioned load data characteristic analysis device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0152] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG7. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store active power sequence data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for analyzing the characteristics of load data is implemented.

[0153] Those skilled in the art will understand that the structure shown in FIG. 7 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0154] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0155] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0156] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0157] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0158] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0159] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0160] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for analyzing characteristics of load data, characterized in that: The method comprises: Acquire historical active power data of the target area, perform data cleaning and normalization on the historical active power data, and obtain target load data; The target load data is classified according to working days and holidays, and sequence clustering is performed on the working day load data and the holiday load data respectively to obtain the working day optimal cluster center curve and the holiday optimal cluster center curve; According to the current load data set updated daily, the optimal cluster center curve of the working day is corrected in real time; Using a preset multivariate influencing factor correction method, the optimal cluster center curve of the holidays is corrected in real time; The corrected working day optimal cluster center curve and the corrected holiday optimal cluster center curve are summarized to obtain a typical optimal load characteristic curve of the target area.

2. The method according to claim 1, characterized in that The data cleaning and normalization processing of the historical active power data to obtain target load data includes: Detecting abnormal values ​​and missing values ​​in the historical active power data, removing the abnormal values ​​and completing the missing values, and obtaining the historical active power data after data cleaning; According to the daily maximum active power value of the target area, the active power data after the data cleaning is normalized to obtain the historical active power data within a preset range as the target load data.

3. The method according to claim 2, characterized in that The process of performing sequence clustering on the workday load data and the holiday load data to obtain the workday optimal cluster center curve and the holiday optimal cluster center curve includes: Determining a preset number of initial cluster centroids in the workday load data and the holiday load data respectively; According to the initial cluster centroid, determining the remaining samples in the workday load data and the holiday load data, and respectively calculating the dynamic time warping distances from the remaining samples to the initial cluster centroid; Based on the dynamic time warping distance, the working day load data and the holiday load data are respectively subjected to sequence clustering to obtain the working day optimal cluster center curve and the holiday optimal cluster center curve.

4. The method according to claim 1, characterized in that: The method of using a preset multivariate influencing factor correction method to correct the optimal holiday cluster center curve in real time includes: Determine the features to be input according to the preset feature types and time range; Inputting the features to be input into a pre-built prediction result contribution calculation model to obtain a target contribution of each feature to be input to the load prediction result; Based on the target contribution, the holiday optimal cluster center curve is corrected in real time.

5. The method according to claim 4, characterized in that Before the holiday optimal cluster center curve is corrected in real time based on the target contribution, the method further includes: Constructing a load forecasting model according to the features to be input; The step of modifying the optimal cluster center curve for holidays in real time based on the target contribution includes: Based on the target contribution, training the post-event explanation model to be trained until the output result of the trained post-event explanation model is consistent with the output result of the load forecasting model; The trained post-explanatory model is used to modify the optimal cluster center curve of holidays in real time.

6. The method according to any one of claims 1 to 5, characterized in that: After obtaining the historical active power data of the target area, it also includes: Generate an active power sequence corresponding to the historical active power data according to the collection date and preset sampling point of the historical active power data; Based on the active power sequence, construct a load database; The load database is rolled over according to the current load data set updated daily.

7. A characteristic analysis device for load data, characterized in that: The device comprises: A data processing module is used to obtain historical active power data of a target area, perform data cleaning and normalization processing on the historical active power data, and obtain target load data; A sequence clustering module is used to classify the target load data according to working days and holidays, and to perform sequence clustering on the working day load data and the holiday load data, respectively, to obtain the optimal cluster center curve for working days and the optimal cluster center curve for holidays; A first correction module is used to correct the optimal cluster center curve of the working day in real time according to the current load data set updated daily; A second correction module is used to correct the optimal cluster center curve of holidays in real time by using a preset multivariate influencing factor correction method; The data aggregation module is used to aggregate the revised working day optimal cluster center curve and the revised holiday optimal cluster center curve to obtain a typical optimal load characteristic curve of the target area.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.