CN116908618A - A method for diagnosing AC series arc fault in low-voltage distribution network - Google Patents

A method for diagnosing AC series arc fault in low-voltage distribution network Download PDF

Info

Publication number
CN116908618A
CN116908618A CN202310904639.1A CN202310904639A CN116908618A CN 116908618 A CN116908618 A CN 116908618A CN 202310904639 A CN202310904639 A CN 202310904639A CN 116908618 A CN116908618 A CN 116908618A
Authority
CN
China
Prior art keywords
waveform
load
data
value
arc fault
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.)
Pending
Application number
CN202310904639.1A
Other languages
Chinese (zh)
Inventor
高伟
饶俊民
洪翠
郭谋发
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuzhou University
Original Assignee
Fuzhou University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fuzhou University filed Critical Fuzhou University
Priority to CN202310904639.1A priority Critical patent/CN116908618A/en
Publication of CN116908618A publication Critical patent/CN116908618A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/08Locating faults in cables, transmission lines, or networks
    • G01R31/088Aspects of digital computing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/16Spectrum analysis; Fourier analysis
    • G01R23/163Spectrum analysis; Fourier analysis adapted for measuring in circuits having distributed constants
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/08Locating faults in cables, transmission lines, or networks
    • G01R31/081Locating faults in cables, transmission lines, or networks according to type of conductors
    • G01R31/086Locating faults in cables, transmission lines, or networks according to type of conductors in power transmission or distribution networks, i.e. with interconnected conductors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Physics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The application aims to provide a low-voltage distribution network alternating current series arc fault diagnosis method, which is used for collecting alternating current signals of two periods at an outlet of an ammeter at a certain sampling rate; the method comprises the steps of dividing a load waveform into a resistive load waveform, a dimmer load waveform and a complex type load waveform by using the spectrum amplitude and extremum weighted fuzzy entropy value difference of the normalized current waveform through a load waveform classification technology; for resistive load waveforms and dimmer load waveforms, five time-frequency features are extracted and arc fault diagnosis is performed using a conventional machine learning classifier. Aiming at complex load waveforms, a one-dimensional new data set is constructed by using data random fusion operation, and a convolutional neural network called a multichannel attention mechanism is trained to finish the identification of arc faults. Compared with the existing detection algorithm, the alternating current series arc fault diagnosis method provided by the application has the advantages of good adaptability and high accuracy.

Description

一种低压配网交流串联电弧故障诊断方法A method for diagnosing AC series arc fault in low-voltage distribution network

技术领域Technical field

本发明属于低压配网电弧故障诊断技术领域,具体涉及一种低压配网交流串联电弧故障诊断方法。The invention belongs to the technical field of low-voltage distribution network arc fault diagnosis, and specifically relates to a low-voltage distribution network AC series arc fault diagnosis method.

背景技术Background technique

随着经济发展,低压配电网的规模越来越大,配电线路的急速增加导致其发生电气事故的可能性也急速增加,配电网的稳定受到极大的挑战。配电网是电力网络的重要组成部分,作为电力系统向用户供电的终端,它运行的稳定性直接影响着对用户供电的可靠性。当低压配电线路因为使用时间过长或者收到外力作用而导致绝缘层破损或老化时,很可能引起串并联电弧,而故障电弧极易引起电气火灾。由此可见,故障电弧引发的危害不容小视。不仅如此,故障电弧发生时,其自身阻抗及辐射效应将带来谐波干扰并影响电能质量、损坏电气设备、影响供电经济性。With economic development, the scale of low-voltage distribution networks is getting larger and larger, and the rapid increase in distribution lines has led to a rapid increase in the possibility of electrical accidents. The stability of the distribution network has been greatly challenged. The distribution network is an important part of the power network. As the terminal where the power system supplies power to users, the stability of its operation directly affects the reliability of power supply to users. When the insulation layer of low-voltage distribution lines is damaged or aged due to long use or external force, it is likely to cause series and parallel arcs, and fault arcs can easily cause electrical fires. It can be seen that the harm caused by arc fault cannot be underestimated. Not only that, when a fault arc occurs, its own impedance and radiation effects will cause harmonic interference, affect power quality, damage electrical equipment, and affect power supply economy.

目前,现有的低压配网交流串联电弧故障诊断算法较为多样,主要可归纳为时频域检测法与神经网络诊断法。时频域检测通过提取电流信号在时、频域中的特征,利用分类器或阈值法完成交流串联电弧故障的辨识。神经网络诊断法利用数据的一维波形或将数据转换为图像输入到各类网络中进行训练与测试。在不同负载的影响下,故障电弧电流波形多样,多种负载的正常与故障波形之间存在相似性,导致当前算法的识别准确率不高,鲁棒性较差。另外,由于神经网络特征学习的不确定性,采用一维电流数据输入进网络中进行训练,会导致学习到冗余的信息或造成正常与故障特征被淹没,致使神经网络检测算法诊断效果较差。At present, the existing low-voltage distribution network AC series arc fault diagnosis algorithms are relatively diverse, which can be mainly summarized as time-frequency domain detection methods and neural network diagnosis methods. Time-frequency domain detection extracts the characteristics of the current signal in the time and frequency domains, and uses a classifier or threshold method to complete the identification of AC series arc faults. The neural network diagnosis method uses the one-dimensional waveform of the data or converts the data into images and inputs them into various networks for training and testing. Under the influence of different loads, fault arc current waveforms are diverse, and there are similarities between the normal and fault waveforms of various loads, resulting in low recognition accuracy and poor robustness of the current algorithm. In addition, due to the uncertainty of neural network feature learning, using one-dimensional current data to input into the network for training will result in learning redundant information or causing normal and fault features to be submerged, resulting in poor diagnostic effect of the neural network detection algorithm. .

发明内容Contents of the invention

因此,针对现有技术存在的缺陷和不足,本发明提出一种低压配网交流串联电弧故障诊断新方法,具体为一种二级分类的串联电弧故障检测算法。该算法的优势在于先通过一个分类策略,将十二种负载波形进行分类,以减弱负载之间的波形相似性程度,从而减少因波形相近造成的误判样本数,提升电弧故障诊断准确率。同时,提出一种数据随机融合机制以增强原始波形特征,并构建一个具有注意力机制的神经网络用于诊断。Therefore, in view of the defects and shortcomings of the existing technology, the present invention proposes a new method for diagnosing AC series arc faults in low-voltage distribution networks, specifically a two-level classification series arc fault detection algorithm. The advantage of this algorithm is to first classify twelve load waveforms through a classification strategy to weaken the waveform similarity between loads, thereby reducing the number of misjudgment samples caused by similar waveforms and improving the accuracy of arc fault diagnosis. At the same time, a data random fusion mechanism is proposed to enhance the original waveform features, and a neural network with an attention mechanism is constructed for diagnosis.

