A NON-INVASIVE LOAD DECOMPOSITION METHOD
20230024007 · 2023-01-26
Inventors
- Zhukui TAN (Guiyang, CN)
- Bin LIU (Guiyang, CN)
- Qiuyan ZHANG (Guiyang, CN)
- Chenghui LIN (Guiyang, CN)
- Jipu GAO (Guiyang, CN)
- Dunhui CHEN (Guiyang, CN)
- Houpeng HU (Guiyang, CN)
- Qiji DAI (Guiyang, CN)
- Chao DING (Guiyang, CN)
- Saiqiu TANG (Guiyang, CN)
Cpc classification
G06F18/214
PHYSICS
G06F18/295
PHYSICS
International classification
Abstract
The invention discloses a non-invasive load decomposition method, which includes: step 1, obtaining the power fingerprint information of each load; step 2, clustering the operating state of loads through the clustering algorithm, calculate statistical values of each cluster, and encoding the operating state of electrical appliances; step 3, establishing a hidden Markov model with multiple-parameters and calculating the model parameters; step 4, performing state recognition based on Viterbi algorithm and obtaining predicted state sequence; step 5, according to the predicted state sequence and the statistical values of each cluster, decomposing the load power based on the maximum likelihood estimation principle; step 6, outputting the state sequence and power decomposition results. The invention solves the conventional load identification algorithm problems, such as complex model, insufficient use of electrical features and low accuracy of unknown information.
Claims
1. A non-invasive load decomposition method, comprising: step 1, obtaining power fingerprint of each electrical appliance to generate training data and test data; step 2, clustering working states of electrical appliances through a clustering algorithm, calculating average values and standard deviation of each cluster, and encoding the working states of electrical appliances; step 3, establishing a hidden Markov model with multiple parameters and calculating model parameters; step 4, importing the test data and performing clustering; step 5, performing state recognition based on Viterbi algorithm and obtaining a predicted state sequence; step 6, according to the predicted state sequence and statistical values of each cluster, decomposing a load power based on maximum likelihood estimation principle; and step 7, outputting state sequence and power decomposition result.
2. The non-invasive load decomposition method of claim 1, wherein method of the step 1's obtaining the power fingerprint of each electrical appliance to generate the training data and the test data comprises: obtaining the power fingerprint of each electrical appliance; selecting active power and steady-state current data of each sampling point of each electrical appliance from the data set; dividing the selected active powers and steady-state current data into groups according to time as the training data and the test data, wherein the power fingerprint of each electrical appliance includes the active power and the history data of 1.sup.st to 11.sup.th harmonics of steady-state operating current of each electrical appliance.
3. The non-invasive load decomposition method of claim 1, wherein method of the step 2's clustering the working states of the electrical appliances through the clustering algorithm, calculating the average values and the standard deviation of each cluster, and encoding the working states of the electrical appliances comprises: clustering the working states of electrical appliances by using k-means clustering algorithm, and calculating the average values and standard of each cluster after the clustering results were obtained; and performing state coding to each electrical appliance, so as to encode working state vector of each electrical appliance into a binary state.
4. The non-invasive load decomposition method of claim 3, method of performing the state coding to each electrical appliance, so as to encode the working state vector of each electrical appliance into the binary state comprises: step 2.1, allocating bits, comprising: determine binary bits required for encoding according to the number of states of electrical appliances; step 2.2, determining values, comprising: calculating binary state values according to decimal state values of the electrical appliances at current moment; and step 2.3, splicing representation, comprising: splicing, according to the order of electrical appliances, the binary state values from high to low to get a final result.
5. The non-invasive load decomposition method of claim 1, wherein method of the step 3's establishing a hidden Markov model with multiple parameters and calculating model parameters comprises: step 3.1, using S to represent a set of combined operating states of each electrical appliance, and that S is a set of total states, wherein the set a complete sorting of the operating states of each electrical appliance, and the number of elements in the set is determined by the number of clusters of the states of each electrical appliance; step 3.2, using V to represent total power fingerprint set of total user power consumption, elements of set V , represented as v.sub.i=[P.sub.i.sup.L, I.sub.i.sup.L], include vectors constructed by total active power and total steady-state current; step 3.3, establishing a state transfer matrix A, comprising a.sub.ij indicates a probability of each electrical appliance's transferring from total states q.sub.t=s.sub.i at time t transferred to total states q.sub.i+1=s.sub.j at time t+1, where the calculation is:
6. The non-invasive load decomposition method of claim 1, wherein method of the step 5's performing the state recognition based on the Viterbi algorithm and obtaining the predicted state sequence comprises: step 5.1, initialization:
δ[0, i]=π[i].Math.B[i, y.sub.0] step 5.2, recursive calculation:
δ[t, i]=max.sub.j(B[i, y.sub.t].Math.δ[t−1, j].Math.A[j, i])
ψ[t, i]=argmax.sub.j(δ[t−1, j].Math.A[j, i]) step 5.3, termination state calculation:
p*.sub.T=max.sub.i(δ[T, i])
q*.sub.T=argmax.sub.i(δ[T, i]) step 5.4, optimal sequence backtracking:
q*.sub.T=ψ.sub.t+1(q*.sub.t+1), t=T−1, T−2, . . . , 0 where, obtained sequence is the predicted optimal implicit state sequence Q*=(q*.sub.1, q*.sub.2, . . . , q*.sub.T).
7. The non-invasive load decomposition method of claim 1, wherein method of the step 6's decomposing a load power based on maximum likelihood estimation principle according to the predicted state sequence and statistical values of each cluster comprises: step 6.1, according to the average value and variance of the cluster of each electrical appliance sample, establishing a normal distribution probability density function of each electrical appliance in each state; and step 6.2, establishing an objective function based on maximum likelihood estimation, so as to find the maximum of joint probability.
8. The non-invasive load decomposition method of claim 7, wherein the objective function is:
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0047]
DETAILED DESCRIPTION
[0048] Referring to
[0049] The non-invasive load decomposition method based on power fingerprint and multi-parameter hidden Markov model includes following steps:
[0050] Step S110, obtaining power fingerprint of each electrical appliance. The active power and steady-state current data of hearth (WOE), clothes dryer (CDE), dishwasher (DWE), television (TVE), clothes washer (CWE) and heat pump (HPE) at 14,400 sampling points for 10 days were selected from the data set and divided evenly into 10 groups by time, denoted as test1-test10. 9 groups of data were randomly selected as training data and 1 group as test data from the divided 10 groups.
[0051] Step S120, clustering working states of electrical appliances through a clustering algorithm, calculating average values and standard deviation of each cluster, and encoding the working states of electrical appliances. After obtaining the clustering results, the average value and standard deviation of each cluster were calculated. State encoding is carried out for each electrical appliance, and the working state vector of multiple electrical appliances is encoded into a binary state value. Assuming that there are 3 electrical appliances, the number of states is 2,3,8 respectively, and the states at that time are 0,2,6 respectively. For this example, the specific encoding steps are followings:
[0052] Step 2.1, allocating bits. Determine binary bits required for encoding according to the number of states of electrical appliances. The number of states of the above three appliances is 2,3,8 respectively, so the binary digits assigned to each appliance are 1,2,3 respectively.
[0053] Step 2.2, determining values. Calculating binary state values according to decimal state values of the electrical appliances at current moment. The decimal state values of the current three appliances are 0,2,6 respectively, and the binary state values are 0,10,110 respectively.
[0054] Step 2.3, splicing representation. Splicing, according to the order of electrical appliances, the binary state values from high to low to get a final result. The state value of the state vector at the current moment after splicing is 010110.
[0055] Step S130, establishing a hidden Markov model with multiple parameters and calculating model parameters. In this embodiment, the physical meanings of the two time sequences of the multi-parameter hidden Markov model is very clear: the implicit state sequence corresponds to the operating state of each electrical appliance, and the observation sequence corresponds to the power fingerprint data of the electrical appliance. Further, the following model can be established and its parameters is calculated:
[0056] (1) Implicit state set S: in the embodiment, using S to represent a set of combined operating states of each electrical appliance, and that S is a set of total states. The set a complete sorting of the operating states of each electrical appliance. The number of elements in the set is determined by the number of clusters of the states of each electrical appliance, assuming that the number is N now, and the values are calculated by the state encoding method introduced via step S120.
[0057] (2) Observation state set V: using V to represent total power fingerprint set of total user power consumption, elements of set V, represented as v.sub.i=[P.sub.i.sup.L, I.sub.i.sup.L], include vectors constructed by total active power and total steady-state current. Now, assuming that the number of the elements of set V is M.
[0058] (3) State transfer matrix A: comprising a.sub.ij indicates a probability of each electrical appliance's transferring from total states q.sub.t=s.sub.i at time t transferred to total states q.sub.t+1=s.sub.j at time t+1, and the calculation is:
[0059] Where h.sub.ij is frequency of the transferring from the total states q.sub.t=s.sub.i at time t to the total states q.sub.t+1=s.sub.j at time t+1, N is total number of implicit states.
[0060] (4) Output matrix B: comprising b.sub.ik indicates a probability that each electrical appliance is under the total states q.sub.t=s.sub.i at time t and observation value is y.sub.t=v.sub.k, and the calculation is:
[0061] Where o.sub.ik , is frequency of each electrical appliance is under the total states q.sub.t=s.sub.i at time t and the observation value is y.sub.t=v.sub.k, and M is the total number of the observation value.
[0062] (5) Initial probability matrix: comprising: π.sub.i indicates a probability that each electrical appliance is under s.sub.i at an initial time, where the calculation is:
[0063] Where d is the total number of training data set, and d.sub.i indicates frequency of the implicit stat s.sub.i existed in the training data set.
[0064] Step S140, import test data and perform clustering. In this embodiment, the test set data is derived and the input power fingerprint data is clustered to the known power fingerprint by K-means algorithm.
[0065] Step S150, performing the state recognition based on the Viterbi algorithm. For a given observation sequence Y={y.sub.0 y.sub.1, . . . , y.sub.T} and implicit state sequence Q={q.sub.0 q.sub.1, . . . , q.sub.T} , the specific steps of the calculation of the Viterbi algorithm are followings:
[0066] (1) Initialization:
δ[0,i]=π[i].Math.B[i,y.sub.0]
[0067] Where δ[0, i] is the probability of total state q.sub.0=i at time 0, π[i] is the initial probability of state i, and B[i, y.sub.0] is the probability that each appliance is under total state q.sub.t=i while the observation value is y.sub.t=y.sub.0.
[0068] (2) Recursive calculation:
δ[t,i]=max.sub.j(B[i,y.sub.t].Math.δ[t−1,j].Math.A[j,i])
ψ[t,i]=argmax.sub.j(δ[t−1,j].Math.A[j,i])
[0069] Where δ[t,i] is the probability of the total state q.sub.t=i at time t, B [i, y.sub.0] is the probability of each appliance under the total state q.sub.t=i while the observation value y.sub.t=y.sub.0, A[j, i] is the probability of the total state transferring from j to i, ψ[t, i] represents the state with the maximum probability of transferring to the total state i at time t starting from time t−1.
[0070] (3) Termination state calculation:
p*.sub.T=max.sub.i(δ[T,i])
q*.sub.T=argmax.sub.i(δ[T,i])
[0071] Where p*.sub.T represents the probability value corresponding to the predicted total state at time T (final time), δ[T, i] is the probability of the total state q.sub.t=I at time T, q*.sub.T represents the state corresponding to this probability (p*.sub.T).
[0072] (4) Optimal sequence backtracking:
q*.sub.T=ψ.sub.t+1(q*.sub.t+1), t=T−1,T−2, . . . ,0
[0073] Where q*.sub.T is the predicted total state at time T. The obtained sequence is the predicted optimal implicit state sequence Q*=(q*.sub.1, q*.sub.2, . . . , q*.sub.T).
[0074] Step S160, Viterbi algorithm computes and obtains the prediction sequence.
[0075] Step S170, according to the predicted state sequence and statistical values of each cluster, decomposing a load power based on maximum likelihood estimation principle. The power of an electric appliance in a stable operating state fluctuates, and the fluctuation can be considered as a random observation under a probability distribution. In this embodiment, normal distribution is used to describe the randomness of power fluctuation during the stable operation of electrical appliances and to calculate the power decomposition of electrical appliances. The power decomposition calculation steps of this embodiment are: (1) according to the average value and variance of the cluster of each electrical appliance sample, establishing a normal distribution probability density function of each electrical appliance in each state; (2) establishing an objective function based on maximum likelihood estimation, so as to find the maximum of joint probability. Notice the constraint that the sum of power decomposition values of all electrical appliances at the same time should be equal to the total power. The power decomposition objective function is constructed as follows:
[0076] where, σ.sub.[i,j] and μ.sub.[i,j] respectively indicates the standard deviation and the average value of j.sup.th cluster of the i.sup.th electrical appliance, N is the number of electrical appliances, P.sup.(i) indicates decomposed active power of each electrical appliance, and P.sup.L indicates the active power of the total loading, f.sub.[i,j](P.sup.(i)) indicates probability of i.sup.th electrical appliance which is in j.sup.th operating state to consume power P.sup.(i) . The above problem is a common convex quadratic programming problem after taking In on both sides of the objective function.
[0077] Step S180, outputting state sequence and power decomposition result.
[0078] The above (in combination with the attached drawings) gives a detailed description of the specific embodiments of the invention, but the invention is not limited to the above embodiments, and various modifications can be made within the scope of knowledge possessed by the ordinary person skilled in the art without deviating from the purpose of the invention.