CN115099280A - A Prony iterative analysis method, computing device, storage medium and power grid system - Google Patents

A Prony iterative analysis method, computing device, storage medium and power grid system Download PDF

Info

Publication number
CN115099280A
CN115099280A CN202210807865.3A CN202210807865A CN115099280A CN 115099280 A CN115099280 A CN 115099280A CN 202210807865 A CN202210807865 A CN 202210807865A CN 115099280 A CN115099280 A CN 115099280A
Authority
CN
China
Prior art keywords
data point
sequence
prony
dimensional
kth
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.)
Withdrawn
Application number
CN202210807865.3A
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.)
Xiangyang Power Supply Co of State Grid Hubei Electric Power Co Ltd
Original Assignee
Xiangyang Power Supply Co of State Grid Hubei 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 Xiangyang Power Supply Co of State Grid Hubei Electric Power Co Ltd filed Critical Xiangyang Power Supply Co of State Grid Hubei Electric Power Co Ltd
Priority to CN202210807865.3A priority Critical patent/CN115099280A/en
Publication of CN115099280A publication Critical patent/CN115099280A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J3/00Circuit arrangements for AC mains or AC distribution networks
    • H02J3/002Flicker reduction, e.g. compensation of flicker introduced by non-linear load

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Complex Calculations (AREA)

Abstract

The invention provides a Prony iteration analysis method, a calculation device, a storage medium and a power grid system, which relate to the technical field of oscillation analysis and comprise the following steps: the method comprises the steps of carrying out data sampling on an oscillation signal to be identified according to a set sampling rate, carrying out preprocessing with abnormal data detection and correction on a one-dimensional sample set obtained through sampling, expanding a multi-dimensional sample set, adopting a Prony model of a P order to infer the multi-dimensional sample set according to the multi-dimensional sample set, detecting whether P reaches an expected value or not according to an oscillation parameter set, if not, adopting an iteration method to heighten the Prony model by one order, if so, determining and outputting an oscillation analysis result, overcoming the defect that the accuracy is difficult to promote due to the fact that a traditional Prony oscillation analysis method is limited by the signal-to-noise ratio and the fixed-order accuracy of the sample, avoiding the fixed-order in the Prony oscillation analysis process, simplifying the fixed-order mode, reducing noise interference, promoting the fixed-order accuracy and being beneficial to promoting the accuracy and efficiency of Prony oscillation analysis.

Description

一种Prony迭代分析方法、计算设备、存储介质和电网系统A Prony iterative analysis method, computing device, storage medium and power grid system

技术领域technical field

本发明涉及振荡分析技术领域,具体而言,涉及一种Prony迭代分析方法、计算设备、存储介质和电网系统。The invention relates to the technical field of oscillation analysis, and in particular, to a Prony iterative analysis method, a computing device, a storage medium and a power grid system.

背景技术Background technique

随着越来越多的新能源设备接入电网系统,电网系统的阻尼和惯性也随之降低,更容易激发不同的振荡模态,振荡现象也更加频繁,严重威胁电网系统的稳定性和安全性,电网系统在发生振荡过程中会产生振荡信号,分析电网系统中的振荡信号,对在线预警和电网改造等尤显重要。As more and more new energy devices are connected to the power grid system, the damping and inertia of the power grid system are also reduced, which makes it easier to stimulate different oscillation modes, and the oscillation phenomenon becomes more frequent, which seriously threatens the stability and security of the power grid system. The power grid system will generate oscillating signals during the oscillation process. The analysis of the oscillating signals in the power grid system is particularly important for online early warning and power grid transformation.

相比于傅里叶算法和最小二乘算法,Prony模型用一组具有任意幅值、相位、频率和阻尼系数的指数函数的线性组合来拟合信号,具有无需频域响应和样本自相关估计等优势,更适用于分析振荡信号。Compared with the Fourier algorithm and the least squares algorithm, the Prony model fits the signal with a linear combination of a set of exponential functions with arbitrary amplitude, phase, frequency and damping coefficient, with no need for frequency domain response and sample autocorrelation estimation and other advantages, it is more suitable for analyzing oscillating signals.

目前,在Prony振荡分析过程中,依据从待辨识振荡信号采集得到的多个数据点构建扩展阶矩阵,采取奇异值分解法为扩展阶矩阵确定有效秩P(也即Prony模型的阶数)后,基于扩展阶矩阵求解P维线性方程组,得到方程系数序列一及最小误差能量,基于方程系数序列一求解特征方程,得到根序列,结合根序列和采样得到的多个数据点求解范德蒙特方程组,得到方程系数序列二,基于方程系数序列二测算振幅序列和相位序列,基于根序列测算频率序列和阻尼系数序列,可以输出振幅序列、相位序列、频率序列和阻尼系数序列作为振荡分析结果。At present, in the process of Prony oscillation analysis, an extended order matrix is constructed based on multiple data points collected from the oscillation signal to be identified, and the singular value decomposition method is used to determine the effective rank P (that is, the order of the Prony model) for the extended order matrix. , solve the P-dimensional linear equation system based on the extended order matrix, obtain the equation coefficient sequence 1 and the minimum error energy, solve the characteristic equation based on the equation coefficient sequence 1, obtain the root sequence, and combine the root sequence and multiple data points obtained by sampling to solve the van der Monte Equation system, get equation coefficient sequence 2, calculate amplitude sequence and phase sequence based on equation coefficient sequence 2, calculate frequency sequence and damping coefficient sequence based on root sequence, and output amplitude sequence, phase sequence, frequency sequence and damping coefficient sequence as oscillation analysis results .

其中,方程系数序列一可以表示为[a1,…,ai,…,aP]T,根序列可以表示为[z1,…,zi,…,zP]T,近似点序列可以表示为

Figure BDA0003738993220000011
方程系数序列二可以表示为[b1,…,bi,…,bP]T,i为从1到P的正整数。Among them, the equation coefficient sequence 1 can be expressed as [a 1 , ..., a i , ..., a P ] T , the root sequence can be expressed as [z 1 , ..., zi , ..., z P ] T , the approximate point sequence can be expressed as Expressed as
Figure BDA0003738993220000011
Equation coefficient sequence two can be expressed as [b 1 , . . . , b i , . . , b P ] T , where i is a positive integer from 1 to P.

其中,振幅序列可以表示为[A1,…,Ai,…,AP]T,相位序列可以表示为[θ1,…,θi,…,θP]T,频率序列可以表示为[f1,…,fi,…,fP]T,阻尼系数序列可以表示为[α1,…,αi,…,αP]TAmong them, the amplitude sequence can be expressed as [A 1 , ..., A i , ..., A P ] T , the phase sequence can be expressed as [θ 1 , ..., θ i , ..., θ P ] T , and the frequency sequence can be expressed as [ f 1 , ..., f i , ..., f P ] T , the damping coefficient sequence can be expressed as [α 1 , ..., α i , ..., α P ] T .

然而,受限于样本信噪比偏高或/和定阶精度偏低,现有的Prony振荡分析方法难以提升准确性。However, limited by the high signal-to-noise ratio of the sample or/and the low accuracy of the order determination, the existing Prony oscillation analysis method is difficult to improve the accuracy.