其以一定的采样率采集电表出口处两个周期的交流电流信号;通过一种负载波形分类技术,利用归一化后电流波形的频谱幅值与极值加权模糊熵值差异将负载波形区分为阻性负载波形、调光器负载波形和复杂类负载波形;针对阻性与调光器负载波形,提取五种时频特征并使用常规的机器学习分类器进行电弧故障诊断。针对复杂类负载波形,使用数据随机融合操作构建一维新数据集并训练一个称之为多通道注意力机制卷积神经网络完成电弧故障的辨识。与现有的检测算法相比,本发明所提的交流串联电弧故障诊断方法适应性好,准确率高。It collects two cycles of AC current signals at the meter outlet at a certain sampling rate; through a load waveform classification technology, the difference between the spectrum amplitude of the normalized current waveform and the extreme value weighted fuzzy entropy value is used to classify the load waveform into Resistive load waveforms, dimmer load waveforms and complex load waveforms; for resistive and dimmer load waveforms, five time-frequency features are extracted and conventional machine learning classifiers are used for arc fault diagnosis. For complex load waveforms, random data fusion operations are used to construct a one-dimensional new data set and a multi-channel attention mechanism convolutional neural network is trained to complete the identification of arc faults. Compared with existing detection algorithms, the AC series arc fault diagnosis method proposed by the present invention has good adaptability and high accuracy.

本发明解决其技术问题具体采用的技术方案是:The technical solutions specifically adopted by the present invention to solve the technical problems are:

一种低压配网交流串联电弧故障诊断方法,其特征在于,利用归一化后电流波形的频谱幅值与极值加权模糊熵值差异将负载波形区分为阻性负载波形、调光器负载波形和复杂类负载波形;针对阻性与调光器负载波形,提取多种时频特征并使用机器学习分类器进行电弧故障诊断;针对复杂类负载波形,使用数据随机融合操作构建一维新数据集并训练一个多通道注意力机制卷积神经网络完成电弧故障的辨识。A low-voltage distribution network AC series arc fault diagnosis method, which is characterized by using the difference between the spectrum amplitude of the normalized current waveform and the extreme weighted fuzzy entropy value to distinguish the load waveform into a resistive load waveform and a dimmer load waveform. and complex load waveforms; for resistive and dimmer load waveforms, extract multiple time-frequency features and use machine learning classifiers for arc fault diagnosis; for complex load waveforms, use random data fusion operations to construct a one-dimensional new data set and Train a multi-channel attention mechanism convolutional neural network to complete the identification of arc faults.

进一步地,利用归一化后电流波形的频谱幅值与极值加权模糊熵值差异将负载波形区分为阻性负载波形、调光器负载波形和复杂类负载波形具体包括以下过程:Furthermore, using the difference between the spectrum amplitude of the normalized current waveform and the extreme value weighted fuzzy entropy value to classify the load waveform into a resistive load waveform, a dimmer load waveform and a complex load waveform specifically includes the following process:

以一定的采样率采集电表出口处两个周期的交流电流信号X(i),并按照式(1)进行归一化处理;The two-cycle AC current signal X(i) at the meter outlet is collected at a certain sampling rate and normalized according to equation (1);

其中,XL为归一化后的波形序列,n为两个周期的采样点数,Xmax、Xmin分别为两个周期电流信号中的最大值和最小值;Among them, X L is the normalized waveform sequence, n is the number of sampling points in two periods, X max and

获取归一化后的波形,使用傅里叶变换,计算基波幅值fc并进行判断,若fc大于β0则为阻性负载的波形;其中β0是分类阻性负载波形的阈值,β0=0.95;Obtain the normalized waveform, use Fourier transform, calculate the fundamental wave amplitude fc and make a judgment. If fc is greater than β 0 , it is the waveform of a resistive load; where β 0 is the threshold for classifying resistive load waveforms, β 0 =0.95;

若不为阻性负载波形,则计算极值加权模糊熵Few值,判断该负载波形是否为调光器负载波形,具体计算步骤如下所示:If it is not a resistive load waveform, calculate the extreme weighted fuzzy entropy F ew value to determine whether the load waveform is a dimmer load waveform. The specific calculation steps are as follows:

1)按照式(2)计算两周期电流波形样本的差值序列;1) Calculate the difference sequence of two-cycle current waveform samples according to equation (2);

X(n)=abs(XL(i+1)-XL(i)),i=1,2,3···n-1 (2)X(n)=abs(X L (i+1)-X L (i)),i=1,2,3···n-1 (2)

其中X(n)为得到的差值序列,abs(.)为取绝对值操作;Among them, X(n) is the obtained difference sequence, and abs(.) is the absolute value operation;

2)取差值序列X(n)中四个最大的峰值按式(3)计算Pav2) Take the four largest peaks in the difference sequence X(n) and calculate Pav according to equation (3);

其中,M(1),M(2),M(3),M(4)分别为最大的四个峰值;Among them, M(1), M(2), M(3), and M(4) are the four largest peaks respectively;

3)计算模糊熵值FE;3) Calculate the fuzzy entropy value FE;

4)将计算的Pav和FE值相除获得极值加权模糊熵Few值,如式(4)所示;4) Divide the calculated P av and FE values to obtain the extreme weighted fuzzy entropy F ew value, as shown in equation (4);

若计算得出的Few值小于β1,则该波形为调光器负载的电流波形,β1为能够分离调光器负载波形的分类阈值,且β1=0.38;If the calculated F ew value is less than β 1 , then the waveform is the current waveform of the dimmer load, β 1 is the classification threshold that can separate the dimmer load waveform, and β 1 =0.38;

若fc小于β0且Few大于β1,则该负载波形被归入复杂负载波形池中。If fc is less than β 0 and F ew is greater than β 1 , the load waveform is classified into the complex load waveform pool.

1.根据权利要求2所述的一种低压配网交流串联电弧故障诊断方法,其特征在于:1. A low-voltage distribution network AC series arc fault diagnosis method according to claim 2, characterized in that:

计算模糊熵值的具体步骤如下:The specific steps to calculate the fuzzy entropy value are as follows:

将长度为N的电流波形{X(i):1<i<N}按式(5)构造成m维向量,即Construct the current waveform {X(i):1<i<N} with length N into an m-dimensional vector according to equation (5), that is

Yi m={X(i),X(i+1),···,X(i+m-1)}-X0(i) (5)Y i m ={X(i),X(i+1),···,X(i+m-1)}-X 0 (i) (5)

式中,N为样本数量,其中,1≤i≤N-m+1;In the formula, N is the number of samples, where 1≤i≤N-m+1;

按式(6)求取样本Yi m与样本Yj m相似度为Dij m According to equation (6), the similarity between sample Y i m and sample Y j m is calculated as D ij m

式中,dij m为最大绝对差值,1≤j,j≤N-m且i≠j;In the formula, d ij m is the maximum absolute difference, 1≤j, j≤Nm and i≠j;

按式(7)定义函数Define the function according to equation (7)

式中,相似容限r,隶属函数 In the formula, similarity tolerance r, membership function

按式(8)构建m+1维向量Construct an m+1 dimensional vector according to equation (8)

按式(9)求采样点为N的模糊熵Calculate the fuzzy entropy of sampling point N according to equation (9)

