CN107391935A - The instantaneous Frequency Estimation method examined based on non-delayed cost function and Grubbs - Google Patents
The instantaneous Frequency Estimation method examined based on non-delayed cost function and Grubbs Download PDFInfo
- Publication number
- CN107391935A CN107391935A CN201710608573.6A CN201710608573A CN107391935A CN 107391935 A CN107391935 A CN 107391935A CN 201710608573 A CN201710608573 A CN 201710608573A CN 107391935 A CN107391935 A CN 107391935A
- Authority
- CN
- China
- Prior art keywords
- ridge
- grubbs
- cost function
- instantaneous frequency
- moment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000003111 delayed effect Effects 0.000 title claims abstract description 19
- 238000001228 spectrum Methods 0.000 claims abstract description 14
- 238000001514 detection method Methods 0.000 claims abstract description 8
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000009499 grossing Methods 0.000 claims description 3
- 238000013507 mapping Methods 0.000 claims 4
- 230000015572 biosynthetic process Effects 0.000 claims 3
- 238000003786 synthesis reaction Methods 0.000 claims 3
- 230000008030 elimination Effects 0.000 claims 1
- 238000003379 elimination reaction Methods 0.000 claims 1
- 230000007547 defect Effects 0.000 abstract description 2
- 238000006243 chemical reaction Methods 0.000 abstract 1
- 230000002159 abnormal effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000003745 diagnosis Methods 0.000 description 2
- 230000001629 suppression Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Z—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS, NOT OTHERWISE PROVIDED FOR
- G16Z99/00—Subject matter not provided for in other main groups of this subclass
Landscapes
- Image Analysis (AREA)
Abstract
本发明公开了基于非延迟代价函数和Grubbs检验的瞬时频率估计方法,采用短时傅里叶变换将原始信号转换为时频谱图,采用Canny检测算法获得多条脊带,采用Grubbs检验排除每条脊带的异常值,通过叠加构建一条具有完整清晰边缘的合成脊带,采用Grubbs检验排除合成脊带的异常值,计算合成脊带的均值曲线,对均值曲线进行平滑处理,计算该平滑均值曲线在95%置信水平上的置信区间,将平滑均值曲线及其置信区间映射到目标脊线上,得到目标脊线的参考线和局部搜索区间,采用非延迟代价函数提取目标脊线。本发明适合于估计复杂多分量变频信号的瞬时频率,克服了传统方法在机械振动信号瞬时频率估计中的缺陷,估计结果的准确度和精确度高,便于工程应用。
The invention discloses an instantaneous frequency estimation method based on a non-delayed cost function and Grubbs test, using short-time Fourier transform to convert the original signal into a time spectrum graph, using Canny detection algorithm to obtain multiple ridge bands, and using Grubbs test to exclude each The outliers of the ridge bands are superimposed to construct a synthetic ridge band with complete and clear edges, and the Grubbs test is used to exclude the outliers of the synthetic ridge bands, and the average value curve of the synthetic ridge band is calculated, and the mean value curve is smoothed to calculate the smoothed mean value curve In the confidence interval at the 95% confidence level, the smooth mean curve and its confidence interval are mapped to the target ridge, and the reference line and local search interval of the target ridge are obtained, and the target ridge is extracted using a non-delayed cost function. The invention is suitable for estimating the instantaneous frequency of complex multi-component frequency conversion signals, overcomes the defects of the traditional method in estimating the instantaneous frequency of mechanical vibration signals, has high accuracy and precision of the estimation result, and is convenient for engineering application.
Description
技术领域technical field
本发明涉及旋转机械状态监测与故障诊断领域,具体涉及基于非延迟代价函数和Grubbs检验的瞬时频率估计方法。The invention relates to the field of state monitoring and fault diagnosis of rotating machinery, in particular to an instantaneous frequency estimation method based on a non-delayed cost function and a Grubbs test.
背景技术Background technique
由于工作环境的复杂性,旋转机械经常工作在变速条件下。瞬时频率估计是评估旋转机械运行状态及进行故障诊断的重要前提。目前常用的瞬时频率估计方法是一步代价函数法(one-step cost function)。一步代价函数法能够在局部频率范围内搜索脊点,但是局部频率范围的中心点依赖于上一个脊点的位置,这导致一步代价函数存在着延迟。此外,局部频率搜索范围的宽度是根据经验随意设置的,且在任何时刻的宽度都是固定的,不能随着时间发生变化,这导致一步代价函数缺乏足够的自适应性。上述缺陷导致一步代价函数法在估计瞬时频率时准确度和精确度较低。Due to the complexity of the working environment, rotating machinery often works under variable speed conditions. Instantaneous frequency estimation is an important prerequisite for evaluating the operating state and fault diagnosis of rotating machinery. The most commonly used instantaneous frequency estimation method is the one-step cost function method. The one-step cost function method can search for ridge points in the local frequency range, but the center point of the local frequency range depends on the position of the previous ridge point, which leads to a delay in the one-step cost function. In addition, the width of the local frequency search range is set arbitrarily according to experience, and the width at any moment is fixed and cannot change with time, which leads to the lack of sufficient adaptability of the one-step cost function. The above defects lead to the low accuracy and precision of the one-step cost function method in estimating the instantaneous frequency.
发明内容Contents of the invention
本发明要解决的问题是针对以上不足,提出基于非延迟代价函数和Grubbs检验的瞬时频率估计方法。与现有方法相比,本发明将映射后的平滑均值曲线作为目标脊线的参考线,将映射后的置信区间作为目标脊线的局部搜索区间,因此局部频率搜索范围的中心点不依赖上一个脊点的位置,没有任何延迟,局部频率搜索范围能够自动设定,搜索带宽能够随着时间的变化而自动变化,瞬时频率估计结果的准确度和精确度高。The problem to be solved by the present invention is to propose an instantaneous frequency estimation method based on a non-delayed cost function and a Grubbs test for the above deficiencies. Compared with the existing method, the present invention uses the mapped smooth mean curve as the reference line of the target ridge, and uses the mapped confidence interval as the local search interval of the target ridge, so the center point of the local frequency search range does not depend on the upper The location of a ridge point without any delay, the local frequency search range can be automatically set, the search bandwidth can be automatically changed with time, and the accuracy and precision of the instantaneous frequency estimation results are high.
为解决以上技术问题,本发明采用以下技术方案:提供基于非延迟代价函数和Grubbs检验的瞬时频率估计方法,其特征在于,包括以下步骤:For solving above technical problem, the present invention adopts following technical scheme: provide the instantaneous frequency estimation method based on non-delay cost function and Grubbs test, it is characterized in that, comprises the following steps:
步骤1:采用短时傅里叶变换算法将信号x(k)(k=1, 2, …,N)转换为时频谱图,N代表信号的长度;Step 1: Use the short-time Fourier transform algorithm to convert the signal x(k) (k=1, 2, ..., N) into a time-spectrogram, where N represents the length of the signal;
步骤2:从时频谱图中选取一块具有较高信噪比的局部区域,采用Canny检测算法将该局部区域转换成二值图像,二值图像包含多条脊带;局部区域是指至少包含两条脊带,信噪比大于80dB的区域;Step 2: Select a local area with a high signal-to-noise ratio from the time-spectrogram, and use the Canny detection algorithm to convert the local area into a binary image. The binary image contains multiple ridge bands; a local area refers to at least two Ridge bands, the area where the signal-to-noise ratio is greater than 80dB;
步骤3:采用Grubbs检验算法排除每条脊带上下边缘的异常值;Step 3: Use the Grubbs test algorithm to exclude outliers at the upper and lower edges of each ridge band;
步骤4:将上述多条脊带按照相互之间的运动学比例关系叠加到其中一条轮廓最完整的脊带上,构建一条具有完整清晰边缘的合成脊带;运动学比例关系是指脊带所对应的机器部件之间的传动比;Step 4: Superimpose the above-mentioned multiple ridges on one of the ridges with the most complete outline according to the kinematic proportional relationship between them to construct a synthetic ridge with complete and clear edges; the kinematic proportional relationship refers to the the transmission ratio between the corresponding machine components;
步骤5:采用Grubbs检验算法排除上述合成脊带上下边缘的异常值;Step 5: using the Grubbs test algorithm to exclude the outliers at the upper and lower edges of the synthetic ridge band;
步骤6:计算上述合成脊带的均值曲线,采用五点三次平滑算法对均值曲线进行平滑处理,得到平滑均值曲线,计算该平滑均值曲线在95%置信水平上的置信区间;Step 6: Calculate the average value curve of the above-mentioned synthetic ridge band, adopt the five-point cubic smoothing algorithm to smooth the average value curve, obtain the smooth average value curve, and calculate the confidence interval of the smooth average value curve on the 95% confidence level;
步骤7:将上述平滑均值曲线及其置信区间按照平滑均值曲线与待估计目标脊线之间的运动学比例关系映射到目标脊线上;Step 7: Map the above smooth mean curve and its confidence interval to the target ridge line according to the kinematic proportional relationship between the smooth mean curve and the target ridge line to be estimated;
步骤8:将映射后的平滑均值曲线作为目标脊线的参考线,将映射后的置信区间作为目标脊线的局部搜索区间;Step 8: Use the mapped smooth mean curve as the reference line of the target ridge, and use the mapped confidence interval as the local search interval of the target ridge;
步骤9:采用非延迟代价函数在每个时刻所对应的局部搜索区间内搜索脊点,确定每个时刻所对应的瞬时频率,最后得到整个时间区间上的瞬时频率。Step 9: Use the non-delayed cost function to search for ridge points in the local search interval corresponding to each moment, determine the instantaneous frequency corresponding to each moment, and finally obtain the instantaneous frequency on the entire time interval.
进一步地,所述步骤1中短时傅里叶变换算法包括以下步骤:Further, the short-time Fourier transform algorithm in the step 1 includes the following steps:
1)对信号x(k)进行短时傅里叶变换:1) Perform a short-time Fourier transform on the signal x(k):
, ,
TF(t, f)代表信号x(k)的短时傅里叶变换结果,t代表时间因子,f代表尺度因子,函数w(z)代表自变量为z的窗口函数;TF(t, f) represents the short-time Fourier transform result of the signal x(k), t represents the time factor, f represents the scale factor, and the function w(z) represents the window function whose independent variable is z;
2)计算信号x(k)的时频谱:2) Calculate the time spectrum of the signal x(k):
, ,
spectrogram(t, f)代表x(k)的时频谱。Spectrogram(t, f) represents the time spectrum of x(k).
进一步地,所述步骤2中Canny检测算法包括以下步骤:Further, the Canny detection algorithm in the step 2 includes the following steps:
1) 采用高斯滤波器对图像f(x, y)进行平滑处理,消除图像中的噪声和无关细节:1) Use a Gaussian filter to smooth the image f(x, y) to eliminate noise and irrelevant details in the image:
, ,
, ,
g(x, y)代表平滑后的图像,G(x, y)代表二维高斯滤波器,x代表图像的时间点,y代表图像的频率点,符号*代表卷积计算,σ代表高斯标准差,本发明中σ=1;g(x, y) represents the smoothed image, G(x, y) represents the two-dimensional Gaussian filter, x represents the time point of the image, y represents the frequency point of the image, the symbol * represents the convolution calculation, and σ represents the Gaussian standard Poor, σ=1 in the present invention;
2) 计算g(x, y)强度梯度的幅值和方向2) Calculate the magnitude and direction of the g(x, y) intensity gradient
, ,
, ,
, ,
M(x, y)代表强度梯度的幅值,θ(x, y)代表强度梯度的方向,gx(x, y)代表g(x, y)对x的偏导数,gy(x, y)代表g(x, y)对y的偏导数;M(x, y) represents the magnitude of the intensity gradient, θ(x, y) represents the direction of the intensity gradient, g x (x, y) represents the partial derivative of g(x, y) to x, g y (x, y) represents the partial derivative of g(x, y) with respect to y;
3) 采用非最大值镇压法消除虚假的边缘:3) Use non-maximum suppression to eliminate spurious edges:
在梯度方向θ(x, y)上,如果非零梯度值大于相邻的两个梯度值,则该非零梯度值保持不变,否则,该非零梯度值置零;In the gradient direction θ(x, y), if the non-zero gradient value is greater than the two adjacent gradient values, the non-zero gradient value remains unchanged, otherwise, the non-zero gradient value is set to zero;
4) 采用大小不同的两个阈值对上述消除虚假边缘后的图像进行滤波,两个阈值记为T1和T2,T1<T2,由T1得到的图像记为I1,由T2得到的图像记为I2;本发明中,T1=0.0063,T2=0.0156;4) Use two thresholds of different sizes to filter the above-mentioned image after eliminating false edges. The two thresholds are denoted as T 1 and T 2 , T 1 < T 2 , the image obtained by T 1 is denoted as I 1 , and the image obtained by T 1 is denoted as I 1 . 2 The obtained image is recorded as I 2 ; in the present invention, T 1 =0.0063, T 2 =0.0156;
5) 从I2中剔除不与强边缘连接的弱边缘,然后连接I1和I2中的边缘形成连续边缘。5) Eliminate weak edges that are not connected with strong edges from I 2 , and then connect the edges in I 1 and I 2 to form continuous edges.
进一步地,所述步骤3中Grubbs检验算法包括以下步骤:Further, in the step 3, the Grubbs test algorithm comprises the following steps:
1)对信号xn(n=1, 2, …,N),建立Grubbs检验统计量 , 代表样本均值,σ代表样本标准差,N代表样本长度;1) For the signal x n (n=1, 2, ..., N), establish the Grubbs test statistic , Represents the sample mean, σ represents the sample standard deviation, and N represents the sample length;
2)设定显著性水平为α,根据概率公式确定g0(N, α),g0(N, α)代表数据长度为N,显著性水平为α所对应的Grubbs临界值,本发明中α=0.05;2) Set the significance level to α, according to the probability formula Determine g 0 (N, α), g 0 (N, α) represents that the data length is N, and the significance level is the Grubbs critical value corresponding to α, and α=0.05 among the present invention;
3) 如果, (b=1, 2, …,N),则剔除xb。3) if , (b=1, 2, …,N), then remove x b .
进一步地,所述步骤9中非延迟代价函数包括以下步骤:Further, the non-delay cost function in said step 9 includes the following steps:
1)第k个时刻所对应的局部搜索区间FBk 定义为1) The local search interval FB k corresponding to the kth moment is defined as
, ,
fk(pmc)代表映射后的平滑均值曲线在第k个时刻的值,代表映射后的平滑均值曲线置信区间在第k个时刻宽度的一半,m代表目标脊线的长度;f k (pmc) represents the value of the mapped smooth mean curve at the kth moment, Represents half of the confidence interval of the mapped smooth mean curve at the kth moment, and m represents the length of the target ridge;
2)第k个时刻所对应的非延迟代价函数CFk定义为:2) The non-delayed cost function CF k corresponding to the kth moment is defined as:
, ,
, ,
fk(i) 代表在FBk范围内所取的频率值,TF(tk, fk)代表TF(t, f)在第k个时刻的值,tk代表t在第k个时刻的值,fk代表f在第k个时刻的值,ek代表权重因子。f k (i) represents the frequency value taken within the range of FB k , TF(t k , f k ) represents the value of TF(t, f) at the kth moment, t k represents the value of t at the kth moment value, f k represents the value of f at the kth moment, and e k represents the weight factor.
进一步地,相对误差≤0.561%,平均相对误差≤0.046%。Further, the relative error is ≤0.561%, and the average relative error is ≤0.046%.
本发明采用以上技术方案,与现有技术相比,本发明具有以下优点:The present invention adopts the above technical scheme, compared with the prior art, the present invention has the following advantages:
1) 本发明具有实时性:本发明以映射后的合成脊带平滑均值曲线作为参考线,能够即时确定当前时刻局部频率搜索范围的中心点,避免了对前一个脊点的依赖,消除了时间延迟,具有实时性。1) The present invention has real-time performance: the present invention takes the mapped synthetic ridge band smooth mean curve as a reference line, can instantly determine the center point of the local frequency search range at the current moment, avoids dependence on the previous ridge point, and eliminates time Delayed, real-time.
2) 本发明具有自适应性:本发明利用映射后的合成脊带平滑均值曲线的置信区间作为局部频率搜索区间,能够自适应确定每个时刻所对应的局部频率搜索范围,搜索带宽能够随着时间的变化而自动变化,不需要凭借经验设置搜索带宽,从而消除了由于人为原因而产生的误差。2) The present invention is self-adaptive: the present invention utilizes the confidence interval of the mapped synthetic ridge band smooth mean curve as the local frequency search interval, and can adaptively determine the local frequency search range corresponding to each moment, and the search bandwidth can follow the Time changes automatically, and there is no need to rely on experience to set the search bandwidth, thereby eliminating errors caused by human factors.
3) 实验结果表明:由本发明得到的瞬时频率估计值与实测值之间的最大相对误差为0.561%,平均相对误差为0.046%,与一步代价函数法的结果相比,最大相对误差降低96.58%,平均相对误差降低97.85%。3) The experimental results show that: the maximum relative error between the estimated instantaneous frequency obtained by the present invention and the measured value is 0.561%, and the average relative error is 0.046%. Compared with the result of the one-step cost function method, the maximum relative error reduces by 96.58% , the average relative error is reduced by 97.85%.
下面结合附图和实施例对本发明做进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
附图说明Description of drawings
附图1为本发明实施例中基于非延迟代价函数和Grubbs检验的瞬时频率估计方法的流程图;Accompanying drawing 1 is the flowchart of the instantaneous frequency estimation method based on non-delay cost function and Grubbs test in the embodiment of the present invention;
附图2为本发明实施例中行星齿轮箱振动信号;Accompanying drawing 2 is the planetary gearbox vibration signal in the embodiment of the present invention;
附图3为本发明实施例中行星齿轮箱振动信号的时频谱;Accompanying drawing 3 is the time spectrum of planetary gearbox vibration signal in the embodiment of the present invention;
附图4为本发明实施例中从时频谱图上选取的具有高信噪比的局部区域;Accompanying drawing 4 is the local region with high signal-to-noise ratio selected from the time-spectrum diagram in the embodiment of the present invention;
附图5为本发明实施例中由Canny算法检测到的局部图像区域的边缘;Accompanying drawing 5 is the edge of the partial image area detected by Canny algorithm in the embodiment of the present invention;
附图6为本发明实施例中采用Grubbs检验算法消除每条脊带异常点后的结果;Accompanying drawing 6 is the result after adopting Grubbs test algorithm to eliminate the abnormal point of each ridge band in the embodiment of the present invention;
附图7为本发明实施例中利用脊带之间的运动学比例关系叠加而成的合成脊带(最下层的脊带即为合成脊带);Accompanying drawing 7 is the synthetic ridge band (the lowermost ridge band is the synthetic ridge band) formed by superimposing the kinematic proportional relationship between the ridge bands in the embodiment of the present invention;
附图8为本发明实施例中采用Grubbs检验算法消除合成脊带异常点后的结果;Accompanying drawing 8 is the result after adopting Grubbs test algorithm in the embodiment of the present invention to eliminate the abnormal point of synthetic ridge band;
附图9为本发明实施例中合成脊带的均值平滑曲线及其95%置信区间;Accompanying drawing 9 is the mean smooth curve and 95% confidence interval thereof of synthetic ridge band in the embodiment of the present invention;
附图10为本发明实施例中映射得到的均值平滑曲线及其置信区间;Accompanying drawing 10 is the mean smooth curve and its confidence interval that are mapped in the embodiment of the present invention;
附图11为本发明实施例中瞬时频率估计值。Accompanying drawing 11 is the instantaneous frequency estimation value in the embodiment of the present invention.
具体实施方式detailed description
实施例,如图1所示,基于非延迟代价函数和Grubbs检验的瞬时频率估计方法,包括以下步骤:Embodiment, as shown in Figure 1, based on the instantaneous frequency estimation method of non-delay cost function and Grubbs test, comprises the following steps:
步骤1:采用短时傅里叶变换算法将信号x(k)(k=1, 2, …,N)转换为时频谱图,N代表信号的长度;Step 1: Use the short-time Fourier transform algorithm to convert the signal x(k) (k=1, 2, ..., N) into a time-spectrogram, where N represents the length of the signal;
步骤2:从时频谱图中选取一块具有较高信噪比的局部区域,采用Canny检测算法将该局部区域转换成二值图像,二值图像包含多条脊带;局部区域是指至少包含两条脊带,信噪比大于80dB的区域;Step 2: Select a local area with a high signal-to-noise ratio from the time-spectrogram, and use the Canny detection algorithm to convert the local area into a binary image. The binary image contains multiple ridge bands; a local area refers to at least two Ridge bands, the area where the signal-to-noise ratio is greater than 80dB;
步骤3:采用Grubbs检验算法排除每条脊带上下边缘的异常值;Step 3: Use the Grubbs test algorithm to exclude outliers at the upper and lower edges of each ridge band;
步骤4:将上述多条脊带按照相互之间的运动学比例关系叠加到其中一条轮廓最完整的脊带上,构建一条具有完整清晰边缘的合成脊带;运动学比例关系是指脊带所对应的机器部件之间的传动比;Step 4: Superimpose the above-mentioned multiple ridges on one of the ridges with the most complete outline according to the kinematic proportional relationship between them to construct a synthetic ridge with complete and clear edges; the kinematic proportional relationship refers to the the transmission ratio between the corresponding machine components;
步骤5:采用Grubbs检验算法排除上述合成脊带上下边缘的异常值;Step 5: using the Grubbs test algorithm to exclude the outliers at the upper and lower edges of the synthetic ridge band;
步骤6:计算上述合成脊带的均值曲线,采用五点三次平滑算法对均值曲线进行平滑处理,得到平滑均值曲线,计算该平滑均值曲线在95%置信水平上的置信区间;Step 6: Calculate the average value curve of the above-mentioned synthetic ridge band, adopt the five-point cubic smoothing algorithm to smooth the average value curve, obtain the smooth average value curve, and calculate the confidence interval of the smooth average value curve on the 95% confidence level;
步骤7:将上述平滑均值曲线及其置信区间按照平滑均值曲线与待估计目标脊线之间的运动学比例关系映射到目标脊线上;Step 7: Map the above smooth mean curve and its confidence interval to the target ridge line according to the kinematic proportional relationship between the smooth mean curve and the target ridge line to be estimated;
步骤8:将映射后的平滑均值曲线作为目标脊线的参考线,将映射后的置信区间作为目标脊线的局部搜索区间;Step 8: Use the mapped smooth mean curve as the reference line of the target ridge, and use the mapped confidence interval as the local search interval of the target ridge;
步骤9:采用非延迟代价函数在每个时刻所对应的局部搜索区间内搜索脊点,确定每个时刻所对应的瞬时频率,最后得到整个时间区间上的瞬时频率。Step 9: Use the non-delayed cost function to search for ridge points in the local search interval corresponding to each moment, determine the instantaneous frequency corresponding to each moment, and finally obtain the instantaneous frequency on the entire time interval.
步骤1中短时傅里叶变换算法包括以下步骤:The short-time Fourier transform algorithm in step 1 includes the following steps:
1)对信号x(k)进行短时傅里叶变换:1) Perform a short-time Fourier transform on the signal x(k):
, ,
TF(t, f)代表信号x(k)的短时傅里叶变换结果,t代表时间因子,f代表尺度因子,函数w(z)代表自变量为z的窗口函数;TF(t, f) represents the short-time Fourier transform result of the signal x(k), t represents the time factor, f represents the scale factor, and the function w(z) represents the window function whose independent variable is z;
2)计算信号x(k)的时频谱:2) Calculate the time spectrum of the signal x(k):
, ,
spectrogram(t, f)代表x(k)的时频谱。Spectrogram(t, f) represents the time spectrum of x(k).
进一步地,所述步骤2中Canny检测算法包括以下步骤:Further, the Canny detection algorithm in the step 2 includes the following steps:
1) 采用高斯滤波器对图像f(x, y)进行平滑处理,消除图像中的噪声和无关细节:1) Use a Gaussian filter to smooth the image f(x, y) to eliminate noise and irrelevant details in the image:
, ,
, ,
g(x, y)代表平滑后的图像,G(x, y)代表二维高斯滤波器,x代表图像的时间点,y代表图像的频率点,符号*代表卷积计算,σ代表高斯标准差,本发明中σ=1;g(x, y) represents the smoothed image, G(x, y) represents the two-dimensional Gaussian filter, x represents the time point of the image, y represents the frequency point of the image, the symbol * represents the convolution calculation, and σ represents the Gaussian standard Poor, σ=1 in the present invention;
2) 计算g(x, y)强度梯度的幅值和方向2) Calculate the magnitude and direction of the g(x, y) intensity gradient
, ,
, ,
, ,
M(x, y)代表强度梯度的幅值,θ(x, y)代表强度梯度的方向,gx(x, y)代表g(x, y)对x的偏导数,gy(x, y)代表g(x, y)对y的偏导数;M(x, y) represents the magnitude of the intensity gradient, θ(x, y) represents the direction of the intensity gradient, g x (x, y) represents the partial derivative of g(x, y) to x, g y (x, y) represents the partial derivative of g(x, y) with respect to y;
3) 采用非最大值镇压法消除虚假的边缘:3) Use non-maximum suppression to eliminate spurious edges:
在梯度方向θ(x, y)上,如果非零梯度值大于相邻的两个梯度值,则该非零梯度值保持不变,否则,该非零梯度值置零;In the gradient direction θ(x, y), if the non-zero gradient value is greater than the two adjacent gradient values, the non-zero gradient value remains unchanged, otherwise, the non-zero gradient value is set to zero;
4) 采用大小不同的两个阈值对上述消除虚假边缘后的图像进行滤波,两个阈值记为T1和T2,T1<T2,由T1得到的图像记为I1,由T2得到的图像记为I2;本发明中,T1=0.0063,T2=0.0156;4) Use two thresholds of different sizes to filter the above-mentioned image after eliminating false edges. The two thresholds are denoted as T 1 and T 2 , T 1 < T 2 , the image obtained by T 1 is denoted as I 1 , and the image obtained by T 1 is denoted as I 1 . 2 The obtained image is recorded as I 2 ; in the present invention, T 1 =0.0063, T 2 =0.0156;
5) 从I2中剔除不与强边缘连接的弱边缘,然后连接I1和I2中的边缘形成连续边缘。5) Eliminate weak edges that are not connected with strong edges from I 2 , and then connect the edges in I 1 and I 2 to form continuous edges.
步骤3中Grubbs检验算法包括以下步骤:The Grubbs test algorithm in step 3 includes the following steps:
1)对信号xn(n=1, 2, …,N),建立Grubbs检验统计量 , 代表样本均值,σ代表样本标准差,N代表样本长度;1) For the signal x n (n=1, 2, ..., N), establish the Grubbs test statistic , Represents the sample mean, σ represents the sample standard deviation, and N represents the sample length;
2)设定显著性水平为α,根据概率公式确定g0(N, α),g0(N, α)代表数据长度为N,显著性水平为α所对应的Grubbs临界值,本发明中α=0.05;2) Set the significance level to α, according to the probability formula Determine g 0 (N, α), g 0 (N, α) represents that the data length is N, and the significance level is the Grubbs critical value corresponding to α, and α=0.05 among the present invention;
3) 如果, (b=1, 2, …,N),则剔除xb。3) if , (b=1, 2, …,N), then remove x b .
步骤9中非延迟代价函数包括以下步骤:The non-delayed cost function in step 9 includes the following steps:
1)第k个时刻所对应的局部搜索区间FBk 定义为1) The local search interval FB k corresponding to the kth moment is defined as
, ,
fk(pmc)代表映射后的平滑均值曲线在第k个时刻的值,代表映射后的平滑均值曲线置信区间在第k个时刻宽度的一半,m代表目标脊线的长度;f k (pmc) represents the value of the mapped smooth mean curve at the kth moment, Represents half of the confidence interval of the mapped smooth mean curve at the kth moment, and m represents the length of the target ridge;
2)第k个时刻所对应的非延迟代价函数CFk定义为:2) The non-delayed cost function CF k corresponding to the kth moment is defined as:
, ,
, ,
fk(i) 代表在FBk范围内所取的频率值,TF(tk, fk)代表TF(t, f)在第k个时刻的值,tk代表t在第k个时刻的值,fk代表f在第k个时刻的值,ek代表权重因子。f k (i) represents the frequency value taken within the range of FB k , TF(t k , f k ) represents the value of TF(t, f) at the kth moment, t k represents the value of t at the kth moment value, f k represents the value of f at the kth moment, and e k represents the weight factor.
利用风机涡轮行星齿轮箱振动数据对本发明所述算法的性能进行验证。The performance of the algorithm described in the present invention is verified by using the vibration data of the fan turbine planetary gearbox.
振动数据从靠近行星齿轮系的齿轮箱外壳上采集,数据长度N=2736825,采样频率fs= 5000 Hz。The vibration data is collected from the gearbox housing close to the planetary gear train, the data length N=2736825, and the sampling frequency fs=5000 Hz.
采集到的行星齿轮箱振动数据如图2所示。The collected vibration data of the planetary gearbox are shown in Fig. 2.
采用短时傅里叶变换算法将图2所示的行星齿轮箱振动数据转换为时频谱图,得到的时频谱图如图3所示。The short-time Fourier transform algorithm is used to convert the vibration data of the planetary gearbox shown in Figure 2 into a time-spectrum diagram, and the resulting time-spectrum diagram is shown in Figure 3.
从图3所示的时频谱图上选取具有高信噪比的局部区域,得到的局部区域如图4所示。Select a local area with a high signal-to-noise ratio from the time-spectrum diagram shown in Figure 3, and the obtained local area is shown in Figure 4.
采用Canny检测算法对如图4所示的局部区域进行边缘检测,得到的图像边缘如图5所示。The Canny detection algorithm is used to detect the edge of the local area shown in Figure 4, and the obtained image edge is shown in Figure 5.
采用Grubbs检验算法消除图5中各条脊带的异常点,得到的结果如图6所示。The Grubbs test algorithm is used to eliminate the abnormal points of each ridge band in Figure 5, and the results are shown in Figure 6.
按照脊带之间的运动学比例关系将各条脊带叠加到其中一条轮廓最完整的脊带上,所构建的合成脊带如图7所示(最下层的脊带即为合成脊带)。According to the kinematic proportional relationship between the ridges, each ridge is superimposed on one of the ridges with the most complete outline, and the synthetic ridge constructed is shown in Figure 7 (the lowermost ridge is the synthetic ridge) .
采用Grubbs检验算法消除合成脊带的异常点,结果如图8所示。The Grubbs test algorithm is used to eliminate the abnormal points of the synthetic ridge belt, and the result is shown in Fig. 8.
计算合成脊带的平滑均值曲线及其95%的置信区间,结果如图9所示。The smoothed mean curves of the synthetic ridge bands and their 95% confidence intervals were calculated, and the results are shown in Fig. 9.
按照平滑均值曲线与目标脊线之间的运动学比例关系将平滑均值曲线及其置信区间映射到目标脊线上,结果如图10所示。According to the kinematic proportional relationship between the smooth mean curve and the target ridge, the smooth mean curve and its confidence interval are mapped to the target ridge, and the results are shown in Figure 10.
采用非延迟代价函数搜索目标脊线的脊点,得到的瞬时频率曲线如图11所示。Using the non-delayed cost function to search for the ridge point of the target ridge, the obtained instantaneous frequency curve is shown in Figure 11.
经多次实验表明,由本发明得到的瞬时频率估计值与实测值之间的最大相对误差为0.561%,平均相对误差为0.046%,而采用一步代价函数法获得的瞬时频率估计值与实测值之间的最大相对误差为16.39%,平均相对误差为2.14%,本发明最大相对误差降低96.58%,平均相对误差降低97.85%。Show through many experiments, the maximum relative error between the estimated value of instantaneous frequency obtained by the present invention and the measured value is 0.561%, and the average relative error is 0.046%, and the difference between the estimated value of instantaneous frequency obtained by the one-step cost function method and the measured value is 0.561%. The maximum relative error between them is 16.39%, and the average relative error is 2.14%. The maximum relative error of the present invention is reduced by 96.58%, and the average relative error is reduced by 97.85%.
根据实验结果,分析后认为:According to the experimental results, it is believed after analysis that:
1) 传统的一步代价函数在确定当前搜索区间的中心点时需要依赖上一个脊点的位置,存在着时间延迟现象,本发明利用映射后的平滑均值曲线作为参考线,可以即时确定当前搜索区间的中心位置,完全不依赖上一个脊点,因此具有实时性。1) The traditional one-step cost function needs to rely on the position of the previous ridge point when determining the center point of the current search interval, and there is a time delay phenomenon. The present invention uses the mapped smooth mean curve as a reference line to instantly determine the current search interval The central position of , does not depend on the last ridge point at all, so it has real-time performance.
2) 传统的的一步代价函数法缺乏自适应性,需要人为设置搜索区间,且搜索宽度是固定的,因而不可避免地带来误差,本发明利用映射后的平滑均值曲线置信区间来自动确定局部搜索区间,搜索带宽能够随着时间的变化而自动变化,不需要人工参与,因此具有自适应性。2) The traditional one-step cost function method lacks adaptability, and needs to manually set the search interval, and the search width is fixed, which inevitably brings errors. The present invention uses the mapped smooth mean curve confidence interval to automatically determine the local search Interval, the search bandwidth can change automatically as time changes without manual participation, so it is adaptive.
3) 与传统的一步代价函数法相比,本发明的精确度和准确度高。3) Compared with the traditional one-step cost function method, the present invention has high precision and accuracy.
本领域技术人员应该认识到,上述的具体实施方式只是示例性的,是为了使本领域技术人员能够更好的理解本发明内容,不应理解为是对本发明保护范围的限制,只要是根据本发明技术方案所作的改进,均落入本发明的保护范围。Those skilled in the art should realize that the above-mentioned specific embodiments are only exemplary, and are intended to enable those skilled in the art to better understand the content of the present invention, and should not be construed as limiting the protection scope of the present invention. The improvements made in the technical solution of the invention all fall into the protection scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710608573.6A CN107391935B (en) | 2017-07-24 | 2017-07-24 | Instantaneous Frequency Estimation Method Based on Non-Delay Cost Function and Grubbs Test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710608573.6A CN107391935B (en) | 2017-07-24 | 2017-07-24 | Instantaneous Frequency Estimation Method Based on Non-Delay Cost Function and Grubbs Test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107391935A true CN107391935A (en) | 2017-11-24 |
CN107391935B CN107391935B (en) | 2019-05-07 |
Family
ID=60337512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710608573.6A Active CN107391935B (en) | 2017-07-24 | 2017-07-24 | Instantaneous Frequency Estimation Method Based on Non-Delay Cost Function and Grubbs Test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107391935B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114674410A (en) * | 2022-03-24 | 2022-06-28 | 安徽大学 | A Time-varying Component Number Time-varying Instantaneous Frequency Estimation Method for Underwater Acoustic Signals |
CN116962123A (en) * | 2023-09-20 | 2023-10-27 | 大尧信息科技(湖南)有限公司 | Raised cosine shaping filter bandwidth estimation method and system of software defined framework |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101603854A (en) * | 2009-07-15 | 2009-12-16 | 南京信息工程大学 | An Algorithm for Estimating Instantaneous Frequency of Non-stationary Vibration Signals During Start-up and Stop of Rotating Machinery |
JP2011013234A (en) * | 2010-10-18 | 2011-01-20 | Furukawa Electric Co Ltd:The | Method for measuring dispersion distribution of optical fibers, method for compensating for error of measurement, and method for specifying conditions of measurement |
CN104268883A (en) * | 2014-10-07 | 2015-01-07 | 电子科技大学 | Time-frequency spectrum curve extracting method based on edge detection |
CN104634526A (en) * | 2015-01-27 | 2015-05-20 | 西安交通大学 | Rotor rub impact fault detection method based on nonlinear compression conversion and rotor rub impact fault detection system based on nonlinear compression conversion |
CN105678781A (en) * | 2016-01-19 | 2016-06-15 | 中国人民解放军电子工程学院 | Object micro Doppler feature separation and extraction method based on edge detection |
CN106370403A (en) * | 2016-08-22 | 2017-02-01 | 南京信息工程大学 | Instant frequency estimation method based on edge detection |
-
2017
- 2017-07-24 CN CN201710608573.6A patent/CN107391935B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101603854A (en) * | 2009-07-15 | 2009-12-16 | 南京信息工程大学 | An Algorithm for Estimating Instantaneous Frequency of Non-stationary Vibration Signals During Start-up and Stop of Rotating Machinery |
JP2011013234A (en) * | 2010-10-18 | 2011-01-20 | Furukawa Electric Co Ltd:The | Method for measuring dispersion distribution of optical fibers, method for compensating for error of measurement, and method for specifying conditions of measurement |
CN104268883A (en) * | 2014-10-07 | 2015-01-07 | 电子科技大学 | Time-frequency spectrum curve extracting method based on edge detection |
CN104634526A (en) * | 2015-01-27 | 2015-05-20 | 西安交通大学 | Rotor rub impact fault detection method based on nonlinear compression conversion and rotor rub impact fault detection system based on nonlinear compression conversion |
CN105678781A (en) * | 2016-01-19 | 2016-06-15 | 中国人民解放军电子工程学院 | Object micro Doppler feature separation and extraction method based on edge detection |
CN106370403A (en) * | 2016-08-22 | 2017-02-01 | 南京信息工程大学 | Instant frequency estimation method based on edge detection |
Non-Patent Citations (2)
Title |
---|
刘珊珊: "基于统计估计的图像边缘插值方法", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
江星星: "时频脊融合方法及时变工况行星齿轮箱故障识别", 《振动工程学报》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114674410A (en) * | 2022-03-24 | 2022-06-28 | 安徽大学 | A Time-varying Component Number Time-varying Instantaneous Frequency Estimation Method for Underwater Acoustic Signals |
CN116962123A (en) * | 2023-09-20 | 2023-10-27 | 大尧信息科技(湖南)有限公司 | Raised cosine shaping filter bandwidth estimation method and system of software defined framework |
CN116962123B (en) * | 2023-09-20 | 2023-11-24 | 大尧信息科技(湖南)有限公司 | Raised cosine shaping filter bandwidth estimation method and system of software defined framework |
Also Published As
Publication number | Publication date |
---|---|
CN107391935B (en) | 2019-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109883702B (en) | Motor bearing fault diagnosis method based on time-frequency domain statistical characteristics | |
CN105547698B (en) | The method for diagnosing faults and device of rolling bearing | |
CN107368457B (en) | The instantaneous Frequency Estimation method examined based on LoG operator and Grubbs | |
US9431024B1 (en) | Method and apparatus for detecting noise of audio signals | |
CN109596354B (en) | Band-pass filtering method based on self-adaptive resonance frequency band identification | |
CN109029999B (en) | A Fault Diagnosis Method for Rolling Bearings Based on Enhanced Modulation Bispectral Analysis | |
Zhang et al. | Improved local cepstrum and its applications for gearbox and rolling bearing fault detection | |
CN107391935A (en) | The instantaneous Frequency Estimation method examined based on non-delayed cost function and Grubbs | |
CN107389329B (en) | The instantaneous Frequency Estimation method examined based on non-delayed cost function and PauTa | |
CN104677486B (en) | The aero-engine vibration signal Method for Phase Difference Measurement reconstructed based on tacho-pulse | |
CN107389342B (en) | The instantaneous Frequency Estimation method examined based on Roberts operator and Grubbs | |
CN107368686B (en) | The instantaneous Frequency Estimation method examined based on Prewitt operator and Grubbs | |
CN107368814B (en) | The instantaneous Frequency Estimation method examined based on Sobel operator and PauTa | |
CN107368456B (en) | Instantaneous Frequency Estimation Method Based on Sobel Operator and t Test | |
CN107290147B (en) | The instantaneous Frequency Estimation method examined based on non-delayed cost function and t | |
CN110333506A (en) | A method of extracting the drag-line location parameter of cable force measurement radar | |
CN107389341B (en) | The instantaneous Frequency Estimation method examined based on Prewitt operator and t | |
CN107356429B (en) | The instantaneous Frequency Estimation method examined based on LoG operator and t | |
CN107391934B (en) | Instantaneous Frequency Estimation Method Based on Prewitt Operator and PauTa Test | |
CN107340129A (en) | The instantaneous Frequency Estimation method examined based on LoG operators and PauTa | |
CN107357760B (en) | Instantaneous Frequency Estimation Method Based on Roberts Operator and PauTa Test | |
CN107389343B (en) | The instantaneous Frequency Estimation method examined based on Roberts operator and t | |
CN107368458A (en) | The instantaneous Frequency Estimation method examined based on Sobel operators and Grubbs | |
CN105277274A (en) | Vibrating rod working state determination method based on noise signal analysis | |
CN110440909B (en) | Vibration signal-to-noise ratio calculation method based on noise adaptive identification |
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 | ||
CB03 | Change of inventor or designer information | ||
CB03 | Change of inventor or designer information |
Inventor after: Dou Chunhong Inventor after: Lin Jinshan Inventor before: Dou Chunhong |