[go: up one dir, main page]

CN107966638A - Method and apparatus, storage medium and the processor of correction error - Google Patents

Method and apparatus, storage medium and the processor of correction error Download PDF

Info

Publication number
CN107966638A
CN107966638A CN201711484714.4A CN201711484714A CN107966638A CN 107966638 A CN107966638 A CN 107966638A CN 201711484714 A CN201711484714 A CN 201711484714A CN 107966638 A CN107966638 A CN 107966638A
Authority
CN
China
Prior art keywords
measured value
value
mentioned
radial distance
azimuth angle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711484714.4A
Other languages
Chinese (zh)
Other versions
CN107966638B (en
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.)
State Grid Corp of China SGCC
State Grid Beijing Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Beijing Electric Power 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 State Grid Corp of China SGCC, State Grid Beijing Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201711484714.4A priority Critical patent/CN107966638B/en
Publication of CN107966638A publication Critical patent/CN107966638A/en
Application granted granted Critical
Publication of CN107966638B publication Critical patent/CN107966638B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/12Testing dielectric strength or breakdown voltage ; Testing or monitoring effectiveness or level of insulation, e.g. of a cable or of an apparatus, for example using partial discharge measurements; Electrostatic testing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/005Calibrating; Standards or reference devices, e.g. voltage or resistance standards, "golden" references

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种校正误差的方法和装置、存储介质及处理器。其中,该方法包括:获取定位局部放电源的测量值,以及上述测量值的径向距离和方位角度;使用第一模型对上述测量值的径向距离和方位角度进行分析,得到定位上述局部放电源的误差值,其中,上述第一模型为使用多组数据通过机器学习训练得到的,上述多组数据中的每组数据均包括:上述测量值的径向距离和方位角度、上述误差值;依据上述误差值对上述测量值进行校正。本发明解决了现有技术中无法对局部放电定位的误差进行校正,导致时延估计的精度较低的技术问题。

The invention discloses a method and device for correcting errors, a storage medium and a processor. Among them, the method includes: obtaining the measured value for locating the partial discharge source, and the radial distance and azimuth angle of the above measured value; using the first model to analyze the radial distance and azimuth angle of the above measured value, and obtaining the The error value of the power supply, wherein the above-mentioned first model is obtained by using multiple sets of data through machine learning training, and each set of data in the above-mentioned multiple sets of data includes: the radial distance and azimuth angle of the above-mentioned measured value, and the above-mentioned error value; The above-mentioned measured value is corrected according to the above-mentioned error value. The invention solves the technical problem in the prior art that the error of partial discharge location cannot be corrected, resulting in low accuracy of time delay estimation.

Description

校正误差的方法和装置、存储介质及处理器Error correction method and device, storage medium and processor

技术领域technical field

本发明涉及电力故障处理领域,具体而言,涉及一种校正误差的方法和装置、存储介质及处理器。The invention relates to the field of power failure processing, in particular to a method and device for correcting errors, a storage medium and a processor.

背景技术Background technique

局部放电(Partial Discharge)是电力设备绝缘性能劣化的表现形式,又是绝缘性能进一步劣化的原因。对局部放电信号进行监测是及时发现设备绝缘缺陷,预防绝缘击穿故障的重要手段。特高频电磁波定位法因其具有全站局放定位、灵敏度高且适合在线监测的特点,成为了最有发展潜力的全站局放定位方法。Partial discharge (Partial Discharge) is a manifestation of the deterioration of the insulation performance of power equipment, and it is also the cause of further deterioration of the insulation performance. Monitoring partial discharge signals is an important means to discover equipment insulation defects in time and prevent insulation breakdown failures. The UHF electromagnetic wave positioning method has become the most potential full-station partial discharge positioning method because of its characteristics of total station partial discharge positioning, high sensitivity and suitable for online monitoring.

近些年,UHF传感器阵列的局放定位方法(简称UHF法)引起了国内外学者的广泛研究,研究结果表明,时延估计是UHF法进行局放定位的关键,现行的主要的时延估计算法有阈值法、相关估计法、及能量累积法。但是,UHF法因自身的局限性而产生定位误差,进行局放定位的精度较低。实验发现,定位误差的大小都具有随着局放源距离的增加而增加的特点,且定位误差的增加与局放源距离的增加呈非线性关系。因此,需要对特高频局部放电定位误差进行校正,以提高时延估计的精度。In recent years, the partial discharge positioning method of UHF sensor array (abbreviated as UHF method) has aroused extensive research by scholars at home and abroad. The research results show that time delay estimation is the key to UHF method for partial discharge positioning. Algorithms include threshold method, correlation estimation method, and energy accumulation method. However, the UHF method produces positioning errors due to its own limitations, and the accuracy of PD positioning is low. The experiment found that the size of the positioning error has the characteristics of increasing with the increase of the distance from the PD source, and the increase of the positioning error has a nonlinear relationship with the increase of the distance from the PD source. Therefore, it is necessary to correct the UHF partial discharge location error to improve the accuracy of time delay estimation.

但是,目前提高时延估计精度的方法,一是硬件上采用性能更好的天线阵列和采样率更高的示波器,二是从软件上改进时延估计的算法。硬件性能上的提升无疑会大大增加产品的费用,性价比低,学者们通常从改进软件上入手,目前常用的时延估计算法有阈值法、广义相关法和能量累积法。阈值法和能量累积法对信号的信噪比要求较高;相关估计法要求信号与噪声、噪声与噪声互不相关,对于非平稳信号的时延估计能力较差,改进的相关估计法即广义加权相关估计法,该算法需要事先知道噪声信号的统计先验知识,受噪声信号的影响仍然较大。然而变电站现场电磁干扰源众多,采集到的电磁波信号的信噪比不高,降噪算法很难消除噪声干扰,现有的时延估计算法对噪声信号较为敏感,因而导致时延估计精度不高。However, the current method to improve the accuracy of time delay estimation is to use an antenna array with better performance and an oscilloscope with a higher sampling rate in hardware, and to improve the time delay estimation algorithm in software. The improvement of hardware performance will undoubtedly greatly increase the cost of the product, and the cost performance is low. Scholars usually start with improving the software. At present, the commonly used delay estimation algorithms include threshold method, generalized correlation method and energy accumulation method. The threshold method and the energy accumulation method have higher requirements on the signal-to-noise ratio of the signal; the correlation estimation method requires that the signal and noise, noise and noise are not correlated with each other, and the time delay estimation ability for non-stationary signals is poor. The improved correlation estimation method is the generalized Weighted correlation estimation method, this algorithm needs to know the statistical prior knowledge of the noise signal in advance, and it is still greatly affected by the noise signal. However, there are many sources of electromagnetic interference on the substation site, and the signal-to-noise ratio of the collected electromagnetic wave signal is not high. It is difficult for the noise reduction algorithm to eliminate the noise interference. The existing delay estimation algorithm is more sensitive to the noise signal, which leads to the low accuracy of the delay estimation. .

针对上述现有技术中无法对局部放电定位的误差进行校正,导致时延估计的精度较低的问题,目前尚未提出有效的解决方案。Aiming at the above-mentioned problem in the prior art that errors in partial discharge positioning cannot be corrected, resulting in low accuracy of time delay estimation, no effective solution has been proposed so far.

发明内容Contents of the invention

本发明实施例提供了一种校正误差的方法和装置、存储介质及处理器,以至少解决现有技术中无法对局部放电定位的误差进行校正,导致时延估计的精度较低的技术问题。Embodiments of the present invention provide a method and device for correcting errors, a storage medium, and a processor, so as to at least solve the technical problem in the prior art that errors in partial discharge positioning cannot be corrected, resulting in low accuracy of time delay estimation.

根据本发明实施例的一个方面,提供了一种校正误差的方法,包括:获取定位局部放电源的测量值,以及上述测量值的径向距离和方位角度;使用第一模型对上述测量值的径向距离和方位角度进行分析,得到定位上述局部放电源的误差值,其中,上述第一模型为使用多组数据通过机器学习训练得到的,上述多组数据中的每组数据均包括:上述测量值的径向距离和方位角度、上述误差值;依据上述误差值对上述测量值进行校正。According to an aspect of an embodiment of the present invention, there is provided a method for correcting errors, including: acquiring measured values for locating a partial discharge source, and the radial distance and azimuth angle of the measured values; Analyze the radial distance and azimuth angle to obtain the error value for locating the above-mentioned partial discharge source, wherein the above-mentioned first model is obtained by using multiple sets of data through machine learning training, and each set of data in the above-mentioned multiple sets of data includes: the above-mentioned The radial distance and azimuth angle of the measured value, the above-mentioned error value; the above-mentioned measured value is corrected according to the above-mentioned error value.

进一步地,获取定位局部放电源的测量值,以及上述测量值的径向距离和方位角度包括:确定局部放电模拟装置中第一传感器和第二传感器之间的至少一个测量点;通过定位上述至少一个测量点的坐标位置,得到上述局部放电源的测量值,其中,上述测量值至少包括:径向距离和方位角度。Further, obtaining the measured value for locating the partial discharge source, and the radial distance and azimuth angle of the measured value include: determining at least one measuring point between the first sensor and the second sensor in the partial discharge simulation device; The coordinate position of a measurement point is used to obtain the measured value of the partial discharge source, wherein the measured value at least includes: radial distance and azimuth angle.

进一步地,至少通过如下方式确定上述第一模型:基于BP神经网络,确定上述误差值与上述测量值的径向距离和方位角度的关系公式:其中,△R为上述误差值,r为上述测量值的径向距离,θ为上述测量值的方位角度;将上述关系公式作为上述第一模型。Further, the above-mentioned first model is determined at least in the following manner: Based on the BP neural network, the relationship formula between the above-mentioned error value and the radial distance and azimuth angle of the above-mentioned measured value is determined: Wherein, ΔR is the above-mentioned error value, r is the radial distance of the above-mentioned measured value, and θ is the azimuth angle of the above-mentioned measured value; the above-mentioned relational formula is used as the above-mentioned first model.

进一步地,依据上述误差值对上述测量值进行校正包括:依据上述误差值确定上述测量值的补偿函数,其中,上述误差值根据上述测量值与预定标准值确定,上述补偿函数通过如下公式计算得到:r′为上述预定标准值的径向距离;θ′为上述预定标准值的方位角度;上述补偿函数至少包括:上述测量值的径向距离的补偿函数,上述测量值的方位角度的补偿函数;△r=k1(r,θ)为上述测量值的径向距离的补偿函数;△θ=k2(r,θ)为上述测量值的方位角度的补偿函数,k1和k2为常数;采用上述补偿函数对上述测量值进行校正。Further, correcting the above-mentioned measurement value according to the above-mentioned error value includes: determining the compensation function of the above-mentioned measurement value according to the above-mentioned error value, wherein the above-mentioned error value is determined according to the above-mentioned measurement value and a predetermined standard value, and the above-mentioned compensation function is calculated by the following formula : r' is the radial distance of the above-mentioned predetermined standard value; θ' is the azimuth angle of the above-mentioned predetermined standard value; the above-mentioned compensation function at least includes: a compensation function of the radial distance of the above-mentioned measured value, and a compensation function of the azimuth angle of the above-mentioned measured value; △r=k 1 (r, θ) is the compensation function of the radial distance of the above measured value; △θ=k 2 (r, θ) is the compensation function of the azimuth angle of the above measured value, k 1 and k 2 are constants ; Use the above compensation function to correct the above measured value.

根据本发明实施例的另一方面,还提供了一种校正误差的装置,包括:获取模块,用于获取定位局部放电源的测量值,以及上述测量值的径向距离和方位角度;分析模块,用于使用第一模型对上述测量值的径向距离和方位角度进行分析,得到定位上述局部放电源的误差值,其中,上述第一模型为使用多组数据通过机器学习训练得到的,上述多组数据中的每组数据均包括:上述测量值的径向距离和方位角度、上述误差值;校正模块,用于依据上述误差值对上述测量值进行校正。According to another aspect of the embodiments of the present invention, there is also provided a device for correcting errors, including: an acquisition module, used to acquire the measured value for locating the partial discharge source, and the radial distance and azimuth angle of the measured value; an analysis module , for using the first model to analyze the radial distance and azimuth angle of the above-mentioned measurement value to obtain the error value for locating the above-mentioned partial discharge source, wherein the above-mentioned first model is obtained by using multiple sets of data through machine learning training, and the above-mentioned Each set of data in the multiple sets of data includes: the radial distance and azimuth angle of the above-mentioned measured value, and the above-mentioned error value; a correction module is used to correct the above-mentioned measured value according to the above-mentioned error value.

进一步地,上述获取模块包括:确定子模块,用于确定局部放电模拟装置中第一传感器和第二传感器之间的至少一个测量点;定位子模块,用于通过定位上述至少一个测量点的坐标位置,得到上述局部放电源的测量值,其中,上述测量值至少包括:径向距离和方位角度。Further, the acquisition module includes: a determination submodule, used to determine at least one measurement point between the first sensor and the second sensor in the partial discharge simulation device; a positioning submodule, used to locate the coordinates of the above at least one measurement point position, to obtain the measured value of the partial discharge source, wherein the measured value at least includes: radial distance and azimuth angle.

进一步地,至少通过如下模块确定上述第一模型:第一确定模块,用于基于BP神经网络,确定上述误差值与上述测量值的径向距离和方位角度的关系公式:其中,△R为上述误差值,r为上述测量值的径向距离,θ为上述测量值的方位角度;第二确定模块,用于将上述关系公式作为上述第一模型。Further, at least the above-mentioned first model is determined by the following module: the first determination module is used to determine the relationship formula between the above-mentioned error value and the radial distance and azimuth angle of the above-mentioned measurement value based on the BP neural network: Wherein, ΔR is the above-mentioned error value, r is the radial distance of the above-mentioned measurement value, and θ is the azimuth angle of the above-mentioned measurement value; the second determination module is used to use the above-mentioned relational formula as the above-mentioned first model.

进一步地,上述校正模块包括:补偿确定子模块,用于依据上述误差值确定上述测量值的补偿函数,其中,上述误差值根据上述测量值与预定标准值确定,上述补偿函数通过如下公式计算得到:r′为上述预定标准值的径向距离;θ′为上述预定标准值的方位角度;上述补偿函数至少包括:上述测量值的径向距离的补偿函数,上述测量值的方位角度的补偿函数;△r=k1(r,θ)为上述测量值的径向距离的补偿函数;△θ=k2(r,θ)为上述测量值的方位角度的补偿函数,k1和k2为常数;校正子模块,用于采用上述补偿函数对上述测量值进行校正。Further, the above-mentioned correction module includes: a compensation determination sub-module for determining a compensation function of the above-mentioned measurement value according to the above-mentioned error value, wherein the above-mentioned error value is determined according to the above-mentioned measurement value and a predetermined standard value, and the above-mentioned compensation function is calculated by the following formula : r' is the radial distance of the above-mentioned predetermined standard value; θ' is the azimuth angle of the above-mentioned predetermined standard value; the above-mentioned compensation function at least includes: a compensation function of the radial distance of the above-mentioned measured value, and a compensation function of the azimuth angle of the above-mentioned measured value; △r=k 1 (r, θ) is the compensation function of the radial distance of the above measured value; △θ=k 2 (r, θ) is the compensation function of the azimuth angle of the above measured value, k 1 and k 2 are constants ; A calibration sub-module, configured to correct the above-mentioned measurement value by using the above-mentioned compensation function.

根据本发明实施例的另一方面,还提供了一种存储介质,上述存储介质包括存储的程序,其中,上述程序执行任意一项上述的校正误差的方法。According to another aspect of the embodiments of the present invention, there is also provided a storage medium, where the above storage medium includes a stored program, wherein the above program executes any one of the above methods for correcting errors.

根据本发明实施例的又一方面,还提供了一种处理器,上述处理器用于运行程序,其中,上述程序运行时执行任意一项上述的校正误差的方法。According to still another aspect of the embodiments of the present invention, there is also provided a processor, the above-mentioned processor is used for running a program, wherein, when the above-mentioned program is running, any one of the above-mentioned methods for correcting errors is executed.

在本发明实施例中,通过获取定位局部放电源的测量值,以及上述测量值的径向距离和方位角度;使用第一模型对上述测量值的径向距离和方位角度进行分析,得到定位上述局部放电源的误差值,其中,上述第一模型为使用多组数据通过机器学习训练得到的,上述多组数据中的每组数据均包括:上述测量值的径向距离和方位角度、上述误差值;依据上述误差值对上述测量值进行校正,达到了有效对局部放电定位的误差进行校正的目的,从而实现了提高时延估计的精度的技术效果,进而解决了现有技术中无法对局部放电定位的误差进行校正,导致时延估计的精度较低的技术问题。In the embodiment of the present invention, by obtaining the measured value of locating the partial discharge source, and the radial distance and azimuth angle of the above measured value; using the first model to analyze the radial distance and azimuth angle of the above measured value, the above-mentioned The error value of the partial discharge source, wherein the above-mentioned first model is obtained by using multiple sets of data through machine learning training, and each set of data in the above-mentioned multiple sets of data includes: the radial distance and azimuth angle of the above-mentioned measured value, the above-mentioned error value; the above-mentioned measurement value is corrected according to the above-mentioned error value, and the purpose of effectively correcting the error of partial discharge location is achieved, thereby achieving the technical effect of improving the accuracy of time delay estimation, and further solving the problem that the local discharge cannot be corrected in the prior art The error of discharge positioning is corrected, which leads to the technical problem of low accuracy of time delay estimation.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1是根据本发明实施例的一种BP神经网络模型的示意图;Fig. 1 is a schematic diagram of a BP neural network model according to an embodiment of the present invention;

图2是根据本发明实施例的一种校正误差的方法的步骤流程图;FIG. 2 is a flowchart of steps of a method for correcting errors according to an embodiment of the present invention;

图3是根据本发明实施例的一种可选的校正误差的方法的步骤流程图;FIG. 3 is a flowchart of steps of an optional error correction method according to an embodiment of the present invention;

图4a是根据本发明实施例的一种可选的基于实际坐标进行标定的标定点位置示意图;Fig. 4a is a schematic diagram of an optional calibration point position for calibration based on actual coordinates according to an embodiment of the present invention;

图4b是根据本发明实施例的一种可选的进行样条插值后的标定点位置示意图;Fig. 4b is a schematic diagram of an optional calibration point position after spline interpolation according to an embodiment of the present invention;

图5是根据本发明实施例的一种可选的基于三次样条插值法的拟合曲线图;Fig. 5 is an optional fitting curve diagram based on the cubic spline interpolation method according to an embodiment of the present invention;

图6a是根据本发明实施例的一种可选的进行样条插值后的径向距离的定位误差随r的变化关系图;Fig. 6a is an optional relationship diagram of the positioning error of the radial distance with r after spline interpolation according to an embodiment of the present invention;

图6b是根据本发明实施例的一种可选的进行样条插值后的方位角度的定位误差值随r的变化关系图;Fig. 6b is an optional relationship diagram of the positioning error value of the azimuth angle after spline interpolation according to an embodiment of the present invention;

图7a是根据本发明实施例的一种可选的径向距离r的测量误差在校正前和校正后随r的变化规律图;Fig. 7a is a graph showing the variation law of the measurement error of an optional radial distance r with r before and after correction according to an embodiment of the present invention;

图7b是根据本发明实施例的一种可选的方位角度θ的测量误差在校正前和校正后随r的变化规律图;以及Fig. 7b is a graph showing the change law of the measurement error of an optional azimuth angle θ with r before and after correction according to an embodiment of the present invention; and

图8是根据本发明实施例的一种校正误差的装置的结构示意图。Fig. 8 is a schematic structural diagram of an error correction device according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

首先,为方便理解本发明实施例,下面将对本发明中所涉及的部分术语或名词进行解释说明:First of all, for the convenience of understanding the embodiments of the present invention, some terms or nouns involved in the present invention will be explained below:

BP神经网络:是指一种采用误差反向传播算法(Error Back-propagationAlgorithm,BP)的多层人工神经网络。BP neural network: refers to a multi-layer artificial neural network that uses the Error Back-propagation Algorithm (BP).

实施例1Example 1

根据本发明实施例,提供了一种校正误差的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a method for correcting errors is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although A logical order is shown in the flowcharts, but in some cases the steps shown or described may be performed in an order different from that shown or described herein.

需要说明的是,在介绍本申请各个可选或优选的实施例之前,可以先将BP神经网络基本原理进行阐明:It should be noted that before introducing each optional or preferred embodiment of the present application, the basic principle of the BP neural network can be clarified first:

BP神经网络是包含有多个隐含层的网络,具备处理线性不可分问题的能力,通过信号的正向传播和误差的反向调节机制实现对未知系统的学习,它的特点是具有强大的非线性映射能力,能够以任意精度逼近任意连续的非线性函数,这就是已被证明的万能逼近定理。同时具有较强的容错能力,且对不确定的复杂问题具有自学习和自适应能力,这为BP神经网络在非线性系统中的应用奠定了基础。BP neural network is a network with multiple hidden layers, which has the ability to deal with linear inseparable problems, and realizes the learning of unknown systems through the forward propagation of signals and the reverse adjustment mechanism of errors. The linear mapping ability can approximate any continuous nonlinear function with arbitrary precision, which is the proven universal approximation theorem. At the same time, it has strong fault-tolerant ability, and has self-learning and self-adaptive ability for uncertain complex problems, which lays the foundation for the application of BP neural network in nonlinear systems.

在一种可选的实施例中,BP神经网络的网络结构如图1所示,对于一个有N个输入节点(X1,X2,X3...XN),隐含层有q个神经元(对应的输出为P1,P2,P3...Pq),L个输出节点(对应的输出为y1,y2,y3...yL)的BP神经网络,网络的输入输出关系为:In an optional embodiment, the network structure of the BP neural network is as shown in Figure 1, for a node with N input nodes (X1, X2, X3...XN), the hidden layer has q neurons ( The corresponding output is P1, P2, P3...Pq), the BP neural network of L output nodes (the corresponding output is y1, y2, y3...yL), and the input-output relationship of the network is:

其中,θ为理想的输出,ω为对应的权值系数。Among them, θ is the ideal output, and ω is the corresponding weight coefficient.

BP神经网络的应用需要注意如下几个问题:The application of BP neural network needs to pay attention to the following issues:

(1)确定网络层数:BP神经网络由输入层---隐含层---输出层组成,其中,隐含层的数目是可以调节的,理论上已经证明,任意闭区间的连续函数都可以通过单个隐含层的BP神经网络逼近,因此,在大部分的应用场景下,单个隐含层网络通过调节隐含层神经元的个数,即可实现其强大的非线性映射功能。(1) Determine the number of network layers: BP neural network is composed of input layer---hidden layer---output layer, in which the number of hidden layers can be adjusted. It has been proved in theory that the continuous function of any closed interval All can be approximated by the BP neural network of a single hidden layer. Therefore, in most application scenarios, a single hidden layer network can realize its powerful nonlinear mapping function by adjusting the number of neurons in the hidden layer.

(2)确定输入节点数:输入节点数取决于输入向量的维数。本系统输入向量由径向距离误差值Δr和方向角误差值Δθ组成,故输入节点数为2。(2) Determine the number of input nodes: the number of input nodes depends on the dimension of the input vector. The input vector of this system is composed of the radial distance error value Δr and the direction angle error value Δθ, so the number of input nodes is 2.

(3)确定隐含层节点数:在网络层数已经确定的情况下,BP神经网络的性能很大程度上取决于隐含层神经元的个数,隐含层神经元个数的选择是一个非常重要且复杂的问题,目前并没有明确的解析式来确定一个最优的隐含层神经元节点个数,通常依据以下三个参考公式确定大概的隐含层节点数目:(3) Determine the number of hidden layer nodes: when the number of network layers has been determined, the performance of BP neural network depends largely on the number of hidden layer neurons, the choice of the number of hidden layer neurons is It is a very important and complicated problem. Currently, there is no clear analytical formula to determine the optimal number of neuron nodes in the hidden layer. Usually, the approximate number of hidden layer nodes is determined according to the following three reference formulas:

1)M=log2n,n是输入节点的个数。1) M=log 2 n, n is the number of input nodes.

2) 2)

其中n是输入层节点个数,K为样本数,M是隐含层节点个数。规定i>M时,CMi=0。Among them, n is the number of input layer nodes, K is the number of samples, and M is the number of hidden layer nodes. It is stipulated that when i>M, CMi=0.

3) 3)

其中a是[0,10]之间的常数,n为输入层神经元个数,m是输出层神经元个数。Where a is a constant between [0,10], n is the number of neurons in the input layer, and m is the number of neurons in the output layer.

(4)确定输出层神经元个数:输出层神经元的个数要依据实际解决的问题而定,本发明是做非线性映射处理,每一个径向距离和方向角都唯一映射一个误差值,故本发明的输出层神经元个数为1。(4) Determine the number of output layer neurons: the number of output layer neurons will be determined according to the actual problem to be solved, the present invention is to do nonlinear mapping processing, and each radial distance and direction angle are uniquely mapped to an error value , so the number of neurons in the output layer of the present invention is 1.

(5)训练方法的选择:BP神经网络的训练方法受实际问题、样本个数的影响,RPROP算法对于模式识别问题具有较好的适用性,LM算法在处理数百个权值的函数逼近网络时,效率较高,收敛速度较快且均方误差较小。本发明通过对各种方法的比较,最终选择LM算法作为训练方法。(5) Selection of training method: The training method of BP neural network is affected by the actual problem and the number of samples. The RPROP algorithm has better applicability to the pattern recognition problem. When , the efficiency is higher, the convergence speed is faster and the mean square error is smaller. The present invention finally selects the LM algorithm as the training method by comparing various methods.

图1是根据本发明实施例的一种校正误差的方法的步骤流程图,如图1所示,该方法包括如下步骤:Fig. 1 is a flow chart of the steps of a method for correcting errors according to an embodiment of the present invention. As shown in Fig. 1, the method includes the following steps:

步骤S102,获取定位局部放电源的测量值,以及上述测量值的径向距离和方位角度;Step S102, obtaining the measured value for locating the partial discharge source, and the radial distance and azimuth angle of the measured value;

步骤S104,使用第一模型对上述测量值的径向距离和方位角度进行分析,得到定位上述局部放电源的误差值,其中,上述第一模型为使用多组数据通过机器学习训练得到的,上述多组数据中的每组数据均包括:上述测量值的径向距离和方位角度、上述误差值;Step S104, using the first model to analyze the radial distance and azimuth angle of the above-mentioned measured value to obtain the error value for locating the above-mentioned partial discharge source, wherein the above-mentioned first model is obtained by using multiple sets of data through machine learning training, and the above-mentioned Each set of data in the multiple sets of data includes: the radial distance and azimuth angle of the above-mentioned measured values, and the above-mentioned error value;

步骤S106,依据上述误差值对上述测量值进行校正。Step S106, correcting the measurement value according to the error value.

在一种可选的实施方式中,上述第一模型可以为一种基于BP神经网络确定的补偿曲面。In an optional implementation manner, the above-mentioned first model may be a compensation surface determined based on a BP neural network.

作为一种可选的实施方式,本申请可以在数据库或者服务器中预先存储多个测量值的径向距离和方位角度以及误差值,从而可以基于BP神经网络使用多组数据通过机器学习训练得到上述第一模型。As an optional implementation, the application can pre-store the radial distance, azimuth angle and error value of multiple measured values in the database or server, so that the above-mentioned can be obtained through machine learning training based on BP neural network using multiple sets of data first model.

其中,可以将测量值的径向距离和方位角度以及误差值输入至神经网络中,以通过建立相应的神经元,并根据神经元之间的预设函数(如Sigmoid函数)确定图像特征和图像特征映射,从而根据确定的特征进行映射处理,得到定位上述局部放电源的误差值。Among them, the radial distance and azimuth angle of the measured value and the error value can be input into the neural network to establish corresponding neurons and determine image features and image characteristics according to a preset function (such as the Sigmoid function) between neurons Feature mapping, so as to perform mapping processing according to the determined features, and obtain an error value for locating the above-mentioned partial discharge source.

另外,在本申请所提供的可选实施例中,在建立上述第一模型之后,可以利用深度学习或者KNN算法,将图像信息中存在相同特征的测量值信息滤除,以得到存在差异的误差值特征信息,进而得到定位上述局部放电源的误差值。In addition, in the optional embodiment provided by the present application, after the above first model is established, deep learning or KNN algorithm can be used to filter out the measured value information with the same feature in the image information, so as to obtain the difference error Value characteristic information, and then obtain the error value of locating the above partial discharge source.

本申请采用BP神经网络学习的方法对特高频局部放电定位误差进行校正,在一种可选的实施例中,本申请可以预先认为或设定定位系统存在固有误差,利用BP神经网络高度容错及无限逼近非线性函数的能力,识别及再现定位系统的固有误差,然后对实际测量值进行补偿,采用K-Means机器学习算法对测量值进行去抖动,通过对有限个标定点(径向距离r,方位角θ)误差值的训练,构造了0<r≤66m,0<θ≤360°的误差补偿曲面,然后对实测值进行修正。This application uses the BP neural network learning method to correct the UHF partial discharge positioning error. In an optional embodiment, this application can pre-think or set the inherent error of the positioning system, and use the BP neural network to be highly fault-tolerant And the ability to infinitely approximate the nonlinear function, identify and reproduce the inherent error of the positioning system, and then compensate the actual measured value, use the K-Means machine learning algorithm to de-jitter the measured value, through the limited calibration points (radial distance r, azimuth θ) error value training, the error compensation surface of 0<r≤66m, 0<θ≤360° is constructed, and then the measured value is corrected.

需要说明的是,BP神经网络具有非常强的非线性映射能力,同时能够对未知的系统具有学习能力,且因其并行机制的冗余性使其具有很强的容错能力。It should be noted that the BP neural network has a very strong nonlinear mapping ability, and can learn the unknown system at the same time, and because of the redundancy of the parallel mechanism, it has a strong fault tolerance.

为了提高UHF法变电站站域局放定位的精度,本申请提出了一种基于BP神经网络的定位误差校正方法,采用K-Means机器学习算法对测量值进行去抖动,通过对有限个标定点(径向距离r,方位角θ)误差值的训练,构造了0<r≤66m,0<θ≤360°的误差补偿曲面,然后对实测值进行修正。考虑工程应用因素,提出了基于样条插值获取样本的方法,减少了工作量,具有工程可操作性。实验结果表明,在r∈(0,40m)范围时,径向距离测量误差呈递减趋势,r>40m范围时,径向距离测量误差呈递增趋势,方向角测量误差分布具有相似的规律,经过误差补偿后,误差分布趋于平稳且误差值大大减小,证明了本申请所提供的校正误差的方法的可行性与有效性。In order to improve the accuracy of UHF substation localization positioning, this application proposes a positioning error correction method based on BP neural network, using the K-Means machine learning algorithm to de-jitter the measured value, and through a limited number of calibration points ( For the training of the error value of radial distance r, azimuth angle θ), an error compensation surface of 0<r≤66m, 0<θ≤360° is constructed, and then the measured value is corrected. Considering the engineering application factors, a method of obtaining samples based on spline interpolation is proposed, which reduces the workload and has engineering operability. The experimental results show that in the range of r∈(0,40m), the radial distance measurement error shows a decreasing trend, and in the range of r>40m, the radial distance measurement error shows an increasing trend, and the distribution of the direction angle measurement error has a similar law. After the error compensation, the error distribution tends to be stable and the error value is greatly reduced, which proves the feasibility and effectiveness of the error correction method provided by the present application.

