Multi-model data analysis method and system based on non-intrusive load monitoring

Through multi-model data analysis methods, decision trees and deep learning models are used to optimize load monitoring, which solves the problems of large calculations and complex operations of traditional monitoring methods, and achieves efficient user power status monitoring.

CN118568573BActive Publication Date: 2024-10-25NANTONG LIANBANG DIGITAL INTELLIGENCE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411040472.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-25
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

The traditional single-model load monitoring method requires a large amount of calculations, many model parameters, and is time-consuming and labor-intensive to operate. Moreover, non-intrusive load monitoring is difficult to efficiently monitor user electricity loads.

Method used

Using a multi-model data analysis method, by collecting power consumption data, screening training sets and verification sets, calculating device labels and transient characteristics, building decision tree models and deep learning models, optimizing model parameters, reducing the amount of calculations, and improving monitoring efficiency.

Benefits of technology

It reduces the amount of electricity consumption data calculations, simplifies operations, improves user load monitoring efficiency, and can accurately monitor user power consumption status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568573B_ABST
    Figure CN118568573B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of non-intrusive load monitoring, and provides a multi-model data analysis method and system based on non-intrusive load monitoring, the method comprising: selecting part of the data from the power consumption data as a training set I; specifying the equipment labels and transient characteristics in the training set I, and calculating the first characteristic function of the training set I; constructing a decision tree model according to the first characteristic function and the transient characteristics; testing the decision tree model; outputting the final decision tree model according to the test result; classifying the total power data of the sample users through the final decision tree model; inputting the classified total power data into a deep learning model for training to obtain a non-intrusive deep learning model; inputting the actual total power data into the above two models respectively to obtain the power dynamic series of a single power-consuming device; comparing the power dynamic series of the real device with the power dynamic series in the model to optimize the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of non-intrusive load monitoring, and in particular to a multi-model data analysis method and system based on non-intrusive load monitoring. Background Art

[0002] With the rapid development of social economy and science and technology, smart grid has become the direction of future power system development in my country, and load monitoring of power system is also an important structural framework for realizing power intelligence. The current power monitoring method is to install independent monitoring equipment on each power load and monitor the operating status of power equipment through independent monitoring equipment, which consumes a lot of material and financial resources.

[0003] For non-intrusive load monitoring, there is no need to enter the user's power system. You only need to install a monitoring device at the power entrance to obtain the operating status of each power load in the user's power system. However, the traditional single-model load monitoring method not only has a large amount of calculation, but also has many model parameters, and the amount of data required for model training is large, which is time-consuming and laborious to operate. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a multi-model data analysis method and system based on non-intrusive load monitoring, which can reduce the amount of calculation of user electricity consumption data, is simple to operate, and improves the efficiency of user load monitoring.

[0005] The technical solution adopted by the present invention is as follows:

[0006] A multi-model data analysis method based on non-intrusive load monitoring includes the following steps: collecting past user electricity consumption data, and selecting part of the data from the electricity consumption data as a training set I and a validation set respectively; specifying the equipment labels and transient characteristics in the training set I according to the power database, and calculating the first characteristic function of the training set I according to the equipment labels; constructing a decision tree model according to the first characteristic function and the transient characteristics, and determining the nodes of the decision tree model; inputting the validation set into the decision tree model to detect the decision tree model, and setting a preset threshold; judging whether the preset threshold is met according to the detection result, and if the detection result does not meet the preset threshold, updating the parameters in the decision tree model until the detection result meets the preset threshold. Stop, and output the final decision tree model; obtain the total electricity power data of sample users, and classify the total electricity power data of sample users through the final decision tree model; construct a deep learning model based on non-intrusive load monitoring, and input the classified total electricity power data of sample users into the deep learning model for training to obtain a non-intrusive deep learning model; obtain the actual total electricity power data of the user, and input them into the final decision tree model and the non-intrusive deep learning model respectively to obtain the power dynamic series of a single power-consuming device; manually compare the actual power dynamic series of the power-consuming device with the power dynamic series of the single power-consuming device obtained in the intrusive deep learning model, and optimize the intrusive deep learning model according to the comparison results.

