Load switch event detection method and system using classification tree

文档序号:1542601 发布日期:2020-01-17 浏览:10次 中文

阅读说明:本技术 一种利用分类树的负荷开关事件检测方法和系统 (Load switch event detection method and system using classification tree ) 是由 翟明岳 于 2019-10-19 设计创作,主要内容包括:本发明的实施例公开一种利用分类树的负荷开关事件检测方法和系统,所述方法包括:步骤1,输入实测的信号序列S;步骤2,根据分类树性质检测开关事件。具体为:如果第K个窗口分类系数H<Sub>K</Sub>满足判断条件|H<Sub>K</Sub>|≥e<Sub>0</Sub>,则在所述信号序列S的第K点处,检测到负荷开关事件;否则,未检测到负荷开关事件。其中,e<Sub>0</Sub>为负荷开关事件判断阈值。(The embodiment of the invention discloses a load switch event detection method and a system by utilizing a classification tree, wherein the method comprises the following steps: step 1, inputting an actually measured signal sequence S; and 2, detecting a switching event according to the properties of the classification tree. The method specifically comprises the following steps: if the Kth window classification coefficient H K Satisfies the judgment condition | H K |≥e 0 Detecting a load switch event at the Kth point of the signal sequence S; otherwise, no load switch event is detected. Wherein e is 0 A threshold is determined for the load switch event.)

1. A method for load switch event detection using classification trees, comprising:

step 1, inputting an actually measured signal sequence S;

and 2, detecting a switching event according to the properties of the classification tree. The method specifically comprises the following steps: if the Kth window classification coefficient HKSatisfies the judgment condition | HK|≥e0Detecting a load switch event at the Kth point of the signal sequence S; otherwise, no load switch event is detected. Wherein e is0A threshold is determined for the load switch event.

2. The method of claim 1, wherein prior to step 2, the method further comprises:

step 3, calculating the classification coefficient H of the Kth windowKAnd the switching event judgment threshold e0

3. The method of claim 2, wherein step 3 comprises:

step 301, generating the nth signal first order difference sequence

Figure FDA0002240059430000011

wherein:

Figure FDA0002240059430000013

Sn: the nth element in the signal sequence S

S=[S1,S2,…,SN]The length of the signal sequence is N

If the element SjSubscript j of>N, then Sj=0。

Step 302, generating the nth signal second order difference sequence

Figure FDA0002240059430000014

Figure FDA0002240059430000015

wherein:

Figure FDA0002240059430000016

If the element SjSubscript j of>N, then Sj=0。

Step 303, obtaining the classification coefficient H of the Kth windowKThe method specifically comprises the following steps:

Figure FDA0002240059430000021

wherein:

Figure FDA0002240059430000022

Figure FDA0002240059430000023

Figure FDA0002240059430000025

Step 304, obtaining the load switch event judgment threshold e0The method specifically comprises the following steps:

Figure FDA0002240059430000027

wherein:

Figure FDA0002240059430000028

Figure FDA00022400594300000210

Figure FDA00022400594300000212

Figure FDA00022400594300000214

Figure FDA00022400594300000216

Figure FDA00022400594300000218

Figure FDA00022400594300000220

Figure FDA00022400594300000222

4. A load switch event detection system using character spacing, comprising:

the acquisition module inputs an actually measured signal sequence S;

and the judging module detects the switching event according to the classification tree property. The method specifically comprises the following steps: if the Kth window classification coefficient HKSatisfies the judgment condition | HK|≥e0Detecting a load switch event at the Kth point of the signal sequence S; otherwise, no load switch event is detected. Wherein e is0A threshold is determined for the load switch event.

5. The system of claim 4, further comprising:

a calculation module for calculating the classification coefficient H of the Kth windowKAnd the switching event judgment threshold e0

Technical Field

The invention relates to the field of electric power, in particular to a load switch event detection method and system.

Background

With the development of smart grids, the analysis of household electrical loads becomes more and more important. Through the analysis of the power load, a family user can obtain the power consumption information of each electric appliance and a refined list of the power charge in time; the power department can obtain more detailed user power utilization information, can improve the accuracy of power utilization load prediction, and provides a basis for overall planning for the power department. Meanwhile, the power utilization behavior of the user can be obtained by utilizing the power utilization information of each electric appliance, so that the method has guiding significance for the study of household energy consumption evaluation and energy-saving strategies.

The current electric load decomposition is mainly divided into an invasive load decomposition method and a non-invasive load decomposition method. The non-invasive load decomposition method does not need to install monitoring equipment on internal electric equipment of the load, and can obtain the load information of each electric equipment only according to the total information of the electric load. The non-invasive load decomposition method has the characteristics of less investment, convenience in use and the like, so that the method is suitable for decomposing household load electricity.

In the non-invasive load decomposition algorithm, the detection of the switching event of the electrical equipment is the most important link. The initial event detection takes the change value of the active power P as the judgment basis of the event detection, and is convenient and intuitive. This is because the power consumed by any one of the electric devices changes, and the change is reflected in the total power consumed by all the electric devices. Besides the need to set a reasonable threshold for the power variation value, this method also needs to solve the problem of the event detection method in practical application: a large peak (for example, a motor starting current is much larger than a rated current) appears in an instantaneous power value at the starting time of some electric appliances, so that an electric appliance steady-state power change value is inaccurate, and the judgment of a switching event is influenced, and the peak is actually pulse noise; moreover, the transient process of different household appliances is long or short (the duration and the occurrence frequency of impulse noise are different greatly), so that the determination of the power change value becomes difficult; due to the fact that the active power changes suddenly when the quality of the electric energy changes (such as voltage drop), misjudgment is likely to happen. The intensity of (impulse) noise is large and background noise has a large impact on the correct detection of switching events.

Load switching events that are now commonly used are often determined using changes in power data: when the power change value exceeds a preset threshold value, a load switch event is considered to occur. This approach, while simple and easy to implement, results in a significant drop in the accuracy of the switching event detection due to the impulse noise and the common use of non-linear loads.

Therefore, in the switching event detection process, how to improve the switching event detection accuracy is very important. Load switch event detection is the most important step in energy decomposition, and can detect the occurrence of an event and determine the occurrence time of the event. However, the accuracy of the detection of the switching event is greatly affected by noise in the power signal (power sequence), and particularly, impulse noise generally exists in the power signal, which further affects the detection accuracy. Therefore, it is currently a very important task to effectively improve the detection accuracy of the load switch event.

Load switching events that are now commonly used are often determined using changes in power data: when the power change value exceeds a preset threshold value, a load switch event is considered to occur. This approach, while simple and easy to implement, results in a significant drop in the accuracy of the switching event detection due to the impulse noise and the common use of non-linear loads.

Disclosure of Invention

The invention aims to provide a load switch event detection method and system by utilizing a classification tree. The method has the advantages of good robustness and simple calculation.

In order to achieve the purpose, the invention provides the following scheme:

a method of load switch event detection using a classification tree, comprising:

step 1, inputting an actually measured signal sequence S;

and 2, detecting a switching event according to the properties of the classification tree. The method specifically comprises the following steps: if the Kth window classification coefficient HKSatisfies the judgment condition | HK|≥e0Detecting a load switch event at the Kth point of the signal sequence S; otherwise, no load switch event is detected. Wherein e is0A threshold is determined for the load switch event.

A load switch event detection system utilizing a classification tree, comprising:

the acquisition module inputs an actually measured signal sequence S;

and the judging module detects the switching event according to the classification tree property. The method specifically comprises the following steps: if the Kth window classification coefficient HKSatisfies the judgment condition | HK|≥e0Detecting a load switch event at the Kth point of the signal sequence S; otherwise, no load switch event is detected. Wherein e is0A threshold is determined for the load switch event.

According to the specific embodiment provided by the invention, the invention discloses the following technical effects:

although the load switch event detection method based on power data transformation has wide application in load switch event detection and relatively mature technology, due to the wide application of the nonlinear load, the power signal is easily affected by the environmental noise and the nonlinear noise, so that the method often cannot obtain satisfactory results when applied in the actual working environment.

The invention aims to provide a load switch event detection method and system by utilizing a classification tree. The method has the advantages of good robustness and simple calculation.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.

FIG. 1 is a schematic flow diagram of the present invention;

FIG. 2 is a schematic diagram of the system of the present invention;

FIG. 3 is a flow chart illustrating an embodiment of the present invention.

Detailed Description

The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.

FIG. 1 is a flow chart illustrating a method for load switch event detection using classification trees

Fig. 1 is a flow chart illustrating a load switch event detection method using a classification tree according to the present invention. As shown in fig. 1, the load switch event detection method using a classification tree specifically includes the following steps:

step 1, inputting an actually measured signal sequence S;

and 2, detecting a switching event according to the properties of the classification tree. The method specifically comprises the following steps: if the Kth window classification coefficient HKSatisfies the judgment condition | HK|≥e0Detecting a load switch event at the Kth point of the signal sequence S; otherwise, no load switch event is detected. Wherein e is0A threshold is determined for the load switch event.

Before the step 2, the method further comprises:

step 3, calculating the classification coefficient H of the Kth windowKAnd the operating state judgment threshold e0

The step 3 comprises the following steps:

step 301, generating the nth signal first order difference sequenceThe method specifically comprises the following steps:

Figure BDA0002240059440000042

wherein:

Figure BDA0002240059440000043

the nth signal first-order difference sequence [ N ═ 1,2, …, N]

Sn: the nth element in the signal sequence S

S=[S1,S2,…,SN]The length of the signal sequence is N

If the element SjSubscript j of>N, then Sj=0。

Step 302, generating the nth signal second order difference sequence

Figure BDA0002240059440000044

The method specifically comprises the following steps:

Figure BDA0002240059440000051

wherein:

the nth signal second order difference sequence [ N ═ 1,2, …, N]

If the element SjSubscript j of>N, then Sj=0。

Step 303, obtaining the classification coefficient H of the Kth windowKThe method specifically comprises the following steps:

Figure BDA0002240059440000053

wherein:

Figure BDA0002240059440000054

ith data purity

Figure BDA0002240059440000055

First order difference sequence of Kth signal

Figure BDA0002240059440000056

The ith element in

Figure BDA0002240059440000057

Second order difference sequence of Kth signalThe ith element in

Step 304, obtaining the load switch event judgment threshold e0Is concretely provided with:

Figure BDA0002240059440000059

Wherein:

Figure BDA00022400594400000510

the nth signal first order difference sequence

Figure BDA00022400594400000511

Mean value of

Figure BDA00022400594400000512

The nth signal second order difference sequence

Figure BDA00022400594400000513

Mean value of

Figure BDA00022400594400000514

Sequence of mean values

Figure BDA00022400594400000515

Mean value of

Figure BDA00022400594400000516

Sequence of mean values

Figure BDA00022400594400000517

Mean value of

Figure BDA00022400594400000518

Sequence of mean values

Figure BDA00022400594400000519

Mean square error of

Sequence of mean values

Figure BDA00022400594400000521

Mean square error of

Figure BDA00022400594400000522

Sequence of mean values

Figure BDA00022400594400000523

Maximum value of

Figure BDA00022400594400000524

Sequence of mean valuesIs measured.

FIG. 2 structural intent of a load switch event detection system using classification trees

Fig. 2 is a schematic structural diagram of a load switch event detection system using a classification tree according to the present invention. As shown in fig. 2, the load switch event detection system using the classification tree includes the following structures:

an obtaining module 401, which inputs an actually measured signal sequence S;

the decision block 402 detects a switch event based on the classification tree properties. The method specifically comprises the following steps: if the Kth window classification coefficient HKSatisfies the judgment condition | HK|≥e0Detecting a load switch event at the Kth point of the signal sequence S; otherwise, no load switch event is detected. Wherein e is0A threshold is determined for the load switch event.

The system further comprises:

a calculating module 403 for calculating the classification coefficient H of the Kth windowKAnd the load switch event judgment threshold e0

The calculation module 403 further includes the following units, which specifically include:

a first calculation unit 4031 for generating the nth signal first order difference sequence

Figure BDA0002240059440000061

The method specifically comprises the following steps:

Figure BDA0002240059440000062

wherein:

Figure BDA0002240059440000063

the nth signal first-order difference sequence [ N ═ 1,2, …, N]

Sn: the nth element in the signal sequence S

S=[S1,S2,…,SN]The length of the signal sequence is N

If the element SjSubscript j of>N, then Sj=0。

A second calculation unit 4032 for generating the nth signal second order difference sequence

Figure BDA0002240059440000064

The method specifically comprises the following steps:

Figure BDA0002240059440000065

wherein:

Figure BDA0002240059440000066

the nth signal second order difference sequence [ N ═ 1,2, …, N]

If the element SjSubscript j of>N, then Sj=0。

A third calculation unit 4033 for calculating the Kth window classification coefficient HKThe method specifically comprises the following steps:

Figure BDA0002240059440000071

wherein:

Figure BDA0002240059440000072

ith data purity

Figure BDA0002240059440000073

First order difference sequence of Kth signal

Figure BDA0002240059440000074

The ith element in

Figure BDA0002240059440000075

Second order difference sequence of Kth signal

Figure BDA0002240059440000076

The ith element in

Fourth calculation unit 4034, which obtains the load switch event determination threshold e0The method specifically comprises the following steps:

Figure BDA0002240059440000077

wherein:

Figure BDA0002240059440000078

the nth signal first order difference sequenceMean value of

Figure BDA00022400594400000710

The nth signal second order difference sequence

Figure BDA00022400594400000711

Mean value of

Sequence of mean values

Figure BDA00022400594400000713

Mean value of

Figure BDA00022400594400000714

Sequence of mean values

Figure BDA00022400594400000715

Mean value of

Sequence of mean values

Figure BDA00022400594400000717

Mean square error of

Figure BDA00022400594400000718

Sequence of mean valuesMean square error of

Figure BDA00022400594400000720

Sequence of mean valuesMaximum value of

Figure BDA00022400594400000722

Sequence of mean values

Figure BDA00022400594400000723

Is measured.

The following provides an embodiment for further illustrating the invention

FIG. 3 is a flow chart illustrating an embodiment of the present invention. As shown in fig. 3, the method specifically includes the following steps:

1. inputting measured signal sequence

S=[s1,s2,…,sN-1,sN]

Wherein:

s: measured signal data sequence of length N

siN is the measured signal with serial number i, i is 1,2, …

2. Generating a first order difference sequence of signals

Figure BDA0002240059440000081

Wherein:

Figure BDA0002240059440000082

the nth signal first-order difference sequence [ N ═ 1,2, …, N]

Sn: the nth element in the signal sequence S

S=[S1,S2,…,SN]The length of the signal sequence is N

If the element SjSubscript j of>N, then Sj=0。

3. Generating a second order difference sequence of signals

Figure BDA0002240059440000083

Wherein:

Figure BDA00022400594400000810

the nth signal second order difference sequence [ N ═ 1,2, …, N]

If the element SjSubscript j of>N, then Sj=0。

4. Calculating the Kth window classification coefficient

Figure BDA0002240059440000084

Wherein:

Figure BDA0002240059440000085

ith data purity

First order difference sequence of Kth signal

Figure BDA0002240059440000087

The ith element in

Figure BDA0002240059440000088

Second order difference sequence of Kth signalThe ith element in

5. Obtaining load switch event judgment threshold value

Figure BDA0002240059440000091

Wherein:

Figure BDA0002240059440000092

the nth signal first order difference sequence

Figure BDA0002240059440000093

Mean value of

Figure BDA0002240059440000094

The nth signal second order difference sequence

Figure BDA0002240059440000095

Mean value of

Figure BDA0002240059440000096

Sequence of mean values

Figure BDA0002240059440000097

Mean value of

Sequence of mean valuesMean value of

Sequence of mean values

Figure BDA00022400594400000911

Mean square error of

Figure BDA00022400594400000912

Sequence of mean values

Figure BDA00022400594400000913

Mean square error of

Figure BDA00022400594400000914

Sequence of mean values

Figure BDA00022400594400000915

Maximum value of

Figure BDA00022400594400000916

Sequence of mean values

Figure BDA00022400594400000917

Is measured.

6. Determining switch events

Switching events are detected based on classification tree properties. The method specifically comprises the following steps: if the Kth window classification coefficient HKSatisfies the judgment condition | HK|≥e0Detecting a load switch event at the Kth point of the signal sequence S; otherwise, no load switch event is detected. Wherein e is0A threshold is determined for the load switch event.

The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is simple because the system corresponds to the method disclosed by the embodiment, and the relevant part can be referred to the method part for description.

The principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种电能计量装置智能回收管理系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!