需要说明的是,上述误差产生的原因可以为以下几种:特高频信号传感天线是特高频检测系统的关键部分,其功能是实现局部放电信号的获取,传感天线的性能直接决定了整个检测系统的性能,是否具备抑制低频干扰(200MHZ以下)的能力、是否具有较高的检测灵敏度、全向性能如何以及超频带宽内的匹配特性是衡量传感天线性能的关键;带通滤波器的滤波性能决定了采集信号的纯净性,特高频放大器的输入保护性能对系统的可靠性具有重要影响,放大器特性同时还会影响检测的灵敏度;数据采集系统的采集精度和速度直接决定了时延估计的最高精度,时延估计误差最小为一个采样时间间隔。所以系统硬件的性能好坏直接影响定位精度的高低。此外,除上述主要的原因之外,还包括以下原因:电磁噪声干扰与电磁波传播衰减、时延估计算法的局限性等。It should be noted that the reasons for the above errors can be as follows: the UHF signal sensing antenna is a key part of the UHF detection system, and its function is to realize the acquisition of partial discharge signals, and the performance of the sensing antenna directly determines The performance of the entire detection system, whether it has the ability to suppress low-frequency interference (below 200MHZ), whether it has high detection sensitivity, how is the omnidirectional performance, and the matching characteristics within the ultra-frequency bandwidth are the key to measuring the performance of the sensing antenna; band-pass filtering The filter performance of the filter determines the purity of the collected signal. The input protection performance of the UHF amplifier has an important impact on the reliability of the system. The characteristics of the amplifier will also affect the sensitivity of the detection; The highest precision of delay estimation, the minimum error of delay estimation is one sampling time interval. Therefore, the performance of the system hardware directly affects the positioning accuracy. In addition, in addition to the above-mentioned main reasons, the following reasons are also included: electromagnetic noise interference and electromagnetic wave propagation attenuation, limitations of time delay estimation algorithms, and the like.

在一种可选的实施例中,图2是根据本发明实施例的一种可选的校正误差的方法的步骤流程图,如图2所示,获取定位局部放电源的测量值包括:In an optional embodiment, FIG. 2 is a flow chart of the steps of an optional error correction method according to an embodiment of the present invention. As shown in FIG. 2, obtaining the measured value for locating the partial discharge source includes:

步骤S202,确定局部放电模拟装置中第一传感器和第二传感器之间的至少一个测量点;Step S202, determining at least one measurement point between the first sensor and the second sensor in the partial discharge simulation device;

步骤S204,通过定位上述至少一个测量点的坐标位置,得到上述局部放电源的测量值,其中,上述测量值至少包括:径向距离和方位角度。Step S204, by locating the coordinate position of the at least one measurement point, to obtain the measurement value of the partial discharge source, wherein the measurement value at least includes: radial distance and azimuth angle.

在一种可选的实施例中,上述第一传感器和上述第二传感器之间存在上述局部放电源的至少一个测量点。In an optional embodiment, there is at least one measurement point of the partial discharge source between the first sensor and the second sensor.

基于上述步骤S202至步骤S204中所提供的实施例,可以确定局部放电模拟装置中第一传感器和第二传感器之间的至少一个测量点,通过定位上述至少一个测量点的坐标位置,得到上述局部放电源的测量值,其中,上述测量值至少包括:径向距离和方位角度。Based on the embodiments provided in the above step S202 to step S204, at least one measurement point between the first sensor and the second sensor in the partial discharge simulation device can be determined, and by locating the coordinate position of the above at least one measurement point, the above local The measured value of the discharge source, wherein the above measured value at least includes: radial distance and azimuth angle.

作为一种可选的实施例,本申请可以采用局部放电模拟装置(EM TEST DITO,局部放电模拟器)进行局部放电模拟实验,该模拟装置可依照EN/IEC 61000-4-2标准产生精确的放电脉冲,可选的,上述第一传感器和第二传感器连线的中垂线方向的方向角为0度,在0度方向上用总长为100米的布卷尺对测量点位置坐标进行标定,在0-66m之间每隔六米标定一个点并进行定位实验。As an optional embodiment, the application can use a partial discharge simulation device (EM TEST DITO, partial discharge simulator) to carry out a partial discharge simulation experiment, which can produce accurate Discharge pulse, optional, the direction angle of the vertical line direction of the connection between the first sensor and the second sensor is 0 degrees, and the position coordinates of the measuring points are calibrated with a cloth tape measure with a total length of 100 meters in the direction of 0 degrees, Mark a point every six meters between 0-66m and conduct positioning experiments.

在一种可选的实施例中,依据上述误差值对上述测量值进行校正包括:依据上述误差值确定上述测量值的补偿函数,其中,上述误差值根据上述测量值与预定标准值确定,上述补偿函数通过如下公式计算得到:r′为上述预定标准值的径向距离;θ′为上述预定标准值的方位角度;上述补偿函数至少包括:上述测量值的径向距离的补偿函数,上述测量值的方位角度的补偿函数;△r=k1(r,θ)为上述测量值的径向距离的补偿函数;△θ=k2(r,θ)为上述测量值的方位角度的补偿函数,k1和k2为常数;采用上述补偿函数对上述测量值进行校正。In an optional embodiment, correcting the above-mentioned measurement value according to the above-mentioned error value includes: determining a compensation function of the above-mentioned measurement value according to the above-mentioned error value, wherein the above-mentioned error value is determined according to the above-mentioned measurement value and a predetermined standard value, and the above-mentioned The compensation function is calculated by the following formula: r' is the radial distance of the above-mentioned predetermined standard value; θ' is the azimuth angle of the above-mentioned predetermined standard value; the above-mentioned compensation function at least includes: a compensation function of the radial distance of the above-mentioned measured value, and a compensation function of the azimuth angle of the above-mentioned measured value; △r=k 1 (r, θ) is the compensation function of the radial distance of the above measured value; △θ=k 2 (r, θ) is the compensation function of the azimuth angle of the above measured value, k 1 and k 2 are constants ; Use the above compensation function to correct the above measured value.

在一种可选的实施例中,由于变电站现场环境噪声干扰较多,造成定位系统的测量值与预定标准值出现偏差,局部放电源的平面位置由径向距离r和方位角度θ唯一确定,需要对局部放电源位置测量值(径向距离r,方位角度θ)进行修正,本发明的核心思路为承认系统的固有误差的存在,利用BP神经网络学习误差的分布规律,依据上述误差值确定上述测量值的补偿函数,其中,上述误差值根据上述测量值与预定标准值确定,上述补偿函数通过如下公式计算得到:采用上述补偿函数对上述测量值进行校正。In an optional embodiment, due to the large amount of environmental noise interference in the substation site, the measured value of the positioning system deviates from the predetermined standard value, and the plane position of the partial discharge source is uniquely determined by the radial distance r and the azimuth angle θ, It is necessary to correct the measured value of the partial discharge source position (radial distance r, azimuth angle θ), the core idea of the present invention is to admit the existence of the inherent error of the system, use the BP neural network to learn the distribution law of the error, and determine according to the above error value The compensation function of the above-mentioned measured value, wherein the above-mentioned error value is determined according to the above-mentioned measured value and a predetermined standard value, and the above-mentioned compensation function is calculated by the following formula: The above-mentioned measured values are corrected using the above-mentioned compensation function.

此外,需要说明的是,由于本申请中的误差补偿模型是误差值随上述测量值的径向距离r和方位角度θ变化的补偿曲面,本申请利用BP神经网络来构造上述补偿曲面,并不能求出具体的解析式。In addition, it should be noted that since the error compensation model in this application is a compensation surface whose error value varies with the radial distance r and azimuth angle θ of the above-mentioned measured values, this application uses BP neural network to construct the above-mentioned compensation surface, which cannot Find a specific analytical formula.

在低信噪比(外界干扰信号较大)的电磁环境中,测量出的同一放电点(测量点)的位置坐标存在波动,干扰了误差样本的选取,使取得的样本不具有典型性,所以本申请中的误差值样本的选取采用基于K-Means聚类的方法,每获得一个测量结果均需要进行多次的测量,通过K-Means算法进行聚类,以聚类中心作为最终的测量值,然后与预定标准值比较得到误差值样本。In the electromagnetic environment with low signal-to-noise ratio (large external interference signal), the measured position coordinates of the same discharge point (measurement point) fluctuate, which interferes with the selection of error samples and makes the obtained samples not typical, so The selection of error value samples in this application adopts the method based on K-Means clustering. Each measurement result needs to be measured multiple times, clustered by K-Means algorithm, and the cluster center is used as the final measurement value , and then compared with the predetermined standard value to obtain the error value sample.

作为一种可选的实施例,至少通过如下方式确定上述第一模型:基于BP神经网络,确定上述误差值与上述测量值的径向距离和方位角度的关系公式:其中,△R为上述误差值,r为上述测量值的径向距离,θ为上述测量值的方位角度;将上述关系公式作为上述第一模型。As an optional embodiment, the above-mentioned first model is determined at least in the following manner: based on the BP neural network, the relationship formula between the above-mentioned error value and the radial distance and azimuth angle of the above-mentioned measured value is determined: Wherein, ΔR is the above-mentioned error value, r is the radial distance of the above-mentioned measured value, and θ is the azimuth angle of the above-mentioned measured value; the above-mentioned relational formula is used as the above-mentioned first model.

需要说明的是,本申请的核心思想为利用BP神经网络学习定位误差随方位角度θ与径向距离r的变化规律,事先并不知道误差的分布规律,只是大致上了解随着径向距离的增加,特高频电磁波弱信号的检测更加困难,定位误差有随着径向距离的增加有增大的趋势,所以需要进行可行性分析实验,来验证BP神经网络对复杂不确定随机值的学习能力,以此来说明BP神经网络误差校正方案的有效性。It should be noted that the core idea of this application is to use the BP neural network to learn the change law of the positioning error with the azimuth angle θ and the radial distance r. increase, the detection of weak signals of UHF electromagnetic waves is more difficult, and the positioning error tends to increase with the increase of radial distance, so it is necessary to conduct feasibility analysis experiments to verify the learning of BP neural network for complex uncertain random values Ability to illustrate the effectiveness of the BP neural network error correction scheme.