[0007] In one embodiment of the present invention, the calculation of the first characteristic function of the training set I based on the device labels includes the following steps: calculating the proportion of each label in the device labels in the training set I; and calculating the first characteristic function of the training set I based on the proportion of each label in the training set I.

[0008] In one embodiment of the present invention, the construction of a decision tree model based on the first characteristic function and the transient characteristic, and determining the nodes of the decision tree model, include the following steps: calculating the mutual information of the transient characteristic based on the characteristic values ​​of the first characteristic function and the transient characteristic; obtaining the integration weight of the transient characteristic, and integrating the mutual information of the transient characteristic through the integration weight to obtain the integrated mutual information; obtaining the best transient characteristic through the integrated mutual information, and recording the best transient characteristic as the node of the decision tree model; forming the remaining transient characteristics and equipment labels into training set II, and calculating the second characteristic function of the training set II based on the equipment label.

[0009] In one embodiment of the present invention, the calculation of the mutual information of the transient features based on the first characteristic function and the characteristic value of the transient features includes the following steps: calculating the characteristic uniformity of each feature in each of the transient features based on the characteristic value; calculating the transient uniformity of the transient features based on the characteristic uniformity; calculating the mutual information of the transient features based on the first characteristic function and the transient uniformity.

[0010] In one embodiment of the present invention, the inputting of the classified total electricity power data of sample users into the deep learning model for training includes the following steps: preprocessing the classified total electricity power data of sample users; segmenting the preprocessed total electricity power data of sample users to form a training set of multiple sequence segments.

[0011] A multi-model data analysis system based on non-intrusive load monitoring, comprising: an acquisition module, the acquisition module is used to collect past user power consumption data, and select part of the data from the power consumption data as a training set I and a verification set respectively; a calculation module, the calculation module is used to specify the equipment label and transient characteristics in the training set I according to the power database, and calculate the first characteristic function of the training set I according to the equipment label; a construction module, the construction module is used to construct a decision tree model according to the first characteristic function and the transient characteristics, and determine the nodes of the decision tree model; a detection module, the detection module is used to input the verification set into the decision tree model to detect the decision tree model, and set a preset threshold; an update module, the update module is used to determine whether the preset threshold is met according to the detection result, if the detection result does not meet the preset threshold, then update the parameters in the decision tree model until the detection result meets the preset threshold. Set a threshold and output the final decision tree model; a classification module, the classification module is used to obtain the total electricity power data of the sample users, and classify the total electricity power data of the sample users through the final decision tree model; a training module, the training module is used to build a deep learning model based on non-invasive load monitoring, and input the classified total electricity power data of the sample users into the deep learning model for training to obtain a non-invasive deep learning model; an acquisition module, the acquisition module is used to obtain the actual total electricity power data of the user, and input it into the final decision tree model and the non-invasive deep learning model respectively to obtain the power dynamic series of a single power-consuming device; an optimization module, the optimization module is used to manually compare the real power dynamic series of the power-consuming device with the power dynamic series of the single power-consuming device obtained in the invasive deep learning model, and optimize the invasive deep learning model according to the comparison result.

[0012] In one embodiment of the present invention, the calculation module is specifically used to: calculate the proportion of each of the device labels in the training set I; calculate the first characteristic function of the training set I according to the proportion of each of the labels in the training set I.

[0013] In one embodiment of the present invention, the construction module specifically includes: a first calculation unit, the first calculation unit is used to calculate the mutual information of the transient feature according to the first characteristic function and the characteristic value of the transient feature; an integration unit, the integration unit is used to obtain the integration weight of the transient feature, and integrate the mutual information of the transient feature through the integration weight to obtain the integrated mutual information; an acquisition unit, the acquisition unit is used to obtain the best transient feature through the integrated mutual information, and record the best transient feature as the node of the decision tree model; a second calculation unit, the second calculation unit is used to combine the remaining transient features and equipment labels into a training set II, and calculate the second characteristic function of the training set II according to the equipment label.