发明内容SUMMARY OF THE INVENTION

本发明旨在至少在一定程度上解决相关技术中的技术问题,为达上述目的,本发明提供一种Prony迭代分析方法、计算设备、非临时性计算机可读存储介质和电网系统。The present invention aims to solve the technical problems in the related art at least to a certain extent. To achieve the above purpose, the present invention provides a Prony iterative analysis method, a computing device, a non-transitory computer-readable storage medium and a power grid system.

本发明第一方面提供一种Prony迭代分析方法,其包括:A first aspect of the present invention provides a Prony iterative analysis method, which includes:

S1,按照设定的采样率对待辨识振荡信号进行数据采样,获得长度为N的一维样本集,其中,N为大于2的正整数;S1, perform data sampling on the oscillating signal to be identified according to the set sampling rate, and obtain a one-dimensional sample set with a length of N, where N is a positive integer greater than 2;

S2,对所述一维样本集进行具有异常数据检测与校正的预处理;S2, performing preprocessing with abnormal data detection and correction on the one-dimensional sample set;

S3,基于经过所述预处理的所述一维样本集扩容出多维样本集;S3, expanding a multi-dimensional sample set based on the one-dimensional sample set that has undergone the preprocessing;

S4,依据所述多维样本集,采取P阶的Prony模型推测出振荡参数集,其中,P为大于1的正整数;S4, according to the multi-dimensional sample set, adopt a P-order Prony model to infer an oscillation parameter set, where P is a positive integer greater than 1;

S5,依据所述振荡参数集检测P是否达到期望值,若否,则执行S6,若是,则执行S7;S5, according to the oscillation parameter set to detect whether P reaches the expected value, if not, then execute S6, if so, execute S7;

S6,令P=P+1后,返回至所述S4,以使所述Prony模型调高一阶;S6, after making P=P+1, return to the S4, so that the Prony model is adjusted to one order higher;

S7,确定并输出与所述待辨识振荡信号适配的振荡分析结果。S7, determine and output an oscillation analysis result adapted to the oscillation signal to be identified.

本发明第二方面提供一种计算设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如第一方面所述的Prony迭代分析方法。A second aspect of the present invention provides a computing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program, the implementation is as described in the first aspect The Prony iterative analysis method.

本发明第三方面提供一种非临时性计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现如第一方面所述的Prony迭代分析方法。A third aspect of the present invention provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the Prony iterative analysis method described in the first aspect.

本发明第四方面提供一种电网系统,其特征在于,包括如第二方面所述的计算设备。A fourth aspect of the present invention provides a power grid system, characterized by comprising the computing device described in the second aspect.

上述Prony迭代分析方法、计算设备、非临时性计算机可读存储介质和电网系统的有益效果是:考虑到在采样过程中容易出现数据异常,通过预处理使采样得到的一维样本集在出现数据异常情况下得以校正,有助于提升样本准确性,以经过预处理的一维样本集,扩充了样本数据,增加了样本容量,有助于提升样本信噪比,以扩容得到的多维样本集为依据,形成Prony振荡分析与阶数迭代相互促进的循环机制,直至定阶到期望值为止,克服了传统的Prony振荡分析方法因受限于样本信噪比和定阶精度而准确性难以提升的缺陷,无需在Prony振荡分析过程中定阶,简化了定阶方式,既降低了噪音干扰,也提升了定阶精度,有助于提升Prony振荡分析的准确性和效率。The beneficial effects of the above-mentioned Prony iterative analysis method, computing device, non-transitory computer-readable storage medium and power grid system are: considering that data anomalies are likely to occur during the sampling process, the one-dimensional sample set obtained by sampling can be obtained by preprocessing. Correcting abnormal conditions helps to improve the accuracy of samples. The preprocessed one-dimensional sample set expands the sample data, increases the sample capacity, helps to improve the sample signal-to-noise ratio, and expands the obtained multi-dimensional sample set. Based on this, a cyclic mechanism in which Prony oscillation analysis and order iteration promote each other is formed until the order is determined to the desired value, which overcomes the difficulty of improving the accuracy of the traditional Prony oscillation analysis method due to the limitation of the sample signal-to-noise ratio and the accuracy of order determination. There is no need to determine the order in the process of Prony oscillation analysis, which simplifies the order determination method, reduces noise interference, and improves the order determination accuracy, which helps to improve the accuracy and efficiency of Prony oscillation analysis.

附图说明Description of drawings

图1为本发明实施例的一种Prony迭代分析方法的流程示意图;1 is a schematic flowchart of a Prony iterative analysis method according to an embodiment of the present invention;

图2为图1中的S2的流程示意图;Fig. 2 is the schematic flow chart of S2 in Fig. 1;

图3为本发明实施例的子序列的示意图;3 is a schematic diagram of a subsequence according to an embodiment of the present invention;

图4为图1中的S3的流程示意图;Fig. 4 is the schematic flow chart of S3 in Fig. 1;

图5为本发明实施例的替换第k+1个数据点的序列示意图;5 is a schematic diagram of a sequence of replacing the k+1 th data point according to an embodiment of the present invention;

图6为图1中的S4的流程示意图;Fig. 6 is the schematic flow chart of S4 in Fig. 1;

图7a为本发明实施例的从多路母线分别采集振荡信号的波形示意图;7a is a schematic diagram of waveforms of respectively collecting oscillating signals from multiple bus bars according to an embodiment of the present invention;

图7b为本发明实施例的从母线5采集振荡信号的波形示意图;FIG. 7b is a schematic diagram of the waveform of the oscillating signal collected from the bus bar 5 according to an embodiment of the present invention;

图7c为本发明实施例的从母线13采集振荡信号的波形示意图;FIG. 7c is a schematic diagram of the waveform of the oscillating signal collected from the bus bar 13 according to an embodiment of the present invention;

图8a为本发明实施例的对应于P为3的一种振荡模态的示意图;8a is a schematic diagram of an oscillation mode corresponding to P is 3 according to an embodiment of the present invention;

图8b为本发明实施例的对应于P为3的待辨识振荡信号与拟合振荡信号对比的示意图;Fig. 8b is a schematic diagram corresponding to the comparison between the oscillation signal to be identified and the fitting oscillation signal corresponding to P is 3 according to an embodiment of the present invention;

图9a为本发明实施例的对应于P为11的两种振荡模态的示意图;FIG. 9a is a schematic diagram corresponding to two oscillation modes where P is 11 according to an embodiment of the present invention;

图9b为本发明实施例的对应于P为11的待辨识振荡信号与拟合振荡信号对比的示意图;Fig. 9b is a schematic diagram corresponding to the comparison between the oscillation signal to be identified and the fitting oscillation signal corresponding to P is 11 according to an embodiment of the present invention;

图10a为本发明实施例的对应于P为15的三种振荡模态的示意图;10a is a schematic diagram of three oscillation modes corresponding to P is 15 according to an embodiment of the present invention;