基于BP神经网络,预先设定上述误差值与上述测量值的径向距离和方位角度的关系公式:其中,△R为上述误差值,r=1,2,3...70;θ=15k,k=0,1,2...23。Based on the BP neural network, the relationship formula between the above-mentioned error value and the radial distance and azimuth angle of the above-mentioned measured value is preset: Among them, ΔR is the above error value, r=1,2,3...70; θ=15k, k=0,1,2...23.

其中,r可以但不限于从1增加到70,步长为3,θ可以但不限于从0增加到345°,步长为15°。θ不同即UHF信号传播途径不同时,必然存在时延标定和定位误差,因此,上述关系公式中使用随机数来表征这一特性,故Δr的值将由θ和r共同决定。现将这些值作为学习样本,对BP神经网络进行训练,通过对不同结构的BP神经网络进行训练,发现用2-30-1(即两个输入,一个输出,隐含层有30个神经元)的结构效果最好,神经网络在第八次训练后,训练样本的网络输出与期望输出的均方根误差为0.019,其中,0019为归一化后的值,反归一化后为0.22m。Among them, r can increase from 1 to 70 with a step size of 3, but not limited to, θ can increase from 0 to 345° with a step size of 15°. When θ is different, that is, when UHF signal propagation paths are different, there must be delay calibration and positioning errors. Therefore, random numbers are used in the above relationship formula to represent this characteristic, so the value of Δr will be determined by θ and r. These values are now used as learning samples to train the BP neural network. By training the BP neural network with different structures, it is found that using 2-30-1 (that is, two inputs, one output, and 30 neurons in the hidden layer ) structure has the best effect. After the eighth training of the neural network, the root mean square error between the network output of the training sample and the expected output is 0.019, where 0019 is the value after normalization, and it is 0.22 after denormalization m.

基于上述实施例可知,在本申请实施例中,由于BP神经网络具有高度的容错能力,可以完全实现对随机波动的曲面进行模拟再现,由此证明了本申请中的校正误差的方法的有效性。Based on the above embodiments, it can be seen that in the embodiment of the present application, since the BP neural network has a high degree of fault tolerance, it can completely realize the simulation and reproduction of the randomly fluctuating curved surface, thus proving the effectiveness of the error correction method in the present application .

作为一种可选的实施例,由于构建0<r≤66m,0<θ≤360°范围的误差补偿曲面,需要用大量的样本对神经网络进行训练,若以r的步长6m、θ的步长15°选取标定点作为训练样本的话,那么仍然需要标定264个点,如图4a所示,既要知道这264个点的实际坐标,又要在这些点利用模拟放电器进行放电,然后得出待校正的特高频定位系统的测量值,工作量巨大,可操作性不强,考虑工程应用的因素,本申请提出了一种基于样条插值的样本获取方法,该方法的思路是在任意两个实际的标定点之间插入若干点即可得到更丰富的训练样本,从而减少了为获得误差样本数据而做的局部放电模拟实验的次数,大大降低了工作量。As an optional embodiment, due to the construction of an error compensation surface in the range of 0<r≤66m, 0<θ≤360°, a large number of samples are required to train the neural network. If the step size of r is 6m, the If the calibration point is selected as the training sample with a step length of 15°, then 264 points still need to be calibrated, as shown in Figure 4a. It is necessary to know the actual coordinates of these 264 points, and to use the analog discharger to discharge at these points, and then Obtaining the measured value of the UHF positioning system to be corrected requires a huge workload and poor operability. Considering the factors of engineering application, this application proposes a sample acquisition method based on spline interpolation. The idea of this method is More abundant training samples can be obtained by inserting several points between any two actual calibration points, thereby reducing the number of partial discharge simulation experiments to obtain error sample data, and greatly reducing the workload.

并且,作为另一种可选的实施例,在设备分布较有规律的变电站,在选取标定点时可作简化处理,即认为方位角度θ对误差分布规律的影响较小,若假定误差值在不同方向角上的分布规律相同,则选取训练样本时只需要测定一个角度方向上的误差值,如图4b所示,然后通过样条插值法在任意两个标定点之间插入若干点,从而得到信息更丰富的训练样本。Moreover, as another optional embodiment, in substations with regular distribution of equipment, the selection of calibration points can be simplified, that is, it is considered that the azimuth angle θ has little influence on the distribution of errors. If the error value is assumed to be The distribution laws of different orientation angles are the same, so when selecting training samples, it is only necessary to measure the error value in one angle direction, as shown in Figure 4b, and then insert several points between any two calibration points by spline interpolation method, so that Get more informative training samples.

在本申请实施例中,可以但不限于利用上述关系公式产生仿真数据,现取θ=0°方向上、r步长为6m的11个数据,分别为-0.0653m、-0.6987m、0.6556m、0.8468m、1.3407m、1.7767m、2.2196m、3.8056m、3.9680m、4.7298m、6.2717m,图5为基于三次样条插值法的拟合曲线,然后利用三次样条插值在两个相邻的数据点之间再插进1个数据点,再假定同一r值的误差值相同,即可得到504(21×24)个训练样本,此样本与直接通过上述修正公式产生504个数据点的均方根误差为0.48m,误差可以接受,证明了该获取样本方法的可行性,实验发现通过插值法获取样本的方法,网络输出与期望输出的均方根误差为2.95×10-6,此处的期望输出值为神经网络的训练样本,由此可见基于样条插值获取更多训练样本的方法具有较高的可行性,产生误差在可接受的范围内。In the embodiment of this application, the simulation data can be generated by using the above relational formula, but not limited to, now take 11 data in the direction of θ = 0°, and the r step length is 6m, respectively -0.0653m, -0.6987m, 0.6556m . Insert another data point between the data points, and assume that the error value of the same r value is the same, you can get 504 (21×24) training samples, this sample and the 504 data points directly generated by the above correction formula The root mean square error is 0.48m, and the error is acceptable, which proves the feasibility of the sample acquisition method. The experiment found that the root mean square error between the network output and the expected output is 2.95×10 -6 for the method of obtaining samples through interpolation. The expected output value at is the training sample of the neural network. It can be seen that the method of obtaining more training samples based on spline interpolation has high feasibility, and the error is within an acceptable range.

作为一种可选的实施例,本申请可以采用EM TEST DITO(局部放电模拟器)进行局部放电模拟实验,该模拟器可依照EN/IEC 61000-4-2标准产生精确的放电脉冲,该实验规定传感器1、2连线的中垂线方向的方向角为0度,在0度方向上用总长为100米的布卷尺对测量点位置坐标进行标定,在0-66m之间每隔六米标定一个点并进行定位实验,测量结果如表1所示。As an optional embodiment, the present application can use EM TEST DITO (partial discharge simulator) to carry out partial discharge simulation experiment, and this simulator can produce accurate discharge pulse according to EN/IEC 61000-4-2 standard, and this experiment It is stipulated that the direction angle of the vertical line direction of the connecting line of sensors 1 and 2 is 0 degrees, and the position coordinates of the measuring points are calibrated with a cloth tape measure with a total length of 100 meters in the direction of 0 degrees, and every six meters between 0-66m Calibrate a point and conduct a positioning experiment, the measurement results are shown in Table 1.

表1测量结果Table 1 Measurement Results

在一种可选的实施例中,可以根据样条插值的思路,在每两个相邻的误差数据点之间插入两个数据,插值后的径向距离的定位误差随r的变化关系如图6a,然后依据r相同、θ不同时误差值相同来简化地获取误差样本数据,并对神经网络进行训练,插值后的方位角度的定位误差值随r的变化关系如图6b所示。In an optional embodiment, according to the idea of spline interpolation, two data points can be inserted between every two adjacent error data points, and the relationship between the positioning error of the interpolated radial distance and the variation of r is as follows: Figure 6a, and then obtain the error sample data in a simplified manner based on the same error value when r is the same and θ is different, and train the neural network.

在一种可选的实施例中,可以利用模拟放电器进行局部放电模拟实验,在θ=90°的方向角上,在0-66m之间每隔六米进行定位实验,利用本发明的方法对系统给出的测量值进行补偿得到最终的定位结果,定位测量值及补偿曲面补偿后的数据误差如表2所示。径向距离r的测量误差在校正前和校正后随r的变化规律如图7a所示,方位角度θ的测量误差在校正前和校正后随r的变化规律如图7b所示。In a kind of optional embodiment, can utilize simulation discharger to carry out partial discharge simulation experiment, on the direction angle of θ=90 °, between 0-66m, carry out positioning experiment every six meters, utilize the method of the present invention Compensate the measurement value given by the system to obtain the final positioning result. The positioning measurement value and the data error after compensation surface compensation are shown in Table 2. The variation law of the measurement error of the radial distance r with r before and after correction is shown in Figure 7a, and the variation law of the measurement error of the azimuth angle θ with r before and after correction is shown in Figure 7b.

表2定位数据测量值及补偿后的误差Table 2 Positioning data measurement value and error after compensation

由图7a至图7b可知,方位角度的定位测量值和径向距离的定位测量值的误差在校正之前具有随着r的增大逐渐增大的趋势且系统定位误差值整体较大,校正之后的误差值变化趋于平稳,且误差值整体较小。由此可证明,本申请提出的基于BP神经网络的特高频局部放电误差校正方法的有效性与稳定性。From Fig. 7a to Fig. 7b, it can be seen that the error of the positioning measurement value of the azimuth angle and the positioning measurement value of the radial distance has a tendency to increase gradually with the increase of r before correction, and the overall positioning error value of the system is relatively large. After correction The change of the error value tends to be stable, and the overall error value is small. This proves the effectiveness and stability of the UHF partial discharge error correction method based on the BP neural network proposed in this application.

实施例2Example 2

本发明实施例还提供了一种用于实施上述校正误差的方法的装置,图8是根据本发明实施例的一种校正误差的装置的结构示意图,如图8所示,上述校正误差的装置,包括:获取模块90、分析模块92和校正模块94,其中,An embodiment of the present invention also provides a device for implementing the above error correction method. FIG. 8 is a schematic structural diagram of an error correction device according to an embodiment of the present invention. As shown in FIG. 8, the above error correction device , including: acquisition module 90, analysis module 92 and correction module 94, wherein,