[0014] In one embodiment of the present invention, the first calculation unit is specifically used to: calculate the feature uniformity of each feature in each of the transient features according to the feature value; calculate the transient uniformity of the transient feature according to the feature uniformity; calculate the mutual information of the transient feature according to the first characteristic function and the transient uniformity.

[0015] In one embodiment of the present invention, the training module is specifically used to: perform data preprocessing on the classified total power consumption data of sample users; and segment the preprocessed total power consumption data of sample users to form a training set of multiple sequence segments.

[0016] Beneficial effects of the present invention:

[0017] The present invention collects electricity consumption data and screens part of the data as a training set and a validation set, specifies equipment labels and transient characteristics according to a power database and calculates a first characteristic function, builds a model according to the first characteristic function and the transient characteristics, inputs the validation set into the model for detection, updates the model according to the detection result to output a final decision tree model, and constructs a deep learning model based on non-invasive load monitoring and trains the model to obtain a non-invasive deep learning model, and inputs the user's actual total electricity power data into the non-invasive deep learning model to optimize the model. In this way, the amount of calculation of user electricity consumption data can be reduced, the operation is simple, and the efficiency of user load monitoring is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flow chart of a multi-model data analysis method based on non-intrusive load monitoring according to an embodiment of the present invention;

[0019] Figure 2 The figure is a block diagram of a multi-model data analysis system based on non-intrusive load monitoring according to an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] Figure 1 The flowchart of the multi-model data analysis method based on non-intrusive load monitoring according to an embodiment of the present invention.

[0022] like Figure 1 As shown, the multi-model data analysis method based on non-intrusive load monitoring according to an embodiment of the present invention comprises the following steps:

[0023] S1, collect past user electricity consumption data, and select part of the data from the electricity consumption data as training set I and verification set respectively.

[0024] In one embodiment of the present invention, past user electricity usage data may be collected from an electricity database, wherein the electricity database may be a database of the general grid or a database specifically used to store user electricity usage data.

[0025] In one embodiment of the present invention, the user's electricity usage data may include the user's voltage, current, power data, the operating conditions of the electrical equipment, and the recorded data of the electric energy meter. It can be understood that since the user's electricity usage data is continuous data, such as the user's current, voltage and power data, when processing the user's electricity usage data, the continuous data can be discretized and the null values ​​in the user's electricity usage data can be interpolated. The average of the data value of the previous moment and the data value of the next moment of the null value in the user's electricity usage data can be taken as the data value of the current null value.

[0026] S2, specifying the device labels and transient features in the training set I according to the database, and calculating the first characteristic function of the training set I according to the device labels.

[0027] In one embodiment of the present invention, the power database may store power consumption characteristics of various power-consuming devices, including transient characteristics and transient characteristics of the power-consuming devices, and label the power-consuming devices according to the power consumption characteristics of the power-consuming devices.

[0028] In one embodiment of the present invention, calculating the first characteristic function of the training set I according to the device label may specifically include the following steps:

[0029] S201, calculating the proportion of each label in the device label in the training set I.

[0030] S202, calculating the first characteristic function of training set I according to the proportion of each label in training set I.

[0031] Among them, the first characteristic function can be expressed as:

[0032] H(x)=∑p(x)logp(x)

[0033] Among them, x is a random variable, H is the entropy of the random variable, and p(x) is the probability of the random variable appearing in training set I.

[0034] S3, constructing a decision tree model according to the first characteristic function and the transient characteristic, and determining the nodes of the decision tree model.