图10b为本发明实施例的对应于P为15的待辨识振荡信号与拟合振荡信号对比的示意图;FIG. 10b is a schematic diagram corresponding to the comparison between the to-be-identified oscillation signal and the fitted oscillation signal with P of 15 according to an embodiment of the present invention;

图11a为本发明实施例的对应于P为17的三种振荡模态的示意图;11a is a schematic diagram of three oscillation modes corresponding to P is 17 according to an embodiment of the present invention;

图11b为本发明实施例的对应于P为17的待辨识振荡信号与拟合振荡信号对比的示意图。FIG. 11 b is a schematic diagram corresponding to the comparison between the to-be-identified oscillating signal and the fitting oscillating signal when P is 17 according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图详细描述本发明的实施例,描述涉及附图时,除非另有表示,不同附图中的相同附图标定表示相同或相似的要素。要说明的是,以下示例性实施例中所描述的实施方式并不代表本发明的所有实施方式。它们仅是与如权利要求书中所详述的、本发明公开的一些方面相一致的装置和方法的例子,本发明的范围并不局限于此。在不矛盾的前提下,本发明各个实施例中的特征可以相互组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Where the description refers to the drawings, the same reference numerals in different drawings designate the same or similar elements unless otherwise indicated. It is to be noted that the implementations described in the following exemplary embodiments do not represent all implementations of the present invention. They are merely examples of apparatus and methods consistent with some aspects of the present disclosure as recited in the claims, and the scope of the present invention is not limited thereto. The features of the various embodiments of the present invention may be combined with each other without inconsistency.

此外,术语“序列一”、“序列二”仅用以描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“序列一”、“序列二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”或“多维”的含义是至少两维,例如:两维或三维等,除非另有明确具体的限定。In addition, the terms "sequence one" and "sequence two" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, features defined as "sequence one" and "sequence two" may explicitly or implicitly include at least one of the features. In the description of the present invention, "multiple" or "multi-dimensional" means at least two dimensions, for example, two or three dimensions, etc., unless otherwise expressly and specifically defined.

参见图1,本发明一实施例的Prony迭代分析方法,包括S1至S7。Referring to FIG. 1, the Prony iterative analysis method according to an embodiment of the present invention includes S1 to S7.

S1,按照设定的采样率对待辨识振荡信号进行数据采样,获得长度为N的一维样本集,其中,N为大于2的正整数。S1, perform data sampling on the oscillating signal to be identified according to a set sampling rate, and obtain a one-dimensional sample set with a length of N, where N is a positive integer greater than 2.