FE(m,n,r,N)=lnφm(n,r)-lnφm+1(n,r) (9)。FE(m,n,r,N)=lnφ m (n,r)-lnφ m+1 (n,r) (9).

进一步地,针对阻性与调光器负载波形提取五种时频域特征,分别为脉冲因子Cif,裕度因子Cmf,峭度Ck,基波相对含量占比F1,三次谐波相对含量占比F3,其公式如下所示:Furthermore, five time-frequency domain features were extracted for the resistive and dimmer load waveforms, namely pulse factor C if , margin factor C mf , kurtosis C k , fundamental wave relative content proportion F 1 , third harmonic The relative content proportion F 3 is as follows:

其中XL为电流样本数据,n为信号长度,fc是经过傅里叶变换后基波分量的幅值,3rdhc是经过傅里叶变换后三次谐波分量的幅值,5rdhc是经过傅里叶变换后五次谐波分量的幅值, Among them , The amplitude of the fifth harmonic component after transformation,

以利用机器学习分类器进行电弧故障诊断。To utilize machine learning classifiers for arc fault diagnosis.

进一步地,针对复杂类负载波形,使用数据随机融合操作构建一维新数据集并训练一个多通道注意力机制卷积神经网络完成电弧故障的辨识;Furthermore, for complex load waveforms, a random data fusion operation is used to construct a one-dimensional new data set and a multi-channel attention mechanism convolutional neural network is trained to complete the identification of arc faults;

针对复杂类负载波形进行数据随机融合操作,构建一维新数据集的具体步骤如下:The specific steps for performing random data fusion operations on complex load waveforms and constructing a one-dimensional new data set are as follows:

1)为保留整体信息的利用,选取两个周期数据点样本作为一个整体波形;1) In order to retain the utilization of the overall information, two periodic data point samples are selected as an overall waveform;

2)划分局部波形信息,将一个整体样本平均分为四份,每份包含半个周期的波形数据,每一份的局部波形均包含一个波峰/波谷或零休部位;2) Divide the local waveform information and divide an entire sample into four parts, each part containing half a cycle of waveform data, and each part of the local waveform contains a peak/trough or zero rest position;

3)构建一维新数据,随机选取两段局部信息拼接在整体波形之后,构建一维新数据。3) Construct one-dimensional new data, randomly select two pieces of local information and splice them after the overall waveform to construct one-dimensional new data.

进一步地,所述多通道注意力机制卷积神经网络为融合多头注意力机制与GRU单元的多通道卷积神经网络:Further, the multi-channel attention mechanism convolutional neural network is a multi-channel convolutional neural network that combines the multi-head attention mechanism and the GRU unit:

网络构建了三个数据提取通道,分别设置不同的结构参数用于对不同长度的数据提取特征,以保证每个数据片段都能提取到最优的特征组;其中,第一通道用于对两周期的整体波形进行特征提取,在网络的开始部分先嵌入多头注意力模块,利用注意力机制,消除数据中的噪声及冗余数据,关注特征,以提高模型的鲁棒性。The network constructs three data extraction channels, and sets different structural parameters to extract features from data of different lengths to ensure that each data segment can extract the optimal feature group; among them, the first channel is used to extract features from two data segments. Features are extracted from the overall waveform of the cycle. A multi-head attention module is first embedded in the beginning of the network. The attention mechanism is used to eliminate noise and redundant data in the data and focus on features to improve the robustness of the model.

进一步地,多头注意力机制的计算过程如下:Furthermore, the calculation process of the multi-head attention mechanism is as follows:

1)将输入的电流波形平行划分为多段;1) Divide the input current waveform into multiple segments in parallel;

2)针对每段输入数据生成三个对应的矩阵,分别为查询矩阵、键矩阵、和值矩阵;2) Generate three corresponding matrices for each piece of input data, namely the query matrix, the key matrix, and the sum value matrix;

3)利用查询矩阵与键矩阵的点积得到数据的权重分数;3) Use the dot product of the query matrix and the key matrix to obtain the weight score of the data;

4)权重分数经过softmax归一化后再乘以值矩阵得到最终具有权重注意力的数据;4) The weight score is normalized by softmax and then multiplied by the value matrix to obtain the final data with weighted attention;

Q=AWQ (16)Q=AW Q (16)

K=AWK (17)K=AW K (17)

V=AWV (18)V=AW V (18)

其中Q,K,V分别表示查询矩阵,键矩阵和值矩阵,dk为Q,K,V的维数,A为输入矩阵,WQ、WK、WV是对输入矩阵进行线性变换得到的系数矩阵;Among them, Q, K and V represent query matrix, key matrix and value matrix respectively, d k is the dimension of Q, K and V, A is the input matrix, W Q , W K and W V are obtained by linear transformation of the input matrix. coefficient matrix;

5)将所学习到的多段注意力进行组合,得到全局注意力;5) Combine the learned multiple attention segments to obtain global attention;

通过注意力层之后,经过卷积层、池化层、BN层和Drouput层进行特征再提取,同时连接一个GRU单元,防止训练中发生过拟合;最后再经过一个BN层与Drouput层并经过relu激活函数输出特征向量;After passing through the attention layer, the features are re-extracted through the convolution layer, pooling layer, BN layer and Drouput layer, and a GRU unit is connected to prevent over-fitting during training; finally, a BN layer and a Drouput layer are passed through The relu activation function outputs a feature vector;

第二和第三通道用于对半周期的局部波形片段提取特征;直接通过卷积层、池化层、BN层与Drouput层,并与一个GRU单元连接,最后再通过relu激活函数输出特征向量;Drouput层用于帮助网络防止过拟合,卷积层的激活函数则采用leakyrelu。The second and third channels are used to extract features from local waveform segments of the half cycle; directly through the convolution layer, pooling layer, BN layer and Drouput layer, and connected to a GRU unit, and finally output the feature vector through the relu activation function ; The Drouput layer is used to help the network prevent overfitting, and the activation function of the convolution layer uses leakyrelu.

进一步地,当采样率改变时,整体波形样本点数与局部波形样本点数均会发生改变,三个通道中卷积层的个数与尺寸根据输入数据点数大小进行对比与调整,网络的参数通过训练获取。Furthermore, when the sampling rate changes, the number of overall waveform sample points and the number of local waveform sample points will change. The number and size of the convolutional layers in the three channels are compared and adjusted according to the number of input data points. The parameters of the network are trained through Obtain.

相比于现有技术,本发明及其优选方案至少具备以下突出优势:Compared with the existing technology, the present invention and its preferred solutions have at least the following outstanding advantages:

(1)创新性地设计了一种快速、高效的负载波形分类算法,实现了对发生串联电弧故障波形的负载类型的初筛。该技术有效减少后续神经网络模型的计算应力,减少了因为负载之间波形相似造成的误判样本数,有利于提高整体的诊断准确率。(1) A fast and efficient load waveform classification algorithm is innovatively designed to achieve the initial screening of load types where series arc fault waveforms occur. This technology effectively reduces the computational stress of subsequent neural network models, reduces the number of misjudgment samples caused by similar waveforms between loads, and helps improve the overall diagnostic accuracy.

(2)创新性地提出一种数据随机融合机制用于电弧故障诊断。在使用一维原始数据整体波形的基础上提取局部波形并将其与整体信息进行融合,构造一维新数据集。该机制增强了对波形信息的利用,有效放大了电弧故障的微弱特征,提升了后端检测算法的识别准确率。(2) Innovatively propose a data random fusion mechanism for arc fault diagnosis. On the basis of using the overall waveform of the one-dimensional original data, the local waveform is extracted and fused with the overall information to construct a new one-dimensional data set. This mechanism enhances the utilization of waveform information, effectively amplifies the weak characteristics of arc faults, and improves the recognition accuracy of the back-end detection algorithm.

(3)创新性地对卷积神经网络(CNN)进行了改进,将多头注意力模块与GRU单元融合到CNN中,并构造多个特征提取通道用于分别对不同长度的整体波形与局部波形展开自适应的特征提取,提出一种MC-MGCNN网络。该网络具有对多种负载波形进行高效学习并辨识是否发生电弧故障的能力。(3) Innovatively improve the convolutional neural network (CNN), integrate the multi-head attention module and the GRU unit into the CNN, and construct multiple feature extraction channels to separately analyze the overall waveforms and local waveforms of different lengths. Expand adaptive feature extraction and propose a MC-MGCNN network. The network has the ability to efficiently learn a variety of load waveforms and identify whether arc faults occur.

附图说明Description of the drawings

下面结合附图和具体实施方式对本发明进一步详细的说明:The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments:

图1是本发明实施例低压配网交流串联电弧故障诊断算法的整体流程图;Figure 1 is an overall flow chart of the low-voltage distribution network AC series arc fault diagnosis algorithm according to the embodiment of the present invention;

图2是本发明实施例第一级分类技术流程图;Figure 2 is a flow chart of the first-level classification technology according to the embodiment of the present invention;

图3是本发明实施例数据随机融合操作图;Figure 3 is a diagram of data random fusion operation according to the embodiment of the present invention;

图4是本发明实施例MC-MGCNN网络结构图;Figure 4 is a MC-MGCNN network structure diagram according to the embodiment of the present invention;

图5是本发明实施例MC-MGCNN网络参数训练流程图;Figure 5 is a flow chart of MC-MGCNN network parameter training according to the embodiment of the present invention;

图6是本发明实施例第二级分类技术S3流程图;Figure 6 is a flow chart of the second-level classification technology S3 according to the embodiment of the present invention;

图7是本发明实施例阻性负载波形分类阈值β0示意图;Figure 7 is a schematic diagram of the resistive load waveform classification threshold β 0 according to the embodiment of the present invention;

图8是本发明实施例调光器负载波形分类阈值β1示意图;Figure 8 is a schematic diagram of the dimmer load waveform classification threshold β1 according to the embodiment of the present invention;

图9是本发明实施例混淆矩阵示意图。Figure 9 is a schematic diagram of a confusion matrix according to an embodiment of the present invention.

具体实施方式Detailed ways

为让本专利的特征和优点能更明显易懂,下文特举实施例,作详细说明如下:In order to make the features and advantages of this patent more obvious and easy to understand, examples are given below and explained in detail as follows:

应该指出,以下详细说明都是例示性的,旨在对本申请提供进一步的说明。除非另有指明,本说明书使用的所有技术和科学术语具有与本申请所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is illustrative and is intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in this specification have the same meanings commonly understood by one of ordinary skill in the art to which this application belongs.

需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本申请的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, the singular forms are also intended to include the plural forms unless the context clearly indicates otherwise. Furthermore, it will be understood that when the terms "comprises" and/or "includes" are used in this specification, they indicate There are features, steps, operations, means, components and/or combinations thereof.

以下通过一个具体实施例对所提低压配网交流串联电弧故障诊断方法的设计和具体使用步骤进行介绍:The design and specific usage steps of the proposed low-voltage distribution network AC series arc fault diagnosis method are introduced below through a specific embodiment:

所提技术适用的负载类型包括阻性负载、电机类负载、电源类负载、气体放电灯类负载、调光器负载以及上述混合类负载。所提技术构建和实现的整体流程如图1所示,首先根据步骤S1获取串联电弧故障数据,随后将其经步骤S2进行第一级的负载波形分类,分为简单负载波形和复杂负载波形,之后经过步骤S3进行第二级的故障诊断分类。The load types applicable to the proposed technology include resistive loads, motor loads, power supply loads, gas discharge lamp loads, dimmer loads and the above-mentioned mixed loads. The overall process of construction and implementation of the proposed technology is shown in Figure 1. First, the series arc fault data is obtained according to step S1, and then the first-level load waveform is classified into step S2, which is divided into simple load waveforms and complex load waveforms. After that, step S3 is used to perform the second-level fault diagnosis classification.

(1)S1:以一定的采样率采集电表出口处两个周期的交流电流信号X(i),并按照式(1)进行归一化处理;(1) S1: Collect the two-cycle AC current signal X(i) at the meter outlet at a certain sampling rate, and perform normalization processing according to equation (1);

其中,XL为归一化后的波形序列,n为两个周期的采样点数,Xmax、Xmin分别为两个周期电流信号中的最大值和最小值。Among them, X L is the normalized waveform sequence, n is the number of sampling points in two periods, and X max and X min are respectively the maximum value and the minimum value in the two period current signals.

(2)第一级分类S2:(2) First level classification S2:

步骤S21:获取S1中归一化后的波形,使用傅里叶变换,计算基波幅值fc并进行判断,若fc大于β0则为阻性负载的波形。其中β0是分类阻性负载波形的阈值,β0=0.95;Step S21: Obtain the normalized waveform in S1, use Fourier transform, calculate the fundamental wave amplitude fc and make a judgment. If fc is greater than β 0 , it is the waveform of a resistive load. Where β 0 is the threshold for classifying resistive load waveforms, β 0 =0.95;

步骤S22:若不为阻性负载波形,则计算极值加权模糊熵Few值,判断该负载波形是否为调光器负载波形,具体计算步骤如下所示:Step S22: If it is not a resistive load waveform, calculate the extreme weighted fuzzy entropy F ew value to determine whether the load waveform is a dimmer load waveform. The specific calculation steps are as follows:

1)按照式(2)计算两周期电流波形样本的差值序列;1) Calculate the difference sequence of two-cycle current waveform samples according to equation (2);

X(n)=abs(XL(i+1)-XL(i)),i=1,2,3···n-1 (2)X(n)=abs(X L (i+1)-X L (i)),i=1,2,3···n-1 (2)

其中X(n)为得到的差值序列,abs(.)为取绝对值操作;Among them, X(n) is the obtained difference sequence, and abs(.) is the absolute value operation;

2)取差值序列X(n)中四个最大的峰值按式(3)计算Pav2) Take the four largest peaks in the difference sequence X(n) and calculate Pav according to equation (3);

其中,M(1),M(2),M(3),M(4)分别为最大的四个峰值;Among them, M(1), M(2), M(3), and M(4) are the four largest peaks respectively;

3)计算模糊熵(Fuzzy Entropy,FE)值,具体步骤如下:3) Calculate the fuzzy entropy (FE) value. The specific steps are as follows:

①将长度为N的电流波形{X(i):1<i<N}按式(4)构造成m维向量,即①Construct the current waveform {X(i):1<i<N} with length N into an m-dimensional vector according to equation (4), that is

Yi m={X(i),X(i+1),···,X(i+m-1)}-X0(i) (4)Y i m ={X(i),X(i+1),···,X(i+m-1)}-X 0 (i) (4)

式中,N为样本数量,其中,1≤i≤N-m+1;In the formula, N is the number of samples, where 1≤i≤N-m+1;

②按式(5)求取样本Yi m与样本Yj m相似度为Dij m ②According to equation (5), the similarity between sample Y im and sample Y j m is calculated as D ij m

式中,dij m为最大绝对差值,1≤j,j≤N-m且i≠j;In the formula, d ij m is the maximum absolute difference, 1≤j, j≤Nm and i≠j;

③按式(6)定义函数③Define the function according to equation (6)

式中,相似容限r,隶属函数 In the formula, similarity tolerance r, membership function

④重复上述步骤,按式(7)构建m+1维向量④ Repeat the above steps to construct an m+1 dimensional vector according to equation (7)

⑤按式(8)求采样点为N的模糊熵⑤ Calculate the fuzzy entropy of sampling point N according to equation (8)

FE(m,n,r,N)=lnφm(n,r)-lnφm+1(n,r) (8)FE(m,n,r,N)=lnφ m (n,r)-lnφ m+1 (n,r) (8)

4)将计算的Pav和FE值相除获得极值加权模糊熵Few值,如式(9)所示;4) Divide the calculated P av and FE values to obtain the extreme weighted fuzzy entropy F ew value, as shown in equation (9);

若计算得出的Few值小于β1,则该波形为调光器负载的电流波形,β1为能够分离调光器负载波形的分类阈值,且β1=0.38。If the calculated F ew value is less than β 1 , then the waveform is the current waveform of the dimmer load, β 1 is the classification threshold that can separate the dimmer load waveform, and β 1 =0.38.

步骤S23:若fc小于β0且Few大于β1,则该负载波形被归入复杂负载波形池中,阻性和调光器负载波形称之为简单负载波形。Step S23: If fc is less than β 0 and F ew is greater than β 1 , the load waveform is classified into the complex load waveform pool, and the resistive and dimmer load waveforms are called simple load waveforms.

(3)第二级分类S3:(3) Second level classification S3:

步骤S31:获取S2的负载波形分类结果;Step S31: Obtain the load waveform classification result of S2;

步骤S32:针对简单负载波形提取五种时频域特征,分别为脉冲因子Cif,裕度因子Cmf,峭度Ck,基波相对含量占比F1,三次谐波相对含量占比F3,其公式如下所示:Step S32: Extract five time-frequency domain features for the simple load waveform, namely pulse factor C if , margin factor C mf , kurtosis C k , fundamental wave relative content proportion F 1 , and third harmonic relative content proportion F 3 , its formula is as follows:

其中XL为电流样本数据,n为信号长度,fc是经过傅里叶变换后基波分量的幅值,3rdhc是经过傅里叶变换后三次谐波分量的幅值,5rdhc是经过傅里叶变换后五次谐波分量的幅值, Among them , The amplitude of the fifth harmonic component after transformation,

步骤S33:利用常规的机器学习分类器包括且不限如随机森林、SVM、XGBoost等为简单负载波形进行电弧故障诊断;Step S33: Use conventional machine learning classifiers including but not limited to random forest, SVM, XGBoost, etc. to diagnose arc faults for simple load waveforms;

步骤S34:针对复杂类负载波形进行数据随机融合操作,构建一维新数据集,具体步骤如下:Step S34: Perform data random fusion operations on complex load waveforms to construct a one-dimensional new data set. The specific steps are as follows:

1)保留整体信息的利用,选取两个周期数据点样本作为一个整体波形;1) Preserve the utilization of the overall information and select two periodic data point samples as an overall waveform;

2)划分局部波形信息,将一个整体样本平均分为四份,每份包含半个周期的波形数据,每一份的局部波形均会包含一个波峰/波谷或者零休部位;2) Divide the local waveform information and divide an entire sample into four parts, each part containing half a period of waveform data, and each part of the local waveform will contain a peak/trough or zero rest position;

3)构建一维新数据,随机选取两段局部信息拼接在整体波形之后,构建一维新数据。3) Construct one-dimensional new data, randomly select two pieces of local information and splice them after the overall waveform to construct one-dimensional new data.

整体操作图如图3所示。The overall operation diagram is shown in Figure 3.

步骤S35:针对复杂负载池的负载波形,以卷积神经网络(CNN)为基础,设计一种称之为融合多头注意力机制与GRU单元的多通道卷积神经网络(MC-MGCNN网络),网络的具体改进内容如下:Step S35: For the load waveform of the complex load pool, based on the convolutional neural network (CNN), design a multi-channel convolutional neural network (MC-MGCNN network) that combines the multi-head attention mechanism and the GRU unit. The specific improvements to the network are as follows:

网络构建了三个数据提取通道,分别设置不同的结构参数用于对不同长度的数据提取特征,保证每个数据片段都能提取到最优的特征组。其中,第一通道用于对两周期的整体波形进行特征提取,在网络的开始部分先嵌入多头注意力模块,利用注意力机制,消除数据中的噪声及冗余数据,关注特征,提高模型的鲁棒性。多头注意力机制的计算过程如下:The network constructs three data extraction channels, and sets different structural parameters to extract features from data of different lengths, ensuring that the optimal feature group can be extracted from each data segment. Among them, the first channel is used to extract features from the overall waveform of two cycles. A multi-head attention module is first embedded in the beginning of the network. The attention mechanism is used to eliminate noise and redundant data in the data, focus on features, and improve the model's performance. robustness. The calculation process of the multi-head attention mechanism is as follows:

1)将输入的电流波形平行划分为多段;1) Divide the input current waveform into multiple segments in parallel;

2)针对每段输入数据生成三个对应的矩阵,分别为查询矩阵(Query)、键矩阵(Key)、和值矩阵(Value);2) Generate three corresponding matrices for each piece of input data, namely query matrix (Query), key matrix (Key), and value matrix (Value);

3)利用查询矩阵与键矩阵的点积得到数据的权重分数;3) Use the dot product of the query matrix and the key matrix to obtain the weight score of the data;

4)权重分数经过softmax归一化后再乘以值矩阵得到最终具有权重注意力的数据;4) The weight score is normalized by softmax and then multiplied by the value matrix to obtain the final data with weighted attention;

Q=AWQ (16)Q=AW Q (16)

K=AWK (17)K=AW K (17)

V=AWV (18)V=AW V (18)

其中Q,K,V分别表示查询矩阵,键矩阵和值矩阵,dk为Q,K,V的维数,A为输入矩阵,WQ、WK、WV是对输入矩阵进行线性变换得到的系数矩阵。Among them, Q, K and V represent query matrix, key matrix and value matrix respectively, d k is the dimension of Q, K and V, A is the input matrix, W Q , W K and W V are obtained by linear transformation of the input matrix. coefficient matrix.

5)将所学习到的多段注意力进行组合,得到全局注意力。5) Combine the learned multiple attention segments to obtain global attention.

通过注意力层之后,经过卷积层、池化层、BN层和Drouput层进行特征再提取,同时连接一个GRU单元,防止训练中发生过拟合。最后再经过一个BN层与Drouput层并经过relu激活函数输出特征向量。After passing through the attention layer, features are re-extracted through the convolution layer, pooling layer, BN layer and Drouput layer, and a GRU unit is connected to prevent over-fitting during training. Finally, a BN layer and a Drouput layer are passed through, and the feature vector is output through the relu activation function.

第二和第三通道用于对半周期的局部波形片段提取特征。直接通过卷积层、池化层、BN层与Drouput层,并与一个GRU单元连接,最后再通过relu激活函数输出特征向量。Drouput层能够帮助网络防止过拟合,卷积层的激活函数则采用leakyrelu。MC-MGCNN网络的整体结构如图4所示,具体网络结构如表1所示。The second and third channels are used to extract features from local waveform segments of half cycles. Directly through the convolution layer, pooling layer, BN layer and Drouput layer, and connected to a GRU unit, and finally output the feature vector through the relu activation function. The Drouput layer can help the network prevent overfitting, and the activation function of the convolution layer uses leakyrelu. The overall structure of the MC-MGCNN network is shown in Figure 4, and the specific network structure is shown in Table 1.

当采样率改变时,整体波形样本点数与局部波形样本点数均会发生改变,三个通道中卷积层的个数与尺寸可以根据输入数据点数大小进行适当的对比与调整,MC-MGCNN网络的参数通过训练获取,其训练过程如图5所示:When the sampling rate changes, the number of overall waveform sample points and the number of local waveform sample points will change. The number and size of the convolutional layers in the three channels can be appropriately compared and adjusted according to the number of input data points. The MC-MGCNN network The parameters are obtained through training, and the training process is shown in Figure 5:

表1MC-MGCNN网络结构Table 1 MC-MGCNN network structure

步骤S36:利用MC-MGCNN网络对复杂负载池波形进行诊断。Step S36: Use the MC-MGCNN network to diagnose the complex load pool waveform.

以下提供一个算例分析以对本发明方案进行更进一步的介绍:The following provides a calculation example analysis to further introduce the solution of the present invention:

在本算例中,所获数据样本均来自于步骤S1。案例分析选取了11种负载分别包括9种单负载与2种混合类型负载。具体参数如表2所示,其中调光器负载分为小角度(调光角度为60°)与大角度(调光角度为300°)的情况。每种负载采集正常和故障情况下各900组,一共采集到数据样本21600组。In this calculation example, the data samples obtained are all from step S1. The case analysis selected 11 types of loads, including 9 single loads and 2 mixed types of loads. The specific parameters are shown in Table 2, in which the dimmer load is divided into small angle (dimming angle is 60°) and large angle (dimming angle is 300°). Each load collected 900 groups under normal and fault conditions, and a total of 21,600 groups of data samples were collected.

表2实验负载介绍Table 2 Experimental load introduction

电流互感器CPL8100A钳于电表出口处的配电线路,并配合DSOX4024A示波器采集电流信号。首先,进行第一级负载波形分类的阈值讨论,阻性负载波形分类阈值的选定如图7所示,当β0定为0.95时,可以最大程度的分离阻性负载与其他负载的电流波形。当阻性负载波形被分离之后,继续计算Few值来分类调光器负载波形与剩下的几种单负载波形。如图8所示,当β1定为0.38时,调光器负载波形与其他负载波形的界限最为的明显。The current transformer CPL8100A is clamped on the distribution line at the outlet of the electric meter, and is used with the DSOX4024A oscilloscope to collect the current signal. First, discuss the threshold value of the first-level load waveform classification. The selection of the resistive load waveform classification threshold is shown in Figure 7. When β 0 is set to 0.95, the current waveforms of the resistive load and other loads can be separated to the greatest extent. . After the resistive load waveform is separated, continue to calculate the F ew value to classify the dimmer load waveform and the remaining single load waveforms. As shown in Figure 8, when β 1 is set to 0.38, the boundary between the dimmer load waveform and other load waveforms is most obvious.

采用热水壶和白炽灯共1500组样本进行测试,最后的准确率为100%,两者的电流波形都正确的归为阻性负载波形。选取调光器负载的两种角度共1500组波形样本进行测试,最后正确分类1495组,准确率为99.7%,成功的将该负载波形判定为调光器负载波形。为了继续验证负载波形分类的有效性,提取两种组合负载类型(开关电源并联吸尘器和与荧光灯并联白炽灯)进行验证,最后两种负载波形都成功的被归入复杂负载波形池中,准确率为100%。A total of 1,500 sets of samples of hot water kettles and incandescent lamps were used for testing. The final accuracy was 100%. The current waveforms of both were correctly classified as resistive load waveforms. A total of 1,500 sets of waveform samples from two angles of the dimmer load were selected for testing. Finally, 1,495 sets were correctly classified, with an accuracy rate of 99.7%. The load waveform was successfully determined to be the dimmer load waveform. In order to continue to verify the effectiveness of load waveform classification, two combined load types (switching power supply vacuum cleaner in parallel and incandescent lamp in parallel with fluorescent lamp) were extracted for verification. In the end, both load waveforms were successfully classified into the complex load waveform pool, and the accuracy is 100%.

接着,对第二级诊断分类的效果进行验证。由于负载类型的不同,先对阻性与调光器负载波形进行诊断验证,本案例选用XGBoost分类器进行验证,其中阻性负载波形的诊断准确率为100%,调光器负载波形的诊断准确率为99.9%。同时,两者的诊断时间都在33.4ms左右。结果表明,经过分类后的负载波形可以在快速且高准确率的情况下诊断是否发生了电弧故障。Next, the effect of the second-level diagnostic classification is verified. Due to different load types, the resistive and dimmer load waveforms are first diagnosed and verified. In this case, the XGBoost classifier is used for verification. The diagnostic accuracy of the resistive load waveform is 100%, and the diagnosis of the dimmer load waveform is accurate. The rate is 99.9%. At the same time, the diagnosis time of both is around 33.4ms. The results show that the classified load waveform can diagnose whether an arc fault has occurred quickly and with high accuracy.