获取模块90,用于获取定位局部放电源的测量值,以及上述测量值的径向距离和方位角度;分析模块92,用于使用第一模型对上述测量值的径向距离和方位角度进行分析,得到定位上述局部放电源的误差值,其中,上述第一模型为使用多组数据通过机器学习训练得到的,上述多组数据中的每组数据均包括:上述测量值的径向距离和方位角度、上述误差值;校正模块94,用于依据上述误差值对上述测量值进行校正。The obtaining module 90 is used to obtain the measured value of locating the partial discharge source, as well as the radial distance and azimuth angle of the above-mentioned measured value; the analysis module 92 is used to analyze the radial distance and azimuth angle of the above-mentioned measured value by using the first model , to obtain the error value for locating the above-mentioned partial discharge source, wherein the above-mentioned first model is obtained by using multiple sets of data through machine learning training, and each set of data in the above-mentioned multiple sets of data includes: the radial distance and orientation of the above-mentioned measured values Angle, the above-mentioned error value; a correction module 94, configured to correct the above-mentioned measurement value according to the above-mentioned error value.

在一种可选的实施例中,上述获取模块包括:确定子模块,用于确定局部放电模拟装置中第一传感器和第二传感器之间的至少一个测量点;定位子模块,用于通过定位上述至少一个测量点的坐标位置,得到上述局部放电源的测量值,其中,上述测量值至少包括:径向距离和方位角度。In an optional embodiment, the acquisition module includes: a determination submodule, configured to determine at least one measurement point between the first sensor and the second sensor in the partial discharge simulation device; a positioning submodule, configured to locate The coordinate position of the at least one measurement point is used to obtain the measurement value of the partial discharge source, wherein the measurement value at least includes: radial distance and azimuth angle.

在一种可选的实施例中,至少通过如下模块确定上述第一模型:第一确定模块,用于基于BP神经网络,确定上述误差值与上述测量值的径向距离和方位角度的关系公式:其中,△R为上述误差值,r为上述测量值的径向距离,θ为上述测量值的方位角度;第二确定模块,用于将上述关系公式作为上述第一模型。In an optional embodiment, the above-mentioned first model is determined by at least the following module: the first determination module is used to determine the relationship formula between the above-mentioned error value and the radial distance and azimuth angle of the above-mentioned measured value based on the BP neural network : Wherein, ΔR is the above-mentioned error value, r is the radial distance of the above-mentioned measurement value, and θ is the azimuth angle of the above-mentioned measurement value; the second determination module is used to use the above-mentioned relational formula as the above-mentioned first model.

在一种可选的实施例中,上述校正模块包括:补偿确定子模块,用于依据上述误差值确定上述测量值的补偿函数,其中,上述误差值根据上述测量值与预定标准值确定,上述补偿函数通过如下公式计算得到r′为上述预定标准值的径向距离;θ′为上述预定标准值的方位角度;上述补偿函数至少包括:上述测量值的径向距离的补偿函数,上述测量值的方位角度的补偿函数;△r=k1(r,θ)为上述测量值的径向距离的补偿函数;△θ=k2(r,θ)为上述测量值的方位角度的补偿函数,k1和k2为常数;校正子模块,用于采用上述补偿函数对上述测量值进行校正。In an optional embodiment, the correction module includes: a compensation determination submodule, configured to determine the compensation function of the measurement value according to the error value, wherein the error value is determined according to the measurement value and a predetermined standard value, and the above The compensation function is calculated by the following formula r' is the radial distance of the above-mentioned predetermined standard value; θ' is the azimuth angle of the above-mentioned predetermined standard value; the above-mentioned compensation function at least includes: a compensation function of the radial distance of the above-mentioned measured value, and a compensation function of the azimuth angle of the above-mentioned measured value; △r=k 1 (r, θ) is the compensation function of the radial distance of the above measured value; △θ=k 2 (r, θ) is the compensation function of the azimuth angle of the above measured value, k 1 and k 2 are constants ; A calibration sub-module, configured to correct the above-mentioned measurement value by using the above-mentioned compensation function.

需要说明的是,上述各个模块是可以通过软件或硬件来实现的,例如,对于后者,可以通过以下方式实现:上述各个模块可以位于同一处理器中;或者,上述各个模块以任意组合的方式位于不同的处理器中。It should be noted that each of the above-mentioned modules can be realized by software or hardware. For example, for the latter, it can be realized in the following manner: each of the above-mentioned modules can be located in the same processor; or, each of the above-mentioned modules can be implemented in any combination on a different processor.

此处需要说明的是,上述获取模块90、分析模块92和校正模块94对应于实施例1中的步骤S102至步骤S106,上述模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例1所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在计算机终端中。It should be noted here that the acquisition module 90, the analysis module 92 and the correction module 94 correspond to steps S102 to S106 in Embodiment 1, and the examples and application scenarios implemented by the above modules are the same as those of the corresponding steps, but are not limited to The content disclosed in the above-mentioned embodiment 1. It should be noted that, as a part of the device, the above modules can run in the computer terminal.

需要说明的是,本实施例的可选或优选实施方式可以参见实施例1中的相关描述,此处不再赘述。It should be noted that, for optional or preferred implementation manners of this embodiment, reference may be made to relevant descriptions in Embodiment 1, and details are not repeated here.

上述的校正误差的装置还可以包括处理器和存储器,上述获取模块90、分析模块92和校正模块94等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。The above-mentioned device for correcting errors may also include a processor and a memory. The above-mentioned acquisition module 90, analysis module 92, and correction module 94 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory. corresponding function.

处理器中包含内核,由内核去存储器中调取相应的程序单元,上述内核可以设置一个或以上。存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。The processor includes a kernel, and the kernel fetches corresponding program units from the memory, and one or more kernels can be provided. Memory may include non-permanent memory in computer-readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one memory chip.

本申请实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质包括存储的程序,其中,在上述程序运行时控制上述存储介质所在设备执行上述任意一种校正误差的方法。The embodiment of the present application also provides a storage medium. Optionally, in this embodiment, the above-mentioned storage medium includes a stored program, wherein when the above-mentioned program is running, the device where the above-mentioned storage medium is located is controlled to execute any one of the above-mentioned methods for correcting errors.

可选地,在本实施例中,上述存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。Optionally, in this embodiment, the above-mentioned storage medium may be located in any computer terminal in the group of computer terminals in the computer network, or in any mobile terminal in the group of mobile terminals.

本申请实施例还提供了一种处理器。可选地,在本实施例中,上述处理器用于运行程序,其中,上述程序运行时执行上述任意一种校正误差的方法。The embodiment of the present application also provides a processor. Optionally, in this embodiment, the above-mentioned processor is configured to run a program, wherein, when the above-mentioned program is running, any one of the above-mentioned methods for correcting errors is executed.

本申请实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现以下步骤:获取定位局部放电源的测量值,以及上述测量值的径向距离和方位角度;使用第一模型对上述测量值的径向距离和方位角度进行分析,得到定位上述局部放电源的误差值,其中,上述第一模型为使用多组数据通过机器学习训练得到的,上述多组数据中的每组数据均包括:上述测量值的径向距离和方位角度、上述误差值;依据上述误差值对上述测量值进行校正。An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and operable on the processor. When the processor executes the program, the following steps are implemented: acquiring a measured value for locating a partial discharge source, and The radial distance and azimuth angle of the above-mentioned measured value; using the first model to analyze the radial distance and azimuth angle of the above-mentioned measured value to obtain the error value for locating the above-mentioned partial discharge source, wherein the above-mentioned first model uses multiple sets of data Obtained through machine learning training, each of the above multiple sets of data includes: the radial distance and azimuth angle of the above-mentioned measured value, and the above-mentioned error value; the above-mentioned measured value is corrected according to the above-mentioned error value.

可选地,上述处理器执行程序时,还可以确定局部放电模拟装置中第一传感器和第二传感器之间的至少一个测量点;通过定位上述至少一个测量点的坐标位置,得到上述局部放电源的测量值,其中,上述测量值至少包括:径向距离和方位角度。Optionally, when the above-mentioned processor executes the program, it can also determine at least one measurement point between the first sensor and the second sensor in the partial discharge simulation device; by locating the coordinate position of the above-mentioned at least one measurement point, the above-mentioned partial discharge source can be obtained The measured values, wherein the measured values at least include: radial distance and azimuth angle.

可选地,上述处理器执行程序时,还可以基于BP神经网络,确定上述误差值与上述测量值的径向距离和方位角度的关系公式:其中,△R为上述误差值,r为上述测量值的径向距离,θ为上述测量值的方位角度;将上述关系公式作为上述第一模型。Optionally, when the above-mentioned processor executes the program, it can also determine the relationship formula between the above-mentioned error value and the radial distance and azimuth angle of the above-mentioned measurement value based on the BP neural network: Wherein, ΔR is the above-mentioned error value, r is the radial distance of the above-mentioned measured value, and θ is the azimuth angle of the above-mentioned measured value; the above-mentioned relational formula is used as the above-mentioned first model.

可选地,上述处理器执行程序时,还可以依据上述误差值确定上述测量值的补偿函数,其中,上述误差值根据上述测量值与预定标准值确定,上述补偿函数通过如下公式计算得到:r′为上述预定标准值的径向距离;θ′为上述预定标准值的方位角度;上述补偿函数至少包括:上述测量值的径向距离的补偿函数,上述测量值的方位角度的补偿函数;△r=k1(r,θ)为上述测量值的径向距离的补偿函数;△θ=k2(r,θ)为上述测量值的方位角度的补偿函数,k1和k2为常数;采用上述补偿函数对上述测量值进行校正。Optionally, when the above-mentioned processor executes the program, the compensation function of the above-mentioned measurement value can also be determined according to the above-mentioned error value, wherein the above-mentioned error value is determined according to the above-mentioned measurement value and a predetermined standard value, and the above-mentioned compensation function is calculated by the following formula: r' is the radial distance of the above-mentioned predetermined standard value; θ' is the azimuth angle of the above-mentioned predetermined standard value; the above-mentioned compensation function at least includes: a compensation function of the radial distance of the above-mentioned measured value, and a compensation function of the azimuth angle of the above-mentioned measured value; △r=k 1 (r, θ) is the compensation function of the radial distance of the above measured value; △θ=k 2 (r, θ) is the compensation function of the azimuth angle of the above measured value, k 1 and k 2 are constants ; Use the above compensation function to correct the above measured value.