[0035] In one embodiment of the present invention, the mutual information of the transient feature can be first calculated based on the first characteristic function and the characteristic value of the transient feature. Specifically, it can include: calculating the characteristic uniformity of each feature in each transient feature based on the characteristic value; calculating the transient uniformity of the transient feature based on the characteristic uniformity; calculating the mutual information of the transient feature based on the first characteristic function and the transient uniformity.

[0036] Among them, the expression of mutual information can be:

[0037]

[0038] Where D is the value of mutual information, P(i) is the training set I, and Q(i) is the probability of the i-th transient feature appearing in the training set I.

[0039] It can be understood that the larger the value of mutual information is, the higher the proportion of transient features in training set I is.

[0040] In one embodiment of the present invention, if an error or anomaly occurs in a characteristic value of a transient characteristic, the characteristic value may be firstly compensated and modified to reduce the impact on the transient characteristic.

[0041] Furthermore, the integrated mutual information can be obtained by obtaining the integration weight of the transient feature and integrating the mutual information of the transient feature through the integration weight. It can be understood that the integration weight of the transient feature can be manually determined according to the weight and importance of the feature.

[0042] In one embodiment of the present invention, if an error or anomaly occurs in the characteristic value of a transient feature, the erroneous characteristic value can be first determined, and the transient feature in which the characteristic value is located can be found. Then, the proportion of the characteristic value in the transient feature can be calculated, and the integration weight of the transient feature can be integrated according to the proportion.

[0043] Furthermore, the best transient feature can be obtained by integrating mutual information, and the best transient feature can be recorded as a node of the decision tree model. Specifically, the mutual information of the transient feature can be integrated by integrating weights to obtain the integrated mutual information, and the integrated mutual information can be compared with the integrated mutual information corresponding to the transient feature to determine the best integrated mutual information, and the best integrated mutual information can be used as the best transient feature and as the node of the decision tree model. It can be understood that the method of determining the node of the decision tree model by mutual information can better classify the power consumption features.

[0044] Furthermore, the remaining transient features and device labels can be combined into a training set II, and the second characteristic function of the training set II can be calculated based on the device labels.

[0045] The calculation method of the second characteristic function is the same as the calculation method of the first characteristic function.

[0046] S4, inputting the validation set into the decision tree model to test the decision tree model and setting a preset threshold.

[0047] In one embodiment of the present invention, a threshold may be preset, and the threshold may be compared with the detection result of the decision tree model, thereby further improving the accuracy of the detection.

[0048] S5, judging whether the preset threshold is met according to the detection result, if the detection result does not meet the preset threshold, updating the parameters in the decision tree model until the detection result meets the preset threshold, and outputting the final decision tree model.

[0049] In one embodiment of the present invention, the validation set is input into the decision tree model and the detection result is output. If the detection result does not meet the preset threshold, it is necessary to rebuild the parameters of the decision tree model and repeat the above steps S2 to S4 to obtain a new decision tree model, wherein the detection result can be the accuracy of the model classification.

[0050] S6, obtaining the total power consumption data of the sample users, and classifying the total power consumption data of the sample users through the final decision tree model.

[0051] In one embodiment of the present invention, the total power consumption data of the user to be detected can be obtained through the power database and input into the final decision tree model. The final decision tree model can analyze the transient characteristics of the user to obtain the device label corresponding to the characteristic, and then classify and identify the total power consumption data of the sample user.

[0052] S7, construct a deep learning model based on non-intrusive load monitoring, input the classified sample user total power data into the deep learning model for training, so as to obtain a non-intrusive deep learning model.

[0053] Specifically, the classified total electricity power data of sample users can first be preprocessed to delete abnormal data or blank data in the total electricity power data of sample users, and the preprocessed data can be normalized. Then, the normalized total electricity power data of sample users can be segmented to form a training set of multiple sequence segments.

[0054] S8, obtaining the user's actual total power consumption data and inputting them into the final decision tree model and the non-intrusive deep learning model respectively, so as to obtain the power dynamic series of a single power-consuming device.

