The present disclosure claims priority to the Chinese Patent Application CN2023112410773 filed on Sep. 25, 2023 and entitled “METHOD AND APPARATUS OF DENOISING MECHANICAL VIBRATION SIGNAL, MEDIUM, AND DEVICE”, the disclosure of which is herein incorporated by reference in its entirety.
The present disclosure belongs to the field of vibration signal processing technologies, and in particular, to a method and an apparatus of denoising a mechanical vibration signal, a medium, and a device.
A mechanical system generates strong vibration signals during operation, which contain rich and useful information. For example, the vibration signals that directly reflect the feature state and operation conditions of a diesel engine are measured at the position of rolling bearings. Therefore, industry researchers generally consider accurately diagnosing fault information of an engine body by analyzing the vibration signals collected from the position of the rolling bearings. However, bearing vibration signals measured on site are easily submerged in strong background noise. Therefore, in order to accurately extract fault features of bearings, it is necessary to effectively identify noise components in a measurement signal and filter them out.
In the current, most commonly used signal denoising methods include empirical mode decomposition (EMD), variational mode decomposition (VMD), and empirical wavelet transform (EWT). However, as a non-linear and non-stationary random signal, time-frequency features of the bearing vibration signal randomly change over time. Therefore, in the case that the above signal denoising methods are directly applied to rolling bearing noise, there are two problems: one is that modal aliasing occurs when processing the vibration signal with strong noise backgrounds, making it difficult to detect internal fault feature information; and the other is that signal distortion is prone to occur during signal decomposition. Therefore, it is necessary to propose a more effective method to solve a problem of signal denoising based on the measured features of the vibration signals of the rolling bearing.
In order to solve the above problems existing in the prior art, the present disclosure provides a method and an apparatus of denoising a mechanical vibration signal, a medium, and a device.
To achieve the above object, the present disclosure adopts the following technical solutions.
In the first aspect, the present disclosure provides a method of denoising a mechanical vibration signal, including:
Furthermore, before performing GVMD on the vibration signal, the method further includes preprocessing the vibration signal:
Furthermore, clustering the multiple intrinsic mode function sub signals using a Kmeans clustering algorithm includes:
Furthermore, K=3, divide the multiple intrinsic mode function sub signals into 3 categories using the Kmeans clustering algorithm, and where the main signal component of the first category is the vibration signal, the main signal component of the second category is a mixed signal of the vibration signal and the noise signal, and the main signal component of the third category is the noise signal.
Furthermore, a recognition method for the 3 categories includes:
Furthermore, a method of filtering the intrinsic mode function sub signal IMF using the non-local mean algorithm NLM includes:
calculating a filtered signal IMFs (i) based on the following formula:
Furthermore, δ1=1, δ2=4, and δ3=8.
In the second aspect, the present disclosure provides an apparatus of denoising a mechanical vibration signal, including:
Furthermore, the apparatus further includes a preprocessing module, configured to preprocess the vibration signal:
Furthermore, clustering the multiple intrinsic mode function sub signals using a Kmeans clustering algorithm includes:
In the third aspect, the present disclosure provides a readable medium, including execution instructions, where when the execution instructions are run by a processor of an electronic device, the electronic device performs the above method.
In the fourth aspect, the present disclosure provides an electronic device, including a processor and a memory storing execution instructions, where when the execution instructions stored in the memory are executed by the processor, the processor performs the above method.
Compared with the prior art, the present disclosure has the following beneficial effects.
The present disclosure processes a real-time acquired vibration signal using a generalized variational modal decomposition algorithm to acquire multiple intrinsic mode function sub signals, clusters the multiple intrinsic mode function sub signals, divides them into several categories, assigns different Gaussian scale coefficients to the intrinsic mode function sub signals of different categories, and uses a non-local mean algorithm NLM to filter each intrinsic mode function sub signal, respectively, and sums them, so as to acquire a denoised vibration signal, such that the vibration signal is denoised. In the present disclosure, the vibration signal is decomposed into the multiple intrinsic mode function sub signals, different Gaussian scale coefficients are assigned to different categories of intrinsic mode function sub signals, and the non-local mean algorithm NLM is used to filter each intrinsic mode function sub signal, respectively, significantly improving a denoising effect.
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings required to be used in the description of the embodiments or the prior art are briefly introduced below. It is obvious that the drawings in the description below are merely some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings are acquired according to the drawings without creative labor;
For clearer descriptions of the objects, technical solutions, and beneficial effects of the present disclosure, the specific embodiments of the present disclosure are described in detail below with reference to the drawings. The specific embodiments described are only a part of the embodiments of the present disclosure, not all of them. Based on the specific embodiments of the present disclosure, other embodiments acquired by those skilled in the art without creative labor belong to the protection scope of the present disclosure.
In step 101, a generalized variational mode decomposition algorithm GVMD is used to process a real-time acquired vibration signal to acquire multiple intrinsic mode function sub signals.
In step 102, the multiple intrinsic mode function sub signals are clustered and divided into several categories.
In step 103, different Gaussian scale coefficients are assigned to different types of intrinsic mode function sub signals, a non-local mean algorithm NLM is used to filter each intrinsic mode function sub signal, respectively, and they are summed, so as to acquire a denoised vibration signal.
In the present embodiment, step 101 is mainly used to decompose the vibration signal into the multiple intrinsic mode function sub signals. The present embodiment processes the vibration signal using the GVMD algorithm to acquire the multiple intrinsic mode function sub signals.
The GVMD algorithm solves an optimization problem of construction by constructing a constrained optimization problem for each sub signal and incorporating a fixed frequency decomposition solution, thereby completing multi-scale fixed frequency decomposition in a frequency domain. Therefore, the GVMD algorithm mainly includes two parts: the construction of constrained optimization problem and the solution of constrained optimization problem. Firstly, assuming that a vibration signal X consists of M sub signals, the optimization problem constructed by GVMD is expressed as:
In the formula, ∂t(*) is a partial derivative of time, t is time; δ(*) is a Dirac function, uk is the k-th sub signal, ωK corresponds to a center frequency of the k-th sub signal. Firstly, a multiplier method is used to transform the above constrained optimization problem into an unconstrained optimization problem:
In the formula, αK represents a scale parameter, and λK is a Lagrange multiplier. Then an alternating direction method of the multipliers is used to solve the above unconstrained optimization problem, such that the main problem is decomposed into 3 sub problems: minimization of sub signal uk, minimization of center frequency ωk, and improvement of Lagrange multiplier λk. The specific formula is as follows:
In the formula, a parameter τ is a dual ascending step size, and n is an iteration step
Finally, all 3 sub problems are solved by iteratively updating uk, ωK, and λK. The acquired sub signal and center frequency are:
In the formula, {circumflex over (x)}, û, and {circumflex over (λ)} are the Fourier transform of x, u, and λ, respectively. A real part of the inverse Fourier transform is the sub signal uk, which is also the intrinsic mode function IMF.
In the present embodiment, step 102 is mainly used to classify the multiple intrinsic mode function sub signals. A purpose of classifying the intrinsic mode function sub signals is to classify sub signals with similar features into the same category, and filter sub signals of different categories in a targeted manner to acquire an ideal filtering and denoising effect. In the prior art, there are many available classification algorithms, which is not limited in the present embodiment. The following embodiments will provide a specific classification algorithm.
In the present embodiment, step 103 is mainly used to filter different types of intrinsic mode function sub signals. The present embodiment uses the non-local mean algorithm NLM to filter each intrinsic mode function sub signal, respectively. The NLM algorithm effectively reduces the noise while reducing signal distortion. In order to achieve the ideal filtering and denoising effect, the present embodiment assigns different Gaussian scale coefficients to different categories of sub signals, filters each sub signal, respectively, and sums them, so as to acquire the denoised vibration signal.
As one optional embodiment, the method further includes preprocessing the vibration signal before performing GVMD.
The vibration signal is represented as a time series X={x(t)}, where x(t) is an amplitude value of the vibration signal at the t-th data acquisition time, t=1, 2, . . . , N, and N are the number of data;
Hampel filtering is performed on X using the following formula:
In the formula, z(t) is a filtered value of x(t), and medium(X) and medium(Y) are the median of X and Y, respectively, Y={|x(t)−median (X)|}, and t=1, 2, . . . , N.
In the case that z(t) is greater than a set threshold, the z(t) is abnormal data.
The abnormal data is replaced with a numerical value acquired through interpolation calculation.
The present embodiment provides a technical solution of preprocessing the vibration signal. During an on-site process of collecting the vibration signal, measurement errors and interference signals are prone to occur, resulting in the presence of abnormal data points in the signal, as shown in
As one optional embodiment, the Kmeans clustering algorithm is used to cluster the multiple intrinsic mode function sub signals.
The number of clusters K is determined, and K intrinsic mode function sub signals are randomly selected from the multiple intrinsic mode function sub signals IMFi(t) as a center hj(t) of an initial sample cluster, where t is data collection tine, t=1, 2, . . . , N, N is the number of data, i=1, 2, . . . , M, M is the number of intrinsic mode function sub signals, and j=1, 2, . . . , K.
The Euler distance is calculated from each IMFi(t) to each cluster center hj(t) using the following formula:
In the formula, d(IMFi(t),hj(t)) is the Euler distance from IMFi(t) to hj(t), i=1, 2, . . . , M, and j=1, 2, . . . , K.
Based on the nearest Euler distance criterion, M intrinsic mode function sub signals are classified into centers of K clusters to acquire K categories.
An average signal of all intrinsic module function sub signals in each category is calculated and used as a new cluster center.
Iteration is performed by repeating the above steps, and in the case that JSSE is less than the set threshold value, stop the iteration and acquire the final K categories, and a calculation formula for JSSE is:
In the formula, min( ) represents finding a minimum value.
The present embodiment provides a specific classification algorithm. The present embodiment uses the Kmeans clustering algorithm to cluster the multiple intrinsic mode function sub signals. The Kmeans clustering algorithm is the most commonly used clustering algorithm and also an unsupervised learning algorithm. The core idea of the Kmeans algorithm is as follows: firstly, determine the number of clusters K, randomly select K initial cluster centers Ci from a data set, calculate the Euclidean distance between the remaining data and the cluster center Ci, find the cluster center Ci closest to the data, and assign the data to a cluster corresponding to the cluster center Ci; then calculate an average value of data objects in each cluster as a new cluster center, and proceed to the next iteration until the cluster center no longer changes or reaches the maximum number of iterations. The present embodiment differs from general clustering operations in that the cluster center is not a single data point, but rather all data points contained in one sub signal. Of course, the object of classification is not specific to a single data point. Rather, one sub signal is regarded as a whole when it is classified.
As one optional embodiment, K=3, the multiple intrinsic mode function sub signals are divided into 3 categories using the Kmeans clustering algorithm. The main signal component of the first category is the vibration signal, the main signal component of the second category is a mixed signal of the vibration signal and the noise signal, and the main signal component of the third category is the noise signal.
The present embodiment limits the number of clusters K. The present embodiment limits K=3, and after performing the Kmeans clustering algorithm, the 3 categories of intrinsic mode function sub signals are acquired. The 3 categories are basically classified based on signal energy or intensity: the first category is the strongest sub signal, and the main signal component is the vibration signal; the second category is the strong sub signal, and the main signal component is the mixed signal of the vibration signal and the noise signal; and the third category is the weakest sub signal, and the main signal component is the noise signal.
As one optional embodiment, an identification method for the 3 categories is as follows.
A maximum amplitude value of the intrinsic mode function sub signals for each category is calculated.
The 3 categories are sorted in a descending order of maximum amplitude value, with the first category, the second category, and the third category from top to bottom.
The present embodiment provides the recognition method for the 3 categories. Although the previous embodiment has acquired the 3 categories, the signal component of each category is not known. That is, it is not known which category is the first category, the second category, and the third category. The present embodiment calculates the maximum amplitude values of all sub signals in each category and sorts them by size, with the first category, the second category, and the third category from top to bottom. Of course, the comparison is made based on the signal mean of each cluster center in each category. In short, all the 3 categories are distinguished based on the signal strength.
As one optional embodiment, a method of filtering the intrinsic mode function sub signal IMF using the non-local mean algorithm NLM is as follows.
A weighting coefficient of IMF(i) at the i-th data collection time is calculated based on the following formula.
In the formula, in the formula, ω(i, j) is a weighting coefficient and is the similarity of similar blocks centered around i, j, δK is a Gaussian scale coefficient corresponding to the intrinsic mode function sub signal of the k-th category, k=1, 2, 3, δ1<δ2<δ3, P is an influence coefficient related to the number of similar blocks, λ is a search step size, and Δ is a search block centered around i.
A filtered signal IMFS(i) is calculated based on the following formula:
In the formula, Ωi is a search window centered on i.
The present embodiment provides one technical solution of filtering the intrinsic mode function sub signal using the NLM algorithm. The present embodiment filters the IMF sub signal by calculating the weighting mean of IMF sub signals within each search window Ωi, and the calculation formulas are shown as formulas (5) and (6). The larger the width of the search window Ωi, the better the denoising effect, but the longer the calculation time. ω(i, j) is the weighting coefficient, and the calculation formula is shown as formula (4). The calculation process of ω(i, j) is understood as comparing domains around similar blocks centered around i and j, the higher the similarity, the larger the ω(i, j). δK is the Gaussian scale coefficient, which affects the smoothness of a denoise signal. P is the coefficient variable affecting ω(i, j), which affects the number of similar blocks. λ represents the search step size, which is a step size of movement of the search window. Δ is the search block centered around i. All of Ωi, δK and P have an impact on the result of NLM, but it is clearly seen from formula (4) that the influence of the Gaussian scale coefficient δk is greater than that of other two parameters. In order to achieve a good filtering result, the present embodiment adopts Gaussian scale coefficients of different sizes for different signal components, δK is the Gaussian scale coefficient corresponding to the IMF sub signal of the k-th category, where k=1, 2, and 3. Due to the successive decrease in signal energy from the first to third category, δ1<δ2<δ3, the third category has the largest Gaussian scale coefficient, which effectively suppresses the noise signal.
As one optional embodiment, δ1=1, δ2=4, and δ3=8.
The present embodiment provides a set of specific numerical values for the 3 categories of Gaussian scale coefficients. δ1, δ2, δ3 are 1, 4, and 8, respectively, satisfying δ1<δ2<δ3. It is noted that the present embodiment merely provides a better implementation manner but does not exclude or negate other feasible implementation manners, for example, δk is different from the value of the present embodiment.
The apparatus of the present embodiment is used to perform the technical solution of the method embodiment shown in
As one optional embodiment, the apparatus further includes a preprocessing module configured to preprocess the vibration signal.
The vibration signal is represented as a time series X={x(t)}, where x(t) is an amplitude value of the vibration signal at the t-th data acquisition time, t=1, 2, . . . , N, and N are the number of data;
Hampel filtering is performed on X using the following formula:
In the formula, z(t) is a filtered value of x(t), and medium(X) and medium(Y) are the median of X and Y, respectively, Y={|x(t)−median (X)|}, and t=1, 2, . . . , N.
In the case that z(t) is greater than a set threshold value, the z(t) is abnormal data.
The abnormal data is replaced with a numerical value acquired through interpolation calculation.
As one optional embodiment, the Kmeans clustering algorithm is used to cluster the multiple intrinsic mode function sub signals.
The number of clusters K is determined, and K intrinsic mode function sub signals are randomly selected from the multiple intrinsic mode function sub signals IMFi(t) as a center hj(t) of an initial sample cluster, where t is data collection time, t=1, 2, . . . , N, N is the number of data, i=1, 2, . . . , M, M is the number of intrinsic mode function sub signals, and j=1, 2, . . . , K.
The Euler distance is calculated from each IMFi(t) to each cluster center hj(t) based on the following formula:
In the formula, d(IMFi(t),hj(t)) is the Euler distance from IMFi(t) to hj(t), i=1, 2, . . . , M, and j=1, 2, . . . , K.
Based on the nearest Euler distance criterion, M intrinsic mode function sub signals are classified into centers of K clusters to acquire K categories.
An average signal of all intrinsic mode function sub signals in each category is calculated and used as a new cluster center.
Iteration is performed by repeating the above steps, and in the case that JSSE is less than the set threshold value, stop the iteration and acquire the final K categories, and a calculation formula of JSSE is:
In the formula, min( ) represents finding a minimum value.
The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or alternations easily thought of by those skilled familiar with the technical field within the technical scope of the present disclosure should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure is based on the protection scope of the claims.
The processor, network interface, and memory are connected to each other through the internal bus, which is an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, and the like. The bus is divided into address bus, data bus, control bus, and the like. For ease of illustration, only 1 bidirectional arrow is used in
The memory is configured to store execution instructions. Specifically, the execution instruction is a computer program that can be run. The memory includes the internal memory and non-volatile memory, and provides the execution instructions and data to the processor.
In one possible implementation manner, the processor reads corresponding execution instructions from the non-volatile memory into the internal memory and runs them, or it acquires corresponding execution instructions from other devices to form a blood vessel segmentation apparatus at the logical level. The processor executes the execution instructions stored in the memory to achieve the method of denoising the mechanical vibration signal according to any one embodiment of the present disclosure through the executed execution instructions.
The method of denoising the mechanical vibration signal according to the embodiment shown in
The steps of the method disclosed in the embodiments of the present disclosure are directly performed by a hardware decoding processor, or performed by combining hardware and software modules in the decoding processor. The software module is located in mature storage media in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor reads information in the memory and completes the steps of the above method combined with the hardware thereof.
The present disclosure provides a method and an apparatus of denoising a mechanical vibration signal, a medium, and a device, which decomposes the vibration signal into multiple intrinsic mode function sub signals, assigns different Gaussian scale coefficients to different types of intrinsic mode function sub signals, and uses a non-local mean calculation method NLM to filter each intrinsic mode function sub signal, respectively, significantly improving a denoising effect. It can be combined with computer technology to form a signal processing apparatus and for device mass production, quickly applied to a system or a scenario with high demand for vibration signal analysis.
Number | Date | Country | Kind |
---|---|---|---|
202311241077.3 | Sep 2023 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2023/124007 | 10/11/2023 | WO |