Vehicle fault diagnosis and early warning method and system based on vibration and noise
Through the image-based deep learning model, the dual attention mechanism neural network of multi-head self-attention and multi-scale attention mechanism is used to process vibration and noise signals in car failures, solving the problem of low diagnosis efficiency in early car failures, and realizing the More accurate fault location and early warning.
Patent Information
- Application Number
- CN202411639672.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-11-18
AI Technical Summary
The prior art has shortcomings in the early diagnosis efficiency of automobile failures, and it is difficult to effectively use vibration and noise signals for fault location and early warning.
Using an image-based deep learning model, it is converted into time-frequency feature data through short-term Fourier feature extraction, continuous wavelet transform feature extraction, and Mel cepspectral feature extraction, and constructs a multi-head self-attention mechanism and a multi-scale attention mechanism. The dual attention mechanism neural network model is used for vehicle fault diagnosis and early warning.
The fault diagnosis efficiency is improved, and the transient characteristics and frequency components of the signal are captured through time-frequency analysis, which enhances the performance of the model, and can more accurately identify nonlinear vibration and noise characteristics, providing more comprehensive and accurate fault information.
Smart Images

Figure CN119147286A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle fault diagnosis, and in particular to a vehicle fault diagnosis and early warning method and system based on vibration and noise. Background Art
[0002] At present, the safety and comfort of automobile operation have become issues that major OEMs and consumers attach great importance to. Automobile operation safety includes active fault monitoring system and passive fault emergency system. Passive fault emergency system can help drivers and passengers avoid serious personal injury and increase the survival probability of people in the car after a vehicle accident. Active fault monitoring system mainly refers to fault warning issued in the form of alarm in the early stage of fault.
[0003] In recent years, the explosive growth of data and the emergence of high-performance computers have made it possible to discover vehicle faults in the early stages, allowing the industry to use artificial intelligence algorithms to process image, sound and other types of data to replace manual troubleshooting. In many cases, the assembly relationship of the mechanical structure of a vehicle will change in the early stages of a fault, resulting in abnormal vibration or noise problems. Based on the correspondence between vibration and sound characteristics and vehicle faults, a vibration and audio recognition neural network is designed to learn the characteristics of fault vibration and sound encoding and classification, and to determine the causes of abnormal vibration and noise in the vehicle, which can greatly help industry personnel locate problems early. The implementation of this method will greatly improve the efficiency of fault diagnosis. Therefore, it is necessary to provide a vehicle fault diagnosis and early warning solution based on vibration and noise to improve the efficiency of fault diagnosis. Summary of the invention
[0004] The purpose of the present invention is to provide a vehicle fault diagnosis and early warning method and system based on vibration and noise, so as to improve the efficiency of fault diagnosis.
[0005] To achieve the purpose of the present invention, the technical solution provided by the present invention is as follows: First aspect The present invention provides a vehicle fault diagnosis and early warning method based on vibration and noise, comprising the following steps: Step S1: collecting vibration signals and noise signals corresponding to different vehicle fault types; Step S2: performing short-time Fourier feature extraction, continuous wavelet transform feature extraction, and Mel-frequency cepstrum feature extraction on the vibration signal and the noise signal, and obtaining corresponding time-frequency feature data respectively, and converting all the time-frequency feature data into feature image data; Step S3: constructing an image-based deep learning model, and using the feature image data for training to obtain a trained vehicle fault diagnosis model; wherein the image-based deep learning model is a dual attention mechanism neural network model based on a multi-head self-attention mechanism and a multi-scale attention mechanism; Step S4: Use the trained vehicle fault diagnosis model to perform vehicle fault diagnosis and early warning.
[0006] Second aspect The present invention provides a vehicle fault diagnosis and early warning system based on vibration and noise, comprising the following units: a signal acquisition unit, an image data acquisition unit, a model building unit, and a diagnosis and early warning unit; The signal acquisition unit is used to collect vibration signals and noise signals corresponding to different vehicle fault types; The image data acquisition unit is used to perform short-time Fourier feature extraction, continuous wavelet transform feature extraction, and Mel cepstrum feature extraction on the vibration signal and the noise signal, and obtain corresponding time-frequency feature data respectively, and convert all time-frequency feature data into feature image data; The model building unit is used to build an image-based deep learning model and use the feature image data for training to obtain a trained vehicle fault diagnosis model; wherein the image-based deep learning model is a dual attention mechanism neural network model based on a multi-head self-attention mechanism and a multi-scale attention mechanism; The diagnosis and early warning unit is used to perform vehicle fault diagnosis and early warning using the trained vehicle fault diagnosis model.
[0007] Compared with the prior art, the technical advantages of the present invention are as follows: 1. In the solution of the present invention, the time-frequency feature image provides information about the fault signal in time and frequency, making the analysis of the fault signal more comprehensive. Through time-frequency analysis, the transient characteristics and frequency components in the signal can be identified, helping the model to better understand the fault mode. At the same time, the time-frequency feature image can effectively capture the characteristics of non-order vibration and noise, thereby providing more accurate information for fault diagnosis; 2. In the solution of the present invention, the dual attention mechanism neural network model based on the multi-head self-attention mechanism and the multi-scale attention mechanism can simultaneously consider the local and global features of the data at different levels, so as to better capture the fault information contained in the signal and learn more complex and abstract feature representations, which helps to improve the performance of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 A schematic diagram of a method flow chart provided by an embodiment of the present invention; Figure 2This is a structural schematic diagram of a dual attention mechanism neural network model based on a multi-head self-attention mechanism and a multi-scale attention mechanism in an embodiment of the present invention. DETAILED DESCRIPTION
[0009] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0010] like Figure 1 As shown, this embodiment provides a vehicle fault diagnosis and early warning method based on vibration and noise, comprising the following steps: Step S1: collecting vibration signals and noise signals corresponding to different vehicle fault types; It should be noted that in step S1, the vibration signal collected is a vibration signal close to the faulty structure of the vehicle, and the noise signal collected includes noise signals close to the faulty structure of the vehicle, the driver's ear, the front passenger's ear, and the rear passenger's ear.
[0011] It should be noted that in step S1, vibration signals and noise signals corresponding to different vehicle fault types in the vehicle idling state, uniform speed state, and rapid acceleration state are collected.
[0012] Step S2: performing short-time Fourier feature extraction, continuous wavelet transform feature extraction, and Mel-frequency cepstrum feature extraction on the vibration signal and the noise signal, and obtaining corresponding time-frequency feature data respectively, and converting all the time-frequency feature data into feature image data; Step S3: constructing an image-based deep learning model, and using the feature image data for training to obtain a trained vehicle fault diagnosis model; wherein the image-based deep learning model is a dual attention mechanism neural network model based on a multi-head self-attention mechanism and a multi-scale attention mechanism; like Figure 2 As shown, the dual attention mechanism neural network model based on the multi-head self-attention mechanism and the multi-scale attention mechanism includes a first fully connected layer and an average division and recombination layer, a splicing and recombination layer, a second fully connected layer, a multi-scale attention module, a third fully connected layer, softmax layer; In order to expand the receptive field and guide the algorithm to explore more features at different scales, the first fully connected layer is used to transform the input signal in the length dimension. The expansion is 12 times, and the average division and recombination layer is used to divide it into h The query matrix of the attention heads , key matrix , and value matrix , , , The dimensions are the same, where Indicates Attention heads, 1≤ ≤ h, Perform multi-head self-attention mechanism calculation to obtain the attention output of each attention head , the formula is as follows: ; in, represents the dimension of the key matrix, T Represents a matrix transpose operation; The splicing and reorganization layer is used to h The outputs of the attention heads are concatenated together to obtain the concatenated attention encoding , the formula is as follows: ; The second fully connected layer is used to Back-project back to the original space to get the attention encoding output , the formula is as follows: ; It should be noted that the multi-head self-attention mechanism allows the model to focus on different positions during the encoding process, while giving the attention layer output containing the encoded representation information in different self-spaces, thereby enhancing the model's expressiveness. In addition, in order to improve the performance of the model and accelerate the convergence of the model, according to and , through residual connection and layer normalization operation, the attention encoding reorganization output is obtained , the formula is as follows: ; In order to further improve the learning ability and extract deeper fault features, this embodiment designs a multi-scale attention module. The multi-scale attention module includes a first convolution layer, a first multi-scale convolution layer, a fourth fully connected layer, a second multi-scale convolution layer, a fifth fully connected layer, and a second convolution layer; The first convolutional layer is used to Perform convolution operation to get the output of the first convolution layer , the formula is as follows: ; Said The multi-scale convolution output is obtained by sequentially passing through the first multi-scale convolution layer, the fourth fully connected layer, and the second multi-scale convolution layer. , the formula is as follows: ; The fifth fully connected layer and the second convolutional layer are used to Back-projecting back to the original space, we get the output of the multi-scale attention mechanism , the formula is as follows: ; according to , through residual connection and layer normalization operations, the fault feature output is obtained O b : ; The third fully connected layer, softmax Layer, used to output fault characteristics O b Processing to obtain the final classification result , the formula is as follows: .
[0013] Step S4: Use the trained vehicle fault diagnosis model to perform vehicle fault diagnosis and early warning.
[0014] In addition, corresponding to the above method, this embodiment also provides a vehicle fault diagnosis and warning system based on vibration and noise, including the following units: a signal acquisition unit, an image data acquisition unit, a model building unit, and a diagnosis and warning unit; The signal acquisition unit is used to collect vibration signals and noise signals corresponding to different vehicle fault types; The image data acquisition unit is used to perform short-time Fourier feature extraction, continuous wavelet transform feature extraction, and Mel cepstrum feature extraction on the vibration signal and the noise signal, and obtain corresponding time-frequency feature data respectively, and convert all time-frequency feature data into feature image data; The model building unit is used to build an image-based deep learning model and use the feature image data for training to obtain a trained vehicle fault diagnosis model; wherein the image-based deep learning model is a dual attention mechanism neural network model based on a multi-head self-attention mechanism and a multi-scale attention mechanism; The diagnosis and early warning unit is used to perform vehicle fault diagnosis and early warning using the trained vehicle fault diagnosis model.
[0015] The dual attention mechanism neural network model based on multi-head self-attention mechanism and multi-scale attention mechanism includes a first fully connected layer and an average division and recombination layer, a splicing and recombination layer, a second fully connected layer, a multi-scale attention module, a third fully connected layer, softmaxlayer; The first fully connected layer is used to transform the input signal in the length dimension The expansion is 12 times, and the average division and recombination layer is used to divide it into h The query matrix of the attention heads , key matrix , and value matrix , , , The dimensions are the same, where Indicates Attention heads, 1≤ ≤ h, Perform multi-head self-attention mechanism calculation to obtain the attention output of each attention head , the formula is as follows: ; in, represents the dimension of the key matrix, T Represents a matrix transpose operation; The splicing and reorganization layer is used to h The outputs of the attention heads are concatenated together to obtain the concatenated attention encoding , the formula is as follows: ; The second fully connected layer is used to Back-project back to the original space to get the attention encoding output , the formula is as follows: ; according to and , through residual connection and layer normalization operation, the attention encoding reorganization output is obtained , the formula is as follows: ; The multi-scale attention module includes a first convolutional layer, a first multi-scale convolutional layer, a fourth fully connected layer, a second multi-scale convolutional layer, a fifth fully connected layer, and a second convolutional layer; The first convolutional layer is used to Perform convolution operation to get the output of the first convolution layer , the formula is as follows: ; Said The multi-scale convolution output is obtained by sequentially passing through the first multi-scale convolution layer, the fourth fully connected layer, and the second multi-scale convolution layer. , the formula is as follows: ; The fifth fully connected layer and the second convolutional layer are used to Back-projecting back to the original space, we get the output of the multi-scale attention mechanism , the formula is as follows: ; according to , through residual connection and layer normalization operations, the fault feature output is obtained O b : ; The third fully connected layer, softmax Layer, used to output fault characteristics O b Processing to obtain the final classification result , the formula is as follows: .
[0016] Among them, the vibration signal collected by the signal collection unit is a vibration signal close to the faulty structure of the vehicle, and the collected noise signal includes noise signals close to the faulty structure of the vehicle, the driver's ear, the front passenger's ear, and the rear passenger's ear.
[0017] The signal acquisition unit acquires vibration signals and noise signals corresponding to different vehicle fault types when the vehicle is in an idle state, a uniform speed state, and a sudden acceleration state.
[0018] Finally, it should be noted that the above embodiments are only used to illustrate and explain the present invention, and are not intended to limit the present invention to the scope of the described embodiments. In addition, those skilled in the art can understand that the present invention is not limited to the above embodiments, and more variations and modifications can be made according to the teachings of the present invention, and these variations and modifications all fall within the scope of the protection claimed by the present invention.
Claims
1. A vehicle fault diagnosis and early warning method based on vibration and noise, characterized in that: The steps include: Step S1: collecting vibration signals and noise signals corresponding to different vehicle fault types; Step S2: performing short-time Fourier feature extraction, continuous wavelet transform feature extraction, and Mel-frequency cepstrum feature extraction on the vibration signal and the noise signal, and obtaining corresponding time-frequency feature data respectively, and converting all the time-frequency feature data into feature image data; Step S3: constructing an image-based deep learning model, and using the feature image data for training to obtain a trained vehicle fault diagnosis model; wherein the image-based deep learning model is a dual attention mechanism neural network model based on a multi-head self-attention mechanism and a multi-scale attention mechanism; Step S4: Use the trained vehicle fault diagnosis model to perform vehicle fault diagnosis and early warning.
2. A vehicle fault diagnosis and early warning method based on vibration and noise according to claim 1, characterized in that: The dual attention mechanism neural network model based on multi-head self-attention mechanism and multi-scale attention mechanism includes a first fully connected layer and an average division and recombination layer, a splicing and recombination layer, a second fully connected layer, a multi-scale attention module, a third fully connected layer, softmax layer; The first fully connected layer is used to transform the input signal in the length dimension The expansion is 12 times, and the average division and recombination layer is used to divide it into h The query matrix of the attention heads , key matrix , and value matrix , , , The dimensions are the same, where Indicates Attention heads, 1≤ ≤ h, Perform multi-head self-attention mechanism calculation to obtain the attention output of each attention head , the formula is as follows: ; in, represents the dimension of the key matrix, T Represents a matrix transpose operation; The splicing and reorganization layer is used to h The outputs of the attention heads are concatenated together to obtain the concatenated attention encoding , the formula is as follows: ; The second fully connected layer is used to Back-project back to the original space to get the attention encoding output , the formula is as follows: ; according to and , through residual connection and layer normalization operation, the attention encoding reorganization output is obtained , the formula is as follows: ; The multi-scale attention module includes a first convolutional layer, a first multi-scale convolutional layer, a fourth fully connected layer, a second multi-scale convolutional layer, a fifth fully connected layer, and a second convolutional layer; The first convolutional layer is used to Perform convolution operation to get the output of the first convolution layer , the formula is as follows: ; Said The multi-scale convolution output is obtained by sequentially passing through the first multi-scale convolution layer, the fourth fully connected layer, and the second multi-scale convolution layer. , the formula is as follows: ; The fifth fully connected layer and the second convolutional layer are used to Back-projecting back to the original space, we get the output of the multi-scale attention mechanism , the formula is as follows: ; according to , through residual connection and layer normalization operations, the fault feature output is obtained O b : ; The third fully connected layer, softmax Layer, used to output fault characteristics O b Processing to obtain the final classification result , the formula is as follows: 。 3. A vehicle fault diagnosis and early warning method based on vibration and noise according to claim 2, characterized in that: In step S1, the vibration signal collected is a vibration signal close to the faulty structure of the vehicle, and the noise signal collected includes noise signals close to the faulty structure of the vehicle, the driver's ear, the front passenger's ear, and the rear passenger's ear.
4. The vehicle fault diagnosis and early warning method based on vibration and noise according to claim 3 is characterized in that: In step S1, vibration signals and noise signals corresponding to different vehicle fault types in the vehicle idling state, uniform speed state, and rapid acceleration state are collected.
5. A vehicle fault diagnosis and warning system based on vibration and noise, characterized in that: It includes the following units: signal acquisition unit, image data acquisition unit, model building unit and diagnosis and early warning unit; The signal acquisition unit is used to collect vibration signals and noise signals corresponding to different vehicle fault types; The image data acquisition unit is used to perform short-time Fourier feature extraction, continuous wavelet transform feature extraction, and Mel cepstrum feature extraction on the vibration signal and the noise signal, and obtain corresponding time-frequency feature data respectively, and convert all time-frequency feature data into feature image data; The model building unit is used to build an image-based deep learning model and use the feature image data for training to obtain a trained vehicle fault diagnosis model; wherein the image-based deep learning model is a dual attention mechanism neural network model based on a multi-head self-attention mechanism and a multi-scale attention mechanism; The diagnosis and early warning unit is used to perform vehicle fault diagnosis and early warning using the trained vehicle fault diagnosis model.
6. A vehicle fault diagnosis and warning system based on vibration and noise according to claim 5, characterized in that: The dual attention mechanism neural network model based on multi-head self-attention mechanism and multi-scale attention mechanism includes a first fully connected layer and an average division and recombination layer, a splicing and recombination layer, a second fully connected layer, a multi-scale attention module, a third fully connected layer, softmax layer; The first fully connected layer is used to transform the input signal in the length dimension The expansion is 12 times, and the average division and recombination layer is used to divide it into h The query matrix of the attention heads , key matrix , and value matrix , , , The dimensions are the same, where Indicates Attention heads, 1≤ ≤ h, Perform multi-head self-attention mechanism calculation to obtain the attention output of each attention head , the formula is as follows: ; in, represents the dimension of the key matrix, T Represents a matrix transpose operation; The splicing and reorganization layer is used to h The outputs of the attention heads are concatenated together to obtain the concatenated attention encoding , the formula is as follows: ; The second fully connected layer is used to Back-project back to the original space to get the attention encoding output , the formula is as follows: ; according to and , through residual connection and layer normalization operation, the attention encoding reorganization output is obtained , the formula is as follows: ; The multi-scale attention module includes a first convolutional layer, a first multi-scale convolutional layer, a fourth fully connected layer, a second multi-scale convolutional layer, a fifth fully connected layer, and a second convolutional layer; The first convolutional layer is used to Perform convolution operation to get the output of the first convolution layer , the formula is as follows: ; Said The multi-scale convolution output is obtained by sequentially passing through the first multi-scale convolution layer, the fourth fully connected layer, and the second multi-scale convolution layer. , the formula is as follows: ; The fifth fully connected layer and the second convolutional layer are used to Back-projecting back to the original space, we get the output of the multi-scale attention mechanism , the formula is as follows: ; according to , through residual connection and layer normalization operations, the fault feature output is obtained O b : ; The third fully connected layer, softmax Layer, used to output fault characteristics O b Processing to obtain the final classification result , the formula is as follows: 。 7. A vehicle fault diagnosis and warning system based on vibration and noise according to claim 6, characterized in that: The vibration signal collected by the signal collection unit is a vibration signal close to the faulty structure of the vehicle, and the noise signal collected includes noise signals close to the faulty structure of the vehicle, the driver's ear, the front passenger's ear, and the rear passenger's ear.
8. The vehicle fault diagnosis and warning system based on vibration and noise according to claim 7, characterized in that: The signal acquisition unit acquires vibration signals and noise signals corresponding to different vehicle fault types when the vehicle is in an idle state, a uniform speed state, and a sudden acceleration state.
Citation Information
Patent Citations
Vibration and audio signal-based high-speed train track defect detecting method
CN101900708A
Epileptic seizure prediction method through electroencephalogram signal on the basis of multi-scale convolution and self-attention network
CN113907706A
Target tracking method and system based on multi-scale hierarchical feature representation
CN115063445A
Image segmentation method based on double attention fusion
CN116012581A
Bearing fault diagnosis classification method based on multi-scale features and attention
CN116361723A
Cited By
Cross-working-condition fault diagnosis method based on knowledge embedding and multi-scale attention
CN121051587A
A cross-condition fault diagnosis method based on knowledge embedding and multi-scale attention
CN121051587B