本发明实施例中,一维样本集可以表示为X=[x1,…,xn,…xN],xn表示采样得到的第n个数据点,n从1到N,应当理解的是,一维样本集的表现形式并不局限于呈行向量形式,也可以呈列向量形式,使采集得到的N个数据点得以序列形式保存下来,即可形成一维样本集。In the embodiment of the present invention, the one-dimensional sample set may be expressed as X=[ x 1 , . . . , x n , . Yes, the expression form of the one-dimensional sample set is not limited to the form of row vectors, but can also be in the form of column vectors, so that the collected N data points can be stored in the form of a sequence, and a one-dimensional sample set can be formed.

S2,对一维样本集进行具有异常数据检测与校正的预处理。S2, perform preprocessing with abnormal data detection and correction on the one-dimensional sample set.

S3,基于经过预处理的一维样本集扩容出多维样本集。S3, a multi-dimensional sample set is expanded based on the pre-processed one-dimensional sample set.

S4,依据多维样本集,采取P阶的Prony模型推测出振荡参数集,其中,P为大于1的正整数。S4, according to the multi-dimensional sample set, adopt the P-order Prony model to infer the oscillation parameter set, where P is a positive integer greater than 1.

S5,依据振荡参数集检测P是否达到期望值,若否,则执行S6,若是,则执行S7。S5, according to the oscillation parameter set to detect whether P reaches the expected value, if not, execute S6, if yes, execute S7.

S6,令P=P+1后,返回至所述S4,以使Prony模型调高一阶。S6, after setting P=P+1, return to the S4, so as to increase the Prony model by one order.

S7,确定并输出与待辨识振荡信号适配的振荡分析结果。S7, determine and output an oscillation analysis result that is adapted to the oscillation signal to be identified.

使用上述Prony迭代分析方法,考虑到在采样过程中容易出现数据异常,通过预处理使采样得到的一维样本集在出现数据异常情况下得以校正,有助于提升样本准确性,以经过预处理的一维样本集,扩充了样本数据,增加了样本容量,有助于提升样本信噪比,以扩容得到的多维样本集为依据,形成Prony振荡分析与阶数迭代相互促进的循环机制,直至定阶到期望值为止,克服了传统的Prony振荡分析方法因受限于样本信噪比和定阶精度而准确性难以提升的缺陷,无需在Prony振荡分析过程中定阶,简化了定阶方式,既降低了噪音干扰,也提升了定阶精度,有助于提升Prony振荡分析的准确性和效率。Using the above Prony iterative analysis method, considering that data anomalies are prone to occur during the sampling process, the one-dimensional sample set obtained by sampling can be corrected in the event of data anomalies through preprocessing, which is helpful to improve the accuracy of the samples. The one-dimensional sample set, which expands the sample data, increases the sample capacity, and helps to improve the sample signal-to-noise ratio. Based on the multi-dimensional sample set obtained by the expansion, a circular mechanism in which Prony oscillation analysis and order iteration promote each other is formed, until The order is determined to the expected value, which overcomes the defect that the accuracy of the traditional Prony oscillation analysis method is difficult to improve due to the limitation of the sample signal-to-noise ratio and the accuracy of the order determination. It not only reduces noise interference, but also improves the accuracy of order determination, which helps to improve the accuracy and efficiency of Prony oscillation analysis.

可选地,参见图2,S2包括S21至S26。Optionally, referring to FIG. 2 , S2 includes S21 to S26.

S21,在一维样本集中,选定第n个数据点为受检数据点,令分列于受检数据点两侧并与其连续而呈子序列的多个数据点各自为参考数据点,其中,n从2开始。S21, select the nth data point as the tested data point in the one-dimensional sample set, and let the multiple data points that are arranged on both sides of the tested data point and are continuous with it and form a subsequence are respectively reference data points, wherein , n starts from 2.

S22,依据多个参考数据点,检测受检数据点是否发生异常,若是,则先执行S23再执行S24,若否,则直接执行S24。S22, according to a plurality of reference data points, detect whether the detected data point is abnormal, if so, execute S23 first and then execute S24, if not, execute S24 directly.

S23,对受检数据点进行校正。S23, correcting the detected data points.

S24,检测n是否达到N-1,若否,则执行S25,若是,则执行S26;S24, check whether n reaches N-1, if not, execute S25, if yes, execute S26;

S25,令n=n+1后,返回至S21,以使子序列跟随受检数据点同步地被前移一位。S25, after setting n=n+1, return to S21, so that the subsequence is moved forward by one synchronously following the detected data point.

S26,输出经过预处理的一维样本集,以供S3使用。S26, output the preprocessed one-dimensional sample set for use in S3.

在一示例中,第2个数据点为受检数据点,第1个数据点和第3个数据点各自可以为参考数据点;第3个数据点为受检数据点,第2个数据点和第4个数据点各自可以为参考数据点;依次类推,第N-1个数据点为受检数据点,第N-2个数据点和第N个数据点各自可以为参考数据点。In an example, the second data point is the tested data point, the first data point and the third data point can each be the reference data point; the third data point is the tested data point, the second data point and the fourth data point can each be a reference data point; and so on, the N-1th data point is a tested data point, and the N-2th data point and the Nth data point can each be a reference data point.

在另一示例中,第2个数据点为受检数据点,第1个数据点、第3个数据点、第4个数据点和第5个数据点各自可以为参考数据点;第3个数据点为受检数据点,第1个数据点、第2个数据点、第4个数据点和第5个数据点各自可以为参考数据点,依次类推到第N-2个数据点;第N-1个数据点为受检数据点,第N-4个数据点、第N-3个数据点、第N-2个数据点和第N个数据点各自可以为参考数据点。In another example, the 2nd data point is the test data point, the 1st data point, the 3rd data point, the 4th data point and the 5th data point may each be the reference data point; the 3rd data point The data point is the tested data point, the first data point, the second data point, the fourth data point and the fifth data point can each be the reference data point, and so on to the N-2th data point; The N-1 data points are the inspected data points, and the N-4th data point, the N-3th data point, the N-2th data point, and the Nth data point may each be a reference data point.

应当理解的是,位于受检数据点之前的参考数据点和位于受检数据点之后的参考数据点,可以个数相同且保持不变,也可以取决于受检数据点所在的位置而适应性改变;子序列可以视作数据窗来限定数据范围,子序列的长度可以取决于一维样本集的实际情况,例如,如果N等于100,子序列的长度可以为5,如果N等于150,子序列的长度可以为8。It should be understood that the reference data points located before the tested data point and the reference data points located after the tested data point may be the same in number and remain unchanged, or may be adaptive depending on the location of the tested data point. Change; the subsequence can be regarded as a data window to limit the data range, and the length of the subsequence can depend on the actual situation of the one-dimensional sample set, for example, if N equals 100, the length of the subsequence can be 5, if N equals 150, the subsequence The length of the sequence can be 8.

对于一维样本集,在从第2个数据点遍历完第N-1个数据点过程中,对各数据点进行异常检测,仅对发生异常情况的各数据点进行校正,维持呈正常情况的各数据点不变,以防错漏,兼顾了简易性和准确性。For a one-dimensional sample set, during the process of traversing the N-1th data point from the second data point, abnormality detection is performed on each data point, and only each data point with abnormal conditions is corrected to maintain the normal condition. Each data point remains unchanged to prevent errors and omissions, taking into account simplicity and accuracy.

可选地,多个参考数据点与发生异常的受检数据点满足以下异常数据检测模型:Optionally, the multiple reference data points and the abnormal detected data points satisfy the following abnormal data detection model:

Figure BDA0003738993220000061
Figure BDA0003738993220000061

其中,x′n表示适于替换受检数据点xn的新的数据点,从xn-i到xn-1各自表示位于受检数据点之前的参考数据点,从xn+1到xL+n-i-1各自表示位于受检数据点之后的参考数据点,C0表示大于零的预设阈值,L表示子序列的长度,L为[3,N-1]中的正整数,i为[1,L-2]中的正整数。where x' n represents a new data point suitable for replacing the tested data point x n , from x ni to x n-1 each represents a reference data point located before the tested data point, from x n+1 to x L +ni-1 each represents a reference data point located after the tested data point, C 0 represents a preset threshold greater than zero, L represents the length of the subsequence, L is a positive integer in [3, N-1], and i is A positive integer in [1, L-2].

示例性地,参见图3,发生异常的第n个数据点为受检数据点,各自正常的第n-2个数据点、第n-1个数据点、第n+1个数据点以及第n+1个数据点均为参考数据点,该四个参考数据点呈单调递增,例如,五个数据点依次可以为1.2、3.6、10、6.8和9,C0可以取值为3,新的数据点x′n为5.2,本发明的示例旨在帮助理解样本集处理过程,不应构成对样本集实际情况的限制。Exemplarily, referring to FIG. 3, the nth data point in which an abnormality occurs is the inspected data point, and the respective normal n-2th data points, n-1th data points, n+1th data points, and n+1th data points are normal. The n+1 data points are all reference data points, and the four reference data points are monotonically increasing. For example, the five data points can be 1.2, 3.6, 10, 6.8, and 9 in sequence, C 0 can be 3, and the new The data point x′ n of , is 5.2, and the examples of the present invention are intended to help understand the processing process of the sample set, and should not constitute a limitation on the actual situation of the sample set.

在异常数据检测模型中,既限制了多个参考数据点呈单调递增或单调递减,也限制了发生异常的受检数据点失去单调性,多个参考数据点与正常的受检数据点不满足异常数据检测模型,兼顾了简易性和准确性。In the abnormal data detection model, it not only restricts the monotonically increasing or monotonically decreasing multiple reference data points, but also restricts the abnormal detected data points from losing monotonicity, and the multiple reference data points do not satisfy the normal detected data points. Anomaly data detection model, taking into account simplicity and accuracy.

可选地,S23包括:在两个参考数据点xn-1与xn+1之间,对受检数据点xn进行删除后,插补新的数据点x′n,以防紊乱,具有简易性和可靠性。Optionally, S23 includes: between the two reference data points x n-1 and x n+1 , after deleting the tested data point x n , interpolating a new data point x' n to prevent disorder, Simplicity and reliability.

可选地,参见图4,S3包括S31至S35。Optionally, referring to FIG. 4 , S3 includes S31 to S35.

S31,构建并初始化二维数组,在二维数组中,将经过预处理的一维样本集设为第1维向量。S31 , constructing and initializing a two-dimensional array, and setting the preprocessed one-dimensional sample set as a first-dimensional vector in the two-dimensional array.

S32,第k次将第1维向量复制为第k+1维向量,当第k+1维向量中,以经过对第k个数据点和第k+2个数据点进行线性插值测算得到的新的数据点替换第k+1个数据点,其中,k从1开始。S32, the kth 1st dimension vector is copied into the k+1th dimension vector, when the k+1th dimension vector is obtained by performing linear interpolation on the kth data point and the k+2th data point. The new data point replaces the k+1th data point, where k starts at 1.

示例性地,参见图5,两个实线圈分别表示第k个数据点和第k+2个数据点,测算该两个数据点的算术平均值作为新的数据点,删除以叉号表示的第k+1个数据点后,插补以虚线圈表示的新的数据点。Exemplarily, referring to FIG. 5 , the two solid circles represent the kth data point and the k+2th data point respectively, and the arithmetic mean value of the two data points is calculated as a new data point, and the one represented by the cross is deleted. After the k+1th data point, a new data point indicated by a dashed circle is interpolated.

S33,检测k是否达到N-2,若否,则执行S34,若是,则执行S35。S33, check whether k reaches N-2, if not, execute S34, if yes, execute S35.

S34,令k=k+1后,返回至S32,以依据第1维向量在二维数组中重构下一维向量。S34, after setting k=k+1, return to S32 to reconstruct the next-dimensional vector in the two-dimensional array according to the first-dimensional vector.

S35,输出具有N-1维向量的二维数组为多维样本集,以供S4使用。S35, output a two-dimensional array with N-1-dimensional vectors as a multi-dimensional sample set for use in S4.

示例性地,多维样本集可以表示如下:Illustratively, a multidimensional sample set can be represented as follows:

Figure BDA0003738993220000071
Figure BDA0003738993220000071

其中,x(k,n)表示第k维向量中的第n个数据点,k从1到N-1。where x (k,n) represents the nth data point in the kth dimension vector, and k is from 1 to N-1.

利用经过预处理的一维样本集,借助二维数组,除第1维向量以外,扩展出N-2维向量,兼顾了简易性和准确性。Using the preprocessed one-dimensional sample set, with the help of two-dimensional arrays, in addition to the first-dimensional vector, N-2-dimensional vectors are extended, taking into account simplicity and accuracy.

可选地,参见图6,S4包括S41至S47。Optionally, referring to FIG. 6 , S4 includes S41 to S47.

S41,基于多维样本集中的第k维向量,求解P维线性方程组,得到第k个方程系数序列一,其中,k从1开始重新迭代,2p≤N。S41 , solving the P-dimensional linear equation system based on the k-th dimension vector in the multi-dimensional sample set to obtain the k-th equation coefficient sequence 1, where k is re-iterated from 1, and 2p≤N.

将第k维向量中的各数据点代入P维线性方程组,可以表示如下:Substituting each data point in the k-th dimensional vector into the P-dimensional system of linear equations can be expressed as follows:

Figure BDA0003738993220000072
Figure BDA0003738993220000072

其中,第k个方程系数序列一可以表示为[a(k,1),…,a(k,j),…,a(k,P)]T,j为从1到P的正整数。Wherein, the k-th equation coefficient sequence 1 can be expressed as [a (k, 1) , . . . , a (k, j) , . . , a (k, P) ] T , where j is a positive integer from 1 to P.

S42,基于第k个方程系数序列一,求解特征方程,得到第k个根序列。S42, based on the coefficient sequence 1 of the k-th equation, solve the characteristic equation to obtain the k-th root sequence.

将第k个方程系数序列一代入特征方程,可以表示如下:Substituting the kth equation coefficient sequence into the characteristic equation, it can be expressed as follows:

Figure BDA0003738993220000081
Figure BDA0003738993220000081

其中,z(k,j)表示与第k个方程系数序列一中的第j个系数适配的根,第k个根序列可以表示为[z(k,1),…,z(k,j),…,z(k,P)]TAmong them, z (k, j) represents the root adapted to the j th coefficient in the k th equation coefficient sequence 1, and the k th root sequence can be expressed as [z (k, 1) , . . . , z (k, j) , ..., z (k, P) ] T .

S43,基于第k个根序列和第k维向量,求解范德蒙特方程组,得到第k个方程系数序列二。S43, based on the kth root sequence and the kth dimension vector, solve the Vandermonte equation system to obtain the second kth equation coefficient sequence.

将第k个根序列以及第k维向量中的前P个数据点代入范德蒙特方程组中,可以表示如下:Substituting the kth root sequence and the first P data points in the kth dimension vector into the Vandermont equations can be expressed as follows:

Figure BDA0003738993220000082
Figure BDA0003738993220000082

其中,第k个方程系数序列二可以表示为[b(k,1),…,b(k,j),…,b(k,P)]TWherein, the k-th equation coefficient sequence two can be expressed as [b (k, 1) , . . . , b (k, j) , . . , b (k, P) ] T .

S44,基于第k个方程系数序列二分别测算第k个振幅序列和第k个相位序列;以及,基于第k个根序列分别测算第k个频率序列和第k个阻尼系数序列。S44, respectively calculating the kth amplitude sequence and the kth phase sequence based on the kth equation coefficient sequence 2; and, respectively calculating the kth frequency sequence and the kth damping coefficient sequence based on the kth root sequence.

通过式(1)对第k个方程系数序列二进行测算,得到第k个振幅序列,第k个振幅序列可以表示为[A(k,1),…,A(k,2),…,A(k,P)]TMeasure the coefficient sequence 2 of the k-th equation by formula (1) to obtain the k-th amplitude sequence, which can be expressed as [A (k, 1) , ..., A (k, 2) , ..., A (k,P) ] T .

式(1):A(k,j)=|b(k,j)|。Formula (1): A (k, j) = |b (k, j) |.

通过式(2)对第k个方程系数序列二进行测算,得到第k个相位序列,第k个相位序列可以表示为[θ(k,1),…,θ(k,j),…,θ(k,P)]TThe k-th equation coefficient sequence 2 is calculated by formula (2), and the k-th phase sequence is obtained. The k-th phase sequence can be expressed as [θ (k, 1) , ..., θ (k, j) , ..., θ (k,P) ] T .

式(2):θ(k,j)=arctan[Im(b(k,j))/Re(b(k,j))],其中,arctan表示反正切函数,Im表示取复数虚部函数,Re表示取复数实部函数。Formula (2): θ (k, j) = arctan[Im(b (k, j) )/Re(b (k, j) )], where arctan represents the arc tangent function, and Im represents the complex imaginary part function , Re means to take the complex real part function.

通过式(3)对第k个根序列进行测算,得到第k个频率序列,第k个频率序列可以表示为[f(k,1),…,f(k,j),…,f(k,P)]TThe kth root sequence is measured by formula (3), and the kth frequency sequence is obtained, and the kth frequency sequence can be expressed as [f (k,1) ,...,f (k,j) ,...,f ( k, P) ] T .

式(3):f(k,j)=arctan[Im(z(k,j))/Re(z(k,j))]。Formula (3): f (k, j) = arctan[Im(z (k, j) )/Re(z (k, j) )].

通过式(4)对第k个根序列进行测算,得到第k个阻尼系数序列,第k个阻尼系数序列可以表示为[α(k,1),…,α(k,j),…,α(k,P)]TThe k-th root sequence is measured by formula (4), and the k-th damping coefficient sequence is obtained. The k-th damping coefficient sequence can be expressed as [α ( k , 1) , . . . α (k, P) ] T .

式(4):α(k,j)=In|z(k,j)|/Δt,其中,In表示自然对数函数,Δt表示采样时间间隔。Formula (4): α (k, j) =In|z (k, j) |/Δt, where In represents the natural logarithmic function, and Δt represents the sampling time interval.

S45,检测k是否达到N-1,若否,则执行S46,若是,则执行S47。S45, check whether k reaches N-1, if not, execute S46, if yes, execute S47.

S46,令k=k+1后,返回至S41。S46, after setting k=k+1, the process returns to S41.

S47,组合N-1个振幅序列、N-1个相位序列、N-1个频率序列以及N-1个阻尼系数序列,得到振荡参数集。S47, combine N-1 amplitude sequences, N-1 phase sequences, N-1 frequency sequences and N-1 damping coefficient sequences to obtain an oscillation parameter set.

示例性地,可以组合N-1个振幅序列为二维数组,同理,N-1个相位序列、N-1个频率序列以及N-1个阻尼系数序列可以与N-1个振幅序列的组合方式相同,此处不再赘述。Exemplarily, N-1 amplitude sequences can be combined into a two-dimensional array. Similarly, N-1 phase sequences, N-1 frequency sequences, and N-1 damping coefficient sequences can be combined with N-1 amplitude sequences. The combination method is the same and will not be repeated here.

Figure BDA0003738993220000091
Figure BDA0003738993220000091

如上所示,以二维数组形式组合N-1个振幅序列。As shown above, combine N-1 amplitude sequences in a two-dimensional array.

可选地,S5包括:Optionally, S5 includes:

分别对N-1个振幅序列、N-1个相位序列、N-1个频率序列以及N-1个阻尼系数序列进行平均化测算处理,得到振幅均值序列、相位均值序列、频率均值序列和阻尼均值序列;Perform averaging and calculation processing on N-1 amplitude sequences, N-1 phase sequences, N-1 frequency sequences, and N-1 damping coefficient sequences, respectively, to obtain amplitude mean sequence, phase mean sequence, frequency mean sequence and damping. mean series;

基于振幅均值序列、相位均值序列、频率均值序列和阻尼均值序列,构建拟合振荡信号;Based on the amplitude mean sequence, the phase mean sequence, the frequency mean sequence and the damped mean sequence, construct a fitted oscillatory signal;

检测拟合振荡信号的拟合程度是否大于预设收敛精度,若是,则确定P未达到期望值,若否,则确定P已达到期望值。It is detected whether the fitting degree of the fitted oscillating signal is greater than the preset convergence accuracy, and if so, it is determined that P has not reached the expected value, and if not, it is determined that P has reached the expected value.

示例性地,以

Figure BDA0003738993220000092
表示振幅均值序列,以
Figure BDA0003738993220000093
表示相位均值序列,以
Figure BDA0003738993220000094
表示频率均值序列,以
Figure BDA0003738993220000101
表示阻尼均值序列。exemplarily, with
Figure BDA0003738993220000092
represents the amplitude mean series, with
Figure BDA0003738993220000093
represents the phase-averaged sequence, with
Figure BDA0003738993220000094
represents the frequency mean series, with
Figure BDA0003738993220000101
represents a damped mean series.

示例性地,

Figure BDA0003738993220000102
其中,
Figure BDA0003738993220000103
表示拟合振荡信号,
Figure BDA0003738993220000104
表示振幅均值序列中的第j个平均振幅,
Figure BDA0003738993220000105
Figure BDA0003738993220000106
表示阻尼均值序列中的第j个平均阻尼系数,
Figure BDA0003738993220000107
表示频率均值序列中的第j个平均频率,
Figure BDA0003738993220000108
表示相位均值序列中的第j个平均相位,
Figure BDA0003738993220000109
t表示时间。Illustratively,
Figure BDA0003738993220000102
in,
Figure BDA0003738993220000103
represents the fitted oscillatory signal,
Figure BDA0003738993220000104
represents the j-th mean amplitude in the amplitude mean sequence,
Figure BDA0003738993220000105
Figure BDA0003738993220000106
represents the jth average damping coefficient in the damped mean sequence,
Figure BDA0003738993220000107
represents the jth average frequency in the frequency mean sequence,
Figure BDA0003738993220000108
represents the j-th averaged phase in the phase-averaged sequence,
Figure BDA0003738993220000109
t represents time.

示例性地,通过式(5)对如上提及的拟合程度进行测算,式(5)如下所示:Exemplarily, the fitting degree mentioned above is measured and calculated by formula (5), and formula (5) is as follows:

Figure BDA00037389932200001010
Figure BDA00037389932200001010

其中,s2表示拟合程度,

Figure BDA00037389932200001011
表示拟合振荡信号中的第m个数据点,xm表示待辨识振荡信号中的对应于第m个数据点
Figure BDA00037389932200001012
的数据点。Among them, s 2 represents the degree of fit,
Figure BDA00037389932200001011
represents the mth data point in the fitted oscillatory signal, x m represents the mth data point in the oscillatory signal to be identified corresponding to the mth
Figure BDA00037389932200001012
data points.

示例性地,预设收敛精度可以取值为0.0001,如果拟合程度大于0.0001,反映出P还未达到期望值,如果拟合程度小于或等于0.0001,反映出P已达到期望值,在P已达到期望值的条件下,可以组合振幅均值序列、相位均值序列、频率均值序列和阻尼均值序列为振荡分析结果。Exemplarily, the preset convergence accuracy can be 0.0001. If the fitting degree is greater than 0.0001, it reflects that P has not yet reached the expected value. If the fitting degree is less than or equal to 0.0001, it reflects that P has reached the expected value. Under the condition of , the amplitude mean sequence, phase mean sequence, frequency mean sequence and damping mean sequence can be combined as oscillation analysis results.

通过平均化处理后的四个振荡参数序列来拟合信号,有助于提升拟合振荡信号的准确性,从而,有助于提升辨识阶数的准确性。Fitting the signal by averaging the processed four oscillation parameter sequences helps to improve the accuracy of fitting the oscillation signal, and thus helps to improve the accuracy of the identification order.

本发明另一实施例的一种计算设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,前述处理器执行前述计算机程序程序时,实现如上提及的Prony迭代分析方法。可以理解的是,前述计算设备可以是服务器或者诸如台式电脑或便携式电脑等的终端设备,其中,处理器可以通过通用串行控制总线与存储器连接。A computing device according to another embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program program, the above-mentioned Prony iteration is implemented. Analytical method. It can be understood that the aforementioned computing device may be a server or a terminal device such as a desktop computer or a portable computer, wherein the processor may be connected to the memory through a universal serial control bus.

本发明另一实施例的一种电网系统,包括如上提及的计算设备。A power grid system according to another embodiment of the present invention includes the computing device mentioned above.

在本发明实施例中,电网系统在发生故障后的一段时间,多路母线发生振荡,振荡模态主要分为0.08Hz、0.15Hz和0.31Hz,其中,两路母线分别为母线5和母线13,图7a示出了从多路母线分别采集振荡信号的波形示意图,图7b示出了从母线5采集振荡信号的波形图,图7c示出了从母线13采集振荡信号的波形图。In the embodiment of the present invention, a period of time after a fault occurs in the power grid system, multiple busbars oscillate, and the oscillation modes are mainly divided into 0.08Hz, 0.15Hz and 0.31Hz, wherein the two busbars are busbar 5 and busbar 13 respectively. , FIG. 7a shows a schematic diagram of waveforms of oscillating signals collected from multiple buses, FIG. 7b shows a waveform of oscillating signals collected from bus 5, and FIG. 7c shows a waveform of oscillating signals collected from bus 13.

本发明实施例中,参见图8a及图8b,在Prony模型的阶数P为3的情况下,分析出0.31Hz振荡模态,未分析出0.15Hz和0.08Hz这两种振荡模态,拟合振荡信号与待辨识信号存在较大差异。In the embodiment of the present invention, referring to FIG. 8a and FIG. 8b, when the order P of the Prony model is 3, the 0.31 Hz oscillation mode is analyzed, and the two oscillation modes of 0.15 Hz and 0.08 Hz are not analyzed. There is a big difference between the combined oscillation signal and the signal to be identified.

本发明实施例中,参见图9a及9b,在Prony模型的阶数P为11的情况下,分析出0.31Hz和0.15Hz这两种振荡模态,未分析出0.08Hz振荡模态,相比于P为3,拟合振荡信号更接近待辨识信号,但是,对于拟合振荡信号,0.15Hz振荡模态属于衰减过程,与待辨识振荡信号的实际情况不符,需要继续调高阶数。In the embodiment of the present invention, referring to FIGS. 9a and 9b, when the order P of the Prony model is 11, two oscillation modes of 0.31 Hz and 0.15 Hz are analyzed, and the 0.08 Hz oscillation mode is not analyzed. When P is 3, the fitted oscillating signal is closer to the signal to be identified. However, for the fitted oscillating signal, the 0.15Hz oscillating mode belongs to the decay process, which is inconsistent with the actual situation of the oscillating signal to be identified, so it is necessary to continue to increase the order.

本发明实施例中,参见图10a及10b,在Prony模型的阶数P为15的情况下,分析出0.31Hz、0.15Hz以及0.08Hz这三种振荡模态,拟合振荡信号逼近待辨识振荡信号的程度最高,15即为期望值,代表最优阶数。In the embodiment of the present invention, referring to FIGS. 10a and 10b, when the order P of the Prony model is 15, three oscillation modes of 0.31 Hz, 0.15 Hz and 0.08 Hz are analyzed, and the fitted oscillation signal approximates the oscillation to be identified. The degree of the signal is the highest, and 15 is the expected value, representing the optimal order.

本发明实施例中,参见图11a及11b,在Prony模型的阶数P为17的情况下,相比于P为15,尽管调高了两阶,但是拟合效果并未得到提升,反而因分析出待辨识信号中不存在的振荡模态而产生干扰。In the embodiment of the present invention, referring to FIGS. 11a and 11b , when the order P of the Prony model is 17, compared with P being 15, although the order is increased by two, the fitting effect is not improved. The oscillation modes that do not exist in the signal to be identified are analyzed to generate interference.

需要说明的是,图8b、图9b、图10b以及图11b中的任一,以上下两幅子图呈现,其中,上子图的实线表示对应于母线5的待辨识振荡信号,下子图的实线表示对应于母线13的待辨识振荡信号,虚线表示相应的拟合振荡信号。It should be noted that any one of Fig. 8b, Fig. 9b, Fig. 10b and Fig. 11b is presented in the upper and lower sub-graphs, wherein the solid line in the upper sub-graph represents the oscillating signal to be identified corresponding to the bus 5, and the lower sub-graph The solid line of represents the oscillating signal to be identified corresponding to the bus bar 13 , and the dashed line represents the corresponding fitting oscillating signal.

本发明另一实施例的一种非临时性计算机可读存储介质,其存储有计算机程序,该计算机程序被处理器执行时,实现如上提及的Prony迭代分析方法。Another embodiment of the present invention is a non-transitory computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the Prony iterative analysis method mentioned above.

如上提及的计算设备、非临时性计算机可读存储介质和电网系统,可以参见如上提及的Prony迭代分析方法及其有益效果的具体描述,在此不再赘述。For the computing device, the non-transitory computer-readable storage medium and the power grid system mentioned above, reference may be made to the specific description of the Prony iterative analysis method and its beneficial effects mentioned above, which will not be repeated here.

一般来说,用以实现本发明方法的计算机指令的可以采用一个或众多计算机可读的存储介质的任意组合来承载。非临时性计算机可读存储介质可以包括任何计算机可读介质,除了临时性地传播中的信号本身。In general, computer instructions for implementing the methods of the present invention may be carried in any combination of one or more computer-readable storage media. A non-transitory computer-readable storage medium may include any computer-readable medium except for the temporarily propagated signal itself.

计算机可读存储介质例如可以是,但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或众多导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAk)、只读存储器(ROk)、可擦式可编程只读存储器(EPROk或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROk)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAk), read only memory (ROk), Erasable Programmable Read Only Memory (EPROk or Flash), fiber optics, Portable Compact Disk Read Only Memory (CD-ROk), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

可以以一种或多种程序设计语言或其组合来编写用以执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Skalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言,特别是可以使用适于神经网络计算的Python语言和基于TensorFlow、PyTorch等平台框架。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算机,或,连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including object-oriented programming languages—such as Java, Skalltalk, C++, and conventional Procedural programming language - such as "C" language or similar programming language, especially Python language suitable for neural network computing and platform frameworks based on TensorFlow, PyTorch, etc. can be used. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. Where a remote computer is involved, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or wide area network (WAN), or, to an external computer (eg, using an Internet service provider to connect through the Internet) ).

尽管上面已经示出和描述了本发明的实施例,应当理解的是,上述实施例是示例性的,不能解释为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and those of ordinary skill in the art can Embodiments are subject to variations, modifications, substitutions and variations.

Claims (10)

1. A Prony iterative analysis method, comprising:
s1, performing data sampling on the oscillation signal to be identified according to a set sampling rate to obtain a one-dimensional sample set with the length of N, wherein N is a positive integer greater than 2;
s2, preprocessing the one-dimensional sample set with abnormal data detection and correction;
s3, expanding a multi-dimensional sample set based on the preprocessed one-dimensional sample set;
s4, according to the multi-dimensional sample set, adopting a Prony model of order P to deduce an oscillation parameter set, wherein P is a positive integer larger than 1;
s5, detecting whether P reaches the expected value according to the oscillation parameter set, if not, executing S6, if yes, executing S7;
s6, returning to S4 after P +1 to raise the Prony model by one step;
and S7, determining and outputting an oscillation analysis result matched with the oscillation signal to be identified.
2. The Prony iterative analysis method of claim 1, wherein said S2 comprises:
s21, selecting the nth data point as the detected data point in the one-dimensional sample set, and making each of the plurality of data points listed on both sides of the detected data point and consecutive thereto in a subsequence as a reference data point, wherein n starts from 2;
s22, detecting whether the detected data point is abnormal or not according to the reference data points, if so, executing S23 and then executing S24, and if not, directly executing S24;
s23, correcting the detected data point;
s24, detecting whether N reaches N-1, if not, executing S25, if yes, executing S26;
s25, after n is equal to n +1, returning to S21 to make the subsequence advance by one bit synchronously with the detected data point;
s26, outputting the preprocessed one-dimensional sample set for use by the S3.
3. The Prony iterative analysis method of claim 2, wherein a plurality of said reference data points and said subject data points where an anomaly occurs satisfy the following anomaly data detection model:
Figure FDA0003738993210000021
wherein, x' n Representing data points x suitable for replacing said examined data point n New data point of from x n-i To x n-1 Each representing the reference data point preceding the examined data point, from x n+1 To x L+n-i-1 Each representing the reference data point, C, after the examined data point 0 Represents a preset threshold, L represents the length of the subsequence, and L is [3, N-1 ]]Wherein i is [1, L-2 ]]Is a positive integer of (1).
4. The Prony iterative analysis method of claim 3, wherein the S23 comprises: at two of said reference data points x n-1 And x n+1 For the examined data point x n After deletion, the new data point x 'is interpolated' n
5. The Prony iterative analysis method of claim 1, wherein said S3 comprises:
s31, constructing and initializing a two-dimensional array, wherein the preprocessed one-dimensional sample set is set as a 1 st-dimensional vector in the two-dimensional array;
s32, copying the 1 st-dimensional vector into a (k + 1) th-dimensional vector for the kth time, and replacing the (k + 1) th data point with a new data point obtained by performing linear interpolation measurement on the kth data point and the (k + 2) th data point in the (k + 1) th-dimensional vector, wherein k starts from 1;
s33, detecting whether k reaches N-2, if not, executing S34, if yes, executing S35;
s34, returning to S32 after k is k +1, so as to reconstruct a next one-dimensional vector in the two-dimensional array according to the 1 st-dimensional vector;
s35, outputting the two-dimensional array with N-1 dimensional vectors for use by the S4 as the multi-dimensional sample set.
6. The Prony iterative analysis method of claim 5, wherein the S4 comprises:
s41, solving a P-dimensional linear equation set based on the kth-dimensional vector in the multi-dimensional sample set to obtain a kth equation coefficient sequence I, wherein k is iterated again from 1;
s42, solving a characteristic equation based on the kth equation coefficient sequence I to obtain a kth root sequence;
s43, solving a Van der Monte equation set based on the kth root sequence and the kth-dimension vector to obtain a kth equation coefficient sequence II;
s44, respectively measuring a kth amplitude sequence and a kth phase sequence based on the kth equation coefficient sequence II, and respectively measuring a kth frequency sequence and a kth damping coefficient sequence based on the kth root sequence;
s45, detecting whether k reaches N-1, if not, executing S46, and if yes, executing S47;
s46, when k is k +1, returns to S41;
and S47, combining the N-1 amplitude sequences, the N-1 phase sequences, the N-1 frequency sequences and the N-1 damping coefficient sequences to obtain the oscillation parameter set.
7. The Prony iterative analysis method of any of claims 1-6, wherein said set of oscillation parameters comprises N-1 sequences of amplitude, N-1 sequences of phase, N-1 sequences of frequency, and N-1 sequences of damping coefficients;
the S5 includes:
respectively carrying out averaging measurement and calculation processing on the N-1 amplitude sequences, the N-1 phase sequence, the N-1 frequency sequences and the N-1 damping coefficient sequences to obtain an amplitude mean value sequence, a phase mean value sequence, a frequency mean value sequence and a damping mean value sequence;
constructing a fitting oscillation signal based on the amplitude mean sequence, the phase mean sequence, the frequency mean sequence and the damping mean sequence;
and detecting whether the fitting degree of the fitting oscillation signal is greater than preset convergence precision, if so, determining that P does not reach the expected value, and if not, determining that P has reached the expected value.
8. A computing device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the Prony iterative analysis method of any of claims 1-7.
9. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the Prony iterative analysis method of any of claims 1-7.
10. A power grid system comprising the computing device of claim 8.
CN202210807865.3A 2022-07-11 2022-07-11 A Prony iterative analysis method, computing device, storage medium and power grid system Withdrawn CN115099280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210807865.3A CN115099280A (en) 2022-07-11 2022-07-11 A Prony iterative analysis method, computing device, storage medium and power grid system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210807865.3A CN115099280A (en) 2022-07-11 2022-07-11 A Prony iterative analysis method, computing device, storage medium and power grid system

Publications (1)

Publication Number Publication Date
CN115099280A true CN115099280A (en) 2022-09-23

Family

ID=83297500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210807865.3A Withdrawn CN115099280A (en) 2022-07-11 2022-07-11 A Prony iterative analysis method, computing device, storage medium and power grid system

Country Status (1)

Country Link
CN (1) CN115099280A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118013304A (en) * 2024-02-19 2024-05-10 国网湖北省电力有限公司襄阳供电公司 Transformer fault positioning method and system based on clustering algorithm
CN118250106A (en) * 2024-05-30 2024-06-25 南京华飞数据技术有限公司 Prony algorithm-based network transmission data management system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118013304A (en) * 2024-02-19 2024-05-10 国网湖北省电力有限公司襄阳供电公司 Transformer fault positioning method and system based on clustering algorithm
CN118250106A (en) * 2024-05-30 2024-06-25 南京华飞数据技术有限公司 Prony algorithm-based network transmission data management system and method

Similar Documents

Publication Publication Date Title
CN115099280A (en) A Prony iterative analysis method, computing device, storage medium and power grid system
CN113360983B (en) Slope reliability analysis and risk assessment method
CN105205461B (en) A kind of signal de-noising method for Modal Parameter Identification
CN112101554A (en) Anomaly detection method and device, equipment and computer-readable storage medium
CN111222088B (en) An Improved Flat-Top Self-Convolution Window Weighted Power Harmonic Amplitude Estimation Method
CN108304685A (en) A kind of non-linear degradation equipment method for predicting residual useful life and system
KR20150048247A (en) Noise robust time of flight estimation for acoustic pyrometry
CN110929217A (en) A method and device for correcting a frequency response curve containing burrs and spikes
CN117272055B (en) Electric energy meter abnormality detection method and device based on filtering enhancement self-encoder
CN113742822B (en) Method and device for eliminating temperature time lag effect of bridge structure response monitoring data
CN106909738A (en) A kind of model parameter identification method
CN104462862A (en) Mechanical structure dynamic load identification method based on cubic b-spline scaling function
CN117556670A (en) Assembled structure damage identification method based on Bayesian theory
Zhang et al. Influence line estimation of bridge based on elastic net and vehicle-induced response
CN107346301B (en) Real-time detection method of noise data in water quality monitoring based on double time window verification
CN113283000B (en) Full-bridge response reconstruction method based on finite element and detection monitoring data fusion
Li et al. Nonlinear model identification from multiple data sets using an orthogonal forward search algorithm
CN119226973A (en) A method and device for detecting abnormal noise of DC transmission converter valve based on deep learning
CN118734658A (en) An adaptive model updating method for probabilistic analysis of complex engineering structures
CN104200002B (en) Method for extracting modal parameter from viscous damping vibration signals
CN112597425A (en) Method, device, equipment and medium for detecting abnormal data in flow velocity measurement data
JP5146226B2 (en) Significant wave height calculation device, program, and significant wave height calculation method
CN118568623A (en) Building structure safety detection method, system and terminal based on edge calculation
CN108801296B (en) Sensor frequency response function calculation method based on error model iterative compensation
CN116882135A (en) Method for identifying impact load of composite material by algorithm

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20220923

WW01 Invention patent application withdrawn after publication