[0055] In one embodiment of the present invention, the user's actual total power consumption data can first be input into the final decision tree model, and the power consumption data can be classified by the final decision tree model. The classified power consumption data can be input into a non-invasive deep learning model to obtain the output power of a single power device and the operating status probability value of the power device. The power dynamic series of a single power device can be obtained by multiplying the output power of a single power device and the operating status probability value.

[0056] S9, manually compare the power dynamic series of the actual power-consuming equipment with the power dynamic series of a single power-consuming equipment obtained in the intrusive deep learning model, and optimize the intrusive deep learning model based on the comparison results.

[0057] According to the multi-model data analysis method based on non-intrusive load monitoring according to an embodiment of the present invention, electricity consumption data is collected and part of the data is screened as a training set and a verification set, equipment labels and transient characteristics are specified according to the power database and a first characteristic function is calculated, a model is constructed according to the first characteristic function and the transient characteristics, the verification set is input into the model for detection, and the model is updated according to the detection result to output a final decision tree model, and a deep learning model based on non-intrusive load monitoring is constructed and trained to obtain a non-intrusive deep learning model, and the user's actual total power consumption data is input into the non-intrusive deep learning model to optimize the model, thereby reducing the amount of calculation of user electricity consumption data, and the operation is simple, thereby improving the efficiency of user load monitoring.

[0058] In order to implement the multi-model data analysis method based on non-intrusive load monitoring of the above embodiment, the present invention also proposes a multi-model data analysis system based on non-intrusive load monitoring.

[0059] Figure 2 The figure is a block diagram of a multi-model data analysis system based on non-intrusive load monitoring according to an embodiment of the present invention.

[0060] like Figure 2As shown, the multi-model data analysis system based on non-intrusive load monitoring of an embodiment of the present invention includes: an acquisition module 100, a calculation module 200, a construction module 300, a detection module 400, an update module 500, a classification module 600, a training module 700, an acquisition module 800 and an optimization module 900, wherein the acquisition module 100 is used to collect past user power consumption data, and filter part of the data from the power consumption data as a training set I and a verification set respectively; the calculation module 200 is used to specify the device labels and transient characteristics in the training set I according to the power database, and calculate the first characteristic function of the training set I according to the device labels; the construction module 300 is used to construct a decision tree model according to the first characteristic function and the transient characteristics, and determine the nodes of the decision tree model; the detection module 400 is used to input the verification set into the decision tree model to detect the decision tree model, and set a preset threshold; the update module 500 is used to determine whether the preset threshold is met according to the detection result, and if the detection result is satisfied, the detection result is satisfied. If the test result does not meet the preset threshold, the parameters in the decision tree model are updated until the test result meets the preset threshold, and the final decision tree model is output; the classification module 600 is used to obtain the total power consumption data of the sample users, and classify the total power consumption data of the sample users through the final decision tree model; the training module 700 is used to build a deep learning model based on non-intrusive load monitoring, and input the classified total power consumption data of the sample users into the deep learning model for training to obtain a non-intrusive deep learning model; the acquisition module 800 is used to obtain the actual total power consumption data of the user, and input it into the final decision tree model and the non-intrusive deep learning model respectively to obtain the power dynamic series of a single power-consuming device; the optimization module 900 is used to manually compare the power dynamic series of the real power-consuming device with the power dynamic series of the single power-consuming device obtained in the intrusive deep learning model, and optimize the intrusive deep learning model according to the comparison results.

[0061] In one embodiment of the present invention, the collection module 100 may collect past user electricity usage data from a power database, wherein the power database may be a database of the general grid or a database specifically used to store user electricity usage data.