其次,对用于复杂负载波形池诊断的MC-MGCNN网络进行效果验证,得到如图9所示的混淆矩阵。从混淆矩阵中可以得到,最后的多分类准确率为99.02%,但是如果只考虑分类正常与故障两种状态,最后的准确率可以达到99.9%。本模型能够百分百辨识出各类负载波形的正常情况,但是对于故障情况下,吸尘器并联开关电源组合负载波形有8个样本被误判为吸尘器负载波形,且吸尘器负载波形有3个样本被误判为吸尘器并联开关电源组合负载波形。这是由于组合负载的电弧电流是由两个负载的支路电流相加而成,受到吸尘器负载电弧特性的影响,吸尘器并联开关电源组合负载的电弧电流展示了类三角波的波形,且在零休部位具有较大的毛刺和畸变,从而使得两者波形存在一定的相似性,导致模型无法正确识别出负载的波形类型。最后,该模型的诊断时间在50.1ms左右。Secondly, the effect of the MC-MGCNN network used for complex load waveform pool diagnosis is verified, and the confusion matrix shown in Figure 9 is obtained. It can be obtained from the confusion matrix that the final multi-classification accuracy is 99.02%, but if only the normal and fault classification states are considered, the final accuracy can reach 99.9%. This model can 100% identify the normal conditions of various load waveforms. However, under fault conditions, 8 samples of the vacuum cleaner parallel switching power supply combined load waveform were misjudged as vacuum cleaner load waveforms, and 3 samples of the vacuum cleaner load waveform were misjudged. It was misjudged to be the combined load waveform of a parallel switching power supply of a vacuum cleaner. This is because the arc current of the combined load is the sum of the branch currents of the two loads. It is affected by the arc characteristics of the vacuum cleaner load. The arc current of the combined load of the vacuum cleaner parallel switching power supply shows a waveform similar to a triangle wave, and at zero break The parts have large burrs and distortion, which makes the two waveforms have a certain similarity, causing the model to be unable to correctly identify the waveform type of the load. Finally, the diagnosis time of this model is around 50.1ms.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

以上所述,仅是本发明的较佳实施例而已,并非是对本发明作其它形式的限制,任何熟悉本专业的技术人员可能利用上述揭示的技术内容加以变更或改型为等同变化的等效实施例。但是凡是未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与改型,仍属于本发明技术方案的保护范围。The above are only preferred embodiments of the present invention, and are not intended to limit the present invention in other forms. Any skilled person familiar with the art may make changes or modifications to equivalent changes using the technical contents disclosed above. Example. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the protection scope of the technical solution of the present invention.

本专利不局限于上述最佳实施方式,任何人在本专利的启示下都可以得出其它各种形式的一种低压配网交流串联电弧故障诊断方法,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本专利的涵盖范围。This patent is not limited to the above-mentioned best embodiments. Under the inspiration of this patent, anyone can come up with various other forms of AC series arc fault diagnosis methods for low-voltage distribution networks. Anyone who is within the scope of the patent application of this invention can Equal changes and modifications shall fall within the scope of this patent.

Claims (8)

1. The low-voltage distribution network alternating current series arc fault diagnosis method is characterized in that the load waveform is divided into a resistive load waveform, a dimmer load waveform and a complex type load waveform by utilizing the spectrum amplitude and extremum weighted fuzzy entropy value difference of the normalized current waveform; aiming at the resistive load waveform and the dimmer load waveform, extracting various time-frequency characteristics and performing arc fault diagnosis by using a machine learning classifier; aiming at complex load waveforms, a one-dimensional new data set is constructed by using data random fusion operation, and a multichannel attention mechanism convolutional neural network is trained to finish the identification of arc faults.
2. The method for diagnosing an arc fault in ac series connection of a low voltage distribution network according to claim 1, wherein the method comprises the steps of:
the load waveform is divided into a resistive load waveform, a dimmer load waveform and a complex type load waveform by utilizing the difference of the frequency spectrum amplitude and the extremum weighted fuzzy entropy value of the normalized current waveform, and the method specifically comprises the following steps:
collecting alternating current signals X (i) of two periods at the outlet of the ammeter at a certain sampling rate, and carrying out normalization processing according to a formula (1);
wherein X is L Is normalized toWaveform sequence, n is the number of sampling points of two periods, X max 、X min Respectively a maximum value and a minimum value in the two periodic current signals;
acquiring normalized waveform, calculating fundamental wave amplitude fc by Fourier transform, and judging if fc is larger than beta 0 Then the waveform is a resistive load; wherein beta is 0 Is the threshold value of the classified resistive load waveform, beta 0 =0.95;
If the waveform is not the resistive load waveform, the extremum weighted fuzzy entropy F is calculated ew The value, judge whether this load waveform is dimmer load waveform, the concrete calculation steps are as follows:
1) Calculating a difference sequence of two-period current waveform samples according to the formula (2);
X(n)=abs(X L (i+1)-X L (i)),i=1,2,3···n-1 (2)
wherein X (n) is the obtained difference sequence, and abs ()'s is the absolute value operation;
2) Taking four largest peaks in the difference sequence X (n) and calculating P according to the formula (3) av
Wherein M (1), M (2), M (3), M (4) are respectively four maximum peaks;
3) Calculating a fuzzy entropy value FE;
4) To calculate P av Obtaining extremum weighted fuzzy entropy F by dividing FE value ew A value represented by formula (4);
if F is calculated ew A value less than beta 1 The waveform is the current waveform of the dimmer load, beta 1 To be able to separate the classification threshold of the dimmer load waveform, and beta 1 =0.38;
If fc is less than beta 0 And F ew Greater than beta 1 The load waveform is classified into a complex load waveform pool.
3. The method for diagnosing an arc fault in ac series connection in a low voltage distribution network according to claim 2, wherein the method comprises the steps of:
the specific steps for calculating the fuzzy entropy value are as follows:
the current waveform { X (i): 1< i < N } with length N is constructed into m-dimensional vector according to the formula (5), namely
Y i m ={X(i),X(i+1),···,X(i+m-1)}-X 0 (i) (5)
Wherein N is the number of samples, wherein i is more than or equal to 1 and less than or equal to N-m+1;
obtaining sample Y according to (6) i m And sample Y j m Similarity is D ij m
Wherein d ij m The maximum absolute difference value is 1-j, j-N-m and i is not equal to j;
defining a function according to (7)
In the formula, the similarity tolerance r and the membership function
Construction of an m+1-dimensional vector according to (8)
Obtaining fuzzy entropy with sampling point N according to (9)
FE(m,n,r,N)=lnφ m (n,r)-lnφ m+1 (n,r) (9)。
4. A method for diagnosing an ac series arc fault in a low voltage distribution network according to claim 3, wherein:
five time-frequency domain features, respectively pulse factor C, are extracted for resistive and dimmer load waveforms if Margin factor C mf Kurtosis C k Relative content of fundamental wave F 1 Third harmonic relative content ratio F 3 The formula is as follows:
wherein X is L For current sample data, n is the signal length, fc is the amplitude of the fundamental component after fourier transform, 3rdhc is the amplitude of the third harmonic component after fourier transform, 5rdhc is the amplitude of the fifth harmonic component after fourier transform,
to make arc fault diagnosis using a machine learning classifier.
5. The method for diagnosing an arc fault in ac series connection in a low voltage distribution network according to claim 4, wherein the method comprises the steps of:
aiming at complex load waveforms, constructing a one-dimensional new data set by using data random fusion operation and training a multichannel attention mechanism convolutional neural network to finish the identification of arc faults;
the specific steps of constructing a one-dimensional new data set are as follows:
1) To preserve the utilization of the overall information, two data point samples of the cycle are selected as an overall waveform;
2) Dividing local waveform information, dividing an integral sample into four parts, wherein each part comprises half-period waveform data, and each part of local waveform comprises a wave crest/wave trough or zero rest part;
3) And constructing one-dimensional new data, randomly selecting two pieces of local information, splicing the two pieces of local information on the whole waveform, and constructing the one-dimensional new data.
6. The method for diagnosing an arc fault in ac series connection of a low voltage distribution network according to claim 1, wherein the method comprises the steps of:
the multichannel attention mechanism convolutional neural network is a multichannel convolutional neural network integrating a multi-head attention mechanism and GRU units:
three data extraction channels are constructed by the network, and different structural parameters are respectively set for extracting features of data with different lengths so as to ensure that each data segment can extract an optimal feature group; the first channel is used for extracting features of the whole waveform of two periods, a multi-head attention module is embedded in the beginning part of the network, noise and redundant data in the data are eliminated by using an attention mechanism, and the features are focused on, so that the robustness of the model is improved.
7. The method for diagnosing an arc fault in ac series connection in a low voltage distribution network according to claim 6, wherein the method comprises the steps of:
the calculation process of the multi-head attention mechanism is as follows:
1) Dividing an input current waveform into a plurality of sections in parallel;
2) Generating three corresponding matrixes for each section of input data, wherein the three corresponding matrixes are respectively a query matrix, a key matrix and a value matrix;
3) Obtaining the weight fraction of the data by utilizing the dot product of the query matrix and the key matrix;
4) The weight fraction is normalized by softmax and multiplied by a value matrix to obtain the final data with weight attention;
Q=AW Q (16)
K=AW K (17)
V=AW V (18)
wherein Q, K, V represent a query matrix, a key matrix and a value matrix, d, respectively k The dimensions of Q, K, V, A being the input matrix, W Q 、W K 、W V Is a coefficient matrix obtained by performing linear transformation on an input matrix;
5) Combining the learned multiple sections of attention to obtain global attention;
after passing through the attention layer, extracting features through the convolution layer, the pooling layer, the BN layer and the output layer, and connecting a GRU unit at the same time to prevent fitting in training; finally, a characteristic vector is output through a BN layer and a Droutput layer and through a relu activation function;
the second and third channels are used for extracting features from the half-period local waveform segments; directly passing through a convolution layer, a pooling layer, a BN layer and a Droutput layer, connecting with a GRU unit, and finally outputting a feature vector through a relu activation function; the Droutput layer is used to help the network prevent overfitting, and the activation function of the convolution layer uses the leakyrelu.
8. The method for diagnosing an arc fault in ac series connection in a low voltage distribution network according to claim 7, wherein the method comprises the steps of: when the sampling rate is changed, the number of the integral waveform sample points and the number of the local waveform sample points are changed, the number and the size of the convolution layers in the three channels are compared and adjusted according to the number of the input data points, and the parameters of the network are obtained through training.
CN202310904639.1A 2023-07-24 2023-07-24 A method for diagnosing AC series arc fault in low-voltage distribution network Pending CN116908618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310904639.1A CN116908618A (en) 2023-07-24 2023-07-24 A method for diagnosing AC series arc fault in low-voltage distribution network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310904639.1A CN116908618A (en) 2023-07-24 2023-07-24 A method for diagnosing AC series arc fault in low-voltage distribution network

