Load start and stop identification method and system based on continuous power change
Through the load start-stop recognition method based on continuous power changes, the timing synchronous sampling and state machine modules are used to solve the problem that the existing technology is difficult to identify transient and variable frequency load start-stop states, and the slow change of load power and sudden increase of bursts are achieved. Accurate identification in the case of reduction.
Patent Information
- Application Number
- CN202210567919.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-05-24
AI Technical Summary
Existing non-invasive load recognition methods are difficult to reliably identify the start-stop states of transient and variable frequency loads, especially when the load power changes slowly and increases and decreases suddenly.
The load start-stop recognition method based on continuous power changes is adopted. By synchronizing the sampling of voltage and current signals at a time, data is saved to the ring queue, and the state machine module is used to judge the load start-stop state based on the comparison of active power and the difference. It is suitable for instantaneous Change and slow the load.
Effectively identify the start and stop states of transient and variable frequency loads, improving the accuracy of identification of slow changes in load power and sudden increase and decrease.
Smart Images

Figure CN114966188B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of non-intrusive load identification, and in particular to a method and system for identifying the start and stop of a load based on continuous power change. Background Art
[0002] The main objects of non-intrusive load identification are household appliances. Traditional household appliances, such as electric kettles and electric heaters, are transient loads, and their power changes within tens of milliseconds. Frequency conversion technology is gradually being widely used in household appliances, such as variable frequency air conditioners and variable frequency washing machines. Their startup process has become complex and diverse, and the startup time ranges from tens of milliseconds to several minutes. Moreover, the power change of variable frequency appliances during the startup process is no longer simply open and closed. They have a variety of power change modes, such as continuous slow change, sudden increase and decrease, and alternating change.
[0003] The existing non-intrusive load identification method for judging load startup usually uses the power change amplitude within a fixed interval to judge the start and stop of the load. This method is suitable for judging transient loads and loads that run at a fixed period. For load power changes slowly, sudden increases and decreases, etc., it is difficult to reliably identify the start and stop status of the appliance using the above method. Therefore, a method that takes into account both transient and slow-changing load startup is needed. Summary of the invention
[0004] In order to solve the above technical problems, the present invention discloses a load start and stop identification method and system based on continuous power changes, which is used to judge the start and stop status of transient and variable frequency loads in non-invasive load identification, and solves the problem that previous methods are difficult to be reliable for changes in load power such as slow changes, sudden increases and decreases, etc.
[0005] To achieve the above object, the technical solution of the present invention provides a load start-stop identification method based on continuous power change, which includes:
[0006] S1: Perform synchronous sampling of voltage and current signals and save the sampled data into a circular queue, where:
[0007] S11: when determining whether a transient load is started, the voltage and current signals are sampled synchronously at a time interval of T1 to calculate the current active power and save it in a ring queue, wherein T1<1 second;
[0008] S12: When judging the start of the slowly varying load, the average value P'(m) of the active power P(m) for 60 consecutive seconds is calculated every minute and saved in the ring queue;
[0009] S2: By comparing the data of the current state and the historical state, determine whether to make the state machine module jump to the working state, where:
[0010] S21: When determining whether to start a transient load, the active power at the nth second is compared with the active power at the n-1th second, or the active power at the nth second is compared with the active power at the n-2th second, to determine whether to make the state machine module jump from the M1 state to the M3 state.
[0011] S22: when judging the start of the slowly varying load, the average active power value in the mth minute is compared with the average active power value in the ring queue to judge whether to make the state machine module jump from the M1 state to the M3 state;
[0012] S3: If the state machine module enters the M3 state, it further determines whether there is a load start, where:
[0013] S31: When determining whether a transient load has started, the active power at the n+1th second and the n+2th second is further compared with the active power at the n-1th second to determine whether a load has started.
[0014] S32: When determining whether a slowly varying load is started, the average active power values at the m+1th minute and the m+2th minute are further compared with the average active power value in the ring queue to determine whether a load is started.
[0015] In a further technical solution, in step S21:
[0016] At the nth second, the current active power is P(n), the active power P(n-1) at the n-1th second is taken out from the ring queue, and the absolute value of the difference between the two |deltaP(n-1)| is calculated;
[0017] If the |deltaP(n-1)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-1) as the previous steady-state power value;
[0018] If the |deltaP(n-1)| value is less than or equal to the judgment threshold Pgate1, the active power P(n-2) at the n-2th second is taken out from the ring queue, and the absolute value of the difference between it and P(n) |deltaP(n-2)| is calculated. If the |deltaP(n-2)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-2) as the previous steady-state power value, otherwise maintain the M1 state.
[0019] In a further technical solution, in step S22: in the mth minute, assuming that there are k active power averages in the circular queue, where k>2, the current active power average P'(m), calculate the difference between this value and the active power average in the circular queue, and set deltaP'(mi)=P'(m)-P'(i), 0≤i≤k, if |deltaP'(mi)| is greater than the judgment threshold Pgate2, the state machine module jumps from the M1 state to the M3 state, and records the previous steady-state average active power values P'(i) and P'(m); otherwise, maintain the M1 state.
[0020] In a further technical solution, in step S31:
[0021] Assume that the state machine module enters the M3 state at the nth second, and the previous steady-state active power value is P(n-1). After running for T2 seconds, where T2=2*T1, take the active power values P(n+1) and P(n+2) at the n+1th and n+2th seconds from the ring queue, and calculate the absolute values of the differences between these two powers and the previous steady-state active power value P(n-1): |deltaP(n+1)| and |deltaP(n+2)|;
[0022] If both |deltaP(n+1)| and |deltaP(n+2)| are greater than Pgate1, and the three difference values deltaP(n-1), deltaP(n+1) and deltaP(n+2) have the same sign, it is determined that there is a transient start; if the three difference values have different signs, no determination is made, and the state machine module will jump to the M1 state and enter the next detection.
[0023] In a further technical solution, in step S32:
[0024] Assuming that the state machine module enters the M3 state in the mth minute, then in the m+2th minute, the difference between the average active power of m+1 and m+2 minutes and the average active power P'(i) at time i is calculated, that is, deltaP'(m+1-i) and deltaP'(m+2-i). If the signs of these two values are the same as those of deltaP'(mi), and the absolute values of these two values are both greater than the judgment threshold Pgate2, it is determined that the load is started; if any of the absolute values of these two values is not greater than Pgate2, the state machine module jumps to the M1 state; if the signs of these two values are different from those of deltaP'(mi), the state machine module jumps to the M1 state.
[0025] The embodiment of the present invention also provides a load start-stop identification system based on continuous power change, which includes: a timing synchronous sampling module, a ring queue module, and a state machine module; wherein,
[0026] The timing synchronous sampling module performs timing synchronous sampling of the voltage and current signals, and saves the sampled data to the ring queue module, wherein: when judging the startup of the transient load, the voltage and current signals are synchronously sampled at a time interval of T1 to calculate the current active power and save it to the ring queue module, wherein T1<1 second; when judging the startup of the slow-changing load, the average value P'(m) of the active power P(m) for 60 consecutive seconds is calculated every minute and saved to the ring queue module;
[0027] By comparing the data of the current state and the historical state, it is determined whether to make the state machine module jump to the working state, wherein: when judging the startup of the transient load, by comparing the active power of the nth second with the active power of the n-1th second, or by comparing the active power of the nth second with the active power of the n-2th second, it is determined whether to make the state machine module jump from the M1 state to the M3 state; when judging the startup of the slowly changing load, by comparing the average active power of the mth minute with the average active power in the ring queue, it is determined whether to make the state machine module jump from the M1 state to the M3 state;
[0028] When the state machine module enters the M3 state, it is further determined whether there is a load startup, wherein: when determining whether a transient load is started, the active power at the n+1th second and n+2th second is further compared with the active power at the n-1th second to determine whether there is a load startup; when determining whether a slowly changing load is started, the average active power at the m+1th minute and m+2th minute is further compared with the average active power in the ring queue to determine whether there is a load startup.
[0029] In a further technical solution, when determining whether to start a transient load, determining whether to cause the state machine module to jump to a working state includes:
[0030] At the nth second, the current active power is P(n), the active power P(n-1) at the n-1th second is taken out from the ring queue, and the absolute value of the difference between the two |deltaP(n-1)| is calculated;
[0031] If the |deltaP(n-1)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-1) as the previous steady-state power value;
[0032] If the |deltaP(n-1)| value is less than or equal to the judgment threshold Pgate1, the active power P(n-2) at the n-2th second is taken out from the ring queue, and the absolute value of the difference between it and P(n) |deltaP(n-2)| is calculated. If the |deltaP(n-2)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-2) as the previous steady-state power value, otherwise maintain the M1 state.
[0033] In a further technical solution, when determining whether to start a slowly varying load, determining whether to cause the state machine module to jump to a working state includes:
[0034] In the mth minute, assuming that there are k active power averages in the ring queue, where k>2, the current active power average P'(m), calculate the difference between this value and the active power average in the ring queue, set deltaP'(mi)=P'(m)-P'(i), 0≤i≤k, if |deltaP'(mi)| is greater than the judgment threshold Pgate2, the state machine module jumps from the M1 state to the M3 state, and records the previous steady-state average active power values P'(i) and P'(m); otherwise, maintain the M1 state.
[0035] In a further technical solution, when determining whether a transient load is started, if the state machine module enters the M3 state, further determining whether a load is started includes:
[0036] Assume that the M3 state is entered at the nth second, and the previous steady-state active power value is P(n-1). After running for T2 seconds, where T2=2*T1, the active power values P(n+1) and P(n+2) at the n+1th and n+2th seconds are taken from the ring queue, and the absolute values of the differences between these two powers and the previous steady-state active power value P(n-1) are calculated respectively: |deltaP(n+1)| and |deltaP(n+2)|;
[0037] If both |deltaP(n+1)| and |deltaP(n+2)| are greater than Pgate1, and the three difference values deltaP(n-1), deltaP(n+1) and deltaP(n+2) have the same sign, it is determined that there is a transient start; if the three difference values have different signs, no determination is made, and the state machine module will jump to the M1 state and enter the next detection.
[0038] In a further technical solution, when determining whether a slowly varying load is started, if the state machine module enters the M3 state, further determining whether a load is started includes:
[0039] Assuming that the state machine module enters the M3 state in the mth minute, then in the m+2th minute, the difference between the average active power of m+1 and m+2 minutes and the average active power P'(i) at time i is calculated, that is, deltaP'(m+1-i) and deltaP'(m+2-i). If the signs of these two values are the same as those of deltaP'(mi), and the absolute values of these two values are both greater than the judgment threshold Pgate2, it is determined that the load is started; if any of the absolute values of these two values is not greater than Pgate2, the state machine module jumps to the M1 state; if the signs of these two values are different from those of deltaP'(mi), the state machine module jumps to the M1 state. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of the judgment process of transient load startup of the present invention;
[0041] Figure 2 It is a schematic diagram of the judgment flow of the slowly varying load startup of the present invention. DETAILED DESCRIPTION
[0042] The technical solution of the present invention is further described below in conjunction with specific embodiments, but the present invention is not limited to these embodiments.
[0043] The technical solution of the present invention provides a load start-stop identification method based on continuous power change, which includes:
[0044] S1: Perform synchronous sampling of voltage and current signals and save the sampled data into a circular queue, where:
[0045] S11: when determining whether a transient load is started, the voltage and current signals are sampled synchronously at a time interval of T1 to calculate the current active power and save it in a ring queue, wherein T1<1 second;
[0046] S12: When judging the start of the slowly varying load, the average value P'(m) of the active power P(m) for 60 consecutive seconds is calculated every minute and saved in the ring queue;
[0047] S2: By comparing the data of the current state and the historical state, determine whether to make the state machine module jump to the working state, where:
[0048] S21: When determining whether to start a transient load, the active power at the nth second is compared with the active power at the n-1th second, or the active power at the nth second is compared with the active power at the n-2th second, to determine whether to make the state machine module jump from the M1 state to the M3 state.
[0049] S22: when judging the start of the slowly varying load, the average active power value in the mth minute is compared with the average active power value in the ring queue to judge whether to make the state machine module jump from the M1 state to the M3 state;
[0050] S3: If the state machine module enters the M3 state, it further determines whether there is a load start, where:
[0051] S31: When determining whether a transient load has started, the active power at the n+1th second and the n+2th second is further compared with the active power at the n-1th second to determine whether a load has started.
[0052] S32: When determining whether a slowly varying load is started, the average active power values at the m+1th minute and the m+2th minute are further compared with the average active power value in the ring queue to determine whether a load is started.
[0053] In a further technical solution, in step S21:
[0054] At the nth second, the current active power is P(n), the active power P(n-1) at the n-1th second is taken out from the ring queue, and the absolute value of the difference between the two |deltaP(n-1)| is calculated;
[0055] If the |deltaP(n-1)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-1) as the previous steady-state power value;
[0056] If the |deltaP(n-1)| value is less than or equal to the judgment threshold Pgate1, the active power P(n-2) at the n-2th second is taken out from the ring queue, and the absolute value of the difference between it and P(n) |deltaP(n-2)| is calculated. If the |deltaP(n-2)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-2) as the previous steady-state power value, otherwise maintain the M1 state.
[0057] In a further technical solution, in step S22: in the mth minute, assuming that there are k active power averages in the circular queue, where k>2, the current active power average P'(m), calculate the difference between this value and the active power average in the circular queue, and set deltaP'(mi)=P'(m)-P'(i), 0≤i≤k, if |deltaP'(mi)| is greater than the judgment threshold Pgate2, the state machine module jumps from the M1 state to the M3 state, and records the previous steady-state average active power values P'(i) and P'(m); otherwise, maintain the M1 state.
[0058] In a further technical solution, in step S31:
[0059] Assume that the state machine module enters the M3 state at the nth second, and the previous steady-state active power value is P(n-1). After running for T2 seconds, where T2=2*T1, take the active power values P(n+1) and P(n+2) at the n+1th and n+2th seconds from the ring queue, and calculate the absolute values of the differences between these two powers and the previous steady-state active power value P(n-1): |deltaP(n+1)| and |deltaP(n+2)|;
[0060] If both |deltaP(n+1)| and |deltaP(n+2)| are greater than Pgate1, and the three difference values deltaP(n-1), deltaP(n+1) and deltaP(n+2) have the same sign, it is determined that there is a transient start; if the three difference values have different signs, no determination is made, and the state machine module will jump to the M1 state and enter the next detection.
[0061] In a further technical solution, in step S32:
[0062] Assuming that the state machine module enters the M3 state in the mth minute, then in the m+2th minute, the difference between the average active power of m+1 and m+2 minutes and the average active power P'(i) at time i is calculated, that is, deltaP'(m+1-i) and deltaP'(m+2-i). If the signs of these two values are the same as those of deltaP'(mi), and the absolute values of these two values are both greater than the judgment threshold Pgate2, it is determined that the load is started; if any of the absolute values of these two values is not greater than Pgate2, the state machine module jumps to the M1 state; if the signs of these two values are different from those of deltaP'(mi), the state machine module jumps to the M1 state.
[0063] The embodiment of the present invention also provides a load start-stop identification system based on continuous power change, which includes: a timing synchronous sampling module, a ring queue module, and a state machine module; wherein,
[0064] The timing synchronous sampling module performs timing synchronous sampling of the voltage and current signals, and saves the sampled data to the ring queue module, wherein: when judging the startup of the transient load, the voltage and current signals are synchronously sampled at a time interval of T1 to calculate the current active power and save it to the ring queue module, wherein T1<1 second; when judging the startup of the slow-changing load, the average value P'(m) of the active power P(m) for 60 consecutive seconds is calculated every minute and saved to the ring queue module;
[0065] By comparing the data of the current state and the historical state, it is determined whether to make the state machine module jump to the working state, wherein: when judging the startup of the transient load, by comparing the active power of the nth second with the active power of the n-1th second, or by comparing the active power of the nth second with the active power of the n-2th second, it is determined whether to make the state machine module jump from the M1 state to the M3 state; when judging the startup of the slowly changing load, by comparing the average active power of the mth minute with the average active power in the ring queue, it is determined whether to make the state machine module jump from the M1 state to the M3 state;
[0066] When the state machine module enters the M3 state, it is further determined whether there is a load startup, wherein: when determining whether a transient load is started, the active power at the n+1th second and n+2th second is further compared with the active power at the n-1th second to determine whether there is a load startup; when determining whether a slowly changing load is started, the average active power at the m+1th minute and m+2th minute is further compared with the average active power in the ring queue to determine whether there is a load startup.
[0067] In a further technical solution, when determining whether to start a transient load, determining whether to cause the state machine module to jump to a working state includes:
[0068] At the nth second, the current active power is P(n), the active power P(n-1) at the n-1th second is taken out from the ring queue, and the absolute value of the difference between the two |deltaP(n-1)| is calculated;
[0069] If the |deltaP(n-1)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-1) as the previous steady-state power value;
[0070] If the |deltaP(n-1)| value is less than or equal to the judgment threshold Pgate1, the active power P(n-2) at the n-2th second is taken out from the ring queue, and the absolute value of the difference between it and P(n) |deltaP(n-2)| is calculated. If the |deltaP(n-2)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-2) as the previous steady-state power value, otherwise maintain the M1 state.
[0071] In a further technical solution, when determining whether to start a slowly varying load, determining whether to cause the state machine module to jump to a working state includes:
[0072] In the mth minute, assuming that there are k active power averages in the ring queue, where k>2, the current active power average P'(m), calculate the difference between this value and the active power average in the ring queue, set deltaP'(mi)=P'(m)-P'(i), 0≤i≤k, if |deltaP'(mi)| is greater than the judgment threshold Pgate2, the state machine module jumps from the M1 state to the M3 state, and records the previous steady-state average active power values P'(i) and P'(m); otherwise, maintain the M1 state.
[0073] In a further technical solution, when determining whether a transient load is started, if the state machine module enters the M3 state, further determining whether a load is started includes:
[0074] Assume that the M3 state is entered at the nth second, and the previous steady-state active power value is P(n-1). After running for T2 seconds, where T2=2*T1, the active power values P(n+1) and P(n+2) at the n+1th and n+2th seconds are taken from the ring queue, and the absolute values of the differences between these two powers and the previous steady-state active power value P(n-1) are calculated respectively: |deltaP(n+1)| and |deltaP(n+2)|;
[0075] If both |deltaP(n+1)| and |deltaP(n+2)| are greater than Pgate1, and the three difference values deltaP(n-1), deltaP(n+1) and deltaP(n+2) have the same sign, it is determined that there is a transient start; if the three difference values have different signs, no determination is made, and the state machine module will jump to the M1 state and enter the next detection.
[0076] In a further technical solution, when determining whether a slowly varying load is started, if the state machine module enters the M3 state, further determining whether a load is started includes:
[0077] Assuming that the state machine module enters the M3 state in the mth minute, then in the m+2th minute, the difference between the average active power of m+1 and m+2 minutes and the average active power P'(i) at time i is calculated, that is, deltaP'(m+1-i) and deltaP'(m+2-i). If the signs of these two values are the same as those of deltaP'(mi), and the absolute values of these two values are both greater than the judgment threshold Pgate2, it is determined that the load is started; if any of the absolute values of these two values is not greater than Pgate2, the state machine module jumps to the M1 state; if the signs of these two values are different from those of deltaP'(mi), the state machine module jumps to the M1 state. Specific embodiments
[0079] The invention is composed of three modules, namely, a timing synchronous sampling module, a ring queue module and a state machine module.
[0080] The timing synchronous sampling module is responsible for timing sampling of voltage and current signals. Synchronous sampling can reduce the phase error of voltage and current signals and improve the calculation accuracy of power.
[0081] The ring queue module is responsible for saving the sampled data for data comparison between the current state and the historical state, while making full use of the limited RAM resources.
[0082] The state machine module is responsible for managing and judging the working state of the electrical appliance under test, making the conditional branch judgment clearer, and clearly specifying the entry conditions for each working state, the tasks completed in the current working state, and the conditions for jumping to the next working state.
[0083] The judgment process of transient load startup is as follows: Figure 1 As shown, the specific process is as follows:
[0084] 1) Sample the voltage and current at time intervals of T1 (T1 < 1 second), calculate the current active power P, and save it in a ring queue;
[0085] 2) At the nth second, the current active power P(n) is taken out from the ring queue, and the active power P(n-1) at the n-1th second is taken out, and the absolute value of the difference between the two |deltaP(n-1)| is calculated.
[0086] 3) If the value of |deltaP(n-1)| is greater than the judgment threshold Pgate1, the state jumps from M1 to M3, and P(n-1) is recorded as the previous steady-state power value;
[0087] 4) If the value of |deltaP(n-1)| is less than or equal to the judgment threshold Pgate1, the active power P(n-2) at the n-2th second is taken out from the ring queue, and the absolute value of the difference between it and P(n) |deltaP(n-2)| is calculated. If the value of |deltaP(n-2)| is greater than the judgment threshold Pgate1, jump from the M1 state to the M3 state, and record P(n-2) as the previous steady-state power value, otherwise maintain the M1 state.
[0088] 5) Assume that the M3 state is entered at the nth second, and the previous steady-state active power value is P(n-1). After the system runs for T2 (T2=2*T1) seconds, the active power values P(n+1) and P(n+2) at the n+1th and n+2th seconds are taken from the ring queue, and the absolute values of the differences between these two powers and the previous steady-state active power value P(n-1) are calculated respectively: |deltaP(n+1)| and |deltaP(n+2)|.
[0089] 6) If both |deltaP(n+1)| and |deltaP(n+2)| are greater than Pgate1, and the three differences deltaP(n-1), deltaP(n+1) and deltaP(n+2) have the same sign, it is determined that there is a transient start. If the three differences have different signs, no determination is made. At this time, the system will jump to the M1 state and enter the next detection.
[0090] The judgment process of slowly changing load startup is as follows: Figure 2 As shown, the specific process is as follows:
[0091] 1) Calculate the average value P'(m) of the active power P(m) for 60 consecutive seconds every minute and save it in the ring queue.
[0092] 2) In the mth minute, assuming that there are k active power averages (k>2) in the ring queue, the current active power average is P'(m), and the difference between this value and the active power average in the ring queue is calculated. Let deltaP'(mi)=P'(m)-P'(i), 0≤i≤k. If |deltaP'(mi)| is greater than Pgate2, jump from M1 to M3, and record the previous steady-state average active power values P'(i) and P'(m); otherwise, maintain the M1 state.
[0093] 3) Assuming that the system has entered the M3 state at the mth minute, at the m+2th minute, calculate the difference between the average active power at the m+1 and m+2 moments and the average active power P'(i) at the i moment, that is, deltaP'(m+1-i) and deltaP'(m+2-i). If the signs of these two values are the same as those of deltaP'(mi), and the absolute values of these two values are both greater than Pgate2, it is determined that the load has started; if any of the absolute values of these two values is not greater than Pgate2, the system jumps to M1; if the signs of these two values are different from those of deltaP'(mi), the system jumps to M1.
[0094] The present invention discloses a method for identifying load start and stop based on continuous power change, which is used to judge the start and stop status of transient and variable frequency loads in non-invasive load identification, and solves the problem that the previous methods are difficult to be reliable for load power changes in slow, sudden increases and decreases, etc.
[0095] The above is only a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several modifications and improvements without departing from the inventive concept of the present invention, which all belong to the protection scope of the present invention.
Claims
1. A method for identifying load start and stop based on continuous power change, characterized in that: include: S1: Perform synchronous sampling of voltage and current signals and save the sampled data into a circular queue, where: S11: when determining whether a transient load is started, the voltage and current signals are sampled synchronously at a time interval of T1 to calculate the current active power and save it in a ring queue, wherein T1<1 second; S12: When judging the start of the slowly varying load, the average value P'(m) of the active power P(m) for 60 consecutive seconds is calculated every minute and saved in the ring queue; S2: By comparing the data of the current state and the historical state, determine whether to make the state machine module jump to the working state, where: S21: When determining whether to start a transient load, the active power at the nth second is compared with the active power at the n-1th second, or the active power at the nth second is compared with the active power at the n-2th second, to determine whether to make the state machine module jump from the M1 state to the M3 state. S22: when judging the start of the slowly varying load, the average active power value in the mth minute is compared with the average active power value in the ring queue to judge whether to make the state machine module jump from the M1 state to the M3 state; S3: If the state machine module enters the M3 state, it further determines whether there is a load start, where: S31: When determining whether a transient load has started, the active power at the n+1th second and the n+2th second is further compared with the active power at the n-1th second to determine whether a load has started. S32: When determining whether a slowly varying load is started, the average active power values at the m+1th minute and the m+2th minute are further compared with the average active power value in the ring queue to determine whether a load is started.
2. The method according to claim 1, characterized in that: In step S21: At the nth second, the current active power is P(n), the active power P(n-1) at the n-1th second is taken out from the ring queue, and the absolute value of the difference between the two |deltaP(n-1)| is calculated; If the |deltaP(n-1)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-1) as the previous steady-state power value; If the |deltaP(n-1)| value is less than or equal to the judgment threshold Pgate1, the active power P(n-2) at the n-2th second is taken out from the ring queue, and the absolute value of the difference between it and P(n) |deltaP(n-2)| is calculated. If the |deltaP(n-2)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-2) as the previous steady-state power value, otherwise maintain the M1 state.
3. The method according to claim 1, characterized in that In step S22: in the mth minute, assuming that there are k active power averages in the ring queue, where k>2, the current active power average value P'(m), calculate the difference between this value and the active power average value in the ring queue, set deltaP'(mi)=P'(m)-P'(i), 0≤i≤k, if |deltaP'(mi)| is greater than the judgment threshold Pgate2, the state machine module jumps from the M1 state to the M3 state, and records the previous steady-state average active power values P'(i) and P'(m); otherwise, maintain the M1 state.
4. The method according to claim 1, characterized in that: In step S31: Assume that the state machine module enters the M3 state at the nth second, and the previous steady-state active power value is P(n-1). After running for T2 seconds, where T2=2*T1, take the active power values P(n+1) and P(n+2) at the n+1th and n+2th seconds from the ring queue, and calculate the absolute values of the differences between these two powers and the previous steady-state active power value P(n-1): |deltaP(n+1)| and |deltaP(n+2)|; If both |deltaP(n+1)| and |deltaP(n+2)| are greater than Pgate1, and the three difference values deltaP(n-1), deltaP(n+1) and deltaP(n+2) have the same sign, it is determined that there is a transient start; if the three difference values have different signs, no determination is made, and the state machine module will jump to the M1 state and enter the next detection.
5. The method according to claim 1, characterized in that In step S32: Assuming that the state machine module enters the M3 state in the mth minute, then in the m+2th minute, the difference between the average active power of m+1 and m+2 minutes and the average active power P'(i) at time i is calculated, that is, deltaP'(m+1-i) and deltaP'(m+2-i). If the signs of these two values are the same as those of deltaP'(mi), and the absolute values of these two values are both greater than the judgment threshold Pgate2, it is determined that the load is started; if any of the absolute values of these two values is not greater than Pgate2, the state machine module jumps to the M1 state; if the signs of these two values are different from those of deltaP'(mi), the state machine module jumps to the M1 state.
6. A load start-stop identification system based on continuous power change, characterized in that: include: Timing synchronous sampling module, ring queue module, state machine module; among them, The timing synchronous sampling module performs timing synchronous sampling of the voltage and current signals, and saves the sampled data to the ring queue module, wherein: when judging the startup of the transient load, the voltage and current signals are synchronously sampled at a time interval of T1 to calculate the current active power and save it to the ring queue module, wherein T1<1 second; when judging the startup of the slow-changing load, the average value P'(m) of the active power P(m) for 60 consecutive seconds is calculated every minute and saved to the ring queue module; By comparing the data of the current state and the historical state, it is determined whether to make the state machine module jump to the working state, wherein: when judging the startup of the transient load, by comparing the active power of the nth second with the active power of the n-1th second, or by comparing the active power of the nth second with the active power of the n-2th second, it is determined whether to make the state machine module jump from the M1 state to the M3 state; when judging the startup of the slowly changing load, by comparing the average active power of the mth minute with the average active power in the ring queue, it is determined whether to make the state machine module jump from the M1 state to the M3 state; When the state machine module enters the M3 state, it is further determined whether there is a load startup, wherein: when determining whether a transient load is started, the active power at the n+1th second and n+2th second is further compared with the active power at the n-1th second to determine whether there is a load startup; when determining whether a slowly changing load is started, the average active power at the m+1th minute and m+2th minute is further compared with the average active power in the ring queue to determine whether there is a load startup.
7. The system according to claim 6, characterized in that When determining whether to start a transient load, determining whether to cause the state machine module to switch to a working state includes: At the nth second, the current active power is P(n), the active power P(n-1) at the n-1th second is taken out from the ring queue, and the absolute value of the difference between the two |deltaP(n-1)| is calculated; If the |deltaP(n-1)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-1) as the previous steady-state power value; If the |deltaP(n-1)| value is less than or equal to the judgment threshold Pgate1, the active power P(n-2) at the n-2th second is taken out from the ring queue, and the absolute value of the difference between it and P(n) |deltaP(n-2)| is calculated. If the |deltaP(n-2)| value is greater than the judgment threshold Pgate1, the state machine module jumps from the M1 state to the M3 state, and records P(n-2) as the previous steady-state power value, otherwise maintain the M1 state.
8. The system according to claim 6, characterized in that When determining whether to start a slowly varying load, determining whether to cause the state machine module to switch to a working state includes: In the mth minute, assuming that there are k active power averages in the ring queue, where k>2, the current active power average P'(m), calculate the difference between this value and the active power average in the ring queue, set deltaP'(mi)=P'(m)-P'(i), 0≤i≤k, if |deltaP'(mi)| is greater than the judgment threshold Pgate2, the state machine module jumps from the M1 state to the M3 state, and records the previous steady-state average active power values P'(i) and P'(m); otherwise, maintain the M1 state.
9. The system according to claim 6, characterized in that When determining whether a transient load is started, if the state machine module enters the M3 state, further determining whether a load is started includes: Assume that the M3 state is entered at the nth second, and the previous steady-state active power value is P(n-1). After running for T2 seconds, where T2=2*T1, the active power values P(n+1) and P(n+2) at the n+1th and n+2th seconds are taken from the ring queue, and the absolute values of the differences between these two powers and the previous steady-state active power value P(n-1) are calculated respectively: |deltaP(n+1)| and |deltaP(n+2)|; If both |deltaP(n+1)| and |deltaP(n+2)| are greater than Pgate1, and the three difference values deltaP(n-1), deltaP(n+1) and deltaP(n+2) have the same sign, it is determined that there is a transient start; if the three difference values have different signs, no determination is made, and the state machine module will jump to the M1 state and enter the next detection.
10. The system according to claim 6, characterized in that When judging the start of a slowly changing load, if the state machine module enters the M3 state, further judging whether there is a load start includes: Assuming that the state machine module enters the M3 state in the mth minute, then in the m+2th minute, the difference between the average active power of m+1 and m+2 minutes and the average active power P'(i) at time i is calculated, that is, deltaP'(m+1-i) and deltaP'(m+2-i). If the signs of these two values are the same as those of deltaP'(mi), and the absolute values of these two values are both greater than the judgment threshold Pgate2, it is determined that the load is started; if any of the absolute values of these two values is not greater than Pgate2, the state machine module jumps to the M1 state; if the signs of these two values are different from those of deltaP'(mi), the state machine module jumps to the M1 state.