[0062] In one embodiment of the present invention, the user's electricity usage data may include the user's voltage, current, power data, the operating conditions of the electrical equipment, and the recorded data of the electric energy meter. It can be understood that since the user's electricity usage data is continuous data, such as the user's current, voltage and power data, when processing the user's electricity usage data, the continuous data can be discretized and the null values ​​in the user's electricity usage data can be interpolated. The average of the data value of the previous moment and the data value of the next moment of the null value in the user's electricity usage data can be taken as the data value of the current null value.

[0063] In one embodiment of the present invention, the power database may store power consumption characteristics of various power-consuming devices, including transient characteristics and transient characteristics of the power-consuming devices, and label the power-consuming devices according to the power consumption characteristics of the power-consuming devices.

[0064] In one embodiment of the present invention, the calculation module 200 calculates the first characteristic function of the training set I according to the device label, which may specifically include the following steps:

[0065] S201, calculating the proportion of each label in the device label in the training set I.

[0066] S202, calculating the first characteristic function of training set I according to the proportion of each label in training set I.

[0067] Among them, the first characteristic function can be expressed as:

[0068] H(x)=∑p(x)logp(x)

[0069] Among them, x is a random variable, H is the entropy of the random variable, and p(x) is the probability of the random variable appearing in training set I.

[0070] In one embodiment of the present invention, the construction module 300 may first calculate the mutual information of the transient feature according to the first characteristic function and the characteristic value of the transient feature. Specifically, it may include: calculating the characteristic uniformity of each feature in each transient feature according to the characteristic value; calculating the transient uniformity of the transient feature according to the characteristic uniformity; calculating the mutual information of the transient feature according to the first characteristic function and the transient uniformity.

[0071] Among them, the expression of mutual information can be:

[0072]

[0073] Where D is the value of mutual information, P(i) is the training set I, and Q(i) is the probability of the i-th transient feature appearing in the training set I.

[0074] It can be understood that the larger the value of mutual information is, the higher the proportion of transient features in training set I is.

[0075] In one embodiment of the present invention, if an error or anomaly occurs in a characteristic value of a transient characteristic, the characteristic value may be firstly compensated and modified to reduce the impact on the transient characteristic.

[0076] Furthermore, the integrated mutual information can be obtained by obtaining the integration weight of the transient feature and integrating the mutual information of the transient feature through the integration weight. It can be understood that the integration weight of the transient feature can be manually determined according to the weight and importance of the feature.

[0077] In one embodiment of the present invention, if an error or anomaly occurs in the characteristic value of a transient feature, the erroneous characteristic value can be first determined, and the transient feature in which the characteristic value is located can be found. Then, the proportion of the characteristic value in the transient feature can be calculated, and the integration weight of the transient feature can be integrated according to the proportion.

[0078] Furthermore, the best transient feature can be obtained by integrating mutual information, and the best transient feature can be recorded as a node of the decision tree model. Specifically, the mutual information of the transient feature can be integrated by integrating weights to obtain the integrated mutual information, and the integrated mutual information can be compared with the integrated mutual information corresponding to the transient feature to determine the best integrated mutual information, and the best integrated mutual information can be used as the best transient feature and as the node of the decision tree model. It can be understood that the method of determining the node of the decision tree model by mutual information can better classify the power consumption features.

[0079] Furthermore, the remaining transient features and device labels can be combined into a training set II, and the second characteristic function of the training set II can be calculated based on the device labels.

[0080] The calculation method of the second characteristic function is the same as the calculation method of the first characteristic function.

[0081] In one embodiment of the present invention, the detection module 400 may pre-set a threshold and compare the threshold with the detection result of the decision tree model, thereby further improving the accuracy of the detection.

[0082] In one embodiment of the present invention, the update module 500 inputs the validation set into the decision tree model and outputs the detection result. If the detection result does not meet the preset threshold, it is necessary to rebuild the parameters of the decision tree model and repeat the above steps S2 to S4 to obtain a new decision tree model, wherein the detection result can be the accuracy of the model classification.

