Low-frequency non-intrusive load monitoring method and system based on adaptive event detection
By combining Bayesian information criterion and variational mode decomposition with the CNN-SENet model, the problem of computational complexity and high cost in high-frequency load monitoring is solved, high-precision load monitoring and event detection under low-frequency sampling are achieved, and the cost is reduced Equipment cost and computational complexity.
Patent Information
- Application Number
- CN202410602121.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-15
AI Technical Summary
Existing technologies suffer from computational complexity and high equipment costs in high-frequency load monitoring, which hinders low-cost and efficient load identification and event detection.
Bayesian information criterion and power change point weight model are used for adaptive event detection, and variational mode decomposition and CNN-SENet models are combined to decompose and identify load characteristics, and reduce sampling frequency to achieve high-precision load monitoring.
Under low-frequency sampling conditions, high-precision event detection and load identification are achieved, reducing computational complexity and equipment costs, and improving the generalization ability and interpretability of the model.
Smart Images

Figure CN118656722A
Abstract
Description
Technical Field
[0001] The invention relates to a low-frequency non-intrusive load monitoring method and system based on adaptive event detection, and belongs to the field of smart grid. Background Art
[0002] With the continuous growth of energy demand and increasing attention to energy efficiency in modern society, the process of technological and industrial transformation towards informatization, automation and intelligence has accelerated. The development of the power Internet of Things has put forward higher requirements for power system perception technology. For intelligent management on the user demand side, load monitoring is a key link. Traditional load monitoring technology can no longer support the development of digital management on the user demand side, while NILM technology can accurately detect and identify abnormal load events without interrupting power operation and infringing on the privacy of residential users. This method also has the characteristics of high precision, low cost and high efficiency. It can effectively reduce the maintenance cost of the power system and realize online monitoring of residential user load data, thereby providing refined energy efficiency analysis for the interactive management of power grid power supply enterprises and residents' demand side, guiding power supply enterprises to optimize the power supply and distribution structure, planning low-carbon and energy-saving electricity consumption modes for users, and improving the energy efficiency of the power system.
[0003] In recent years, the construction of home energy management systems and research on load monitoring have attracted widespread attention from relevant scholars, and a variety of intelligent residential load monitoring methods with NILM technology as the core have gradually emerged. At present, event detection NILM algorithms have made certain progress in the field of residential load monitoring. In the field of high-frequency NILM, the literature "Lin Shunfu, Lin Yifeng, Li Yi, et al. Research on non-invasive load identification technology based on load high-frequency feature imaging [J / OL]. Power System Technology: 1-11 [2024-04-03]." Based on the grayscale image of the UI characteristic curve, the Gram angular field algorithm and the Markov transfer field algorithm are used to add periodic steady-state current characteristics and periodic instantaneous active power characteristics to the image, which improves the accuracy of load identification. However, this method is complex in calculation and has high requirements on the measurement dimension of residential load electrical quantity data. Reference "Wang Ying, Yang Wei, Xiao Xianyong, et al. Non-intrusive residential load monitoring method based on refined identification of UI trajectory curves [J]. Power System Technology, 2021, 45(10): 4104-4113." The goodness of fit test is used to capture the switching events of electrical appliances, and then the k-means algorithm considering initial optimization and the convolutional neural network model are used to perform two-stage load identification, and an event-based NILM method based on refined identification of UI trajectory curves is proposed. The above methods have improved the intelligence and refinement level of event detection NILM methods to a certain extent. However, these methods have significant computational complexity on the one hand, and on the other hand, they have very high sampling requirements (not only a higher sampling frequency is required, but also higher hardware performance requirements for the NILM acquisition device), which hinders the low-cost and high-efficiency deep integration of data-driven high-precision event detection methods and NILM load identification terminals.
[0004] With the diversification of types and functions of household electrical appliances, residents' electricity usage environment is becoming increasingly complex. How to ensure high-precision NILM load identification while solving problems such as high equipment cost and complex calculation methods caused by high-frequency sampling has become a challenging research task in the field of load monitoring.
[0005] In view of this, the present invention is proposed. Summary of the invention
[0007] The present invention provides a low-frequency non-intrusive load monitoring method and system based on adaptive event detection, which can perform event detection under low-frequency sampling conditions to reduce sampling costs and reduce the complexity of calculation methods.
[0008] The technical solution of the present invention is:
[0009] According to a first aspect of the present invention, a low-frequency non-intrusive load monitoring method based on adaptive event detection is provided, comprising: event detection, feature extraction and load identification; using the Bayesian information criterion as a detection window in event detection, and adaptively optimizing the window threshold through a power change point weight model; decomposing and grouping the load characteristics of the power time series of different electrical equipment using a variational mode decomposition method; and realizing load identification and classification of power curve waveforms of different electrical equipment based on a load identification model.
[0010] In event detection, it is assumed that the power time series of the electrical equipment to be tested follows the Poisson distribution, and the following two models are constructed. Based on the following two models, the maximum likelihood function in the Bayesian information criterion is constructed:
[0011] There is no event in the power time series, so a static model M is constructed. s :
[0012] M s :p1,.....,p N ~P S (λ0);
[0013] When a load event occurs in the power time series, a jump model M is constructed. J :
[0014] M J :p1,.....,p n-1 ~P S (λ1); p n ,.....,p N ~P S (λ2);
[0015] Where λ0 represents the power time series P without event occurrence S (λ0) follows the expectation and variance of Poisson distribution; λ1 and λ2 represent the power time series P before the load event occurs in the power time series. S (λ1) follows the expectation and variance of the Poisson distribution; λ2 represents the power time series P after the load event occurs in the power time series S (λ2) follows the expectation and variance of the Poisson distribution; p n Indicates the mark point when a load event occurs, that is, the nth sample of the power time series.
[0016] The adaptive optimization of the window threshold by using the power change point weight model includes:
[0017] In the power change point weight model, the jump model M J The sequence is converted into a matrix form P s and P J :
[0018] Static Sequence P s It is expressed as:
[0019] P s =[p1,…,p n-1 ] T ;
[0020] Hopping sequence P J It is expressed as:
[0021] P J =[p n ,…,p N ] T ;
[0022] There is no event in the static sequence, so the power increment Δp0 corresponding to the sequence is zero; the jump sequence is accompanied by the state change of the electrical equipment, so the power increment Δp0 corresponding to the sequence is not zero; introducing δ min Indicates the minimum power increment for switching the state of an electrical device; the power increment is described as:
[0023] Δp=Δp0-δ min ;
[0024] Then the power increment set is:
[0025] Δp=[Δp1,…,Δp N ] T ;
[0026] Δp S =[Δp1,…,Δp n-1 ] T ;
[0027] Δp J =[Δp n ,…,Δp N ] T ;
[0028] In the formula, Δp N Indicates the increment of the Nth sample of the power time series; Δp S and Δp J They are respectively a static power increment set and a jump power increment set; the power increment set Δp of the sequence to be detected is:
[0029] Δp=Δp S +Δp J =Δp J ;
[0030] The jump weight ω in the power change point weight model i The assignment formula and the calculation formula of the jump information entropy F are as follows:
[0031] ω i =lg(Δp i ); i∈(n,N);
[0032]
[0033] Where N2 is the number of hopping sequence samples;
[0034] Combined with the Bayesian information criterion, the detection window threshold h is optimized.
[0035] The load recognition model is a CNN-SENet load recognition model that introduces a squeeze-excite attention mechanism into a convolutional neural network.
[0036] The CNN-SENet load identification model is specifically as follows: the model is divided into 1 input layer, 5 convolution layers, 1 pooling layer, 1 fully connected layer and 1 output layer in the overall structure; wherein, the first 4 convolution layers are conventional convolutions with a convolution kernel size of 5x5, and the 5th convolution layer is a 6x6 convolution kernel that introduces the SENet spatial attention module; the pooling layer performs maximum pooling and normalization processing based on a 5x5 digital matrix, and the operation mode is "SAME"; in the output layer, the loss function of the model is constructed based on cross entropy, and Adam is selected as the gradient optimizer to dynamically update the CNN network parameters.
[0037] According to a second aspect of the present invention, there is provided a low-frequency non-intrusive load monitoring system based on adaptive event detection, comprising: an event detection module, a feature extraction module and a load identification module; in the event detection module, the Bayesian information criterion is used as the detection window, and the window threshold is adaptively optimized through a power change point weight model; the feature extraction module is used to decompose and group the load characteristics of the power time series of different electrical equipment using a variational mode decomposition method; the load identification module is used to realize load identification and classification of power curve waveforms of different electrical equipment based on a load identification model.
[0038] According to a third aspect of the present invention, a processor is provided, which, when running, executes any one of the above-mentioned low-frequency non-intrusive load monitoring methods based on adaptive event detection.
[0039] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium comprising a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned low-frequency non-intrusive load monitoring methods based on adaptive event detection.
[0040] The beneficial effects of the present invention are as follows: the present invention establishes a power change point weight model based on change point detection, realizes adaptive adjustment of BIC algorithm parameters, and ensures that the proposed algorithm has good generalization performance and excellent detection accuracy in the operating environment of different electrical equipment; introduces the VMD algorithm to perform multimodal decomposition and effective combination of features of the power curve waveform, and on this basis, uses CNN as an image classifier for power curve waveforms of different household electrical appliances, and adopts the SENet attention mechanism to enhance the ability of CNN feature aggregation, which can not only improve the efficiency of the learning algorithm, but also improve the generalization ability and interpretability of the model, and realize accurate identification of different household loads in different operating scenarios. The example shows that the proposed method ensures high accuracy of event detection under low-frequency sampling conditions while also showing a high load recognition accuracy rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is an overall schematic diagram of the process of the present invention;
[0042] Figure 2 is an event detection block diagram of the present invention;
[0043] Figure 3 It is a feature extraction block diagram of the present invention;
[0044] Figure 4 is a load identification block diagram of the present invention;
[0045] Figure 5 It is a schematic diagram of a transient event. DETAILED DESCRIPTION
[0046] The invention will be further described below in conjunction with the accompanying drawings and embodiments, but the content of the invention is not limited to the scope of the embodiments.
[0047] Example 1: Figure 1-5 As shown, according to the first aspect of an embodiment of the present invention, a low-frequency non-intrusive load monitoring method based on adaptive event detection is provided, including: event detection, feature extraction and load identification; in event detection, the Bayesian information criterion is used as the detection window, and the window threshold is adaptively optimized through the power change point weight model; secondly, the variational mode decomposition method is used to decompose and group the load characteristics of the power time series of different electrical equipment, and the redundant and irrelevant characteristics of the event load are eliminated; based on the load identification model, the load identification and classification of the power curve waveform diagrams of different electrical equipment are realized.
[0048] Furthermore, if Figure 1As shown in the figure, the process of the key components based on NILM technology. The purpose of event detection is to automatically identify and mark the start and stop events of electrical appliances from the electrical data sequence; the purpose of feature extraction is to mine the differentiated characteristic information of electrical quantities such as voltage, current, power, etc. of different electrical appliances to form a good degree of differentiation; the purpose of load identification is to determine the type of each electrical equipment based on the load characteristics after event detection and decomposition, and provide technical support for users' energy consumption monitoring and energy optimization management. The process of event detection of the present invention is as follows Figure 2 As shown in Figure 3 As shown in Figure 2, the principle of load identification is as follows: Figure 4 shown.
[0049] In event-based NILM load identification, the Bayesian Information Criterion (BIC) is introduced as a probability model for change point detection to monitor the changes in statistical parameters of power series of different devices. Therefore, the problem of load event detection is transformed into the problem of time series anomaly detection, that is, continuously monitoring the change points in the time series and marking the moment when the data changes significantly. The mathematical model of the BIC algorithm is as follows:
[0050] Assume that the power sequence of a certain electrical equipment that changes with time is P = {p t}, t=1,2,3...N, M is the probability model for change point detection. The maximum likelihood function L(p,M) is proposed, and then the BIC calculation formula of model M is proposed:
[0051] BIC(M)=-2log(L(p,M))+k*log(N);
[0052] In the formula, k represents the number of model parameters; N is the number of samples; k*log(N) is the penalty term related to the number of model parameters introduced by BIC, which is used to avoid overfitting of the model, that is, to ensure that the model selection problem finds the best balance between model complexity and the model's ability to describe the power sequence data set (i.e., likelihood function L). Generally speaking, when the complexity of the model continues to increase (k becomes larger), the likelihood function L will also increase, thereby reducing the value of BIC and maintaining it within a smaller range of variation; when the complexity of the model continues to increase (k exceeds a certain value), the growth rate of L will not be able to effectively suppress the increase of the BIC value, and the model is prone to overfitting. The penalty term of BIC is not only directly related to k, but also takes into account the number of samples N. This is to ensure that when the training data is large enough, the penalty term can effectively prevent the model complexity from being too high while improving the accuracy of the model, thereby reducing the possibility of overfitting.
[0053] In event detection, it is assumed that the power time series of the electrical equipment to be tested follows the Poisson distribution, and the following two models are constructed. Based on the following two models, the maximum likelihood function in the Bayesian information criterion is constructed:
[0054] There is no event in the power time series, that is, there is no static model M where there is no change point signal s :
[0055] M s :p1,.....,p N ~P S (λ0);
[0056] There is a load event in the power time series, and there is a jump model M of the step signal J :
[0057] M J :p1,.....,p n-1 ~P S (λ1); p n ,.....,p N ~P S (λ2);
[0058] Where λ0 represents the power time series P without event occurrence S (λ0) follows the expectation and variance of Poisson distribution; λ1 and λ2 represent the power time series P before the load event occurs in the power time series. S (λ1) follows the expectation and variance of the Poisson distribution; λ2 represents the power time series P after the load event occurs in the power time series S (λ2) follows the expectation and variance of the Poisson distribution; p n It indicates the marking point when the load event occurs, which further divides the MJ sequence into two parts: p1,.....,p n-1 (the sample size is recorded as N1) and p after the event occurs n ,.....,p N (The sample size is recorded as N2).
[0059] Next, construct the maximum likelihood functions for the two models:
[0060] L(i)=Nlog(λ0)-N1log(λ1)-N2log(λ2);
[0061] The corresponding BIC value is:
[0062]
[0063] In the formula, λ is λ0, λ1 or λ2;
[0064] The judgment conditions for change point detection are obtained:
[0065] {max(BIC(i))}≥h;
[0066] In the formula, h represents the threshold parameter of the BIC detection window. When the BIC value of a detection window is greater than the set threshold h, it indicates that the power sequence of the window corresponds to the jump model M J According to the maximum likelihood estimation method, the event time in the power sequence can be further determined as:
[0067]
[0068] The accuracy of the BIC algorithm depends largely on the value of the threshold parameter h. To this end, the present invention introduces the PCW model to evaluate the performance of the algorithm when different thresholds are set, and by dynamically optimizing the threshold h, maximize the event detection performance of the algorithm under different operating environments. The modeling idea of PCW is highly compatible with the mathematical model of BIC. It also divides the power curve of electrical equipment into two states: "static" and "jump", and models them separately.
[0069] Furthermore, the adaptive optimization of the window threshold by using the power change point weight model includes:
[0070] In the power change point weight model, the jump model M J The sequence is converted into a matrix form P s and P J :
[0071] Static Sequence P s It is expressed as:
[0072] P s =[p1,…,p n-1 ] T ;
[0073] Hopping sequence P J It is expressed as:
[0074] P J =[p n ,…,p N ] T ;
[0075] There is no event in the static sequence, so the power increment Δp0 corresponding to the sequence is zero; the jump sequence is accompanied by the state change of the electrical equipment, so the power increment Δp0 corresponding to the sequence is not zero. It should be noted here that there is measurement noise in the power curve of the electrical equipment. In order to avoid false detection of events, δ min Indicates the minimum power increment for switching the state of the electrical equipment; therefore, the power increment can be further described as:
[0076] Δp=Δp0-δ min ;
[0077] Then the power increment set is:
[0078] Δp=[Δp1,…,Δp N ] T ;
[0079] Δp S =[Δp1,…,Δp n-1 ] T ;
[0080] Δp J =[Δp n ,…,Δp N ] T ;
[0081] In the formula, Δp N Indicates the increment of the Nth sample of the power time series; Δp S and Δp J They are the static power increment set and the jump power increment set respectively; obviously, there is no jump event in the static sequence, and the corresponding power increment is less than δ min , then Δp S =0. Therefore, the power increment set Δp of the sequence to be detected is:
[0082] Δp=Δp S +Δp J =Δp J ;
[0083] At this time, the PCW model initializes each jump event as a particle without weight and volume in the weight space. These particles contain different jump information of electrical equipment. The sum of the jump information contained in all particles is recorded as the jump information entropy F. Obviously, different particles contribute differently to F. This paper quantifies the contribution of particles to F as the change point weight ω, that is, the larger the power jump of the particle containing transient information, the larger the particle change point weight ω, and the greater the contribution to F. Jump weight ω in the power change point weight model i The assignment formula and the calculation formula of the jump information entropy F are as follows:
[0084] ω i =lg(Δp i ); i∈(n,N);
[0085]
[0086] Finally, combined with the Bayesian information criterion, the detection window threshold h is optimized. Under different thresholds, the size of the jump information entropy is compared. The larger the value of the jump information entropy F, the better the effect of the BIC algorithm in event detection. In this way, dynamic optimization of the BIC window threshold parameter h can be achieved.
[0087] Furthermore, after the event detection is completed, the present invention introduces the VMD algorithm and combines it with the CNN-SENet model to perform feature extraction and load identification, such as Figure 3 , 4 As shown in the figure. The extraction and recognition of the features of the power curve waveform belong to the recognition and classification of image targets. The VMD algorithm is introduced to perform multi-modal decomposition and effective combination of the features of the power curve waveform. On this basis, CNN is used as an image classifier for the power curve waveforms of different household appliances, and the SENet attention mechanism is used to enhance the CNN feature aggregation capability, which can not only improve the efficiency of the learning algorithm, but also improve the generalization ability and interpretability of the model, and realize the accurate recognition of different household loads in different operating scenarios.
[0088] Compared with wavelet transform or empirical mode decomposition (EMD), VMD has better feature resolution. In addition, unlike EMD, which lacks mathematical background and is sensitive to noise, VMD is built on a solid mathematical theoretical foundation, including Wiener filters for signal denoising, Hilbert transforms for generating unilateral analytical signals, and frequency shifts for identifying basebands through mode mixing. VMD is an adaptive, fully non-recursive modal variation and signal processing method. The adaptability of the algorithm is manifested in that it can determine the number of modal decompositions of the power time series according to the actual situation of the electrical quantities of different equipment, and automatically determine the optimal frequency band of each modal signal in the subsequent signal decomposition step, decomposing the original signal into a discrete number of multi-order intrinsic mode functions (IMFs) with specific sparse properties, thereby achieving effective decomposition of event device features in the power series.
[0089] Each IMF obtained by eigendecomposition is an amplitude and frequency modulated signal concentrated around the center frequency. It is necessary to perform feature combination on this basis, that is, to screen out the effective decomposition components of the power sequence, reconstruct the event device characteristics, and then obtain the optimal solution to the variational problem. First, the signal is analyzed through Hilbert transform to convert the one-dimensional power sequence signal into a signal with amplitude and phase on the two-dimensional complex plane; secondly, the signal is demodulated through Gaussian smoothing to estimate the bandwidth of each modal signal; then, in each iteration, according to the spectral characteristics of the signal, the Lagrange multiplier and quadratic penalty function method are used to strengthen the reconstruction constraints to improve the convergence of the results; finally, the L2 norm regularization method is used to solve the overfitting problem. For each different device power signal, different decomposition modes and center frequencies are updated to complete the effective extraction of event device characteristics.
[0090] Furthermore, the load recognition model considers the improvement of the spatial feature aggregation ability of the squeeze-and-excitation network (SENet) attention mechanism and introduces it into the CNN-SENet load recognition model of the convolutional neural network (CNN) to realize the load recognition and classification of the power curve waveforms of different electrical equipment. The experimental results show that the proposed method has high recognition accuracy and good generalization performance in different operating scenarios.
[0091] In order to complete the feature aggregation of the convolution operation and further realize the task of refined classification output in the output layer, the CNN-SENet load recognition model constructed by the present invention realizes load recognition and classification of power curve waveforms of different electrical equipment. Figure 1 As shown, specifically:
[0092] Standardization of power curve waveform: pre-process the power curve waveform and normalize the window size; for the power curve waveforms of different household appliance loads, uniformly adjust them to the (256, 256, 3) JPG format, that is, the image pixel size is 256×256, and 3 feature map channels are used;
[0093] Construct a CNN-SENet load identification model: The overall structure of the model is divided into 1 input layer, 5 convolutional layers, 1 pooling layer, 1 fully connected layer and 1 output layer; among them, the first 4 convolutional layers are regular convolutions with a convolution kernel size of 5x5; in particular, the 5th convolutional layer is a 6x6 convolution kernel that introduces the SENet spatial attention module; the pooling layer performs maximum pooling and normalization based on a 5x5 digital matrix, and the operation mode is "SAME"; in the output layer, the loss function of the model is constructed based on cross entropy, and Adam is selected as the gradient optimizer to dynamically update the CNN network parameters.
[0094] Training and testing the classification model: In the proposed method, the training set and test set are set with a sample ratio of 8:2 to train and test the classification model. This step belongs to the training process of semi-supervised machine learning. With the help of manual label data, the parameters of the CNN-SENet model are optimized to achieve the purpose of identifying different household appliance loads.
[0095] Based on the above, the NILM load identification method based on adaptive event detection of the present invention is developed according to the following steps:
[0096] 1) Data collection: Analyze the differentiated electrical characteristics of different electrical equipment in residential buildings, and measure and collect power data of electrical equipment in different operating states;
[0097] 2) Event detection: Establish a curve waveform database based on power time series, and use the BIC algorithm optimized by PCW to detect events and mark the event moments;
[0098] 3) Feature extraction: VMD algorithm is used to perform multi-modal decomposition and effective reorganization of the power curve waveform of the event load to extract the typical features of different electrical equipment;
[0099] 4) Load identification: Build a load identification model based on CNN-SENet, learn the load characteristic values of different electrical equipment through iterative training, and complete the load identification and classification of the test set data;
[0100] 5) Evaluation and optimization: After CNN-SENet model identification, the load label is output, and the test results are compared with the true value to evaluate and optimize the load identification performance of the proposed method.
[0101] Further explanation based on examples is as follows:
[0102] In order to verify the feasibility and superiority of the proposed non-intrusive load monitoring algorithm, the present invention designs two examples. Example 1 uses the proposed BIC-PCW adaptive event detection algorithm to perform event detection on the resident load monitoring data to show that the BIC-PCW algorithm can meet the event detection requirements of different resident loads through threshold adaptation, and compares it with the existing event detection algorithm. Example 2, based on Example 1, continues to extract the power waveform before and after the event, uses VMD for modal decomposition, and the decomposition results are input into the SENet-CNN network as training samples to complete resident load identification. The hardware environment of the example part is ThinkPad T14, CPU 12th i7-1260P, 2.10GHz, and the software simulation environment is Pycharm (Professional Edition), python 3.9. The power time series obtained by low-frequency sampling is selected as the electrical quantity input of the electrical equipment. Specifically, the data in the present invention comes from a simulation experimental environment built by an electric meter company, using a USB type A / D data acquisition card with a sampling frequency of 1 Hz to collect current and voltage data from six types of equipment, including electric ovens, electric kettles, fixed-frequency air conditioners, variable-frequency air conditioners, microwave ovens, and induction cookers. Then, the effective value of the frequency is calculated according to the following formula to obtain the active power of the equipment.
[0103]
[0104] Where: u i is the voltage sampling value; i i is the current sampling value; m is the periodic sampling point.
[0105] Both event detection and load identification are essentially classification problems. Event detection converts whether a transient event occurs in the equipment into a binary classification problem by monitoring load power fluctuations, that is, judging whether the current monitoring state is transient or steady. Load identification converts the identification task into a multi-class classification problem based on equipment characteristics, that is, judging which type of equipment characteristics belong to.
[0106] In view of this, the present invention uses the evaluation method of the classifier in machine learning as the evaluation standard of the simulation experiment.
[0107]
[0108]
[0109] In the formula, precision and recall are respectively the accuracy and recall rate, TP (True Position) is the true positive, which represents the number of positive samples that are correctly classified; FP (False Position) is the false positive, which represents the number of positive samples that are incorrectly classified; FN (False Negative) is the false negative, which represents the number of negative samples that are incorrectly classified. It is not difficult to see that the difference between precision and recall lies in FP and FN, which means that there is a mutual influence between the two. Generally speaking, improving precision often reduces recall. Therefore, a single evaluation indicator is difficult to fully reflect the performance of the classifier. The following is a new classifier evaluation indicator based on the above two indicators: f1 score. The specific calculation method is shown in the following formula:
[0110]
[0111] In the formula, the f1 score comprehensively considers the impact of precision and recall on the performance evaluation of the classifier, achieving a relative balance between the two, and can more comprehensively reflect the performance of the classifier. The higher the f1 score, the better the classifier performance.
[0112] Event detection is a process based on statistical theory, which monitors load power fluctuations to determine whether the equipment operating status has changed. The entire transient event should include a continuous jump in equipment power, that is, the transient event starts with a power mutation after the equipment is in steady state operation and ends with a new steady state after the mutation ends. Figure 5 As shown, the present invention defines the continuous change process from power sudden change to the device entering another steady state as a complete transient event.
[0113] Then, the labeled samples are input into the BIC-PCW event detection algorithm, and the BIC-PCW event detection performance is measured by the above-mentioned evaluation index. Finally, the method of the present invention is compared with the existing literature to verify the superiority of the proposed method.
[0114] The BIC-PCW algorithm is used to detect events in a certain period of time collected in the laboratory. It is known that a total of 73 transient events occurred in this period, each event consists of 2-3 transient points, and the 6 types of equipment have a total of 153 transient points. The simulation experiment takes the transient point as the basic unit. As long as the algorithm detects any transient point in the transient event, it can be regarded as the algorithm successfully detecting the event, and this is used as a standard to measure the performance of the algorithm. BIC-PCW takes the transient information entropy as the objective function, and continuously adjusts the BIC threshold through iteration to adapt to different types of equipment. Table 1 shows the event detection results of BIC for 6 types of equipment. The results show that the BIC-PCW algorithm performs well, and the f1 scores of the event detection of the 6 types of equipment are all above 90%. In particular, since the working purpose of the resistive load is to convert electrical energy into thermal energy, the electrical energy consumption is large, and the power jump contained in its transient event is more obvious, which is more convenient for event detection. Therefore, the f1 scores of resistive loads such as electric kettles, electric ovens and induction cookers are all above 95%.
[0115] Table 1 BIC-PCW event detection results
[0116] Load category number of events precision recall <![CDATA[f1 score]]> Electric oven 18 97.2% 97.2% 97.2% Electric kettle 2 100% 100% 100% Fixed frequency air conditioner 22 97.6% 85.1% 90.9% Inverter air conditioner 17 93.9% 88.6% 91.2% Micro-wave oven 3 100% 85.7% 92.3% induction cooker 11 95.7% 95.7% 95.7% total 73 96.5% 90.8% 93.6%
[0117] In order to verify the superiority of the algorithm, the proposed algorithm is compared with CUSUM, GOF, and GRLT using power recording data collected in the laboratory, and the event detection performance of different algorithms on 6 types of devices is evaluated using the f1 score. Table 2 shows the comparison results of the four algorithms. The experimental results show that the event detection f1 score of the proposed algorithm is better than the other three event detection algorithms in terms of event detection performance on a single device and all devices as a whole.
[0118] Table 2 Comparison results of event detection using different algorithms
[0119] BIC-PCW CUSUM GOF GRLT Electric oven 97.20% 88.20% 84.80% 69.80% Electric kettle 100% 88.90% 80.00% 72.70% Fixed frequency air conditioner 90.90% 83.50% 76.70% 69.00% Inverter air conditioner 91.20% 81.20% 75.00% 68.80% Micro-wave oven 92.30% 80.00% 71.40% 66.70% induction cooker 95.70% 79.10% 73.20% 69.80% total 93.60% 83.40% 77.60% 69.30%
[0120] After the residential load has been detected, it is necessary to further extract the steady-state power waveform characteristics before and after the transient event, use VMD to perform modal decomposition on the original power data, and use the first two order intrinsic mode signals, final trend waveform and original power waveform of the load as the input of the CNN-SENet model. The current and voltage recording data of 6 types of residential equipment within 12 hours are collected. The current and voltage are converted into active power, and the equipment data are manually annotated and used as samples to train the CNN-SENet load identification model. It is known that a total of 1856 transient events occurred during the data sample collection process, that is, the number of effective samples in the data set is 1856 groups, which are randomly divided into training set and test set at a ratio of 8:2. In order to verify the superiority and effectiveness of the proposed method, the load identification method of the present invention is further compared with the existing literature, and the performance of different load identification algorithms in 6 types of equipment is analyzed. Reference [1] uses the generalized likelihood ratio algorithm to detect equipment transient events, and then extracts the two-dimensional image of the power sequence based on CEEMD to train the CNN model. Reference [2] proposes a two-stage load identification method based on CNN based on the transient current amplitude characteristics. Reference [3] proposed an event detection method based on low-frequency power difference features, and used it to train the Bi-LSTM load identification network (Reference [1]: Feng Changsen, Liu Pan, Wang Jiaying, et al. Non-intrusive load monitoring algorithm for residential users using limited low-frequency information [J]. Electric Power Automation Equipment, 2023, 43(11): 181-187. Reference [2]: Huang Youjin, Xiong Wei, Yuan Xufeng, et al. Low-frequency sampling non-intrusive load identification algorithm integrating deep learning and amplitude features [J]. Electric Power Science and Engineering, 2020, 36(04): 10-16. Reference [3]: Zhou Buxiang, Zhao Wenwen, Zang Tianlei, et al. Non-intrusive load monitoring method based on low-frequency power difference features and dual long short-term memory network [J]. Electric Power Automation Equipment, 2023, 43(08): 167-173+209.). Table 3 shows the load identification results of different algorithms. It is not difficult to see that the method of the present invention is superior to other algorithms in the recognition performance of the six types of loads, and the f1 score of all monitoring equipment is 93.4%. Among them, the fixed-frequency air conditioner load recognition rate is the highest, with an f1 score of 96.7%, and the electric oven load recognition rate is the lowest, with an f1 score of only 89.3%.
[0121] Table 3 Load identification results of different algorithms
[0122]
[0123] By applying the above technical solution, it can be seen that the accuracy of traditional non-intrusive load monitoring algorithms depends on high-frequency data, resulting in high sampling equipment costs and complex calculation methods. The present invention proposes a low-frequency non-intrusive load monitoring algorithm based on adaptive event detection. The method is based on the event detection class NILM algorithm framework and proposes a two-stage load detection method. First, an adaptive event detection model is established based on PCW and BIC. The model does not need to manually adjust the threshold, and can automatically iterate and optimize according to the device type to achieve higher accuracy event detection requirements; secondly, the VMD algorithm is used to decompose and reorganize the load characteristics to filter redundant and irrelevant features; finally, SENet-CNN is used to build a load identification model, and the existing NILM algorithm for low-frequency data is compared. The experimental results show that the proposed method performs well in different operating environments. The load identification f1 scores of the simulation examples involving 6 types of equipment are all above 90%, which proves that the proposed method has excellent event detection performance and load identification rate under low-frequency sampling conditions, which also shows that the present invention is more universal in high-frequency environments containing richer load event information.
[0124] According to a second aspect of an embodiment of the present invention, a low-frequency non-intrusive load monitoring system based on adaptive event detection is provided, comprising: an event detection module, a feature extraction module and a load identification module; in the event detection module, the Bayesian information criterion is used as the detection window, and the window threshold is adaptively optimized through a power change point weight model; the feature extraction module is used to decompose and group the load characteristics of the power time series of different electrical equipment using a variational mode decomposition method; the load identification module is used to realize load identification and classification of power curve waveforms of different electrical equipment based on a load identification model.
[0125] According to a third aspect of an embodiment of the present invention, a processor is provided, which executes any one of the above-mentioned low-frequency non-intrusive load monitoring methods based on adaptive event detection when running.
[0126] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned low-frequency non-intrusive load monitoring methods based on adaptive event detection.
[0127] The specific implementation modes of the present invention have been described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A low-frequency non-intrusive load monitoring method based on adaptive event detection, It is characterized in that include: event detection, feature extraction, and load identification; In event detection, the Bayesian information criterion is used as the detection window, and the window threshold is adaptively optimized through the power change point weight model; the variational mode decomposition method is used to decompose and group the load characteristics of the power time series of different electrical equipment; based on the load identification model, the load identification and classification of the power curve waveforms of different electrical equipment are realized.
2. The low-frequency non-intrusive load monitoring method based on adaptive event detection according to claim 1, It is characterized in that In event detection, it is assumed that the power time series of the electrical equipment to be tested follows the Poisson distribution, and the following two models are constructed. Based on the following two models, the maximum likelihood function in the Bayesian information criterion is constructed: There is no event in the power time series, so a static model M is constructed. s : M s :p 1 ,.....,p N ~P S (λ 0 ); When a load event occurs in the power time series, a jump model M is constructed. J : M J :p 1 ,.....,p n-1 ~P S (λ 1 );p n ,.....,p N ~P S (λ 2 ); In the formula, λ 0 The power time series P represents the power time series P when no event occurs S (λ 0 ) follows the expectation and variance of the Poisson distribution; λ 1 , 2 Represents the power time series P before the load event occurs in the power time series S (λ 1 ) follows the expectation and variance of the Poisson distribution; λ 2 Represents the power time series P after the load event occurs in the power time series S (λ 2 ) follows the expectation and variance of the Poisson distribution; p n Indicates the mark point when a load event occurs, that is, the nth sample of the power time series.
3. The low-frequency non-intrusive load monitoring method based on adaptive event detection according to claim 2, It is characterized in that The adaptive optimization of the window threshold by using the power change point weight model includes: In the power change point weight model, the jump model M J The sequence is converted into a matrix form P s and P J : Static Sequence P s It is expressed as: P s =[p 1 ,…,p n-1 ] T ; Hopping sequence P J It is expressed as: P J =[p n ,…,p N ] T ; There is no event in the static sequence, so the power increment Δp corresponding to the sequence 0 is zero; the jump sequence is accompanied by the conversion of the state of the electrical equipment, so the power increment Δp corresponding to the sequence 0 Not zero; introduce δ min Indicates the minimum power increment for switching the state of an electrical device; the power increment is described as: Δp=Δp 0 -d min ; Then the power increment set is: Δp=[Δp 1 ,…,Δp N ] T ; Δp S =[Δp 1 ,…,Δp n-1 ] T ; Δp J =[Δp n ,…,Δp N ] T ; In the formula, Δp N Indicates the increment of the Nth sample of the power time series; Δp S and Δp J They are static power increment set and jump power increment set respectively; the power increment set Δp of the sequence to be detected is: Δp=Δp S +Δp J =Δp J ; The jump weight ω in the power change point weight model i The assignment formula and the calculation formula of the jump information entropy F are as follows: oh i =lg(Δp i );i∈(n,N); Where N 2 is the number of samples of the hopping sequence; Combined with the Bayesian information criterion, the detection window threshold h is optimized.
4. The low-frequency non-intrusive load monitoring method based on adaptive event detection according to claim 1, It is characterized in that The load recognition model is a CNN-SENet load recognition model that introduces a squeeze-excite attention mechanism into a convolutional neural network.
5. The low-frequency non-intrusive load monitoring method based on adaptive event detection according to claim 4, It is characterized in that The CNN-SENet load identification model is specifically as follows: the model is divided into 1 input layer, 5 convolution layers, 1 pooling layer, 1 fully connected layer and 1 output layer in the overall structure; wherein, the first 4 convolution layers are conventional convolutions with a convolution kernel size of 5x5, and the 5th convolution layer is a 6x6 convolution kernel that introduces the SENet spatial attention module; the pooling layer performs maximum pooling and normalization processing based on a 5x5 digital matrix, and the operation mode is "SAME"; in the output layer, the loss function of the model is constructed based on cross entropy, and Adam is selected as the gradient optimizer to dynamically update the CNN network parameters.
6. A low-frequency non-intrusive load monitoring system based on adaptive event detection, It is characterized in that include: Event detection module, feature extraction module and load identification module; In the event detection module, the Bayesian information criterion is used as the detection window, and the window threshold is adaptively optimized through the power change point weight model; the feature extraction module is used to decompose and group the load characteristics of the power time series of different electrical equipment using the variational mode decomposition method; the load identification module is used to realize the load identification and classification of the power curve waveforms of different electrical equipment based on the load identification model.
7. A processor, It is characterized in that When the processor is running, it executes the low-frequency non-intrusive load monitoring method based on adaptive event detection according to any one of claims 1 to 5.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the low-frequency non-intrusive load monitoring method based on adaptive event detection as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Elevator load detection control system
CN102992137A
Resident non-intrusive load monitoring method based on low-frequency acquisition signals
CN115932435A
Non-invasive load monitoring system based on decoupling attention mechanism
CN116010791A
Treatment order control device and carrying order control device
JP2000269305A
Non-intrusive load identification method based on BP neural network model
WO2023201820A1
Cited By
Load identification method, system and equipment based on power time sequence characteristics and medium
CN119249239A
Load event detection method based on power time sequence image features
CN120526240A
A load event detection method based on power time series image features
CN120526240B
Non-intrusive load identification method and device based on weight motif differential field
CN121412562A
