Fault diagnosis method based on constant Q transform and transfer learning
Through the fault diagnosis method based on constant Q transformation and transfer learning, sensor data is used for signal processing and feature extraction, which solves the problem of inefficiency of traditional fault diagnosis methods and achieves efficient and accurate fault identification and diagnosis, which is suitable for complex systems. Troubleshooting.
Patent Information
- Application Number
- CN202410764518.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-14
AI Technical Summary
Traditional fault diagnosis methods rely on manual experience, are inefficient, and difficult to handle complex faults. Due to the low failure rate and lack of sufficient fault data, diagnosis accuracy and real-time performance are insufficient.
A fault diagnosis method based on constant Q transform and transfer learning is adopted, data is collected through vibration and sound pressure sensors, data enhancement and signal processing are performed, and the GoogleNet model is used for transfer learning to extract time-frequency features to achieve fault diagnosis.
It improves the efficiency and accuracy of fault diagnosis, can identify fault types early, reduces equipment losses, improves maintenance efficiency, and is suitable for diagnosis of complex systems and multiple types of faults.
Smart Images

Figure CN118364362B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fault diagnosis, and in particular to a fault diagnosis method based on constant Q transformation and transfer learning. Background Art
[0002] In the process of industrial production and equipment operation, as the equipment is used for a longer time, the probability of failure also gradually increases. Rapidly and accurately diagnosing equipment failures is of great significance to improving equipment reliability and operating efficiency. Traditional fault diagnosis methods often rely on expert experience, and often use empirical methods, observation methods, and trial and error methods to perform fault diagnosis. Their accuracy and real-time performance cannot meet current requirements. Traditional methods have the following shortcomings: (1) A large amount of fault data needs to be processed and analyzed. In a mature production line, the failure rate is very low, so it is difficult to obtain a large amount of fault data for processing and analysis. (2) Traditional fault diagnosis methods are highly dependent on manual experience and are very inefficient. They have limited ability to handle complex faults and are easily affected by subjective factors. Therefore, an efficient and accurate fault diagnosis method is needed to solve this problem. Summary of the invention
[0003] The purpose of the present invention is to provide a fault diagnosis method based on constant Q transformation and transfer learning to address the technical defects in the prior art. Through the transfer learning method, the existing rich experience and knowledge can be better utilized to accelerate the speed and accuracy of fault diagnosis and improve system reliability and stability.
[0004] The technical solution adopted to achieve the purpose of the present invention is:
[0005] A fault diagnosis method based on constant Q transformation and transfer learning comprises the following steps:
[0006] S1. Collecting acoustic and vibration monitoring data from the monitoring sensors of the system to be diagnosed and constructing an initial data set;
[0007] S2. Perform data enhancement on the initial data set to form an enhanced data set;
[0008] S3. Performing constant Q transformation on the data in the enhanced data set to convert the data into an image signal representation of the acoustic vibration signal on the time-frequency plane to obtain a multi-channel image;
[0009] S4. Input the multi-channel image into the GoogleNet-based transfer learning fault diagnosis model, and use the first result 0 after the last inception module performs deep stacking and combination as the output;
[0010] S5. Perform global average pooling on the first result 0 to obtain a convolution layer with a height and a width of 1, and then add a dropout with a predetermined dropout probability to obtain an output result of a one-dimensional vector;
[0011] S6. A layer of fully connected neural network processes the output result of the one-dimensional vector and outputs the second result 0'. The output layer activation function uses softmax to normalize the second result 0' and takes the position of the maximum element in the second result 0' as the final prediction value of the fault diagnosis.
[0012] In step S1, the initial data set is X={x 1 ,x 2 ,……x i}, x i is a time series data, representing the i-th type of operating parameters collected in step S1 within T time, x i ={ , ,…… }, Represents the value of the operating parameter of the i-th type at time t.
[0013] In step S2, the enhanced data set is represented as Y={y 1 ,y 2 ,……y i},y i represents the i-th type of operating parameter x collected in step S1 within T time i The data set of relevant operating parameters is obtained after data enhancement.
[0014] In step S2, data enhancement is performed by means of data interpolation, data resampling, data translation, and data cropping.
[0015] In step S3, the expression representing the image signal is I=[I 0 ,I 1 ,……I i ], where I i It represents an image obtained after data enhancement and constant Q transformation of the i-th type of operating parameters; the images obtained by all the type parameters after data enhancement are combined to obtain the image signal representation.
[0016] In step S4, the first result 0 is a 7×7×1024 matrix, where 7, 7, and 1024 are the height, width, and depth of the output after the last inception module performs depth stacking and combination.
[0017] In step S5, the output result of the one-dimensional vector is a 1×1×1024 matrix.
[0018] In step S6, the second result 0' is a vector with a length of M, where M is the number of fault diagnosis state parameters, and M≥1.
[0019] In step S5, the discard probability is 40%.
[0020] Among them, the monitoring sensors are vibration sensors and sound pressure sensors, which are used to collect the acoustic vibration signals of the vehicle's components to be diagnosed under different working conditions; among them, the vibration sensor records the vibration conditions of the vehicle's components to be diagnosed, and the sound pressure sensor records the pressure changes of the vehicle sound and the ambient sound, thereby ensuring comprehensive collection of acoustic vibration signals under different fault and normal conditions.
[0021] The fault diagnosis method based on constant Q transform and transfer learning in the present invention collects data through sensors and builds a database, performs data enhancement through data interpolation, data resampling, data translation, data cropping and other methods, increases the number of samples in the data set, uses constant Q transform technology to process signals, converts multi-dimensional operating parameters into multi-channel image data, and extracts corresponding time-frequency features; uses the GoogleNet deep neural network model to pre-train the CNN model for transfer learning, takes multi-channel image data as input, and realizes accurate fault diagnosis and identification.
[0022] The fault diagnosis method based on constant Q transformation and transfer learning of the present invention can greatly improve the efficiency of equipment fault diagnosis, and can timely and effectively diagnose the fault and identify the fault type in the early stage of the fault, effectively avoid further losses caused by equipment failure, and improve the efficiency of equipment maintenance.
[0023] The fault diagnosis method based on constant Q transformation and transfer learning of the present invention is suitable for fault diagnosis in various industrial production and equipment operation fields, and has a good effect on the diagnosis of complex systems and various types of faults. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a flow chart of the fault diagnosis method based on constant Q transformation and transfer learning of the present invention.
[0025] Figure 2 It is a schematic diagram of a model used in the fault diagnosis method based on constant Q transformation and transfer learning of the present invention. DETAILED DESCRIPTION
[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0027] The present invention performs data enhancement on the input signal through data interpolation, data resampling, data translation, data cropping and other methods, and then analyzes the fault signal through the constant Q transform method to obtain the corresponding time-frequency diagram, which is represented by the image signal. Then, the CNN model is pre-trained with the migration GoogleNet, and secondary training is performed on the time-frequency diagram respectively, so as to effectively analyze and identify the fault signal.
[0028] Transfer learning is an important branch of machine learning. It aims to use the knowledge learned from one or more related tasks to improve the learning performance on the target task. The core idea is to transfer the knowledge and experience learned from the source domain to the target domain, thereby accelerating the learning process of the target task and improving the generalization performance. The main assumption of transfer learning is that there is a certain similarity between the source domain and the target domain, that is, the knowledge in the source domain can be helpful in the target domain. Among them, the source domain is usually a domain that already has rich annotated data and can be used to train the model, and the target domain is the domain where the target task is located. Using transfer learning technology, a model with good performance can be trained under the condition of limited fault samples.
[0029] Constant-Q transform (CQT) is a time-frequency analysis method for signal processing, which is used to analyze the characteristic changes of signals in time and frequency; it can provide information about the instantaneous frequency, spectrum evolution and time domain characteristics of the signal, which is very useful for understanding the dynamic characteristics and time-frequency structure of the signal. Traditional spectrum analysis methods (such as Fourier transform) can only provide static spectrum information of the signal in the frequency domain, and cannot reflect the changes of the signal in time. CQT refers to a filter group with a center frequency distributed according to an exponential law, different filter bandwidths, but a center frequency to bandwidth ratio of constant Q. It is different from Fourier transform in that the horizontal axis frequency of its spectrum is not linear, but based on log2, and the filter window length can be changed according to the different spectral line frequencies to obtain better performance. Constant Q transform has a wide range of applications in many fields, such as speech signal processing, music analysis, vibration analysis, etc. It can help us understand the time-frequency characteristics of signals, extract the dynamic characteristics of signals, detect transient events in signals, etc.
[0030] like Figure 1 , Figure 2 As shown, the fault diagnosis method based on constant Q transformation and transfer learning of the present invention comprises the following steps:
[0031] S1. Collect the acoustic and vibration monitoring signal data of the monitoring sensor of the system to be diagnosed, and use signal processing technology and filters to pre-process the collected monitoring signal data, remove noise, filter, downsample, etc. to improve data quality and improve the accuracy and efficiency of subsequent analysis. Then, annotate the collected data and construct the initial data set.
[0032] Wherein, the monitoring sensor is a vibration sensor and a sound pressure sensor, and the system to be diagnosed is a component or structure to be diagnosed of the vehicle.
[0033] Vibration sensors and sound pressure sensors are used to collect the acoustic and vibration signals of the vehicle under different working conditions. Among them, the vibration sensor records the vibration of the vehicle structure, such as the vibration of the vibration parts to be diagnosed (such as the engine and transmission system), and the sound pressure sensor records the pressure changes of the vehicle sound and the ambient sound. It is arranged on the vehicle to measure and analyze the abnormal sound and sound field distribution in the vehicle, thereby ensuring the comprehensive collection of acoustic and vibration signals under different faults and normal conditions.
[0034] Use X={x 1 ,x 2 ,……x i} represents the initial data set collected, where x i is a time series data, representing the i-th type of operating parameters collected in step S1 within T time, x i ={ , ,…… }, Represents the value of the i-th type of operating parameter at time t.
[0035] When data annotation is performed, the acoustic vibration signal in the sample may be manually visualized and annotated using the signal processing toolbox of MATLAB according to the fault type of each sample.
[0036] S2. Through data enhancement methods, the initial data set is enhanced to increase the sample size in the initial data set to form an enhanced data set.
[0037] By performing data enhancement operations on the preprocessed and labeled acoustic vibration signal data, the diversity of the data can be increased and the generalization ability of the model can be improved. Specific data enhancement operations may include data interpolation, data resampling, data translation, data cropping and other operations.
[0038] Where Y={y 1 ,y 2 ,……y i} represents the enhanced data set after data enhancement, y i Indicates the operation parameter x of the i-th type collected within T time in the first stepi The data set of relevant operating parameters is obtained after performing data enhancement methods such as data interpolation, data resampling, data translation, and data cropping.
[0039] S3. Using the constant Q transform technology, the data of the enhanced data set is processed, the corresponding time-frequency features are extracted, and converted into image signal representations of the original signal on the time-frequency plane to obtain a multi-channel image. Among them, the vibration signal in the acoustic vibration signal is processed in the frequency domain, the sound signal is processed in the time domain and the frequency domain, and the three signals of the acoustic vibration signal are processed by constant Q transform respectively, and finally a multi-channel image is generated.
[0040] By applying constant Q transform to the enhanced data set of processed acoustic vibration signals, the time-frequency characteristics of the acoustic vibration signals are extracted and the time domain signals are converted into time-frequency domain representations. Constant Q transform (CQT) is a time-frequency analysis method that is used to perform localized analysis of signals on frequency and quality factor (Q factor). It can extract the energy distribution of signals on different frequency and time scales and is widely used in audio signal processing and music information retrieval. By performing constant Q transform on the acoustic vibration signal data, a time-frequency representation can be obtained to describe the spectral characteristics and time-frequency structure of the signal.
[0041] The data in the enhanced data set is transformed into an image signal of the acoustic vibration signal on the time-frequency plane by constant Q transformation, which is denoted as I=[I 0 ,I 1 ,……I i ], and obtain a multi-channel image, where I i It represents the image obtained after data enhancement and constant Q transformation of the i-th type of operating parameters, and finally the images obtained by all the type parameters after data enhancement are merged.
[0042] Furthermore, before extracting the features of the obtained multi-channel image signal, its frequency and peak features etc. may be associated with corresponding labels, or before performing constant Q transformation, the signal and the label may be sliced or aligned together to maintain their corresponding relationship.
[0043] The calculation process of the constant Q transform is as follows:
[0044] (1) Select a set of center frequencies that are distributed at equal intervals and each frequency corresponds to a fixed Q factor. The selection of center frequencies is usually based on application requirements and the frequency range of the signal. (2) For each center frequency, construct a window function, usually a Gaussian window or a rectangular window. The length and shape of the window function can be selected according to application requirements. (3) Convolve the signal with the window function to obtain the convolution result at each center frequency. (4) For each center frequency, calculate the amplitude spectrum of the convolution result and map it to the constant frequency axis. This mapping process is to ensure that the frequency resolution of the constant Q transform is constant, that is, there is a higher resolution in the low-frequency region and a lower resolution in the high-frequency region. (5) For each center frequency, you can choose to retain the peak or other features of the amplitude spectrum, such as energy and phase.
[0045] Among them, the calculation formula of constant Q transformation is as follows:
[0046]
[0047] in, Indicates at time and frequency The constant Q transformation result on is the original signal, is the window function, is the sampling interval, is the time index of the convolution.
[0048] S4. The obtained multi-channel image is input into a transfer learning fault diagnosis model based on GoogleNet (a transfer learning fault diagnosis model with GoogleNet as the backbone network), and the first result 0 after deep stacking and combination by the last inception module is taken as the output. The fault diagnosis model includes a convolutional neural network and a layer of fully connected neural network.
[0049] Among them, when training the model through transfer learning, monitoring signal data can be collected as in steps S1-S3 to form an enhanced data set for model training, and transfer learning is performed based on the GoogleNet model through the training data in the data set, and the diagnosis model is trained through model training and evaluation. For example, the enhanced data set for training can be divided into a training set and a verification set, the model is trained with the training set, and the model is verified with the verification set, completing the transfer learning process of the entire model to obtain a fault diagnosis model; cross-validation and other methods are used to evaluate and tune the model to obtain the best performance and generalization ability; the trained diagnosis model can be applied to the system to be diagnosed to perform fault diagnosis on the system to be diagnosed.
[0050] The transfer learning refers to transfer learning on an existing pre-trained model. The pre-trained model can be a model trained on other related tasks, such as a sound classification model, a fault diagnosis model, etc. By fine-tuning or adjusting the pre-trained model, it is adapted to the vehicle-mounted acoustic vibration signal fault diagnosis task. In this application, the selected CNN model is GoogleNet. GoogLeNet is a deep neural network model based on the Inception module launched by Google. The method of use is: transfer the underlying structure and related parameters of the model to the target model, adjust the high-level structure of the target model, and adjust the output of the last fully connected layer to M to form a new model.
[0051] When using the trained diagnostic model, features are extracted from the multi-channel image I formed by the collected monitoring sensor signal X through the convolutional neural network of the model. The parameters of the model are set as follows:
[0052] H: image height, W: image width, N: number of image channels, L: number of inception layers, K: feature depth; where H and W are the height and width of the result I obtained in S5, N is the number of channels of I (the same as the number of parameter types), and L is the number of inception layers. That is, during the entire feature extraction process, image I is processed by L inception layers and DepthConcat to obtain the final feature.
[0053] During processing, the input image first passes through a convolution kernel of size 7×7 and stride 2, and then passes through a maximum pooling layer of size 3×3 and stride 2 (that is, the corresponding elements of the adjacent 9 square areas are merged, and the largest element is used as the new feature value). After being processed by a 1×1 convolution kernel, it is processed by a convolution kernel of size 3×3 and stride 1 and a maximum pooling layer of 3×3 and stride 2, and then input into the Inception layer for multiple processing. The 1×1 convolution layer is used to reduce the dimension of the feature, which can reduce the amount of calculation and memory usage while maintaining the network's expressiveness.
[0054] Each Inception module consists of multiple parallel convolutional layers and pooling layers, which use different sizes of convolution kernels and pooling kernels to capture features of different scales. Then their outputs are spliced together in the channel dimension to form the output of the module. For Inception V1, there are four parallel processes, namely: 1. A 1×1 convolutional layer; 2. A 1×1 convolutional layer and a 3×3 convolutional layer; 3. A 1×1 convolutional layer and a 5×5 convolutional layer; 4. A 3×3 maximum pooling layer and a 1×1 convolutional layer.
[0055] The output of the last Inception layer is used as the output of step S4, and the first result 0 is obtained, which is H 1 ×W 1 ×K N The matrix of H 1 , W 1 , K N They are the height, width, and depth of the output of the last Inception layer respectively.
[0056] S5. Fault diagnosis: Perform global average pooling on all elements in the first result 0 obtained in step S4 to obtain a convolutional layer with a height and width of 1, and then add Dropout with a drop probability of 40%. The output result of the obtained one-dimensional vector is used as the input of a fully connected neural network layer.
[0057] S6. After a layer of fully connected neural network processes the output result of the one-dimensional vector, it outputs the second result 0'. The output layer activation function uses softmax to normalize the second result 0', and the position of the largest element in the second result 0' is used as the final prediction value of the fault diagnosis.
[0058] The fault diagnosis method of the present invention uses a model trained by transfer learning technology to perform fault diagnosis on new acoustic vibration signal data to determine the fault type of the system to be diagnosed. According to the prediction results of the model, it is determined whether the signal has a fault, and the fault type and severity are further determined, and corresponding processing methods and suggestions are given.
[0059] The fault diagnosis method of the present invention utilizes a data enhancement method to alleviate the problem of data imbalance, increase the amount of training data, and improve the generalization ability of the model, the robustness of the model, and the training effect of the model when there is less fault data, so that the fault diagnosis method has a better effect.
[0060] The fault diagnosis method of the present invention can more accurately extract the characteristics of the signal by using the constant Q transformation technology, thereby improving the accuracy of fault diagnosis. The fault diagnosis method of the present invention can make full use of the idea of transfer learning to accelerate the speed and accuracy of fault diagnosis. The fault diagnosis method of the present invention can improve the reliability and stability of the system through the method of transfer learning, and can obtain good results in different scenarios and systems.
[0061] In summary, the fault diagnosis method based on constant Q transform and transfer learning of the present invention can improve the speed and accuracy of fault diagnosis by making full use of constant Q transform technology and the idea of transfer learning, and can be applied to fault diagnosis in various scenarios and systems. It has good practicality and application prospects and has wide application value in actual engineering.
[0062] The basic principles and main features of the present invention and the advantages of the present invention are shown and described above. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention.
[0063] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the claims are included in the present invention.
[0064] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A fault diagnosis method based on constant Q transform and transfer learning, characterized in that: Includes steps: S1. Collecting acoustic and vibration monitoring data from monitoring sensors of the system to be diagnosed and constructing an initial data set; the monitoring sensors are vibration sensors and sound pressure sensors, which are used to collect acoustic and vibration signals of the vehicle's components to be diagnosed under different working conditions; wherein the vibration sensor records the vibration of the vehicle's components to be diagnosed, and the sound pressure sensor records the pressure changes of the vehicle sound and the ambient sound, thereby ensuring comprehensive collection of acoustic and vibration signals under different faults and normal conditions; S2. Perform data enhancement on the initial data set to form an enhanced data set; S3. Perform constant Q transformation on the data in the enhanced data set, convert it into an image signal representation of the acoustic vibration signal on the time-frequency plane, and obtain a multi-channel image; wherein the vibration signal in the acoustic vibration signal is processed in the frequency domain, the sound signal is processed in the time domain and the frequency domain, and the three signals of the acoustic vibration signal are respectively processed by constant Q transformation, and finally a multi-channel image is generated; S4. Input the multi-channel image into the GoogleNet-based transfer learning fault diagnosis model, and use the first result 0 after the last inception module performs deep stacking and combination as the output; S5. Perform global average pooling on the first result 0 to obtain a convolution layer with a height and a width of 1, and then add a dropout with a predetermined dropout probability to obtain an output result of a one-dimensional vector; S6. Process the output result of the one-dimensional vector using a fully connected neural network layer, output a second result 0', use softmax as the activation function of the output layer, normalize the second result 0', and use the position of the maximum element in the second result 0' as the final prediction value of the fault diagnosis; In step S3, the expression of the image signal is I=[I 0 ,I 1 ,……I i ], where I i represents an image obtained after data enhancement and constant Q transformation of the i-th type of operating parameters; the images obtained by merging the type parameters after all data enhancements are obtained to obtain the image signal representation; In step S4, the first result 0 is a 7×7×1024 matrix, where 7, 7, and 1024 are the height, width, and depth of the output after the last inception module performs depth stacking and combination, respectively; In step S5, the output result of the one-dimensional vector is a 1×1×1024 matrix; In step S6, the second result 0' is a vector with a length of M, where M is the number of fault diagnosis state parameters, and M≥1.
2. The fault diagnosis method based on constant Q transform and transfer learning according to claim 1, characterized in that: In step S1, the initial data set is X={x 1 ,x 2 ,……x i }, x i is a time series data, representing the i-th type of operating parameters collected in step S1 within T time, x i ={ , ,…… }, Represents the value of the operating parameter of the i-th type at time t.
3. The fault diagnosis method based on constant Q transform and transfer learning according to claim 2 is characterized in that: In step S2, the enhanced data set is represented as Y={y 1 ,y 2 ,……y i },y i represents the i-th type of operating parameter x collected in step S1 within T time i The data set of relevant operating parameters is obtained after data enhancement.
4. The fault diagnosis method based on constant Q transform and transfer learning according to claim 1, characterized in that: In step S2, data enhancement is performed by means of data interpolation, data resampling, data translation, and data cropping.
5. The fault diagnosis method based on constant Q transform and transfer learning according to claim 1, characterized in that: In step S5, the discard probability is 40%.
Citation Information
Patent Citations
Mechanical rotating part fault diagnosis method based on wavelet transform and transfer learning GoogLeNet
CN111914703A
Hydraulic cylinder fault diagnosis model training method and hydraulic cylinder fault diagnosis method
CN116304784A
Actuator fault diagnosis method based on multi-sensor information fusion and transfer learning
CN117009916A