[0083] In one embodiment of the present invention, the classification module 600 can obtain the total power consumption data of the user to be detected through the power database and input it into the final decision tree model. The final decision tree model can analyze the transient characteristics of the user to obtain the device label corresponding to the characteristic, and then classify and identify the total power consumption data of the sample user.

[0084] In one embodiment of the present invention, the training module 700 may first preprocess the classified sample user total electricity power data, delete abnormal data or blank data in the sample user total electricity power data, and normalize the preprocessed data, and then segment the normalized sample user total electricity power data to form a training set of multiple sequence segments.

[0085] In one embodiment of the present invention, the acquisition module 800 may first input the user's actual total power consumption data into the final decision tree model, and classify the power consumption data through the final decision tree model, and input the classified power consumption data into the non-invasive deep learning model to obtain the output power of a single power device and the operating status probability value of the power device. The power dynamic series of a single power device can be obtained by multiplying the output power of a single power device and the operating status probability value.

[0086] According to the multi-model data analysis system based on non-intrusive load monitoring according to the embodiment of the present invention, the collection module collects power consumption data and screens part of the data as a training set and a verification set, the calculation module specifies the device label and transient characteristics according to the power database and calculates the first characteristic function, the construction module constructs the model according to the first characteristic function and the transient characteristics, the detection is performed by the detection module, and the model is updated according to the detection result to output the final decision tree model, and a deep learning model based on non-intrusive load monitoring is constructed and trained by the training module to obtain a non-intrusive deep learning model, and the user's actual total power consumption data is input into the non-intrusive deep learning model and the model is optimized by the optimization module, thereby reducing the amount of calculation of the user's power consumption data, and the operation is simple, thereby improving the efficiency of user load monitoring.

[0087] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.

[0088] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0089] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0090] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0091] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0092] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0093] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0094] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0095] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0096] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A multi-model data analysis method based on non-intrusive load monitoring, characterized in that: The following steps are involved: Collect past user electricity consumption data, and select part of the data from the electricity consumption data as training set I and verification set respectively; Specifying device labels and transient characteristics in the training set I according to the power database, and calculating a first characteristic function of the training set I according to the device labels; Constructing a decision tree model according to the first characteristic function and the transient characteristic, and determining nodes of the decision tree model; Inputting the verification set into the decision tree model to test the decision tree model, and setting a preset threshold; Determine whether the preset threshold is met according to the detection result; if the detection result does not meet the preset threshold, update the parameters in the decision tree model until the detection result meets the preset threshold, and output the final decision tree model; Obtaining total power consumption data of sample users, and classifying the total power consumption data of sample users through the final decision tree model; Constructing a deep learning model based on non-intrusive load monitoring, and inputting the classified total power consumption data of sample users into the deep learning model for training to obtain a non-intrusive deep learning model; Obtaining the actual total power consumption data of the user, and inputting the data into the final decision tree model and the non-intrusive deep learning model respectively, so as to obtain the power dynamic series of a single power-consuming device; The actual power dynamic series of the electrical equipment is compared with the power dynamic series of a single electrical equipment obtained in the intrusive deep learning model by artificial means, and the intrusive deep learning model is optimized according to the comparison result. The calculation of the first characteristic function of the training set I according to the device labels includes the following steps: calculating the proportion of each label in the device labels in the training set I; calculating the first characteristic function of the training set I according to the proportion of each label in the training set I, wherein the first characteristic function is expressed as: H(x)=∑p(x)logp(x) Where x is a random variable, H is the entropy of the random variable, and p(x) is the probability of the random variable appearing in training set I. The method of constructing a decision tree model according to the first characteristic function and the transient characteristic and determining the nodes of the decision tree model includes the following steps: calculating the mutual information of the transient characteristic according to the characteristic values ​​of the first characteristic function and the transient characteristic; obtaining the integration weight of the transient characteristic, and integrating the mutual information of the transient characteristic through the integration weight to obtain the integrated mutual information; obtaining the best transient characteristic through the integrated mutual information, and recording the best transient characteristic as the node of the decision tree model; forming the training set II with the remaining transient characteristics and the equipment label, and calculating the second characteristic function of the training set II according to the equipment label. The method of calculating the mutual information of the transient features based on the first characteristic function and the characteristic value of the transient features includes the following steps: calculating the characteristic uniformity of each feature in each transient feature based on the characteristic value; calculating the transient uniformity of the transient features based on the characteristic uniformity; calculating the mutual information of the transient features based on the first characteristic function and the transient uniformity.

2. The multi-model data analysis method based on non-intrusive load monitoring according to claim 1 is characterized in that: The step of inputting the classified total power consumption data of sample users into the deep learning model for training comprises the following steps: Perform data preprocessing on the classified total power consumption data of sample users; The preprocessed total power data of sample users is segmented to form a training set of multiple sequence segments.

3. A multi-model data analysis system based on non-intrusive load monitoring, characterized in that: include: A collection module, the collection module is used to collect past user electricity consumption data, and select part of the data from the electricity consumption data as a training set I and a verification set respectively; A calculation module, the calculation module is used to specify the equipment labels and transient characteristics in the training set I according to the power database, and calculate the first characteristic function of the training set I according to the equipment labels; A construction module, the construction module is used to construct a decision tree model according to the first characteristic function and the transient characteristic, and determine the nodes of the decision tree model; A detection module, the detection module is used to input the verification set into the decision tree model to detect the decision tree model and set a preset threshold; An updating module, wherein the updating module is used to determine whether the preset threshold is met according to the detection result, and if the detection result does not meet the preset threshold, update the parameters in the decision tree model until the detection result meets the preset threshold, and output a final decision tree model; A classification module, the classification module is used to obtain the total power consumption data of sample users, and classify the total power consumption data of sample users through the final decision tree model; A training module, wherein the training module is used to construct a deep learning model based on non-intrusive load monitoring, and input the classified total power consumption data of sample users into the deep learning model for training to obtain a non-intrusive deep learning model; An acquisition module, the acquisition module is used to obtain the user's actual total power consumption data, and input it into the final decision tree model and the non-intrusive deep learning model respectively, so as to obtain the power dynamic series of a single power-consuming device; An optimization module is used to manually compare the actual power dynamic series of the electrical equipment with the power dynamic series of a single electrical equipment obtained in the intrusive deep learning model, and optimize the intrusive deep learning model according to the comparison result. The calculation module is specifically used to: calculate the proportion of each label in the equipment label in the training set I; calculate the first characteristic function of the training set I according to the proportion of each label in the training set I, wherein the first characteristic function is expressed as: H(x)=∑p(x)logp(x) Where x is a random variable, H is the entropy of the random variable, and p(x) is the probability of the random variable appearing in training set I. The construction module specifically includes: a first calculation unit, the first calculation unit is used to calculate the mutual information of the transient feature according to the first characteristic function and the characteristic value of the transient feature; an integration unit, the integration unit is used to obtain the integration weight of the transient feature, and integrate the mutual information of the transient feature through the integration weight to obtain the integrated mutual information; an acquisition unit, the acquisition unit is used to obtain the best transient feature through the integrated mutual information, and record the best transient feature as the node of the decision tree model; a second calculation unit, the second calculation unit is used to form the training set II with the remaining transient features and equipment labels, and calculate the second characteristic function of the training set II according to the equipment label, The first calculation unit is specifically used to: calculate the feature uniformity of each feature in each transient feature according to the feature value; calculate the transient uniformity of the transient feature according to the feature uniformity; and calculate the mutual information of the transient feature according to the first feature function and the transient uniformity.

4. The multi-model data analysis system based on non-intrusive load monitoring according to claim 3 is characterized in that: The training module is specifically used for: Perform data preprocessing on the classified total power consumption data of sample users; The preprocessed total power data of sample users is segmented to form a training set of multiple sequence segments.