本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序:获取定位局部放电源的测量值,以及上述测量值的径向距离和方位角度;使用第一模型对上述测量值的径向距离和方位角度进行分析,得到定位上述局部放电源的误差值,其中,上述第一模型为使用多组数据通过机器学习训练得到的,上述多组数据中的每组数据均包括:上述测量值的径向距离和方位角度、上述误差值;依据上述误差值对上述测量值进行校正。The present application also provides a computer program product adapted, when executed on a data processing device, to execute a program initialized with the method steps of: obtaining measurements for locating a partial discharge source, and the radial distance and orientation of said measurements angle; use the first model to analyze the radial distance and azimuth angle of the above-mentioned measured value, and obtain the error value of locating the above-mentioned partial discharge source, wherein, the above-mentioned first model is obtained by using multiple sets of data through machine learning training, and the above-mentioned multiple Each set of data in the set of data includes: the radial distance and azimuth angle of the above-mentioned measured value, and the above-mentioned error value; the above-mentioned measured value is corrected according to the above-mentioned error value.

可选地,上述计算机程序产品执行程序时,还可以确定局部放电模拟装置中第一传感器和第二传感器之间的至少一个测量点;通过定位上述至少一个测量点的坐标位置,得到上述局部放电源的测量值,其中,上述测量值至少包括:径向距离和方位角度。Optionally, when the above-mentioned computer program product executes the program, at least one measurement point between the first sensor and the second sensor in the partial discharge simulation device can also be determined; by locating the coordinate position of the above-mentioned at least one measurement point, the above-mentioned partial discharge The measurement value of the power supply, wherein the above measurement value at least includes: radial distance and azimuth angle.

可选地,上述计算机程序产品执行程序时,还可以基于BP神经网络,确定上述误差值与上述测量值的径向距离和方位角度的关系公式:其中,△R为上述误差值,r为上述测量值的径向距离,θ为上述测量值的方位角度;将上述关系公式作为上述第一模型。Optionally, when the above-mentioned computer program product executes the program, it can also determine the relationship formula between the above-mentioned error value and the radial distance and azimuth angle of the above-mentioned measurement value based on the BP neural network: Wherein, ΔR is the above-mentioned error value, r is the radial distance of the above-mentioned measured value, and θ is the azimuth angle of the above-mentioned measured value; the above-mentioned relational formula is used as the above-mentioned first model.

可选地,上述计算机程序产品执行程序时,还可以依据上述误差值确定上述测量值的补偿函数,其中,上述误差值根据上述测量值与预定标准值确定,上述补偿函数通过如下公式计算得到:r′为上述预定标准值的径向距离;θ′为上述预定标准值的方位角度;上述补偿函数至少包括:上述测量值的径向距离的补偿函数,上述测量值的方位角度的补偿函数;△r=k1(r,θ)为上述测量值的径向距离的补偿函数;△θ=k2(r,θ)为上述测量值的方位角度的补偿函数,k1和k2为常数;采用上述补偿函数对上述测量值进行校正。Optionally, when the above-mentioned computer program product executes the program, the compensation function of the above-mentioned measured value may also be determined according to the above-mentioned error value, wherein the above-mentioned error value is determined according to the above-mentioned measured value and a predetermined standard value, and the above-mentioned compensation function is calculated by the following formula: r' is the radial distance of the above-mentioned predetermined standard value; θ' is the azimuth angle of the above-mentioned predetermined standard value; the above-mentioned compensation function at least includes: a compensation function of the radial distance of the above-mentioned measured value, and a compensation function of the azimuth angle of the above-mentioned measured value; △r=k 1 (r, θ) is the compensation function of the radial distance of the above measured value; △θ=k 2 (r, θ) is the compensation function of the azimuth angle of the above measured value, k 1 and k 2 are constants ; Use the above compensation function to correct the above measured value.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be realized in other ways. Wherein, the device embodiments described above are only illustrative. For example, the division of the units may be a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or may be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units or modules may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes. .

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (10)

1.一种校正误差的方法,其特征在于,包括:1. A method for correcting errors, characterized in that, comprising: 获取定位局部放电源的测量值,以及所述测量值的径向距离和方位角度;Obtaining measurements for locating partial discharge sources, and radial distances and azimuths of said measurements; 使用第一模型对所述测量值的径向距离和方位角度进行分析,得到定位所述局部放电源的误差值,其中,所述第一模型为使用多组数据通过机器学习训练得到的,所述多组数据中的每组数据均包括:所述测量值的径向距离和方位角度、所述误差值;Use the first model to analyze the radial distance and azimuth angle of the measured value to obtain the error value for locating the partial discharge source, wherein the first model is obtained through machine learning training using multiple sets of data, so Each set of data in the multiple sets of data includes: the radial distance and azimuth angle of the measured value, the error value; 依据所述误差值对所述测量值进行校正。The measured value is corrected according to the error value. 2.根据权利要求1所述的方法,其特征在于,获取定位局部放电源的测量值,以及所述测量值的径向距离和方位角度包括:2. The method according to claim 1, wherein obtaining the measured value for locating the partial discharge source, and the radial distance and azimuth angle of the measured value comprise: 确定局部放电模拟装置中第一传感器和第二传感器之间的至少一个测量点;determining at least one measurement point between the first sensor and the second sensor in the partial discharge simulation device; 通过定位所述至少一个测量点的坐标位置,得到所述局部放电源的测量值,其中,所述测量值至少包括:径向距离和方位角度。By locating the coordinate position of the at least one measurement point, the measurement value of the partial discharge source is obtained, wherein the measurement value at least includes: a radial distance and an azimuth angle. 3.根据权利要求1所述的方法,其特征在于,至少通过如下方式确定所述第一模型:3. The method according to claim 1, wherein the first model is determined at least in the following manner: 基于BP神经网络,确定所述误差值与所述测量值的径向距离和方位角度的关系公式:Based on the BP neural network, determine the relational formula of the radial distance and the azimuth angle of the error value and the measured value: 其中,△R为所述误差值,r为所述测量值的径向距离,θ为所述测量值的方位角度;Wherein, ΔR is the error value, r is the radial distance of the measured value, and θ is the azimuth angle of the measured value; 将所述关系公式作为所述第一模型。The relational formula is used as the first model. 4.根据权利要求1所述的方法,其特征在于,依据所述误差值对所述测量值进行校正包括:4. The method according to claim 1, wherein correcting the measured value according to the error value comprises: 依据所述误差值确定所述测量值的补偿函数,其中,所述误差值根据所述测量值与预定标准值确定,所述补偿函数通过如下公式计算得到:The compensation function of the measured value is determined according to the error value, wherein the error value is determined according to the measured value and a predetermined standard value, and the compensation function is calculated by the following formula: <mrow> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <msup> <mi>r</mi> <mo>&amp;prime;</mo> </msup> <mo>=</mo> <mi>r</mi> <mo>-</mo> <msub> <mi>k</mi> <mn>1</mn> </msub> <mo>(</mo> <mi>r</mi> <mo>,</mo> <mi>&amp;theta;</mi> <mo>)</mo> </mtd> </mtr> <mtr> <mtd> <msup> <mi>&amp;theta;</mi> <mo>&amp;prime;</mo> </msup> <mo>=</mo> <mi>&amp;theta;</mi> <mo>-</mo> <msub> <mi>k</mi> <mn>2</mn> </msub> <mo>(</mo> <mi>r</mi> <mo>,</mo> <mi>&amp;theta;</mi> <mo>)</mo> </mtd> </mtr> </mtable> </mfenced> <mo>;</mo> </mrow> <mrow><mfenced open = "{" close = ""><mtable><mtr><mtd><msup><mi>r</mi><mo>&amp;prime;</mo></msup><mo>=</mo><mi>r</mi><mo>-</mo><msub><mi>k</mi><mn>1</mn></msub><mo>(</mo><mi>r</mi><mo>,</mo><mi>&amp;theta;</mi><mo>)</mo></mtd></mtr><mtr><mtd><msup><mi>&amp;theta;</mi><mo>&amp;prime;</mo></msup><mo>=</mo><mi>&amp;theta;</mi>mi><mo>-</mo><msub><mi>k</mi><mn>2</mn></msub><mo>(</mo><mi>r</mi><mo>,</mo><mi>&amp;theta;</mi><mo>)</mo></mtd></mtr></mtable></mfenced><mo>;</mo></mrow> r′为所述预定标准值的径向距离;θ′为所述预定标准值的方位角度;所述补偿函数至少包括:所述测量值的径向距离的补偿函数,所述测量值的方位角度的补偿函数;△r=k1(r,θ)为所述测量值的径向距离的补偿函数;△θ=k2(r,θ)为所述测量值的方位角度的补偿函数,k1和k2为常数;r' is the radial distance of the predetermined standard value; θ' is the azimuth angle of the predetermined standard value; the compensation function at least includes: the compensation function of the radial distance of the measured value, the azimuth of the measured value Angle compensation function; Δr=k 1 (r, θ) is the compensation function of the radial distance of the measured value; Δθ=k 2 (r, θ) is the compensation function of the azimuth angle of the measured value, k 1 and k 2 are constants; 采用所述补偿函数对所述测量值进行校正。The measured values are corrected using the compensation function. 5.一种校正误差的装置,其特征在于,包括:5. A device for correcting errors, characterized in that it comprises: 获取模块,用于获取定位局部放电源的测量值,以及所述测量值的径向距离和方位角度;An acquisition module, configured to acquire the measured value for locating the partial discharge source, and the radial distance and azimuth angle of the measured value; 分析模块,用于使用第一模型对所述测量值的径向距离和方位角度进行分析,得到定位所述局部放电源的误差值,其中,所述第一模型为使用多组数据通过机器学习训练得到的,所述多组数据中的每组数据均包括:所述测量值的径向距离和方位角度、所述误差值;An analysis module, configured to use a first model to analyze the radial distance and azimuth angle of the measured value to obtain an error value for locating the partial discharge source, wherein the first model uses multiple sets of data through machine learning Obtained by training, each set of data in the multiple sets of data includes: the radial distance and azimuth angle of the measured value, and the error value; 校正模块,用于依据所述误差值对所述测量值进行校正。A correction module, configured to correct the measurement value according to the error value. 6.根据权利要求5所述的装置,其特征在于,所述获取模块包括:6. The device according to claim 5, wherein the acquisition module comprises: 确定子模块,用于确定局部放电模拟装置中第一传感器和第二传感器之间的至少一个测量点;A determining submodule, configured to determine at least one measurement point between the first sensor and the second sensor in the partial discharge simulation device; 定位子模块,用于通过定位所述至少一个测量点的坐标位置,得到所述局部放电源的测量值,其中,所述测量值至少包括:径向距离和方位角度。The positioning sub-module is configured to obtain the measurement value of the partial discharge source by locating the coordinate position of the at least one measurement point, wherein the measurement value at least includes: a radial distance and an azimuth angle. 7.根据权利要求5所述的装置,其特征在于,至少通过如下模块确定所述第一模型:7. The device according to claim 5, wherein the first model is determined at least by the following modules: 第一确定模块,用于基于BP神经网络,确定所述误差值与所述测量值的径向距离和方位角度的关系公式:The first determining module is used to determine the relational formula of the radial distance and the azimuth angle of the error value and the measured value based on the BP neural network: 其中,△R为所述误差值,r为所述测量值的径向距离,θ为所述测量值的方位角度;Wherein, ΔR is the error value, r is the radial distance of the measured value, and θ is the azimuth angle of the measured value; 第二确定模块,用于将所述关系公式作为所述第一模型。The second determining module is configured to use the relational formula as the first model. 8.根据权利要求5所述的装置,其特征在于,所述校正模块包括:8. The device according to claim 5, wherein the correction module comprises: 补偿确定子模块,用于依据所述误差值确定所述测量值的补偿函数,其中,所述误差值根据所述测量值与预定标准值确定,所述补偿函数通过如下公式计算得到:The compensation determining submodule is used to determine the compensation function of the measured value according to the error value, wherein the error value is determined according to the measured value and a predetermined standard value, and the compensation function is calculated by the following formula: <mrow> <mfenced open = "{" close = ""> <mtable> <mtr> <mtd> <msup> <mi>r</mi> <mo>&amp;prime;</mo> </msup> <mo>=</mo> <mi>r</mi> <mo>-</mo> <msub> <mi>k</mi> <mn>1</mn> </msub> <mo>(</mo> <mi>r</mi> <mo>,</mo> <mi>&amp;theta;</mi> <mo>)</mo> </mtd> </mtr> <mtr> <mtd> <msup> <mi>&amp;theta;</mi> <mo>&amp;prime;</mo> </msup> <mo>=</mo> <mi>&amp;theta;</mi> <mo>-</mo> <msub> <mi>k</mi> <mn>2</mn> </msub> <mo>(</mo> <mi>r</mi> <mo>,</mo> <mi>&amp;theta;</mi> <mo>)</mo> </mtd> </mtr> </mtable> </mfenced> <mo>;</mo> </mrow> <mrow><mfenced open = "{" close = ""><mtable><mtr><mtd><msup><mi>r</mi><mo>&amp;prime;</mo></msup><mo>=</mo><mi>r</mi><mo>-</mo><msub><mi>k</mi><mn>1</mn></msub><mo>(</mo><mi>r</mi><mo>,</mo><mi>&amp;theta;</mi><mo>)</mo></mtd></mtr><mtr><mtd><msup><mi>&amp;theta;</mi><mo>&amp;prime;</mo></msup><mo>=</mo><mi>&amp;theta;</mi>mi><mo>-</mo><msub><mi>k</mi><mn>2</mn></msub><mo>(</mo><mi>r</mi><mo>,</mo><mi>&amp;theta;</mi><mo>)</mo></mtd></mtr></mtable></mfenced><mo>;</mo></mrow> r′为所述预定标准值的径向距离;θ′为所述预定标准值的方位角度;所述补偿函数至少包括:所述测量值的径向距离的补偿函数,所述测量值的方位角度的补偿函数;△r=k1(r,θ)为所述测量值的径向距离的补偿函数;△θ=k2(r,θ)为所述测量值的方位角度的补偿函数,k1和k2为常数;r' is the radial distance of the predetermined standard value; θ' is the azimuth angle of the predetermined standard value; the compensation function at least includes: the compensation function of the radial distance of the measured value, the azimuth of the measured value Angle compensation function; Δr=k 1 (r, θ) is the compensation function of the radial distance of the measured value; Δθ=k 2 (r, θ) is the compensation function of the azimuth angle of the measured value, k 1 and k 2 are constants; 校正子模块,用于采用所述补偿函数对所述测量值进行校正。A corrector module, configured to correct the measured value by using the compensation function. 9.一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,所述程序执行权利要求1至4中任意一项所述的校正误差的方法。9. A storage medium, characterized in that the storage medium includes a stored program, wherein the program executes the error correction method according to any one of claims 1 to 4. 10.一种处理器,其特征在于,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至4中任意一项所述的校正误差的方法。10. A processor, characterized in that the processor is used to run a program, wherein the error correction method according to any one of claims 1 to 4 is executed when the program is running.
CN201711484714.4A 2017-12-29 2017-12-29 Method and apparatus for correcting error, storage medium, and processor Active CN107966638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711484714.4A CN107966638B (en) 2017-12-29 2017-12-29 Method and apparatus for correcting error, storage medium, and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711484714.4A CN107966638B (en) 2017-12-29 2017-12-29 Method and apparatus for correcting error, storage medium, and processor

