Feature extraction method and system based on two-dimensional time-frequency analysis, and storage medium

By dividing the time-frequency image into a grid diagram, the problem of large calculation amount and unstable features of the deep learning model when processing original signal data is solved, achieving more stable feature extraction and reducing computing power requirements.

CN118823366APending Publication Date: 2024-10-22山东浪潮智能生产技术有限公司

Patent Information

Application Number
CN202410861492.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

When deep learning models process raw signal data, they have a large amount of calculations and the extracted features are not stable, resulting in operational difficulties and increased difficulty in feature extraction.

Method used

Through a method based on two-dimensional time-frequency analysis, the time-frequency image is divided into a grid map. Each pixel belongs to a grid. The average features of the grid are used to replace the features of each pixel, and the features are input to the deep learning model for feature extraction.

Benefits of technology

It reduces the computing power requirements of the model, reduces accidental fluctuations, makes the extracted features more stable, and improves the computing speed and the robustness of the features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823366A_ABST
    Figure CN118823366A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of signal feature extraction, and discloses a feature extraction method and method based on two-dimensional time-frequency analysis and a storage medium, and the method comprises the steps: collecting a detection signal; obtaining a time-frequency image according to the detection signal; processing the time-frequency image to obtain a grid chart; and inputting the grid chart into a deep learning model to perform feature extraction on the detection signal. According to the invention, a detection signal to a time frequency image is divided into a plurality of grids, and each pixel belongs to a certain grid. The number of grids is far smaller than the number of pixels, so that the calculation power requirement of the model is reduced. The average characteristic of the grid is used for replacing the characteristic of each pixel, so that fluctuation change caused by contingency is weakened, and the extracted characteristic is more stable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal feature extraction, and in particular to a feature extraction method, system and storage medium based on two-dimensional time-frequency analysis. Background Art

[0002] In signal processing, it is a common method to jointly represent the signal in the time domain and frequency domain in two dimensions, that is, time-frequency analysis. The original signal data is input as an image into the deep learning model for feature learning, which can perform feature analysis on the initially collected signal, anomaly detection, classification prediction, etc.

[0003] Inputting the original signal data into the deep learning model for calculation will result in too much data calculation, which will make it difficult for the deep learning model to run in the later stage. In addition, each feature of the original signal data is too detailed and random, which will confuse or weaken the distribution law, and the extracted features will be unstable, all of which increase the difficulty of feature extraction. Summary of the invention

[0004] In view of this, the present invention provides a feature extraction method, system and storage medium based on two-dimensional time-frequency analysis to solve the problem of large amount of calculation and unstable extracted features when inputting original signal data into a deep learning model to extract features.

[0005] In a first aspect, the present invention provides a feature extraction method based on two-dimensional time-frequency analysis, comprising: collecting a detection signal; obtaining a time-frequency image based on the detection signal; processing the time-frequency image to obtain a grid map; and inputting the grid map into a deep learning model to extract features from the detection signal.

[0006] As an optional implementation manner, the processing the time-frequency image to obtain the grid map specifically includes: discretizing the time-frequency image to obtain the grid map;

[0007] As an optional implementation, the processing of the time-frequency image to obtain the grid map specifically includes: discretizing the time-frequency image to divide the entire time-frequency image into a plurality of grids to obtain the grid map; wherein each pixel belongs to one of the grids.

[0008] As an optional implementation, the binning threshold of the discretized bins is selected according to the method of high- and low-frequency decomposition using wavelet packets.

[0009] As an optional implementation, wavelet analysis or wavelet packet method is used to generate the time-frequency image.

[0010] As an optional implementation manner, the time-frequency image is provided with a time axis and a frequency axis.

[0011] As an optional implementation manner, the detection signal includes an electromagnetic wave signal or a sound signal.

[0012] In the second aspect, the present invention provides a feature extraction system based on two-dimensional time-frequency analysis, comprising: a signal detection device, which is suitable for collecting detection signals; a processor, which is communicatively connected to the signal detection device, and the processor obtains a time-frequency image based on the detection signal, and processes the time-frequency image to obtain a grid map, and the grid map is input into a deep learning model to extract features from the detection signal.

[0013] As an optional implementation, the signal detection device includes a vibration sensor or a microphone.

[0014] In a third aspect, the present invention provides a storage medium storing a computer program, wherein the computer program, when executed by a processor, implements any one of the feature extraction methods based on two-dimensional time-frequency analysis.

[0015] Beneficial effects: This application divides the detection signal into a time-frequency image into several grids, and each pixel belongs to a certain grid. Because the number of grids is much smaller than the number of pixels, the model computing power requirements are greatly reduced. Because the average feature of the grid replaces the feature of each pixel, the fluctuation caused by chance is weakened, so the extracted features are more stable. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A flow chart of a feature extraction method based on two-dimensional time-frequency analysis according to an embodiment of the present invention;

[0018] Figure 2 A grid graph obtained by discretizing and binning a two-dimensional time-frequency graph obtained by performing wavelet packet decomposition transformation on a detection signal in a feature extraction method based on two-dimensional time-frequency analysis in an embodiment of the present invention;

[0019] Figure 3 is a block diagram of a feature extraction system based on two-dimensional time-frequency analysis according to an embodiment of the present invention;

[0020] Figure 4A one-dimensional time domain signal diagram (horizontal axis time, vertical axis amplitude) obtained by taking a noise signal collected by a microphone as an example according to a feature extraction method based on two-dimensional time-frequency analysis in an embodiment of the present invention;

[0021] Figure 5 A one-dimensional spectrum diagram (the horizontal axis is the frequency value, and the vertical axis is the power value) obtained by Fourier transforming a noise signal according to a feature extraction method based on two-dimensional time-frequency analysis in an embodiment of the present invention;

[0022] Figure 6 A two-dimensional time-frequency graph (not discretized into bins, with time on the horizontal axis and frequency on the vertical axis) obtained by performing short-time Fourier transform on a noise signal according to a feature extraction method based on two-dimensional time-frequency analysis in an embodiment of the present invention;

[0023] Figure 7 A two-dimensional time-frequency diagram (not discretized into bins, with time on the horizontal axis and power on the vertical axis) obtained by performing continuous wavelet transform on a noise signal according to a feature extraction method based on two-dimensional time-frequency analysis in an embodiment of the present invention;

[0024] Figure 8 A two-dimensional time-frequency diagram (not discretized into bins, with time on the horizontal axis and power on the vertical axis) obtained by performing wavelet packet decomposition transformation on a noise signal in a feature extraction method based on two-dimensional time-frequency analysis in an embodiment of the present invention.

[0025] Description of reference numerals:

[0026] 110. Signal detection device;

[0027] 120. Processor. DETAILED DESCRIPTION

[0028] In the related art, the original time-frequency image of the detection signal can be generated by using methods such as wavelet analysis in time-frequency analysis. Each pixel in the original time-frequency image corresponds to the element value in the two-dimensional matrix of the time-frequency analysis. By using the original time-frequency image as an image input to the deep learning model for feature learning, the feature analysis of the initially collected detection signal can be performed, so that abnormality detection, classification prediction, etc. can be performed. Among them, the detection signal can be, for example, a motor noise signal, a bearing vibration signal, an electromagnetic wave signal, etc., which are all time domain signals. At this time, the deep learning model is input to the signal data feature, which is the value of each pixel from the original time-frequency image. It is certainly possible to directly input each pixel feature as an image into the deep learning model for prediction, but there are also defects. For example, it will lead to excessive data calculation, which will make the deep learning model difficult to run in the later stage; on the other hand, each feature is too detailed and too random, which will confuse or weaken the distribution law, which will increase the difficulty of feature extraction, so that in the actual application of time-frequency analysis, such as using time-frequency analysis to perform quality inspection on motor noise, the effect is not ideal.

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0030] Combine the following Figures 1 to 8 , describing an embodiment of the present invention.

[0031] like Figure 1 As shown, according to an embodiment of the present invention, on the one hand, a feature extraction method based on two-dimensional time-frequency analysis is provided, and the feature extraction method based on two-dimensional time-frequency analysis includes the following steps:

[0032] Step S101: collecting detection signals;

[0033] Step S103: obtaining a time-frequency image according to the detection signal;

[0034] Step S105: Process the time-frequency image to obtain a grid map;

[0035] Step S107: Input the grid map into the deep learning model to extract features of the detection signal.

[0036] The collected detection signal can form an original time-frequency image, and each pixel in the original time-frequency image can correspond to an element value in the time-frequency analysis two-dimensional matrix. The two-dimensional matrix of the detection signal is a two-dimensional matrix of wavelet coefficients.

[0037] If the original time-frequency image, that is, the wavelet heat map containing the features of each pixel, is directly input into the deep learning model for learning and abnormal classification prediction, it is theoretically feasible, but it is difficult to implement in practice. The difficulties in implementation mainly come from: 1. Because each pixel is a feature, the feature matrix is ​​large, the model computing power is very high, the operation time is too long, and it is difficult to meet the production requirements, or the workshop hardware conditions are difficult to meet the operation requirements. 2. Because each pixel is a feature, each feature is too detailed, and the randomness is too large, which will confuse or weaken the distribution law, thereby increasing the difficulty of feature extraction.

[0038] The time-frequency image is divided into several grids, and each pixel belongs to a certain grid. Because the number of grids is much smaller than the number of pixels, the model computing power requirements are greatly reduced. Because the average feature of the grid replaces the feature of each pixel, the fluctuation caused by chance is weakened, so the extracted features are more stable.

[0039] Optionally, wavelet analysis or wavelet packet method is used to generate time-frequency images.

[0040] In this embodiment, the detection signal can be analyzed from the signal time domain or frequency domain. The time domain information of the signal represents the relationship between the change of the signal amplitude over time, and the frequency domain information of the signal reveals the relationship between the signal frequency and energy.

[0041] In the field of signal processing, in order to analyze and process non-stationary signals, it is necessary to use a two-dimensional joint representation of the signal in the time domain and frequency domain, that is, time-frequency analysis. Time-frequency analysis can simultaneously characterize the time domain and frequency domain information of the signal. Commonly used methods in time-frequency analysis include Fourier transform, short-time Fourier transform, wavelet analysis, wavelet packet analysis, etc.

[0042] Fourier transform cannot reflect the characteristics of signal frequency changing with time. For non-stationary signals whose frequency changes with time, that is, time-varying signals, Fourier transform can only give a total average effect. Figure 5 As shown in the figure, it is a one-dimensional spectrum diagram obtained by Fourier transforming the noise signal. For stationary signals, Fourier transform (FT) is an important method of analysis and processing, and is widely used in mathematics, signal processing, thermodynamic analysis, engineering control theory and other fields. However, for non-stationary signals that are widely present in nature, Fourier transform can only obtain its global spectrum information and lose the frequency change information in local time, and cannot accurately characterize the characteristics of non-stationary signals.

[0043] In order to solve the problem that the frequency variation of electromagnetic signals over time cannot be reflected due to the global nature of Fourier transform in representing the signal spectrum, the concept of short-time Fourier transform (STFT) was proposed. The basic idea is to multiply the signal by a rectangular window function of fixed length before Fourier transform, so as to achieve pseudo-stationarity of the signal in local time, and then perform Fourier transform on the signal segment by segment by moving the rectangular window on the time axis, so as to obtain the time-varying characteristics of the signal. Although the short-time Fourier transform overcomes the global nature of the spectrum distribution of the Fourier transform, it cannot take into account both high time resolution and frequency resolution at the same time because the width of the selected rectangular window function is fixed. A longer time width obtains an ideal frequency resolution at the expense of time resolution; a shorter time width obtains an ideal time resolution at the expense of frequency resolution. Figure 6 As shown, it is a two-dimensional time-frequency diagram obtained by performing short-time Fourier transform on the noise signal.

[0044] Continuous Wavelet Transform (CWT) inherits and develops the idea of ​​local segmentation adopted by short-time Fourier for non-stationary signal processing, while overcoming the shortcoming of fixed width of short-time Fourier window function, and provides a time window that changes with frequency for time-frequency transformation of signals.

[0045] The continuous wavelet transform of a signal is defined as follows:

[0046]

[0047] In the formula, x and y represent the scale and translation respectively. The scale x represents the expansion and contraction of the wavelet basis function, which is inversely proportional to the frequency and can represent the frequency in the time-frequency diagram; the translation y represents the translation of the wavelet function, which corresponds to the length of time in the time-frequency diagram.

[0048] like Figure 7 As shown, it is a two-dimensional time-frequency diagram obtained by performing continuous wavelet transform on the noise signal.

[0049] Wavelet transform only further decomposes the low-frequency part of the signal, but does not further decompose the high-frequency part, which is the detail part of the signal. Therefore, wavelet transform can well represent a large class of signals with low-frequency information as the main component, but cannot well decompose and represent signals containing a lot of detail information, such as fine edges or textures.

[0050] The wavelet packet transform can decompose both the low-frequency part of the signal and the high-frequency part, and this decomposition has neither redundancy nor omission, so it can perform better time-frequency localization analysis on signals containing a large amount of medium and high-frequency information.

[0051] Wavelet analysis and wavelet packet analysis can be applied to time-frequency analysis, signal filtering, noise separation, signal deconstruction, feature extraction, fault diagnosis, etc. in signal processing and other fields.

[0052] The time-frequency diagram of the signal can be generated using wavelet analysis or wavelet packet method. Each pixel in the original time-frequency diagram can correspond to the element value in the two-dimensional matrix of the time-frequency analysis. The two-dimensional matrix is ​​the two-dimensional matrix of wavelet coefficients.

[0053] like Figure 8 As shown in FIG. 1 , it is a two-dimensional time-frequency diagram obtained by performing wavelet packet decomposition transformation on the noise signal.

[0054] Optionally, the time-frequency image is processed to obtain a grid map, specifically including:

[0055] The time-frequency image is discretized to obtain a grid map.

[0056] In this embodiment, after the features are discretized, the model will be more stable and the risk of model overfitting will be reduced. At the same time, the amount of calculation of the deep learning model is reduced, and the calculation speed will be accelerated. After discretization, the randomness of a single value is reduced, which is convenient for feature screening. The discretized features are highly robust to abnormal data, and the missing can be brought into the model as an independent class, all variables can be transformed to a similar scale, and so on.

[0057] Optionally, the time-frequency image is processed to obtain a grid map, specifically including:

[0058] The time-frequency image is discretized and binned to divide the entire time-frequency image into several grids to obtain a grid map, wherein each pixel belongs to one of the grids.

[0059] Optionally, a time axis and a frequency axis are provided in the time-frequency image.

[0060] In this embodiment, the time axis and frequency axis of the time-frequency image are discretized and binned separately at the same time, and the entire time-frequency image is divided into several grids, and each pixel belongs to a certain grid. After discretization, the distribution of each box will be more stable and regular, reducing the randomness of a single value, which is convenient for feature engineering to screen features. Because the number of grids is much smaller than the number of pixels, the computing power requirements of the deep learning model are greatly reduced. Because the average feature of the grid replaces the feature of each pixel, the accidental fluctuation is weakened, the feature is more stable, which is conducive to subsequent feature learning.

[0061] Optionally, a binning threshold for discretized binning is selected according to a method of performing high and low frequency decomposition using wavelet packets.

[0062] In this embodiment, the selection of the binning threshold for discretization binning is closely related to the model effect and cannot be arbitrarily selected. Figure 2 As shown in the figure, this model discretizes the wavelet heat map by using the wavelet packet to decompose the high and low frequencies. If the frequency domain needs to be divided into 32 boxes, wavelet packet analysis is used to divide the data five times, each time decomposing it into layer A and layer D, and finally there are 2 to the fifth power, that is, 32 boxes.

[0063] Optionally, the detection signal includes an electromagnetic wave signal or a sound signal.

[0064] In this embodiment, the sound signal is a noise signal. In the field of manufacturing, the motors produced by the workshop production line need to undergo noise quality inspection before leaving the factory. A noise signal is collected by a vibration sensor or microphone, and the noise signal is analyzed in time and frequency to determine whether the noise of the motor is abnormal. Figure 4 As shown, a one-dimensional time domain signal is obtained by taking a noise signal collected by a microphone as an example, wherein the horizontal axis is time and the vertical axis is amplitude.

[0065] In the production line of a factory workshop, when monitoring the health management status and fault diagnosis of equipment, and conducting quality inspection on the products produced by the production line, it is often necessary to use sensors to collect time signals such as noise and vibration for analysis. By using the original time-frequency graph as image input and feeding it to the deep learning model for feature learning, feature analysis, anomaly detection, classification prediction, etc. can be performed on the initially collected signals. For example, motor noise signals and bearing vibration signals, these time domain signals are detection signals. The input data features of the deep learning model come from the value of each pixel in the original time-frequency graph. For example, the wavelet heat map generated by wavelet packet analysis is generated by performing time-frequency transformation on each value of the collected signal, and each pixel represents an element value of a two-dimensional matrix.

[0066] Inputting each grid of the discretized time-frequency image as a feature into the deep learning model will make the deep learning model run faster in the motor noise quality inspection project, because the image feature is not each pixel as input, but several pixels merged into one value as input, which reduces the computing power requirement; the classification prediction results can also more effectively distinguish abnormal signals, because the risk-pooling principle uses the group characteristics of the discretized box to replace the individual characteristics of each pixel, which reduces individual randomness, makes the features more stable and more statistically significant, and makes it easier to extract effective features in subsequent model feature engineering.

[0067] The general DL model processes the collected data slightly and then feeds it into the model for prediction. The interpretability of the final prediction result and the relationship between the cause are not transparent, making it a black box model. This is also the limitation of the general DL model's fully data-driven modeling.

[0068] The wide feature table injected into the DL model has stronger interpretability and can provide more directional and practical decision support for abnormal detection attribution, subsequent fault diagnosis and repair, and predictive maintenance of rotating equipment.

[0069] According to an embodiment of the present invention, on the other hand, Figure 3 As shown, a feature extraction system based on two-dimensional time-frequency analysis is also provided. The feature extraction system based on two-dimensional time-frequency analysis includes a signal detection device 110 and a processor 120. The signal detection device 110 is suitable for collecting detection signals. The processor 120 is communicatively connected to the signal detection device 110. The processor 120 obtains a time-frequency image according to the detection signal, and processes the time-frequency image to obtain a grid map. The grid map is input into a deep learning model to extract features from the detection signal.

[0070] The signal detection device 110 includes a vibration sensor or a microphone.

[0071] According to an embodiment of the present invention, on the other hand, a storage medium is provided, storing a computer program, which implements any step of the feature extraction method based on two-dimensional time-frequency analysis when executed by a processor.

[0072] In the above embodiments, the storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0073] Optionally, the processor executes the method steps recorded in the above embodiment according to the program code stored in the storage medium.

[0074] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0075] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present disclosure can be implemented by a general-purpose computing device, and they can be concentrated on a single computing device or distributed on a network composed of multiple computing devices.

[0076] Alternatively, they may be implemented with program codes executable by a computing device, so that they may be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described may be performed in a different order than that shown here, or they may be made into individual integrated circuit modules, or multiple modules or steps therein may be made into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any particular combination of hardware and software.

[0077] When a computer program is running, it can execute the following logical flow:

[0078] 1. Collect detection signals;

[0079] 2. Obtain a time-frequency image based on the detection signal;

[0080] 3. Process the time-frequency image to obtain a grid map;

[0081] 4. Input the grid map into the deep learning model to extract features of the detection signal.

[0082] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A feature extraction method based on two-dimensional time-frequency analysis, characterized in that: include: Collecting detection signals; Obtaining a time-frequency image according to the detection signal; Processing the time-frequency image to obtain a grid map; The grid map is input into a deep learning model to extract features of the detection signal.

2. The feature extraction method based on two-dimensional time-frequency analysis according to claim 1 is characterized in that: The processing of the time-frequency image to obtain a grid map specifically includes: The time-frequency image is discretized to obtain the grid image.

3. The feature extraction method based on two-dimensional time-frequency analysis according to claim 1 is characterized in that: The processing of the time-frequency image to obtain the grid map specifically includes: Discretizing and binning the time-frequency image to divide the entire time-frequency image into a plurality of grids to obtain the grid map; Each pixel belongs to one of these grids.

4. The feature extraction method based on two-dimensional time-frequency analysis according to claim 3 is characterized in that: The binning threshold of the discretized bins is selected according to the method of high and low frequency decomposition of wavelet packets.

5. The feature extraction method based on two-dimensional time-frequency analysis according to any one of claims 1 to 4, characterized in that: The time-frequency image is generated by wavelet analysis or wavelet packet method.

6. The feature extraction method based on two-dimensional time-frequency analysis according to any one of claims 1 to 4, characterized in that: The time-frequency image is provided with a time axis and a frequency axis.

7. The feature extraction method based on two-dimensional time-frequency analysis according to any one of claims 1 to 4, characterized in that: The detection signal includes an electromagnetic wave signal or a sound signal.

8. A feature extraction system based on two-dimensional time-frequency analysis, characterized in that: include: A signal detection device (110), wherein the signal detection device (110) is suitable for collecting a detection signal; A processor (120) is communicatively connected to the signal detection device (110), wherein the processor (120) obtains a time-frequency image based on the detection signal, and processes the time-frequency image to obtain a grid map, wherein the grid map is input into a deep learning model to extract features from the detection signal.

9. The feature extraction system based on two-dimensional time-frequency analysis according to claim 8, characterized in that: The signal detection device (110) includes a vibration sensor or a microphone.

10. A storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the feature extraction method based on two-dimensional time-frequency analysis according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Deep learning-based low-interception electromagnetic signal detection and classification method and system

    CN115470826A

Cited By

  • Broadband signal detection method based on dual-channel characteristics and frequency injection

    CN122247528A