Publications (1)

Publication Number Publication Date
CN116908618A true CN116908618A (en) 2023-10-20

Family

ID=88357866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310904639.1A Pending CN116908618A (en) 2023-07-24 2023-07-24 A method for diagnosing AC series arc fault in low-voltage distribution network

Country Status (1)

Country Link
CN (1) CN116908618A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118376882A (en) * 2024-06-20 2024-07-23 华中科技大学 Secondary fault identification method for distribution network based on SVM-ECOC identification of sub-low frequency characteristic energy
CN118897959A (en) * 2024-10-08 2024-11-05 中电装备山东电子有限公司 A low voltage series arc fault identification and monitoring method for power collection terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118376882A (en) * 2024-06-20 2024-07-23 华中科技大学 Secondary fault identification method for distribution network based on SVM-ECOC identification of sub-low frequency characteristic energy
CN118897959A (en) * 2024-10-08 2024-11-05 中电装备山东电子有限公司 A low voltage series arc fault identification and monitoring method for power collection terminal
CN118897959B (en) * 2024-10-08 2024-12-27 中电装备山东电子有限公司 Low-voltage series arc fault identification monitoring method for power acquisition terminal

Similar Documents

Publication Publication Date Title
CN116908618A (en) A method for diagnosing AC series arc fault in low-voltage distribution network
CN111738364B (en) Electricity stealing detection method based on combination of user load and electricity consumption parameter
CN110108992B (en) Method and system for cable partial discharge fault identification based on improved random forest algorithm
CN106017879A (en) Universal circuit breaker mechanical fault diagnosis method based on feature fusion of vibration and sound signals
CN114970774A (en) Intelligent transformer fault prediction method and device
CN110244205A (en) A Partial Discharge Recognition Method of Cable Accessories Based on Convolutional Neural Network under Small Data Amount
CN112085111B (en) Load identification method and device
CN114325256A (en) A method, system, device and storage medium for partial discharge identification of power equipment
CN110543921A (en) A method for early fault identification of cables based on waveform learning
CN116298725A (en) Fault arc detection method, system and storage medium
CN110068776B (en) Open-circuit fault diagnosis method of three-level inverter based on optimized support vector machine
CN110726898A (en) Power distribution network fault type identification method
CN111898446A (en) Single-phase earth fault studying and judging method based on multi-algorithm normalization analysis
Tian et al. Deepfake Algorithm Recognition through Multi-model Fusion Based On Manifold Measure.
CN115733673A (en) A Data Anomaly Detection Method Based on Multi-Scale Residual Classifier
CN114021424B (en) PCA-CNN-LVQ-based voltage sag source identification method
CN110808067A (en) Low signal-to-noise ratio sound event detection method based on binary multiband energy distribution
CN112633368B (en) Defect detection system and method for flat vibration motor based on improved multi-granularity cascade forest
CN115498956B (en) A method for diagnosing series arc faults in photovoltaic arrays
CN118094306A (en) A method for detecting the thickness of scale layer on balancing electrodes based on multidimensional features and deep learning
CN117746095A (en) Overhead transmission line fault and interference identification and classification system and method
CN111027587A (en) Method and system for calibrating attributes of AC/DC network operation data
CN117148034A (en) Power distribution network fault line selection method based on empirical wavelet transformation and graph annotation force network
CN116628620A (en) Non-invasive load identification calculation method
CN113884822A (en) A Classification and Identification Method of Partial Discharge UHF Signals

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