Publications (2)

Publication Number Publication Date
CN107966638A true CN107966638A (en) 2018-04-27
CN107966638B CN107966638B (en) 2020-09-11

Family

ID=61993764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711484714.4A Active CN107966638B (en) 2017-12-29 2017-12-29 Method and apparatus for correcting error, storage medium, and processor

Country Status (1)

Country Link
CN (1) CN107966638B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108549068A (en) * 2018-05-24 2018-09-18 上海景复信息科技有限公司 A kind of 3 d scan data processing method and data processing system
CN109191386A (en) * 2018-07-18 2019-01-11 武汉精测电子集团股份有限公司 A kind of quick Gamma bearing calibration and device based on BPNN
CN110189331A (en) * 2018-05-31 2019-08-30 上海快仓智能科技有限公司 Build drawing method, image acquisition and processing system and localization method
CN110764049A (en) * 2019-10-30 2020-02-07 北京小米智能科技有限公司 Information processing method, device, terminal and storage medium
CN112578248A (en) * 2020-12-26 2021-03-30 广东电网有限责任公司电力科学研究院 Partial discharge positioning error correction method and system
CN112946569A (en) * 2021-02-01 2021-06-11 Oppo广东移动通信有限公司 Measuring distance correction method, measuring distance correction device, measuring distance correction medium, and electronic device
CN113884823A (en) * 2021-08-11 2022-01-04 国网天津市电力公司电力科学研究院 Apparatus and method for compensating partial discharge positioning error in open-type substations
CN114966547A (en) * 2022-05-18 2022-08-30 珠海视熙科技有限公司 Compensation method, system and device for improving sound source positioning precision
CN110472801B (en) * 2019-08-26 2023-04-07 南方电网科学研究院有限责任公司 Electromagnetic environment assessment method and system for direct-current transmission line

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106019098A (en) * 2016-06-15 2016-10-12 国网北京市电力公司 Partial discharge positioning method, device and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106019098A (en) * 2016-06-15 2016-10-12 国网北京市电力公司 Partial discharge positioning method, device and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108549068A (en) * 2018-05-24 2018-09-18 上海景复信息科技有限公司 A kind of 3 d scan data processing method and data processing system
CN110189331A (en) * 2018-05-31 2019-08-30 上海快仓智能科技有限公司 Build drawing method, image acquisition and processing system and localization method
CN109191386A (en) * 2018-07-18 2019-01-11 武汉精测电子集团股份有限公司 A kind of quick Gamma bearing calibration and device based on BPNN
CN109191386B (en) * 2018-07-18 2020-11-06 武汉精测电子集团股份有限公司 BPNN-based rapid Gamma correction method and device
CN110472801B (en) * 2019-08-26 2023-04-07 南方电网科学研究院有限责任公司 Electromagnetic environment assessment method and system for direct-current transmission line
CN110764049A (en) * 2019-10-30 2020-02-07 北京小米智能科技有限公司 Information processing method, device, terminal and storage medium
CN110764049B (en) * 2019-10-30 2023-05-23 北京小米智能科技有限公司 Information processing method, device, terminal and storage medium
CN112578248A (en) * 2020-12-26 2021-03-30 广东电网有限责任公司电力科学研究院 Partial discharge positioning error correction method and system
CN112946569A (en) * 2021-02-01 2021-06-11 Oppo广东移动通信有限公司 Measuring distance correction method, measuring distance correction device, measuring distance correction medium, and electronic device
CN113884823A (en) * 2021-08-11 2022-01-04 国网天津市电力公司电力科学研究院 Apparatus and method for compensating partial discharge positioning error in open-type substations
CN114966547A (en) * 2022-05-18 2022-08-30 珠海视熙科技有限公司 Compensation method, system and device for improving sound source positioning precision

Also Published As

Publication number Publication date
CN107966638B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN107966638B (en) Method and apparatus for correcting error, storage medium, and processor
CN112147573A (en) A passive positioning method based on CSI amplitude and phase information
CN108037520A (en) Neural Network-Based Direct Positioning Deviation Correction Method under the Condition of Array Amplitude and Phase Error
CN114152825B (en) Transformer fault diagnosis method and device and transformer fault diagnosis system
Li et al. UHF partial discharge localization algorithm based on compressed sensing
CN113030671A (en) Electrical equipment partial discharge fault on-site detection and positioning device and method
CN110971294A (en) Device and method for monitoring polarization state change caused by optical link, and optical receiver
CN108169708A (en) The direct localization method of modular neural network
CN107703418A (en) Shelf depreciation location error compensation method based on more radial base neural nets
CN109490728B (en) A regularization-based partial discharge localization method for substations
CN105866555A (en) Use of voltage probe to measure high voltage amplitude and phase to improve on-line bushing monitoring relevance
Tian et al. Datadriven false data injection attacks against cyber-physical power systems
CN103424735A (en) Near field source locating method, device and system based on minimum description length
CN109991519A (en) Partial discharge direction finding method and system based on neural network and wireless sensor array
CN106646350A (en) Correction method for inconsistency of amplitude gains of channels of single vector hydrophone
CN117148074A (en) Low-frequency transformer partial discharge combined positioning method and related equipment
CN111859241A (en) An Unsupervised Sound Source Orientation Method Based on Acoustic Transfer Function Learning
CN107271868A (en) A kind of shelf depreciation time-delay calculation error compensating method based on multiple neural network
CN118068228A (en) High-efficiency detection method and system for short circuit of extra-high voltage reactor
CN106019098A (en) Partial discharge positioning method, device and system
CN113567916B (en) Correlation interferometer direction finding method, system, equipment and storage medium
CN109557365B (en) Grid voltage frequency and phase angle detection method and system, single-phase grid detection system
CN108680832B (en) Partial discharge positioning method based on SA-APSO and dimension reduction projection dynamic contraction circle
CN112255507B (en) Partial discharge positioning method and device, computer equipment and storage medium
CN117278150A (en) An indoor wireless network signal measurement and calculation method, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant