CN113420436A - Non-invasive load switch event detection method based on GRU and ARIMA-T detection - Google Patents
Non-invasive load switch event detection method based on GRU and ARIMA-T detection Download PDFInfo
- Publication number
- CN113420436A CN113420436A CN202110684100.0A CN202110684100A CN113420436A CN 113420436 A CN113420436 A CN 113420436A CN 202110684100 A CN202110684100 A CN 202110684100A CN 113420436 A CN113420436 A CN 113420436A
- Authority
- CN
- China
- Prior art keywords
- data
- load
- arima
- model
- gru
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/06—Power analysis or power optimisation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S20/00—Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
- Y04S20/20—End-user application control systems
- Y04S20/242—Home appliances
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Complex Calculations (AREA)
Abstract
The invention relates to a non-intrusive load switch event detection method based on GRU and ARIMA-T detection, which specifically comprises the following steps: firstly, inputting load U, I data of a certain specific area, preprocessing the data, enhancing the number of virtual samples by using a Mixup method for less sample category data to obtain a balanced sample data set, calculating the input U, I data to obtain active power characteristics, then performing median filtering processing on the active power, and performing stationarity processing on the filtered data by using differential operation to obtain an input data sequence; respectively inputting the input data sequence into a GRU model and an ARIMA model to obtain the result of the load event; and optimizing the weight coefficient by using a differential evolution algorithm, and performing linear weighted combination by using the optimal weight coefficient to obtain a load event result based on GRU and ARIMA-T test. The method of the invention combines the GRU model and the ARIMA-T inspection model, improves the identification precision and generalization capability of the load switch event of the model, has stronger global search capability and capability of resisting local convergence, can better identify the load event, and has certain application value.
Description
Technical Field
The invention relates to the field of non-invasive load detection, in particular to a non-invasive load switch event detection method based on GRU and ARIMA-T detection.
Background
Load monitoring is an important ring for realizing intelligent power utilization, power consumption conditions of all electrical appliances can be known by users in time through load monitoring, Non-invasive power load monitoring is a development trend and direction of a future monitoring technology, and as an important load monitoring mode, household energy consumption data can be classified into single equipment utilization data by applying an NILM (Non-intrusive load monitor) technology, so that the power consumption of the users can be measured in a dispersed and concentrated mode.
The effect based on event detection is directly influenced by the precision of a detection algorithm, if the running state of an electric appliance is changed, the switching event is detected by the algorithm, feature extraction and load identification can be completed by the algorithm, and at present, the event detection has several methods, such as a Cumulative Sum algorithm (cumulant Sum, CUSUM), a Log Likelihood Ratio (LLR) and a broad Log likelihood ratio, but the method has certain defects, for example, the accuracy of detecting the on-off state is reduced based on the similar waveforms of the Log likelihood ratio. The non-invasive load switch event detection method based on GRU and ARIMA-T detection can effectively improve the event detection precision and reduce the false detection rate and the missing detection rate.
Disclosure of Invention
The invention mainly aims to provide a non-intrusive load switch event detection method based on GRU and ARIMA-T tests.
The method comprises the following steps:
step1, inputting load U, I data of a specific area, and preprocessing the data;
step2, calculating the preprocessed data to obtain active power characteristics, then carrying out median filtering processing on the active power, and carrying out stationarity processing on the filtered data by utilizing differential operation to obtain an input data sequence;
step3, inputting the input data sequence into the GRU model to obtain a load event result 1;
step4, inputting the input data sequence into the ARIMA model, and obtaining a load event result 2 through T test;
step5, optimizing weight coefficients by using a differential evolution algorithm, and performing linear weighted combination by using the optimal weight coefficients to obtain a load event result based on GRU and ARIMA-T test;
the invention relates to a non-invasive load switch event detection method based on GRU and ARIMA-T detection, which comprises the steps of firstly inputting load U, I data of a certain specific area, preprocessing the data, and enhancing virtual data of few sample types by using a Mixup method
Drawings
For a more intuitive description of the embodiments of the present invention, reference will now be made in detail to the accompanying drawings of embodiments of the present patent:
FIG. 1 is a flow chart of a non-intrusive load switch event detection method based on GRU and ARIMA-T tests, in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of the GRU and ARIMA-T test performed in accordance with the present invention.
Detailed Description
The invention mainly aims to provide a non-intrusive load switch event detection method based on GRU and ARIMA-T tests.
The method comprises the following steps:
step1, inputting load U, I data of a specific area, and preprocessing the data;
step2, calculating the preprocessed data to obtain active power characteristics, then carrying out median filtering processing on the active power, and carrying out stationarity processing on the filtered data by utilizing differential operation to obtain an input data sequence;
step3, inputting the input data sequence into the GRU model to obtain a load event result 1;
step4, inputting the input data sequence into the ARIMA model, and obtaining a load event result 2 through T test;
step5, optimizing weight coefficients by using a differential evolution algorithm, and performing linear weighted combination by using the optimal weight coefficients to obtain a load event result based on GRU and ARIMA-T test;
the Step1 inputs load U, I data of a certain specific area, and the concrete steps of preprocessing the data are as follows:
after load U, I data of a certain specific area are input, the number of samples of certain categories is far less than that of other categories, the load samples are balanced by a data enhancement method Mixup, the Mixup is a data enhancement method based on the neighborhood risk minimization principle, new data samples are obtained through linear interpolation, and the method has the advantages of low calculation cost, capability of reducing the memory of a model to a damaged label, and model robustness and stability enhancement.
The formula for the calculation of Mixup is:
x%=λxi+(1-λ)xj,y%=λyi+(1-λ)yj
where λ Beta (α, α), α ∈ (0, ∞). (x)i,yi) And (x)j,yj) Are two sets of samples randomly decimated from the input voltage current data, and λ ∈ [0,1 ]]The hyper-parameter α limits the interpolation strength between feature objects, typically α is 0.5.
Calculating the cosine similarity of the original sample and the virtual sample by the following formula:
wherein A isiAnd BiData before and after enhancement, respectively. The larger the cosine similarity value is, the more similar the extended data sample of the Mixup method is to the original data sample.
Step2, calculating the preprocessed data to obtain active power characteristics, then performing median filtering processing on the active power, and performing stationarity processing on the filtered data by using differential operation to obtain an input data sequence, wherein the specific steps of the method are as follows:
calculating the preprocessed data to obtain the active power characteristic, for PnSet y (y is typically an odd number) as (1,2, …, N) the length of the sliding window, which is a neighborhood (P)x,Px+1,…,Px+y) The values in the neighborhood are arranged in order from small to large, with the median of the series replacing the value at its central position. Can take two numbers P in the middle of the sequencex+i,Px+jAverage value of (2)As the median of the array, the noise points in the array can be effectively removed.
And then, carrying out median filtering processing on the calculated active power to remove errors caused by data fluctuation, and then further carrying out stationarity processing on the filtered data by adopting differential operation to obtain an input data sequence.
Step3, inputting the input data sequence into the GRU model to obtain a load event result 1, and the specific steps are as follows:
wherein, the calculation formulas of the GRU model are respectively as follows:
zt=σ(Wz·[ht-1,xt])
rt=σ(Wr·[ht-1,xt])
after the input data sequence is input, pass htObtaining a load event result 1
Step4 inputs the input data sequence into the ARIMA model, and obtains a load event result 2 through T test, which comprises the following specific steps:
in ARIMA, the future values of variables are assumed to be linear functions of the past observations and random errors. That is, the basic process of generating a time series has the following form:
yt=θ0+φ1yt-1+φ2yt-2+…+φpyt-p +εt-θ1εt-1-θ2εt-2-…-θqεt-q
in the mode, phi is included in the modeli、θjTwo parameters, where i ═ 1,2, …, p, j ═ 1,2, …, q; the actual value, the random error of independent identity distribution and the order of the model are respectively expressed as yt、εtP and q;
the basic principle of the T-test is as follows: two groups of samples are respectively recorded to respectively satisfy the following conditions:and X1=(x11,x12,L,x1i,L,x1n),X2=(x21,x22,…,x2j,…,x2m) Then, the mean and variance of the two groups of samples are respectively:
simultaneously defining: t is the statistic of two groups of data samples, F is the variance ratio thereof, i.e.
The active power sequence characteristics of the ARIMA decomposition load are applied, the three decomposed time sequences are used as analysis objects, residual error items in the three time sequences are extracted and used as new data sequences, the primary variance and the secondary variance are calculated at the same time, and the result of the T test can be used as a load event detection result 2.
Step5 optimizes the weight coefficient by using a differential evolution algorithm, and performs linear weighted combination by using the optimal weight coefficient to obtain a load event result based on GRU and ARIMA-T test, wherein the method comprises the following specific steps:
and optimizing a weight coefficient for the load event result 1 of the GRU model and the load event result 2 of the ARIMA-T test model by using a differential evolution algorithm, and performing linear weighted combination by using the optimal weight coefficient to obtain a load event result based on GRU and ARIMA-T test.
The patent has certain universality, various equivalent transformations are carried out on the technical scheme of the invention within the technical idea scope of the invention, and the direct or indirect application in other related technical fields is within the patent protection scope of the invention.
Claims (6)
1. A non-intrusive load switch event detection method based on GRU and ARIMA-T detection is characterized in that: the GRU model and the ARIMA-T inspection model are combined, so that the load switch event identification precision and generalization capability of the model are improved, the global search capability and the capability of resisting local convergence are stronger, the load event can be identified better, and the method specifically comprises the following steps:
step1, inputting load U, I data of a specific area, and preprocessing the data;
step2, calculating the preprocessed data to obtain active power characteristics, then carrying out median filtering processing on the active power, and carrying out stationarity processing on the filtered data by utilizing differential operation to obtain an input data sequence;
step3, inputting the input data sequence into the GRU model to obtain a load event result 1;
step4, inputting the input data sequence into the ARIMA model, and obtaining a load event result 2 through T test;
step5 optimizes the weight coefficient by using a differential evolution algorithm, and performs linear weighted combination by using the optimal weight coefficient to obtain a load event result based on GRU and ARIMA-T test.
2. The method of inputting and pre-processing area-specific load U, I data according to claim 1, wherein:
load U, I data of a certain specific area are input, data are preprocessed, because the number of samples of a category is far less than that of data of other categories, a training flooding phenomenon can be generated, the feature training of the samples of the category is insufficient, load samples are balanced by adopting a Mixup algorithm, the Mixup is a data enhancement method based on a neighborhood risk minimization principle, new data samples are obtained through linear interpolation, the calculation cost is low, the memory of a model to damaged labels can be reduced, and the robustness and the stability of the model are enhanced.
3. The method of claim 1, wherein the step of computing the pre-processed data to obtain the active power characteristics, the step of performing median filtering on the active power, and the step of performing stationarity processing on the filtered data by using differential operation to obtain the input data sequence comprises:
calculating the preprocessed data to obtain the active power characteristic, for PnSet y (y is typically an odd number) as (1,2, …, N) the length of the sliding window, which is a neighborhood (P)x,Px+1,…,Px+y) Arranging the numerical values in the neighborhood from small to large, replacing the numerical value of the central position of the numerical sequence with the median of the numerical sequence, and taking two numbers P in the middle of the numerical sequencex+i,Px+jAverage value of (2)As the median of the array, the noise points in the array can be effectively removed;
and then, carrying out median filtering processing on the calculated active power to remove errors caused by data fluctuation, and then further carrying out stationarity processing on the filtered data by adopting differential operation to obtain an input data sequence.
4. The method of inputting an input data sequence into a GRU model to obtain a load event result 1 as claimed in claim 1 wherein:
wherein, the calculation formulas of the GRU model are respectively as follows:
zt=σ(Wz·[ht-1,xt])
rt=σ(Wr·[ht-1,xt])
after the input data sequence is input, pass htLoad event result 1 is obtained.
5. The method of claim 1, further inputting the input data sequence into an ARIMA model and obtaining a load event result 2 by a T-test, wherein:
in ARIMA, the future values of variables are assumed to be linear functions of the past observations and random errors. That is, the basic process of generating a time series has the following form:
yt=θ0+φ1yt-1+φ2yt-2+…+φpyt-p+εt-θ1εt-1-θ2εt-2-…-θqεt-q
in the mode, phi is included in the modeli、θjTwo parametersWherein i is 1,2, …, p, j is 1,2, …, q; the actual value, the random error of independent identity distribution and the order of the model are respectively expressed as yt、εtP and q;
the basic principle of the T-test is as follows: two groups of samples are respectively recorded to respectively satisfy the following conditions:and X1=(x11,x12,L,x1i,L,x1n),X2=(x21,x22,…,x2j,…,x2m) Then, the mean and variance of the two groups of samples are respectively:
simultaneously defining: t is the statistic of two groups of data samples, F is the variance ratio thereof, i.e.
The active power sequence characteristics of the ARIMA decomposition load are applied, the three decomposed time sequences are used as analysis objects, residual error items in the three time sequences are extracted and used as new data sequences, the primary variance and the secondary variance are calculated at the same time, and the result of the T test can be used as a load event detection result 2.
6. The method as claimed in claim 1, wherein the weight coefficients are optimized by a differential evolution algorithm, and the optimal weight coefficients are used for linear weighted combination to obtain the load event result based on GRU and ARIMA-T tests, wherein:
and optimizing a weight coefficient for the load event result 1 of the GRU model and the load event result 2 of the ARIMA-T test model by using a differential evolution algorithm, and performing linear weighted combination by using the optimal weight coefficient to obtain a load event result based on GRU and ARIMA-T test.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110684100.0A CN113420436B (en) | 2021-06-21 | 2021-06-21 | GRU and ARIMA-T based non-invasive event detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110684100.0A CN113420436B (en) | 2021-06-21 | 2021-06-21 | GRU and ARIMA-T based non-invasive event detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113420436A true CN113420436A (en) | 2021-09-21 |
CN113420436B CN113420436B (en) | 2022-08-26 |
Family
ID=77789408
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110684100.0A Active CN113420436B (en) | 2021-06-21 | 2021-06-21 | GRU and ARIMA-T based non-invasive event detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113420436B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110488112A (en) * | 2019-05-23 | 2019-11-22 | 杭州海兴电力科技股份有限公司 | Classification metering method non-intrusion type load identification and its realized based on recognition result |
CN110516788A (en) * | 2019-08-07 | 2019-11-29 | 深圳供电局有限公司 | A kind of non-intrusion type load testing method and system based on Bi-LSTM algorithm |
WO2020018992A1 (en) * | 2018-07-20 | 2020-01-23 | Jpmorgan Chase Bank, N.A. | Value at risk anomaly detection using deep learning and time series models |
US20210183490A1 (en) * | 2019-12-13 | 2021-06-17 | Medtronic Minimed, Inc. | Method and system for classifying detected events as labeled event combinations for processing at a client application |
CN112990587A (en) * | 2021-03-24 | 2021-06-18 | 北京市腾河智慧能源科技有限公司 | Method, system, equipment and medium for accurately predicting power consumption of transformer area |
-
2021
- 2021-06-21 CN CN202110684100.0A patent/CN113420436B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020018992A1 (en) * | 2018-07-20 | 2020-01-23 | Jpmorgan Chase Bank, N.A. | Value at risk anomaly detection using deep learning and time series models |
CN110488112A (en) * | 2019-05-23 | 2019-11-22 | 杭州海兴电力科技股份有限公司 | Classification metering method non-intrusion type load identification and its realized based on recognition result |
CN110516788A (en) * | 2019-08-07 | 2019-11-29 | 深圳供电局有限公司 | A kind of non-intrusion type load testing method and system based on Bi-LSTM algorithm |
US20210183490A1 (en) * | 2019-12-13 | 2021-06-17 | Medtronic Minimed, Inc. | Method and system for classifying detected events as labeled event combinations for processing at a client application |
CN112990587A (en) * | 2021-03-24 | 2021-06-18 | 北京市腾河智慧能源科技有限公司 | Method, system, equipment and medium for accurately predicting power consumption of transformer area |
Non-Patent Citations (2)
Title |
---|
刘江永等: "多时序协同中期负荷预测模型", 《电力系统及其自动化学报》 * |
易灵芝等: "基于EEMD-GSGRU的锂电池寿命预测", 《储能科学与技术》 * |
Also Published As
Publication number | Publication date |
---|---|
CN113420436B (en) | 2022-08-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109635928B (en) | Voltage sag reason identification method based on deep learning model fusion | |
CN111340065B (en) | User load electricity stealing model mining system and method based on complex user behavior analysis | |
CN116821832A (en) | Abnormal data identification and correction method for high-voltage industrial and commercial user power load | |
Jain et al. | A clustering framework for residential electric demand profiles | |
CN113010985A (en) | Non-invasive load identification method based on parallel AANN | |
CN117290788A (en) | Power distribution network fault identification method and system based on improved wavelet transformation algorithm | |
CN117272230A (en) | Non-invasive load monitoring method and system based on multi-task learning model | |
CN113420436B (en) | GRU and ARIMA-T based non-invasive event detection method | |
CN112285632A (en) | Electromagnetic current transformer fault diagnosis method based on VMD and sample entropy | |
CN111026741A (en) | Data cleaning method and device based on time series similarity | |
CN116780537A (en) | Non-invasive load monitoring method, device and storage medium | |
Du et al. | Transformer fault identification with an IF-1DCNN based on informative integration of heterogeneous sources | |
Pan et al. | Study on intelligent anti–electricity stealing early-warning technology based on convolutional neural networks | |
Luan et al. | Unsupervised identification and status assessment for electric bicycle charging load | |
CN113469502A (en) | Difference grouping non-intrusive load decomposition method based on dictionary learning | |
Varanasi et al. | Enhancing non-intrusive load monitoring with channel attention guided bi-directional temporal convolutional network for sequence-to-point learning | |
He et al. | Partial discharge pattern recognition algorithm based on sparse self-coding and extreme learning machine | |
Dash et al. | Multi-Head Attention Based Model for Non-Intrusive Appliance State Detection in Smart Buildings | |
Yang et al. | Multichannel energy monitoring based on the sliding window method in an industrial environment | |
Yan et al. | A clustering method for power time series curves based on improved self-organizing mapping algorithm | |
Qian et al. | Low frequency residential load disaggregation via improved variational auto-encoder and Siamese network | |
Zheng et al. | Cross-modal knowledge distillation for fault detection under multiple failure modes | |
Yu et al. | Nonintrusive load disaggregation method based on graph signal processing | |
Kim | Electricity Theft Detection using Fusion DenseNet-RF Model | |
Guo et al. | Fault Identification Model of Dry-Type Air-Core Reactor Based on Fault Feature Extraction and Ensemble Learning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |