CN116609612A - A method and system for multi-harmonic source identification of distribution network - Google Patents

A method and system for multi-harmonic source identification of distribution network Download PDF

Info

Publication number
CN116609612A
CN116609612A CN202310573380.7A CN202310573380A CN116609612A CN 116609612 A CN116609612 A CN 116609612A CN 202310573380 A CN202310573380 A CN 202310573380A CN 116609612 A CN116609612 A CN 116609612A
Authority
CN
China
Prior art keywords
harmonic
mutual information
distribution
value
harmonic voltage
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
CN202310573380.7A
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.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau Co Ltd
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 Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202310573380.7A priority Critical patent/CN116609612A/en
Publication of CN116609612A publication Critical patent/CN116609612A/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/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
    • 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
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E40/00Technologies for an efficient electrical power generation, transmission or distribution
    • Y02E40/40Arrangements for reducing harmonics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

本发明提供一种配电网多谐波源识别方法,包括获取多个谐波源在PCC节点所叠加产生的谐波电压信号,并测量出谐波电压值;分离谐波电压信号中的快速变化分量和缓慢变化分量,并基于快速变化分量,估计出PCC节点注入的谐波电流值;将所得到的谐波电流值及谐波电压值导入预先训练好的互信息深度学习模型中,得到各谐波源发射的谐波电流与PCC节点谐波电压之间的互信息值,并根据所得到的各互信息值,识别出主谐波源。实施本发明,能够解决现有方法难以对复杂配电网中多谐波源进行有效识别和定位的问题。

The invention provides a method for identifying multi-harmonic sources in a distribution network, which includes acquiring harmonic voltage signals generated by superposition of multiple harmonic sources at PCC nodes, and measuring the harmonic voltage values; separating the harmonic voltage signals from the fast The changing component and slowly changing component, and based on the fast changing component, estimate the harmonic current value injected by the PCC node; import the obtained harmonic current value and harmonic voltage value into the pre-trained mutual information deep learning model, and get The mutual information value between the harmonic current emitted by each harmonic source and the harmonic voltage of the PCC node, and according to the obtained mutual information values, the main harmonic source is identified. The implementation of the invention can solve the problem that the existing methods are difficult to effectively identify and locate multi-harmonic sources in complex distribution networks.

Description

一种配电网多谐波源识别方法及系统A method and system for multi-harmonic source identification of distribution network

技术领域technical field

本发明涉及电力系统检测技术领域,尤其涉及一种配电网多谐波源识别方法及系统。The invention relates to the technical field of power system detection, in particular to a method and system for identifying multi-harmonic sources of a distribution network.

背景技术Background technique

近年来,新型电力系统建设不断推进,电网面对的挑战更加复杂多元,特别是“双高”特征导致电能质量问题叠加、特征更加复杂化,对电能质量提出了更高的要求。随着分布式发电与电力电子设备高密度接入电网,谐波源数目激增,运行状态多变,使得谐波污染日益严重。因此,谐波源定位与识别对于明确谐波污染源头具有重要的作用,是谐波责任划分和解决经济纠纷的前提。In recent years, the construction of new power systems has continued to advance, and the challenges faced by the power grid have become more complex and diverse. In particular, the "double high" feature has led to the superposition of power quality problems and more complex characteristics, which put forward higher requirements for power quality. With the high-density connection of distributed power generation and power electronic equipment to the grid, the number of harmonic sources has increased sharply, and the operating status has changed, making harmonic pollution increasingly serious. Therefore, the location and identification of harmonic sources plays an important role in clarifying the source of harmonic pollution, and is the prerequisite for the division of harmonic responsibilities and the resolution of economic disputes.

传统的谐波源识别多从电力学角度出发,基于机理模型,主要采用等效电路模型、基于谐波状态估计及基于谐波阻抗的方法等。但是,这些方法受制因素较多,难以对复杂配电网中多谐波源进行有效识别和定位。The traditional harmonic source identification mostly starts from the electrical point of view, based on the mechanism model, mainly using the equivalent circuit model, based on harmonic state estimation and harmonic impedance based methods, etc. However, these methods are limited by many factors, and it is difficult to effectively identify and locate multi-harmonic sources in complex distribution networks.

因此,亟需一种新的配电网多谐波源识别方法,能够解决现有方法难以对复杂配电网中多谐波源进行有效识别和定位的问题。Therefore, there is an urgent need for a new multi-harmonic source identification method for distribution networks, which can solve the problem that existing methods are difficult to effectively identify and locate multi-harmonic sources in complex distribution networks.

发明内容Contents of the invention

本发明实施例所要解决的技术问题在于,提供一种配电网多谐波源识别方法及系统,能够解决现有方法难以对复杂配电网中多谐波源进行有效识别和定位的问题。The technical problem to be solved by the embodiments of the present invention is to provide a method and system for identifying multi-harmonic sources in a distribution network, which can solve the problem that existing methods are difficult to effectively identify and locate multi-harmonic sources in complex distribution networks.

为了解决上述技术问题,本发明实施例提供了一种配电网多谐波源识别方法,所述方法包括以下步骤:In order to solve the above technical problems, an embodiment of the present invention provides a method for identifying a multi-harmonic source in a distribution network, the method includes the following steps:

获取多个谐波源在PCC节点所叠加产生的谐波电压信号,并测量出谐波电压值;Obtain the harmonic voltage signal generated by the superposition of multiple harmonic sources at the PCC node, and measure the harmonic voltage value;

分离所述谐波电压信号中的快速变化分量和缓慢变化分量,并基于所述快速变化分量,估计出PCC节点注入的谐波电流值;separating fast-changing components and slow-changing components in the harmonic voltage signal, and estimating a harmonic current value injected into the PCC node based on the fast-changing components;

将所得到的谐波电流值及所述谐波电压值导入预先训练好的互信息深度学习模型中,得到各谐波源发射的谐波电流与PCC节点谐波电压之间的互信息值,并根据所得到的各互信息值,识别出主谐波源。Import the obtained harmonic current value and the harmonic voltage value into the pre-trained mutual information deep learning model to obtain the mutual information value between the harmonic current emitted by each harmonic source and the harmonic voltage of the PCC node, And according to the obtained mutual information values, the main harmonic source is identified.

其中,所述谐波电压信号是通过滤波器来分离出所述快速变化分量和所述缓慢变化分量。Wherein, the harmonic voltage signal is separated by a filter to separate the fast changing component and the slow changing component.

其中,所述PCC节点注入的谐波电流值是通过FastICA算法来实现的;其中,Wherein, the harmonic current value injected by the PCC node is realized by the FastICA algorithm; wherein,

所述FastICA算法包括步骤:数据预处理及建立目标函数进行寻优。The FastICA algorithm includes the steps of: data preprocessing and establishing an objective function for optimization.

其中,所述数据预处理包括去中心化处理和白化处理;其中,Wherein, the data preprocessing includes decentralization processing and whitening processing; wherein,

所述去中心化处理是指将所有的采样信号减去其均值得到一组平均值为零的原始数据:其中,X(ti)为采样信号;The decentralization process refers to subtracting the mean value of all sampled signals to obtain a set of original data with a mean value of zero: Among them, X(t i ) is the sampling signal;

所述白化处理是对采样数据进行去相关的过程,使观测信号X具有单位方差:X=ED-1/2ETX;其中,由n个特征值组成;di对应的特征向量是ci,E=[c1,c2,...cn];所述观测信号X=AS,A为混合矩阵,S为PCC节点注入的谐波电流源。The whitening process is a process of decorrelating the sampled data, so that the observed signal X has unit variance: X=ED -1/2 E T X; where, It consists of n eigenvalues; the eigenvector corresponding to d i is c i , E=[c 1 ,c 2 ,...c n ]; the observed signal X=AS, A is a mixing matrix, and S is a PCC node Injected harmonic current source.

其中,所述建立目标函数进行寻优的过程是找一个方向使得输出wTX(y=wTX)的非高斯性最大;其中,Wherein, the process of establishing an objective function for optimization is to find a direction to maximize the non-Gaussianity of the output w T X (y=w T X); wherein,

非高斯性由负熵的近似值来度量:Ng(Y)={E[g(Y)]-E[g(YGauss)]}2,即求JG(w)=[E{G(wTX)}]2最大值;其中,w是m维变量,表示解混矩阵W的一行;Non-Gaussianity is measured by the approximate value of negative entropy: N g (Y)={E[g(Y)]-E[g(Y Gauss )]} 2 , that is, J G (w)=[E{G( w T X)}] 2 maximum values; wherein, w is an m-dimensional variable, representing a row of the unmixing matrix W;

所述目标函数定义为:根据Kunhn-Tucker条件,转化为无约束的优化问题,使得所述目标函数变换为:F(w)=E[G(wTX)]+C(||w||2-1);其中,所述目标函数的最优解通过牛顿迭代法求取:/> The objective function is defined as: According to the Kunhn-Tucker condition, it is converted into an unconstrained optimization problem, so that the objective function is transformed into: F(w)=E[G(w T X)]+C(||w|| 2-1 ); , the optimal solution of the objective function is obtained by the Newton iterative method: />

其中,所述互信息深度学习模型是基于神经网络构建而成的;其中,Wherein, the mutual information deep learning model is constructed based on a neural network; wherein,

所述神经网络包括输入层、多层隐藏层和输出层;其中,所述输入层接收所述谐波电流值Y和所述谐波电压值X的样本作为输入,隐藏层经过一系列非线性变换后得到输出层的结果Z。The neural network includes an input layer, a multi-layer hidden layer and an output layer; wherein, the input layer receives samples of the harmonic current value Y and the harmonic voltage value X as input, and the hidden layer undergoes a series of nonlinear After transformation, the result Z of the output layer is obtained.

其中,所述神经网络是通过执行以下步骤进行训练得到的,具体包括:Wherein, the neural network is obtained by performing the following steps for training, including:

7.1初始化神经网络参数;7.1 Initialize the neural network parameters;

7.2从联合分布中抽取b个minibatch样本;其中,所述联合分布中抽取的b个minibatch样本记为(x(1),y(1)),...,(x(b),y(b))服从联合概率分布 7.2 Draw b minibatch samples from the joint distribution; wherein, the b minibatch samples drawn from the joint distribution are recorded as (x (1) ,y (1) ),...,(x (b) ,y ( b) ) obey the joint probability distribution

7.3从Y边缘分布中抽取b个样本;其中,所述Y边缘分布中抽取的b个样本记为服从联合概率分布/> 7.3 Draw b samples from the Y marginal distribution; wherein, the b samples drawn from the Y marginal distribution are denoted as obey the joint probability distribution />

7.4评估互信息下界;其中,所述互信息下界计算公式为:7.4 Evaluate the lower bound of mutual information; wherein, the formula for calculating the lower bound of mutual information is:

7.5用EMA修正偏差矫正梯度;其中,所述EMA修正偏差矫正梯度表示为: 7.5 Use EMA to correct the deviation correction gradient; wherein, the EMA correction deviation correction gradient is expressed as:

7.6更新神经网络的参数;其中,所述更新的神经网络的参数为 7.6 update the parameters of the neural network; wherein, the parameters of the updated neural network are

7.7重复步骤7.1~步骤7.6,直至达到收敛条件为止。7.7 Repeat steps 7.1 to 7.6 until the convergence condition is reached.

其中,所述X和Y之间的互信息下界,利用使用对偶形式计算的KL散度进行计算:Wherein, the mutual information lower bound between X and Y is calculated using the KL divergence calculated using the dual form:

其中,T为所有使两个期望有限的定义在X×Y上的函数;且I(X;Y)≥Iθ(X,Y);/>为神经信息量,并通过提到梯度公式为下降来最大化;Among them, T is all functions defined on X×Y that make the two expectations finite; And I(X;Y)≥I θ (X,Y);/> is the amount of neural information, and by referring to the gradient formula as descend to maximize;

其中,所述互信息深度学习模型可以通过公式来表示,其中,/>表示分布P的在给定n个独立同布sample时的经验分布。Wherein, the mutual information deep learning model can pass the formula To represent, among them, /> Represents the empirical distribution of the distribution P when n independent and identically distributed samples are given.

本发明实施例还提供了一种配电网多谐波源识别系统,包括:The embodiment of the present invention also provides a distribution network multi-harmonic source identification system, including:

谐波电压获取单元,用于获取多个谐波源在PCC节点所叠加产生的谐波电压信号,并测量出谐波电压值;The harmonic voltage acquisition unit is used to acquire the harmonic voltage signals generated by the superposition of multiple harmonic sources at the PCC node, and measure the harmonic voltage value;

谐波电流估计单元,用于分离所述谐波电压信号中的快速变化分量和缓慢变化分量,并基于所述快速变化分量,估计出PCC节点注入的谐波电流值;a harmonic current estimating unit, configured to separate fast-changing components and slowly-changing components in the harmonic voltage signal, and estimate the harmonic current value injected into the PCC node based on the fast-changing component;

主谐波源识别单元,用于将所得到的谐波电流值及所述谐波电压值导入预先训练好的互信息深度学习模型中,得到各谐波源发射的谐波电流与PCC节点谐波电压之间的互信息值,并根据所得到的各互信息值,识别出主谐波源。The main harmonic source identification unit is used to import the obtained harmonic current value and the harmonic voltage value into the pre-trained mutual information deep learning model, and obtain the harmonic current emitted by each harmonic source and the PCC node harmonic The mutual information value between wave voltages, and according to the obtained mutual information values, identify the main harmonic source.

实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:

1、本发明只需获取PCC节点谐波电压信号,利用FastICA算法估计谐波电流,并通过互信息深度学习模型进行互信息估计来识别主谐波源,从而使得操作简单,且在系统网络参数未知的情况下可对谐波电流源的位置进行识别,解决了现有方法难以对复杂配电网中多谐波源进行有效识别和定位的问题;1. The present invention only needs to obtain the PCC node harmonic voltage signal, use the FastICA algorithm to estimate the harmonic current, and perform mutual information estimation through the mutual information deep learning model to identify the main harmonic source, so that the operation is simple, and the system network parameters The position of the harmonic current source can be identified when it is unknown, which solves the problem that the existing methods are difficult to effectively identify and locate the multi-harmonic source in the complex distribution network;

2、本发明中的FastICA算法估计谐波电流,不仅收敛速度快、分离效果好、迭代稳定、可进行非高斯独立分量的分离,还能提高谐波电流估计的准确性和可靠性;2. The FastICA algorithm in the present invention estimates the harmonic current, which not only has fast convergence speed, good separation effect, stable iteration, and can separate non-Gaussian independent components, but also improves the accuracy and reliability of harmonic current estimation;

3、本发明中的互信息深度学习模型使得计算简单,可以更好地适应电网中的复杂非线性关系,具有更强的普适性和可靠性。3. The mutual information deep learning model in the present invention makes the calculation simple, can better adapt to the complex nonlinear relationship in the power grid, and has stronger universality and reliability.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,根据这些附图获得其他的附图仍属于本发明的范畴。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, obtaining other drawings based on these drawings still belongs to the scope of the present invention without any creative effort.

图1为本发明实施例提供的一种配电网多谐波源识别方法的流程图;Fig. 1 is a flow chart of a method for identifying a multi-harmonic source in a distribution network provided by an embodiment of the present invention;

图2为本发明实施例提供的一种配电网多谐波源识别方法中神经网络训练的流程图;Fig. 2 is the flow chart of neural network training in a kind of distribution network multi-harmonic source identification method provided by the embodiment of the present invention;

图3为本发明实施例提供的一种配电网多谐波源识别系统的结构示意图。Fig. 3 is a schematic structural diagram of a distribution network multi-harmonic source identification system provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.

发明人发现,非线性负荷接入配电网时,不同的谐波源发射的谐波电流与PCC节点处谐波电压之间并非完全随机、独立,而是存在一定联系,这种联系可以用互信息(MutualInformation,MI)刻画。因此,为了有效提升互信息估计的精确度,发明人提出一种互信息深度学习模型用于配电网多谐波源识别,通过该深度学习模型可以更好地适应电网中的复杂非线性关系,具有更强的普适性和可靠性,且计算简单。The inventor found that when the nonlinear load is connected to the distribution network, the harmonic current emitted by different harmonic sources and the harmonic voltage at the PCC node are not completely random and independent, but there is a certain relationship, which can be used Mutual Information (MutualInformation, MI) characterization. Therefore, in order to effectively improve the accuracy of mutual information estimation, the inventor proposes a mutual information deep learning model for multi-harmonic source identification in distribution networks, through which the deep learning model can better adapt to complex nonlinear relationships in power grids , has stronger universality and reliability, and is simple to calculate.

如图1所示,为本发明实施例中,提供的一种配电网多谐波源识别方法,所述方法包括以下步骤:As shown in Figure 1, in the embodiment of the present invention, a method for identifying a multi-harmonic source in a distribution network is provided, and the method includes the following steps:

步骤S1、获取多个谐波源在PCC节点所叠加产生的谐波电压信号,并测量出谐波电压值;Step S1, obtaining the harmonic voltage signals generated by the superposition of multiple harmonic sources at the PCC node, and measuring the harmonic voltage value;

步骤S2、分离所述谐波电压信号中的快速变化分量和缓慢变化分量,并基于所述快速变化分量,估计出PCC节点注入的谐波电流值;Step S2, separating the fast-changing component and the slow-changing component in the harmonic voltage signal, and estimating the harmonic current value injected into the PCC node based on the fast-changing component;

步骤S3、将所得到的谐波电流值及所述谐波电压值导入预先训练好的互信息深度学习模型中,得到各谐波源发射的谐波电流与PCC节点谐波电压之间的互信息值,并根据所得到的各互信息值,识别出主谐波源。Step S3, import the obtained harmonic current value and the harmonic voltage value into the pre-trained mutual information deep learning model, and obtain the interaction between the harmonic current emitted by each harmonic source and the harmonic voltage of the PCC node. Information value, and according to the obtained mutual information value, identify the main harmonic source.

具体过程为,在步骤S1之前,构建基于神经网络的互信息深度学习模型并进行训练,具体步骤如下:The specific process is, before step S1, construct and train a neural network-based mutual information deep learning model, and the specific steps are as follows:

首先,确定神经网络的结构,包括输入层、多层隐藏层和输出层;其中,输入层接收谐波电流值Y和谐波电压值X的样本作为输入,隐藏层经过一系列非线性变换后得到输出层的结果Z。First, determine the structure of the neural network, including an input layer, a multi-layer hidden layer, and an output layer; where the input layer receives samples of harmonic current value Y and harmonic voltage value X as input, and the hidden layer undergoes a series of nonlinear transformations Get the result Z of the output layer.

其次,如图2所示,对神经网络进行训练,具体为:Secondly, as shown in Figure 2, the neural network is trained, specifically:

(1)初始化神经网络参数;(1) Initialize the neural network parameters;

(2)从联合分布中抽取b个minibatch样本;其中,联合分布中抽取的b个minibatch样本记为(x(1),y(1)),...,(x(b),y(b))服从联合概率分布 (2) Draw b minibatch samples from the joint distribution; where, the b minibatch samples drawn from the joint distribution are recorded as (x (1) ,y (1) ),...,(x (b) ,y ( b) ) obey the joint probability distribution

(3)从Y边缘分布中抽取b个样本;其中,Y边缘分布中抽取的b个样本记为服从联合概率分布/> (3) Draw b samples from the Y marginal distribution; where, the b samples drawn from the Y marginal distribution are denoted as obey the joint probability distribution />

(4)评估互信息下界;其中,互信息下界计算公式为:(4) Evaluate the lower bound of mutual information; where the formula for calculating the lower bound of mutual information is:

(5)用EMA修正偏差矫正梯度;其中,EMA修正偏差矫正梯度表示为: (5) Use EMA to correct the deviation correction gradient; wherein, the EMA correction deviation correction gradient is expressed as:

(6)更新神经网络的参数;其中,更新的神经网络的参数为 (6) update the parameters of the neural network; wherein, the parameters of the updated neural network are

(7)重复步骤(1)~步骤(6),直至达到收敛条件为止,得到训练好的互信息深度学习模型。(7) Steps (1) to (6) are repeated until the convergence condition is reached, and a trained mutual information deep learning model is obtained.

应当说明的是,在神经网络中,X和Y之间的互信息下界,利用使用对偶形式计算的KL散度进行计算:It should be noted that in a neural network, the mutual information lower bound between X and Y is calculated using the KL divergence calculated using the dual form:

其中,T为所有使两个期望有限的定义在X×Y上的函数;且I(X;Y)≥Iθ(X,Y);I(X;Y)=H(X)-H(X|Y),此时X和Y之间的互信息等价于联合概率分布和边缘概率分布乘积的KL散度为/>H是信息熵,H(X|Y)是条件信息熵, Among them, T is all functions defined on X×Y that make the two expectations finite; And I(X; Y)≥I θ (X,Y); I(X; Y)=H(X)-H(X|Y), at this time the mutual information between X and Y is equivalent to the joint probability The KL divergence of the product of the distribution and the marginal probability distribution is /> H is information entropy, H(X|Y) is conditional information entropy,

记为神经信息量,可以用梯度下降来最大化,其中,梯度公式为/> Denoted as the amount of neural information, it can be maximized by gradient descent, where the gradient formula is />

此时,该互信息深度学习模型可以通过公式来表示,其中,/>表示分布P的在给定n个独立同布sample时的经验分布。At this time, the mutual information deep learning model can be obtained by the formula To represent, among them, /> Represents the empirical distribution of the distribution P when n independent and identically distributed samples are given.

在步骤S1中,直接获取多个谐波源在PCC节点所叠加产生的谐波电压信号,并只需测量出谐波电压值X。In step S1, the harmonic voltage signals generated by the superposition of multiple harmonic sources at the PCC node are directly obtained, and only the harmonic voltage value X needs to be measured.

在步骤S2中,首先,使用滤波器来分离出谐波电压信号中的快速变化分量和缓慢变化分量。In step S2, firstly, a filter is used to separate out fast changing components and slow changing components in the harmonic voltage signal.

其次,基于快速变化分量,通过FastICA算法来估计出PCC节点注入的谐波电流值Y,具体如下:Secondly, based on the rapidly changing component, the harmonic current value Y injected by the PCC node is estimated by the FastICA algorithm, as follows:

(1)设定观测信号X表示PCC节点谐波电压;混合矩阵A表示导纳矩阵Z;源信号S表示注入的谐波电流源,估计矩阵Y表示估计的谐波电流值;(1) Set the observed signal X to represent the PCC node harmonic voltage; the mixing matrix A to represent the admittance matrix Z; the source signal S to represent the injected harmonic current source, and the estimation matrix Y to represent the estimated harmonic current value;

(2)通过FastICA算法估计Y值,使其无限逼近谐波电流源,具体包括数据预处理及建立目标函数进行寻优;(2) Estimate the Y value through the FastICA algorithm, making it infinitely close to the harmonic current source, including data preprocessing and establishing an objective function for optimization;

其中,数据预处理包括去中心化处理和白化处理;去中心化处理是指将所有的采样信号减去其均值得到一组平均值为零的原始数据:其中,X(ti)为采样信号;白化处理是对采样数据进行去相关的过程,使观测信号X具有单位方差:X=ED-1/2ETX;其中,/>由n个特征值组成;di对应的特征向量是ci,E=[c1,c2,...cn];观测信号X=AS,A为混合矩阵,S为PCC节点注入的谐波电流源;Among them, data preprocessing includes decentralization processing and whitening processing; decentralization processing refers to subtracting all sampled signals from their mean value to obtain a set of original data with an average value of zero: Among them, X(t i ) is the sampling signal; the whitening process is the process of decorrelating the sampling data, so that the observed signal X has unit variance: X=ED -1/2 E T X; where, /> It consists of n eigenvalues; the eigenvector corresponding to d i is c i , E=[c 1 ,c 2 ,...c n ]; the observed signal X=AS, A is the mixing matrix, and S is the injection of the PCC node Harmonic current source;

其中,建立目标函数进行寻优的过程是找一个方向使得输出wTX(y=wTX)的非高斯性最大;此时,非高斯性由负熵的近似值来度量:Ng(Y)={E[g(Y)]-E[g(YGauss)]}2,即求JG(w)=[E{G(wTX)}]2最大值;其中,w是m维变量,表示解混矩阵W的一行;Among them, the process of establishing the objective function for optimization is to find a direction to maximize the non-Gaussianity of the output w T X (y=w T X); at this time, the non-Gaussianity is measured by the approximate value of negative entropy: N g (Y )={E[g(Y)]-E[g(Y Gauss )]} 2 , that is to find the maximum value of J G (w)=[E{G(w T X)}] 2 ; where, w is m Dimension variable, representing a row of the unmixing matrix W;

定义目标函数为:根据Kunhn-Tucker条件,转化为无约束的优化问题,使得目标函数变换为F(w)=E[G(wTX)]+C(||w||2-1);其中,目标函数的最优解通过牛顿迭代法求取:/> Define the objective function as: According to the Kunhn-Tucker condition, it is transformed into an unconstrained optimization problem, so that the objective function is transformed into F(w)=E[G(w T X)]+C(||w|| 2 -1); among them, the objective function The optimal solution of is obtained by the Newton iteration method: />

在步骤S3中,首先,将谐波电流值Y和谐波电压值X导入已经训练好的互信息深度学习模型中,得到各谐波源发射的谐波电流与PCC节点谐波电压之间的互信息值;其次,根据所得到的各互信息值,识别出主谐波源。在一个例子中,找到互信息值为最大所对应的谐波电流,并基于所找出的谐波电流来确定对应发射的谐波源,即为主谐波源。In step S3, firstly, import the harmonic current value Y and the harmonic voltage value X into the trained mutual information deep learning model to obtain the relationship between the harmonic current emitted by each harmonic source and the harmonic voltage of the PCC node Mutual information value; secondly, according to the obtained mutual information values, identify the main harmonic source. In one example, the harmonic current corresponding to the maximum mutual information value is found, and based on the found harmonic current, the corresponding emitted harmonic source is determined, that is, the main harmonic source.

如图3所示,为本发明实施例中,提供的一种配电网多谐波源识别系统,包括:As shown in Fig. 3, it is a distribution network multi-harmonic source identification system provided in an embodiment of the present invention, including:

谐波电压获取单元110,用于获取多个谐波源在PCC节点所叠加产生的谐波电压信号,并测量出谐波电压值;The harmonic voltage acquisition unit 110 is used to acquire the harmonic voltage signals generated by the superposition of multiple harmonic sources at the PCC node, and measure the harmonic voltage value;

谐波电流估计单元120,用于分离所述谐波电压信号中的快速变化分量和缓慢变化分量,并基于所述快速变化分量,估计出PCC节点注入的谐波电流值;The harmonic current estimating unit 120 is configured to separate the fast-changing component and the slow-changing component in the harmonic voltage signal, and estimate the harmonic current value injected into the PCC node based on the fast-changing component;

主谐波源识别单元130,用于将所得到的谐波电流值及所述谐波电压值导入预先训练好的互信息深度学习模型中,得到各谐波源发射的谐波电流与PCC节点谐波电压之间的互信息值,并根据所得到的各互信息值,识别出主谐波源。The main harmonic source identification unit 130 is used to import the obtained harmonic current value and the harmonic voltage value into the pre-trained mutual information deep learning model to obtain the harmonic current emitted by each harmonic source and the PCC node The mutual information value between the harmonic voltages, and according to the obtained mutual information values, the main harmonic source is identified.

实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:

1、本发明只需获取PCC节点谐波电压信号,利用FastICA算法估计谐波电流,并通过互信息深度学习模型进行互信息估计来识别主谐波源,从而使得操作简单,且在系统网络参数未知的情况下可对谐波电流源的位置进行识别,解决了现有方法难以对复杂配电网中多谐波源进行有效识别和定位的问题;1. The present invention only needs to obtain the PCC node harmonic voltage signal, use the FastICA algorithm to estimate the harmonic current, and perform mutual information estimation through the mutual information deep learning model to identify the main harmonic source, so that the operation is simple, and the system network parameters The position of the harmonic current source can be identified when it is unknown, which solves the problem that the existing methods are difficult to effectively identify and locate the multi-harmonic source in the complex distribution network;

2、本发明中的FastICA算法估计谐波电流,不仅收敛速度快、分离效果好、迭代稳定、可进行非高斯独立分量的分离,还能提高谐波电流估计的准确性和可靠性;2. The FastICA algorithm in the present invention estimates the harmonic current, which not only has fast convergence speed, good separation effect, stable iteration, and can separate non-Gaussian independent components, but also improves the accuracy and reliability of harmonic current estimation;

3、本发明中的互信息深度学习模型使得计算简单,可以更好地适应电网中的复杂非线性关系,具有更强的普适性和可靠性。3. The mutual information deep learning model in the present invention makes the calculation simple, can better adapt to the complex nonlinear relationship in the power grid, and has stronger universality and reliability.

值得注意的是,上述系统实施例中,所包括的各个系统单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above system embodiments, each system unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific functions of each functional unit The names are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage Media such as ROM/RAM, magnetic disk, optical disk, etc.

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (9)

1.一种配电网多谐波源识别方法,其特征在于,所述方法包括以下步骤:1. A multi-harmonic source identification method for distribution network, characterized in that, said method comprises the following steps: 获取多个谐波源在PCC节点所叠加产生的谐波电压信号,并测量出谐波电压值;Obtain the harmonic voltage signal generated by the superposition of multiple harmonic sources at the PCC node, and measure the harmonic voltage value; 分离所述谐波电压信号中的快速变化分量和缓慢变化分量,并基于所述快速变化分量,估计出PCC节点注入的谐波电流值;separating fast-changing components and slow-changing components in the harmonic voltage signal, and estimating a harmonic current value injected into the PCC node based on the fast-changing components; 将所得到的谐波电流值及所述谐波电压值导入预先训练好的互信息深度学习模型中,得到各谐波源发射的谐波电流与PCC节点谐波电压之间的互信息值,并根据所得到的各互信息值,识别出主谐波源。Import the obtained harmonic current value and the harmonic voltage value into the pre-trained mutual information deep learning model to obtain the mutual information value between the harmonic current emitted by each harmonic source and the harmonic voltage of the PCC node, And according to the obtained mutual information values, the main harmonic source is identified. 2.如权利要求1所述的配电网多谐波源识别方法,其特征在于,所述谐波电压信号是通过滤波器来分离出所述快速变化分量和所述缓慢变化分量。2. The method for identifying multi-harmonic sources in a distribution network according to claim 1, wherein the harmonic voltage signal is separated from the fast-changing component and the slow-changing component by a filter. 3.如权利要求1所述的配电网多谐波源识别方法,其特征在于,所述PCC节点注入的谐波电流值是通过FastICA算法来实现的;其中,3. the multi-harmonic source identification method of distribution network as claimed in claim 1, is characterized in that, the harmonic current value that described PCC node injects is realized by FastICA algorithm; Wherein, 所述FastICA算法包括步骤:数据预处理及建立目标函数进行寻优。The FastICA algorithm includes the steps of: data preprocessing and establishing an objective function for optimization. 4.如权利要求3所述的配电网多谐波源识别方法,其特征在于,所述数据预处理包括去中心化处理和白化处理;其中,4. The multi-harmonic source identification method of distribution network as claimed in claim 3, wherein said data preprocessing comprises decentralization and whitening; wherein, 所述去中心化处理是指将所有的采样信号减去其均值得到一组平均值为零的原始数据:其中,X(ti)为采样信号;The decentralization process refers to subtracting the mean value of all sampled signals to obtain a set of original data with a mean value of zero: Among them, X(t i ) is the sampling signal; 所述白化处理是对采样数据进行去相关的过程,使观测信号X具有单位方差:X=ED-1/ 2ETX;其中,由n个特征值组成;di对应的特征向量是ci,E=[c1,c2,...cn];所述观测信号X=AS,A为混合矩阵,S为PCC节点注入的谐波电流源。The whitening process is a process of decorrelating the sampled data, so that the observed signal X has unit variance: X=ED -1/ 2 E T X; wherein, It consists of n eigenvalues; the eigenvector corresponding to d i is c i , E=[c 1 ,c 2 ,...c n ]; the observed signal X=AS, A is a mixing matrix, and S is a PCC node Injected harmonic current source. 5.如权利要求3所述的配电网多谐波源识别方法,其特征在于,所述建立目标函数进行寻优的过程是找一个方向使得输出wTX(y=wTX)的非高斯性最大;其中,5. The multi-harmonic source identification method of distribution network as claimed in claim 3, characterized in that, the process of setting up the objective function for optimization is to find a direction so that output w T X (y=w T X) Non-Gaussian is the largest; among them, 非高斯性由负熵的近似值来度量:Ng(Y)={E[g(Y)]-E[g(YGauss)]}2,即求JG(w)=[E{G(wTX)}]2最大值;其中,w是m维变量,表示解混矩阵W的一行;Non-Gaussianity is measured by the approximate value of negative entropy: N g (Y)={E[g(Y)]-E[g(Y Gauss )]} 2 , that is, J G (w)=[E{G( w T X)}] 2 maximum values; wherein, w is an m-dimensional variable, representing a row of the unmixing matrix W; 所述目标函数定义为:根据Kunhn-Tucker条件,转化为无约束的优化问题,使得所述目标函数变换为:F(w)=E[G(wTX)]+C(||w||2-1);其中,所述目标函数的最优解通过牛顿迭代法求取:/> The objective function is defined as: According to the Kunhn-Tucker condition, it is converted into an unconstrained optimization problem, so that the objective function is transformed into: F(w)=E[G(w T X)]+C(||w|| 2-1 ); , the optimal solution of the objective function is obtained by the Newton iterative method: /> 6.如权利要求5所述的配电网多谐波源识别方法,其特征在于,所述互信息深度学习模型是基于神经网络构建而成的;其中,6. The multi-harmonic source identification method of distribution network as claimed in claim 5, wherein the mutual information deep learning model is constructed based on a neural network; wherein, 所述神经网络包括输入层、多层隐藏层和输出层;其中,所述输入层接收所述谐波电流值Y和所述谐波电压值X的样本作为输入,隐藏层经过一系列非线性变换后得到输出层的结果Z。The neural network includes an input layer, a multi-layer hidden layer and an output layer; wherein, the input layer receives samples of the harmonic current value Y and the harmonic voltage value X as input, and the hidden layer undergoes a series of nonlinear After transformation, the result Z of the output layer is obtained. 7.如权利要求6所述的配电网多谐波源识别方法,其特征在于,所述神经网络是通过执行以下步骤进行训练得到的,具体包括:7. The multi-harmonic source identification method of distribution network as claimed in claim 6, wherein the neural network is trained by performing the following steps, specifically comprising: 7.1初始化神经网络参数;7.1 Initialize the neural network parameters; 7.2从联合分布中抽取b个minibatch样本;其中,所述联合分布中抽取的b个minibatch样本记为(x(1),y(1)),...,(x(b),y(b))服从联合概率分布 7.2 Draw b minibatch samples from the joint distribution; wherein, the b minibatch samples drawn from the joint distribution are recorded as (x (1) ,y (1) ),...,(x (b) ,y ( b) ) obey the joint probability distribution 7.3从Y边缘分布中抽取b个样本;其中,所述Y边缘分布中抽取的b个样本记为服从联合概率分布/> 7.3 Draw b samples from the Y marginal distribution; wherein, the b samples drawn from the Y marginal distribution are denoted as obey the joint probability distribution /> 7.4评估互信息下界;其中,所述互信息下界计算公式为:7.4 Evaluate the lower bound of mutual information; wherein, the formula for calculating the lower bound of mutual information is: 7.5用EMA修正偏差矫正梯度;其中,所述EMA修正偏差矫正梯度表示为: 7.5 Use EMA to correct the deviation correction gradient; wherein, the EMA correction deviation correction gradient is expressed as: 7.6更新神经网络的参数;其中,所述更新的神经网络的参数为 7.6 update the parameters of the neural network; wherein, the parameters of the updated neural network are 7.7重复步骤7.1~步骤7.6,直至达到收敛条件为止。7.7 Repeat steps 7.1 to 7.6 until the convergence condition is reached. 8.如权利要求7所述的配电网多谐波源识别方法,其特征在于,所述X和Y之间的互信息下界,利用使用对偶形式计算的KL散度进行计算:8. the multi-harmonic source identification method of distribution network as claimed in claim 7, is characterized in that, the mutual information lower bound between described X and Y utilizes the KL divergence that uses dual form to calculate: 其中,T为所有使两个期望有限的定义在X×Y上的函数;且I(X;Y)≥Iθ(X,Y);/>为神经信息量,并通过提到梯度公式为下降来最大化;Among them, T is all functions defined on X×Y that make the two expectations finite; And I(X;Y)≥I θ (X,Y);/> is the amount of neural information, and by referring to the gradient formula as descend to maximize; 其中,所述互信息深度学习模型可以通过公式来表示,其中,/>表示分布P的在给定n个独立同布sample时的经验分布。Wherein, the mutual information deep learning model can pass the formula To represent, among them, /> Represents the empirical distribution of the distribution P when n independent and identically distributed samples are given. 9.一种配电网多谐波源识别系统,其特征在于,包括:9. A distribution network multi-harmonic source identification system, characterized in that it comprises: 谐波电压获取单元,用于获取多个谐波源在PCC节点所叠加产生的谐波电压信号,并测量出谐波电压值;The harmonic voltage acquisition unit is used to acquire the harmonic voltage signals generated by the superposition of multiple harmonic sources at the PCC node, and measure the harmonic voltage value; 谐波电流估计单元,用于分离所述谐波电压信号中的快速变化分量和缓慢变化分量,并基于所述快速变化分量,估计出PCC节点注入的谐波电流值;a harmonic current estimating unit, configured to separate fast-changing components and slowly-changing components in the harmonic voltage signal, and estimate the harmonic current value injected into the PCC node based on the fast-changing component; 主谐波源识别单元,用于将所得到的谐波电流值及所述谐波电压值导入预先训练好的互信息深度学习模型中,得到各谐波源发射的谐波电流与PCC节点谐波电压之间的互信息值,并根据所得到的各互信息值,识别出主谐波源。The main harmonic source identification unit is used to import the obtained harmonic current value and the harmonic voltage value into the pre-trained mutual information deep learning model, and obtain the harmonic current emitted by each harmonic source and the PCC node harmonic The mutual information value between wave voltages, and according to the obtained mutual information values, identify the main harmonic source.
CN202310573380.7A 2023-05-19 2023-05-19 A method and system for multi-harmonic source identification of distribution network Pending CN116609612A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310573380.7A CN116609612A (en) 2023-05-19 2023-05-19 A method and system for multi-harmonic source identification of distribution network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310573380.7A CN116609612A (en) 2023-05-19 2023-05-19 A method and system for multi-harmonic source identification of distribution network

Publications (1)

Publication Number Publication Date
CN116609612A true CN116609612A (en) 2023-08-18

Family

ID=87677598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310573380.7A Pending CN116609612A (en) 2023-05-19 2023-05-19 A method and system for multi-harmonic source identification of distribution network

Country Status (1)

Country Link
CN (1) CN116609612A (en)

Similar Documents

Publication Publication Date Title
CN112710969B (en) Open-circuit fault diagnosis method for switching tube of single-phase half-bridge five-level inverter
CN110728360A (en) Micro-energy device energy identification method based on BP neural network
CN110147760B (en) A New Method for Feature Extraction and Recognition of High Efficiency Power Quality Disturbance Image
CN109145516B (en) A fault identification method for analog circuits based on an improved extreme learning machine
CN110659693A (en) K-nearest neighbor classification-based rapid topology identification method and system for power distribution network and readable storage medium
CN104133143B (en) A kind of Guangdong power system diagnostic system and method calculating platform based on Hadoop cloud
CN112327104B (en) Fault detection and positioning method for power distribution network with distributed power supply
CN110796120A (en) Time domain feature-based circuit breaker mechanical fault XGboost diagnosis method
CN104979829B (en) A kind of harmonic current method of estimation based on improved FastICA algorithms
CN113987910A (en) Method and device for identifying load of residents by coupling neural network and dynamic time planning
CN106997373A (en) A kind of link prediction method based on depth confidence network
CN113489514A (en) Power line communication noise identification method and device based on self-organizing mapping neural network
CN109459609B (en) Distributed power supply frequency detection method based on artificial neural network
CN114596302B (en) PCB defect detection method, system, medium, equipment and terminal
CN114841266A (en) A voltage sag identification method based on triple prototype network with small samples
CN116609612A (en) A method and system for multi-harmonic source identification of distribution network
CN114488069A (en) A Radar High Resolution Range Image Recognition Method Based on Graph Neural Network
CN113505465A (en) Fully unsupervised non-invasive electrical appliance state model self-adaptive construction method
CN118330469A (en) Lithium-ion battery health state estimation method based on temporal graph neural network
CN118013288A (en) A radar data enhancement method, system and device based on deep feature transformation
CN117892051A (en) Line graph convolutional neural network-based power grid power flow calculation method after line fault
Zhang et al. A novel analog circuit fault diagnosis approach
Sang et al. Image recognition based on multiscale pooling deep convolution neural networks
CN110309528A (en) A Machine Learning-Based Radar Scheme Design Method
CN116184215A (en) Method, system, device and medium for estimating remaining discharge capacity of electric vehicles

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