Industrial equipment abnormal sound detection method
By co-optimizing a parameter-learnable audio front-end and a feature extraction network, and utilizing a self-supervised pre-trained model to learn the general acoustic features of multiple types of devices, the problem of insufficient accuracy and weak generalization ability of abnormal sound detection in industrial equipment under conditions of few samples is solved, and high-precision abnormal sound detection and cross-device adaptability are achieved.
Patent Information
- Application Number
- CN202611684692.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for detecting abnormal sounds in industrial equipment lack accuracy under conditions of a small number of normal operating sound samples and are difficult to adapt to the differences in acoustic characteristics of different types of equipment, resulting in weak generalization ability.
A collaborative optimization method of parameter-learnable audio front-end and feature extraction network is adopted. The general acoustic features of various types of industrial equipment are learned through a self-supervised pre-trained model, and the normal operating sound of the equipment under inspection is adapted in the fine-tuning model to establish anomaly judgment threshold.
It improves the accuracy and generalization ability of abnormal sound detection, reduces the cost of training data acquisition, adapts to the acoustic characteristics of different types of industrial equipment, and enhances the stability and detection performance of the model.
Smart Images

Figure CN123175609A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of equipment fault detection technology, and in particular to a method for detecting abnormal sounds in industrial equipment. Background Technology
[0002] In industrial production, early equipment failures often manifest as subtle changes in sound. For example, issues such as bearing wear, loose blades, valve leaks, and jammed transmission mechanisms can all alter the frequency band energy, periodic impacts, transient texture, or loudness stability of the equipment's operating sound. If these abnormal sounds can be identified before the equipment completely fails, maintenance can be scheduled in advance, reducing downtime losses and safety risks.
[0003] Existing methods for detecting abnormal sounds in industrial equipment typically utilize normal operating sounds to establish an acoustic feature distribution representing the equipment's normal state, and then determine whether an anomaly exists based on the difference between the detected sound and the normal sound distribution. Depending on the feature learning method, existing methods can be mainly divided into reconstruction-based methods and discriminative methods. Reconstruction-based methods usually use autoencoders, generative models, etc., to model the normal operating sounds and determine anomalies based on the reconstruction error or probability distribution difference of the detected sound. Discriminative methods, on the other hand, typically use equipment type, equipment number, operating conditions, or other auxiliary information to construct training tasks, enabling the model to learn discriminative sound features while distinguishing different normal operating states. Comparatively, discriminative methods have advantages such as flexible model structure, strong feature discrimination ability, and high inference efficiency, and are therefore increasingly being applied to the detection of abnormal sounds in various types of industrial equipment.
[0004] However, in practical industrial applications, the normal operating sound data used for training and adapting the model of the equipment under inspection is often quite limited. Equipment of different models, operating environments, and under different operating conditions may have significantly different acoustic distributions. When only a small number of normal operating sound samples of the equipment under inspection are available, existing methods struggle to fully learn the sound distribution characteristics of the equipment under normal conditions, easily leading to insufficient model feature representation and thus affecting the accuracy of abnormal sound detection. Therefore, how to fully utilize existing acoustic knowledge to improve the abnormal sound detection performance of the equipment under inspection under limited normal operating sound samples is one of the problems that needs to be solved in industrial abnormal sound detection.
[0005] On the other hand, the sound generation mechanisms and spectral distributions of different types of industrial equipment vary significantly. For example, the operating sound of rotating machinery typically exhibits a clear periodicity and harmonic structure, while the operating sounds of equipment such as fans, pumps, valves, and transmission mechanisms may be concentrated in different frequency ranges. Existing abnormal sound detection methods usually employ fixed-parameter Log-Mel spectrum analysis, filter banks, or wavelet transforms for sound front-end processing. Their frequency division and response characteristics are typically pre-defined, making it difficult to adaptively adjust to the sound distribution characteristics of different equipment. Furthermore, in scenarios involving the centralized monitoring of multiple types of industrial equipment, training an independent abnormality detection model from scratch for each type of equipment not only requires collecting a large amount of normal operating sound data but also increases the costs of model training, maintenance, and deployment. Although there are differences in acoustic distribution among different devices, industrial equipment sounds still possess shareable acoustic characteristics such as periodic variations, mechanical impacts, and frequency band energy changes. Therefore, it is of great significance to improve the data utilization efficiency and cross-device generalization ability of the model by utilizing the large-scale normal operation sounds of various types of industrial equipment to pre-learn universal equipment sound features and transfer the learned acoustic knowledge to the equipment under test with only a small number of normal operation sound samples. Summary of the Invention
[0006] To address the shortcomings of existing detection methods, such as insufficient accuracy under limited sample conditions and weak generalization ability across different types of equipment, this invention provides a method for detecting abnormal sounds in industrial equipment. This method can fully exploit the effective acoustic features in the equipment sound under limited sample conditions, achieving high-precision abnormal sound detection. Furthermore, through the collaborative optimization of a parameter-learnable audio front-end and a feature extraction network, the adaptability of the fine-tuned model to the sound features of different types of industrial equipment is improved, giving it strong generalization performance.
[0007] The technical solution adopted by this invention to solve the above-mentioned technical problems is: a method for detecting abnormal sounds in industrial equipment, comprising the following specific steps: S1. Collect sound signals from various types of pre-training devices and designated devices of the same type as the device under test under different normal working conditions. The type of designated device is different from the type of pre-training device. Obtain the corresponding one-dimensional audio time-series signal, record the real working condition label corresponding to each pre-training device and designated device, and form a pre-training dataset and a designated device fine-tuning dataset. S2. The audio front-end with fixed parameters converts the one-dimensional audio time-series signal in the pre-training dataset into the corresponding two-dimensional spectrogram. The two-dimensional spectrogram is then input into the self-supervised pre-training model for training, resulting in a feature extraction network with the ability to extract sound features from general devices. S3. Establish a fine-tuning model that includes a learnable audio front-end and a feature extraction network. Input the one-dimensional audio time-series signal from the fine-tuning dataset of the specified device into the fine-tuning model for fine-tuning training. After training, establish the abnormal judgment threshold for each normal working condition of the specified device. S4. Collect the sound of the device under test during operation and obtain the corresponding one-dimensional audio timing signal. Then, input it into the fine-tuned model that has been fine-tuned to obtain the minimum feature distance between the audio embedding of the sound under test and the reference features of the candidate normal working condition. Compare the minimum feature distance with the abnormal judgment threshold of the candidate normal working condition to determine whether the sound under test is normal.
[0008] Furthermore, in step S1, the acquired sound signal is a single-channel audio signal, and each single-channel audio signal is cropped or padded to obtain a corresponding one-dimensional audio timing signal of uniform length.
[0009] Furthermore, in step S1, the pre-training dataset consists of one-dimensional audio timing signals of various types of pre-training devices under different normal operating conditions and corresponding real operating condition labels, and the specified device fine-tuning dataset consists of one-dimensional audio timing signals of specified devices under different normal operating conditions and corresponding real operating condition labels.
[0010] Furthermore, in step S2, the process of acquiring the feature extraction network with general device sound feature extraction capabilities is as follows: S2.1 Divide the two-dimensional spectrogram into multiple two-dimensional local regions according to the preset time and frequency dimensions. Each two-dimensional local region is defined as an audio block. Then, through the audio block embedding operation, each audio block is mapped to the feature space of the preset dimension to obtain the audio block feature sequence. The corresponding position code is added to each audio block feature to retain the time position information and frequency position information of each audio block in the two-dimensional spectrogram. S2.2. Mask some audio block features in the audio block feature sequence to obtain visible audio block features and masked audio block features; S2.3 The self-supervised pre-training model includes a student network and a teacher network. Visible audio block features are input into the student encoder of the student network. The student encoder extracts the time-frequency correlation features between visible audio block features to output student audio-level features. Then, learnable mask labels are added to the positions corresponding to the masked audio block features. The student decoder of the student network predicts the features corresponding to each masked audio block feature to obtain the student predicted features. S2.4 Simultaneously, the unmasked audio block feature sequence is input into the teacher encoder of the teacher network to obtain the teacher features corresponding to each audio block feature, and the teacher audio-level target features corresponding to the audio block feature sequence are generated based on the features output by multiple network layers in the teacher encoder. S2.5 Compare the student-predicted features generated by the student network for the occluded audio block features with the teacher features generated by the teacher network at the corresponding audio block position. The mean square error between the two is the audio block-level loss, enabling the student network to recover the sound features of the occluded area based on the context information contained in the visible audio block. The audio-level loss is obtained by calculating the mean square error between the student's audio-level features and the teacher's audio-level target features. The sum of the audio block-level loss and the audio-level loss is the total loss of self-supervised pre-training. S2.6. Backpropagation is performed based on the total loss of self-supervised pre-training to update the network parameters of the student network. The network parameters of the teacher network are then updated using an exponential moving average method based on the updated student network parameters. After multiple iterations of backpropagation, the updated student network with the ability to extract general device sound features is finally obtained, which is the feature extraction network.
[0011] Furthermore, in step S2.2, the masking process includes at least one of random block mask, frequency mask, and time mask.
[0012] Furthermore, the specific process of step S3 is as follows: S3.1 Establish a fine-tuning model, which includes a feature extraction network, a classification head, and a parameter-learnable audio front-end; S3.2. Generate a corresponding two-dimensional adaptive spectrogram from the one-dimensional audio timing signal in the specified device fine-tuning dataset through a parameter-learnable audio front-end. S3.3 Input the two-dimensional adaptive spectrogram into the feature extraction network for encoding to obtain an audio embedding that represents the entire normal sound of the specified device; S3.4. Input the audio embedding into the classification head, obtain the predicted working condition classification based on the audio embedding and the features of different normal working conditions, and then obtain the additive angle residual loss based on the predicted working condition classification and the real working condition label corresponding to the audio embedding. S3.5. Fine-tune the audio front-end and feature extraction network with learnable parameters using a staged training approach: In the audio front-end adaptation stage, a fixed feature extraction network is used to iteratively train the parameter-learnable audio front-end through additive angular residual loss until the preset convergence condition is met. This allows the parameter-learnable audio front-end to prioritize learning the frequency band response, energy distribution, and dynamic range characteristics of the specified device, and gradually generate a two-dimensional adaptive spectrogram suitable for the feature extraction network to process. In the fine-tuning stage of the feature extraction network, the learned audio front-end with the parameters that have been trained is fixed, and the generated two-dimensional adaptive spectrogram is kept relatively stable. The feature extraction network is iteratively trained through additive angular residual loss until the preset convergence condition is met, so that the feature extraction network can further learn the differences in high-level sound features of the specified device under different normal operating conditions. After fine-tuning the training, the parameters of the trained audio front-end and the feature extraction network are saved. S3.6. Input the one-dimensional audio time-series signals from the fine-tuning dataset of the specified device into the fine-tuning model after fine-tuning training to obtain the corresponding audio embeddings. Then, input each audio embedding into the classification head to obtain the corresponding predicted operating condition classification. Group the audio embeddings corresponding to the predicted operating condition classifications that belong to the same normal operating condition into the same group. Establish the reference features of the corresponding normal operating condition based on the feature distribution of each group of audio embeddings. The reference features are used to characterize the typical sound features of the specified device when it is in the corresponding normal operating condition. Calculate the feature distance between the audio embedding of the one-dimensional audio time sequence signal under each normal operating condition and the reference feature of the corresponding normal operating condition. Based on the feature distance, statistically analyze the distance distribution of the audio embedding under each normal operating condition. This distance distribution is the abnormal judgment threshold of the corresponding normal operating condition.
[0013] Furthermore, in step S3.1, the parameter-learnable audio front end includes four operations in sequence: Gabor filtering, energy mapping, Gaussian low-pass pooling, and channel-by-channel energy normalization compression.
[0014] Furthermore, in step S4, the specific process for determining whether the sound to be tested is normal is as follows: S4.1 Input the one-dimensional audio time-series signal corresponding to the sound to be detected into the fine-tuned model that has been fine-tuned and trained, and obtain the audio embedding of the sound to be detected by passing it sequentially through the parameter learnable audio front-end and feature extraction network. S4.2 Calculate the feature distance between the audio embedding of the sound to be tested and the reference features of each normal operating condition of the specified device, determine the normal operating condition with the smallest feature distance as the candidate normal operating condition that is closest to the sound to be tested, and obtain the minimum feature distance between the audio embedding of the sound to be tested and the reference features of the candidate normal operating condition. S4.3. Compare the minimum feature distance with the anomaly judgment threshold of the candidate normal operating condition. When the minimum feature distance does not exceed the anomaly judgment threshold, the sound to be tested is judged as the normal sound of the candidate normal operating condition. When the minimum feature distance exceeds the anomaly judgment threshold, the sound to be tested is judged as an abnormal sound, and the corresponding anomaly detection result is output through the field monitoring system for monitoring the operating status of the equipment under test and fault early warning.
[0015] Compared with the prior art, the advantages of the present invention are: (1) The present invention adopts a parameter learnable audio front end, which enables the fine-tuning model to adaptively adjust according to the spectrum distribution and acoustic characteristics of the normal operation sound of different industrial equipment, thereby extracting more effective acoustic information related to the operating status of the equipment. Even when the equipment under test has only a small number of normal operation sound samples, it can still obtain acoustic features with strong discrimination ability, thereby improving the accuracy of abnormal sound detection. (2) The present invention adopts a self-supervised pre-training model based on the teacher-student comparative learning framework, and uses a large number of normal operation sounds of various types of industrial equipment for pre-training, so that the feature extraction network can learn in advance the general acoustic features and distribution patterns of the sounds of different types of equipment. When detecting abnormal sounds of the equipment under inspection, only a small number of normal operation sound samples of the equipment are needed to complete the fine-tuning of the model adaptation, without the need to collect abnormal sound samples, reducing the cost of acquiring training data for the equipment under inspection, and improving the abnormal sound detection performance under the condition of few samples. (3) This invention reduces the impact of sound distribution differences between different equipment types on detection performance through the synergistic effect of a parameter learnable audio front-end and a feature extraction network, so that the constructed abnormal sound detection model has strong generalization ability and stability for different types of industrial equipment. Attached Figure Description
[0016] Figure 1 This is the overall flowchart of the present invention; Figure 2 This is a flowchart illustrating the acquisition process of the feature extraction network of the present invention. Figure 3 This is a flowchart illustrating the process of obtaining the anomaly detection threshold in this invention. Detailed Implementation
[0017] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
[0018] like Figure 1-3 As shown, a method for detecting abnormal sounds in industrial equipment includes the following specific steps: S1. Acquire sound signals from various types of pre-training devices and designated devices of the same type as the device under test under different normal operating conditions using sound sensors. The type of designated device is different from that of the pre-training device. The acquired sound signals are single-channel audio signals. Each single-channel audio signal is cropped or padded to obtain a corresponding one-dimensional audio time-series signal of uniform length. At the same time, record the real operating condition label corresponding to each type of pre-training device and designated device. Different real operating condition labels are used to represent the sound category of the device under different normal operating conditions. The one-dimensional audio time-series signals of various types of pre-training devices under different normal operating conditions and the corresponding real operating condition labels constitute the pre-training dataset. The one-dimensional audio time-series signals of designated devices under different normal operating conditions and the corresponding real operating condition labels constitute the designated device fine-tuning dataset. S2. The parameter-fixed audio front-end performs frame segmentation and frequency domain feature extraction on the one-dimensional audio time-series signal in the pre-training dataset, converting the one-dimensional audio time-series signal into a corresponding two-dimensional spectrogram that reflects the time and frequency structure of the sound. The parameter-fixed audio front-end is an audio front-end that does not participate in parameter updates after initialization. Then, the two-dimensional spectrogram is input into the self-supervised pre-training model for training, resulting in a feature extraction network with general device sound feature extraction capabilities. The specific acquisition process is as follows: S2.1 Divide the two-dimensional spectrogram into multiple two-dimensional local regions according to the preset time and frequency dimensions. Each two-dimensional local region is defined as an audio block. Then, through the audio block embedding operation, each audio block is mapped to the feature space of the preset dimension to obtain the audio block feature sequence. The corresponding position code is added to each audio block feature to retain the time position information and frequency position information of each audio block in the two-dimensional spectrogram. S2.2. Masking is performed on some audio block features in the audio block feature sequence. The masking process includes at least one of random block masking, frequency masking and time masking to obtain visible audio block features and masked audio block features. Among them: the random block mask is used to mask local audio block feature regions in the audio block feature sequence; the frequency mask is used to mask continuous frequency regions to simulate partial loss of frequency band information; and the time mask is used to mask continuous time regions to simulate partial loss of sound timing information. S2.3 The self-supervised pre-training model includes a student network and a teacher network. Visible audio block features are input into the student encoder of the student network. The student encoder extracts the time-frequency correlation features between visible audio block features to output student audio-level features. Then, learnable mask labels are added to the positions corresponding to the masked audio block features. The student decoder of the student network predicts the features corresponding to each masked audio block feature to obtain the student predicted features. S2.4 Simultaneously, the unmasked audio block feature sequence is input into the teacher encoder of the teacher network to obtain the teacher features corresponding to each audio block feature. Based on the features output by multiple network layers in the teacher encoder, teacher audio-level target features corresponding to the audio block feature sequence are generated. The teacher audio-level target features are used as the learning target for feature prediction by the student network. S2.5 Compare the student-predicted features generated by the student network for the occluded audio block features with the teacher features generated by the teacher network at the corresponding audio block position. The mean square error between the two is the audio block-level loss, enabling the student network to recover the sound features of the occluded area based on the context information contained in the visible audio block. The audio-level loss is obtained by calculating the mean square error between the student's audio-level features and the teacher's audio-level target features. The sum of the audio block-level loss and the audio-level loss is the total loss of self-supervised pre-training. S2.6. Backpropagation is performed based on the total loss of self-supervised pre-training to update the network parameters of the student network. The network parameters of the teacher network are then updated using an exponential moving average method based on the updated student network parameters. After multiple iterations of backpropagation, the updated student network with the ability to extract general device sound features is finally obtained, which is the feature extraction network. S3.1 Establish a fine-tuning model, including a feature extraction network, a classification head, and a parameter-learnable audio front-end. The parameter-learnable audio front-end includes four sequentially ordered operations: Gabor filtering, energy mapping, Gaussian low-pass pooling, and channel-by-channel energy normalization compression. This allows all parameters of the parameter-learnable audio front-end to be updated based on the one-dimensional audio time-series signal corresponding to the normal sound of the specified device and its actual operating condition label, so that the generated two-dimensional spectrogram gradually adapts to the unique sound frequency distribution and energy change characteristics of the specified device. S3.2, Generate a corresponding two-dimensional adaptive spectrogram from the one-dimensional audio time-series signal in the specified device fine-tuning dataset using a parameter-learnable audio front-end, specifically as follows: Gabor filtering is used to decompose the one-dimensional audio time-series signal in a fine-tuning dataset of a specified device into different frequency bands and extract the corresponding sound response of each frequency band. The center frequency and bandwidth of Gabor filtering can be adjusted according to the sound characteristics of the specified device during the fine-tuning process, so that the parameter-learnable audio front end can enhance its ability to represent the key frequency components of the specified device. Then, energy mapping is performed on the sound response of each frequency band obtained by Gabor filtering to obtain the energy information corresponding to different frequency bands. Gaussian low-pass pooling is then used to smooth and downsample the frequency band energy to obtain the frame-level frequency band energy that changes over time. Finally, the frame-level frequency band energy is compressed by channel-by-channel energy normalization to obtain a two-dimensional adaptive spectrogram corresponding to the input one-dimensional audio time-series signal. Channel-by-channel energy normalization compression adaptively normalizes and compresses the energy of different frequency channels according to the sound characteristics of the specified device. Its relevant parameters can be adjusted during the fine-tuning process to reduce the impact of differences in sound energy distribution between different devices on the feature extraction process. S3.3 Input the two-dimensional adaptive spectrogram into the feature extraction network for encoding to obtain an audio embedding that represents the entire normal sound of the specified device; S3.4. Input the audio embedding into the classification head, obtain the predicted working condition classification based on the audio embedding and the features of different normal working conditions, and then obtain the additive angle residual loss based on the predicted working condition classification and the real working condition label corresponding to the audio embedding. Additive angular residual loss is used to introduce feature interval constraints between different normal operating conditions, so that the fine-tuning model can correctly distinguish between different normal operating conditions, while reducing the feature differences between audio embeddings belonging to the same normal operating condition and increasing the feature differences between audio embeddings belonging to different normal operating conditions. S3.5. A phased training approach is adopted to fine-tune the parameter-learnable audio front-end and feature extraction network to avoid large changes in both the parameter-learnable audio front-end and the feature extraction network at the same time, which would destroy the general sound feature representation obtained in the pre-training stage. The fine-tuning training includes an audio front-end adaptation stage and a feature extraction network fine-tuning stage: In the audio front-end adaptation stage: the fixed feature extraction network iteratively trains the parameter-learnable audio front-end through additive angular residual loss until the preset convergence condition is met, so that the parameter-learnable audio front-end prioritizes learning the frequency band response, energy distribution and dynamic range characteristics of the specified device, and gradually generates a two-dimensional adaptive spectrogram suitable for the feature extraction network to process. In the fine-tuning stage of the feature extraction network, the learned audio front-end with the parameters that have been trained is fixed, and the generated two-dimensional adaptive spectrogram is kept relatively stable. The feature extraction network is iteratively trained through additive angular residual loss until the preset convergence condition is met, so that the feature extraction network can further learn the differences in high-level sound features of the specified device under different normal operating conditions. After fine-tuning the training, the parameters of the trained audio front-end and the feature extraction network are saved. S3.6. Input the one-dimensional audio time-series signals from the fine-tuning dataset of the specified device into the fine-tuning model after fine-tuning training to obtain the corresponding audio embeddings. Then, input each audio embedding into the classification head to obtain the corresponding predicted operating condition classification. Group the audio embeddings corresponding to the predicted operating condition classifications that belong to the same normal operating condition into the same group. Establish the reference features of the corresponding normal operating condition based on the feature distribution of each group of audio embeddings. The reference features are used to characterize the typical sound features of the specified device when it is in the corresponding normal operating condition. The feature distance between the audio embedding of the one-dimensional audio timing signal under each normal operating condition and the reference feature of the corresponding normal operating condition is calculated respectively. The distance distribution of the audio embedding under each normal operating condition is statistically analyzed based on the feature distance. This distance distribution is the abnormal judgment threshold of the corresponding normal operating condition. The abnormal judgment threshold is used to limit the normal variation range of sound features when the specified device is under the corresponding normal operating condition. S4. Collect the sound of the device under test during operation and obtain the corresponding one-dimensional audio time-series signal. Then, input it into the fine-tuning model to obtain the minimum feature distance between the audio embedding of the sound under test and the reference features of the candidate normal operating condition. Compare the minimum feature distance with the anomaly judgment threshold of the candidate normal operating condition to determine whether the sound under test is normal. Specifically: S4.1 Input the one-dimensional audio time-series signal corresponding to the sound to be detected into the fine-tuned model after fine-tuning training in step S3, and obtain the audio embedding of the sound to be detected by sequentially passing through the parameter learnable audio front-end and feature extraction network. S4.2 Calculate the feature distance between the audio embedding of the sound to be tested and the reference features of each normal operating condition of the specified device obtained in step S3. The feature distance is used to characterize the degree of difference between the sound to be tested and the sound features of different normal operating conditions. The smaller the feature distance, the closer the sound features of the sound to be tested are to the corresponding normal operating condition. The normal operating condition with the smallest feature distance is determined as the candidate normal operating condition that is closest to the sound to be tested, and the minimum feature distance between the audio embedding of the sound to be tested and the reference features of the candidate normal operating condition is obtained. S4.3. Compare the minimum feature distance with the anomaly determination threshold of the candidate normal operating condition (i.e., the anomaly determination threshold of the normal operating condition determined in step S3). When the minimum feature distance does not exceed the anomaly determination threshold, the sound to be tested is determined to be a normal sound of the candidate normal operating condition. When the minimum feature distance exceeds the anomaly determination threshold, the sound to be tested is determined to be an abnormal sound, and the corresponding anomaly detection result is output through the field monitoring system for monitoring the operating status and fault warning of the equipment under test.
[0019] To verify the effectiveness of the abnormal sound detection method of the present invention, the method was tested using a publicly available dataset from the Acoustic Scene and Event Detection and Classification Challenge.
[0020] During the verification process, the normal operating sounds of various machines and devices different from the experimental objects described below are first used to perform self-supervised pre-training according to step S2 to obtain a feature extraction network with the ability to extract general device sound features, so that the feature extraction network learns the general acoustic features in the normal sounds of different devices; then, the normal sound samples of the experimental objects are used to perform fine-tuning training according to step S3. After the training is completed, the test sounds of the experimental objects are anomaly detected according to step S4.
[0021] The abnormal sound detection method of this invention is compared with five existing detection methods on the public dataset of the Acoustic Scene and Event Detection and Classification Challenge: convolutional neural network feature matching method (Method 1), large-scale self-supervised pre-training feature extraction method (Method 2), attribute learning anomaly detection method (Method 3), pre-trained acoustic representation anomaly detection method (Method 4), and block pre-trained feature and nearest neighbor detection method (Method 5). The experimental objects include ten types of equipment: bearings, fans, gearboxes, slide rails, toy cars, valves, band saws, grinders, vibrating screens, and vacuum pumps. For each method, normal and abnormal audio samples from the ten devices mentioned above were input. Each method output the abnormality score of the corresponding sample. Then, a receiver operating characteristic (ROC) curve was plotted based on the discrimination results of normal and abnormal samples. The area under the curve (AUC) and partial area under the curve (pAUC) were further calculated. The harmonic mean of the AUC and partial area under the curve was used as a comprehensive performance evaluation index. The higher the harmonic mean, the better the comprehensive abnormal sound detection performance of the corresponding method under different device types, different operating conditions, and different test conditions. The comparison results are shown in the table below: method bearings fan gearbox slide rail toy car valve band saw grinder vibrating screen vacuum pump harmonic mean Method 1 64.41 76.27 74.78 91.83 51.66 85.44 60.97 65.18 63.50 92.27 72.63 Method 2 57.10 62.76 67.52 79.11 63.47 67.79 - - - - 66.29 Method 3 - - - - - - 63.03 66.03 63.00 97.44 72.38 Method 4 71.01 62.85 57.70 62.65 85.46 60.36 68.15 63.52 85.16 89.93 70.68 Method 5 70.43 66.65 58.67 81.88 58.78 53.73 69.71 64.06 80.25 92.24 69.64 This method 70.80 74.77 69.43 88.34 58.01 71.09 66.34 65.64 70.09 93.10 72.76 As shown in the table above, the harmonic mean values of the method of the present invention for bearings, fans, gearboxes, slide rails, toy cars, valves, band saws, grinders, vibrating screens, and vacuum pumps are 70.80%, 74.77%, 69.43%, 88.34%, 58.01%, 71.09%, 66.34%, 65.64%, 70.09%, and 93.10%, respectively. Combining the harmonic mean values of each device, the method of the present invention achieves an average harmonic mean value of 72.76%, while the average harmonic mean values of the five existing detection methods are 72.63%, 66.29%, 72.38%, 70.68%, and 69.64%, respectively. This indicates that the method of the present invention can be applied to various types of devices with different sound characteristics and operating states, and that the method of the present invention has the highest average harmonic mean value.
[0022] The scope of protection of this invention includes, but is not limited to, the above embodiments. The scope of protection is defined by the claims. Any substitutions, modifications, or improvements to this technology that are easily conceived by those skilled in the art fall within the scope of protection of this invention.
Claims
1. A method for detecting abnormal sounds in industrial equipment, characterized in that... The specific steps include the following: S1. Collect sound signals from various types of pre-training devices and designated devices of the same type as the device under test under different normal working conditions. The type of designated device is different from the type of pre-training device. Obtain the corresponding one-dimensional audio time-series signal, record the real working condition label corresponding to each pre-training device and designated device, and form a pre-training dataset and a designated device fine-tuning dataset. S2. The audio front-end with fixed parameters converts the one-dimensional audio time-series signal in the pre-training dataset into the corresponding two-dimensional spectrogram. The two-dimensional spectrogram is then input into the self-supervised pre-training model for training, resulting in a feature extraction network with the ability to extract sound features from general devices. S3. Establish a fine-tuning model that includes a learnable audio front-end and a feature extraction network. Input the one-dimensional audio time-series signal from the fine-tuning dataset of the specified device into the fine-tuning model for fine-tuning training. After training, establish the abnormal judgment threshold for each normal working condition of the specified device. S4. Collect the sound of the device under test during operation and obtain the corresponding one-dimensional audio time sequence signal. Then input it into the fine-tuned model after fine-tuning training to obtain the minimum feature distance between the audio embedding of the sound under test and the reference features of the candidate normal working condition. Compare the minimum feature distance with the abnormal judgment threshold of the candidate normal working condition to determine whether the sound under test is normal.
2. The method for detecting abnormal sounds in industrial equipment as described in claim 1, characterized in that: In step S1, the acquired sound signal is a single-channel audio signal. Each single-channel audio signal is cropped or padded to obtain a corresponding one-dimensional audio timing signal of uniform length.
3. The method for detecting abnormal sounds in industrial equipment as described in claim 1, characterized in that: In step S1, the pre-training dataset consists of one-dimensional audio time-series signals of various types of pre-training devices under different normal operating conditions and corresponding real operating condition labels, while the specified device fine-tuning dataset consists of one-dimensional audio time-series signals of specified devices under different normal operating conditions and corresponding real operating condition labels.
4. The method for detecting abnormal sounds in industrial equipment as described in claim 1, characterized in that: In step S2, the process of acquiring the feature extraction network with general device sound feature extraction capabilities is as follows: S2.1 Divide the two-dimensional spectrogram into multiple two-dimensional local regions according to the preset time and frequency dimensions. Each two-dimensional local region is defined as an audio block. Then, through the audio block embedding operation, each audio block is mapped to the feature space of the preset dimension to obtain the audio block feature sequence. The corresponding position code is added to each audio block feature to retain the time position information and frequency position information of each audio block in the two-dimensional spectrogram. S2.
2. Mask some audio block features in the audio block feature sequence to obtain visible audio block features and masked audio block features; S2.3 The self-supervised pre-training model includes a student network and a teacher network. Visible audio block features are input into the student encoder of the student network. The student encoder extracts the time-frequency correlation features between visible audio block features to output student audio-level features. Then, learnable mask labels are added to the positions corresponding to the masked audio block features. The student decoder of the student network predicts the features corresponding to each masked audio block feature to obtain the student predicted features. S2.4 Simultaneously, the unmasked audio block feature sequence is input into the teacher encoder of the teacher network to obtain the teacher features corresponding to each audio block feature, and the teacher audio-level target features corresponding to the audio block feature sequence are generated based on the features output by multiple network layers in the teacher encoder. S2.5 Compare the student-predicted features generated by the student network for the occluded audio block features with the teacher features generated by the teacher network at the corresponding audio block position. The mean square error between the two is the audio block-level loss, enabling the student network to recover the sound features of the occluded area based on the context information contained in the visible audio block. The audio-level loss is obtained by calculating the mean square error between the student's audio-level features and the teacher's audio-level target features. The sum of the audio block-level loss and the audio-level loss is the total loss of self-supervised pre-training. S2.
6. Backpropagation is performed based on the total loss of self-supervised pre-training to update the network parameters of the student network. The network parameters of the teacher network are then updated using an exponential moving average method based on the updated student network parameters. After multiple iterations of backpropagation, the updated student network with the ability to extract general device sound features is finally obtained, which is the feature extraction network.
5. The method for detecting abnormal sounds in industrial equipment as described in claim 4, characterized in that: In step S2.2, the masking process includes at least one of random block mask, frequency mask, and time mask.
6. The method for detecting abnormal sounds in industrial equipment as described in claim 1, characterized in that: The specific process of step S3 is as follows: S3.1 Establish a fine-tuning model, which includes a feature extraction network, a classification head, and a parameter-learnable audio front-end; S3.
2. Generate a corresponding two-dimensional adaptive spectrogram from the one-dimensional audio timing signal in the specified device fine-tuning dataset through a parameter-learnable audio front-end. S3.3 Input the two-dimensional adaptive spectrogram into the feature extraction network for encoding to obtain an audio embedding that represents the entire normal sound of the specified device; S3.
4. Input the audio embedding into the classification head, obtain the predicted working condition classification based on the audio embedding and the features of different normal working conditions, and then obtain the additive angle residual loss based on the predicted working condition classification and the real working condition label corresponding to the audio embedding. S3.
5. Fine-tune the audio front-end and feature extraction network with learnable parameters using a staged training approach: In the audio front-end adaptation stage, a fixed feature extraction network is used to iteratively train the parameter-learnable audio front-end through additive angular residual loss until the preset convergence condition is met. This allows the parameter-learnable audio front-end to prioritize learning the frequency band response, energy distribution, and dynamic range characteristics of the specified device, and gradually generate a two-dimensional adaptive spectrogram suitable for the feature extraction network to process. In the fine-tuning stage of the feature extraction network, the learned audio front-end with the parameters that have been trained is fixed, and the generated two-dimensional adaptive spectrogram is kept relatively stable. The feature extraction network is iteratively trained through additive angular residual loss until the preset convergence condition is met, so that the feature extraction network can further learn the differences in high-level sound features of the specified device under different normal operating conditions. After fine-tuning the training, the parameters of the trained audio front-end and the feature extraction network are saved. S3.
6. Input the one-dimensional audio time-series signals from the fine-tuning dataset of the specified device into the fine-tuning model after fine-tuning training to obtain the corresponding audio embeddings. Then, input each audio embedding into the classification head to obtain the corresponding predicted operating condition classification. Group the audio embeddings corresponding to the predicted operating condition classifications that belong to the same normal operating condition into the same group. Establish the reference features of the corresponding normal operating condition based on the feature distribution of each group of audio embeddings. The reference features are used to characterize the typical sound features of the specified device when it is in the corresponding normal operating condition. Calculate the feature distance between the audio embedding of the one-dimensional audio time sequence signal under each normal operating condition and the reference feature of the corresponding normal operating condition. Based on the feature distance, statistically analyze the distance distribution of the audio embedding under each normal operating condition. This distance distribution is the abnormal judgment threshold of the corresponding normal operating condition.
7. The method for detecting abnormal sounds in industrial equipment as described in claim 6, characterized in that: In step S3.1, the audio front-end with learnable parameters includes four operations in sequence: Gabor filtering, energy mapping, Gaussian low-pass pooling, and channel-by-channel energy normalization compression.
8. The method for detecting abnormal sounds in industrial equipment as described in claim 1, characterized in that: In step S4, the specific process for determining whether the sound to be tested is normal is as follows: S4.1 Input the one-dimensional audio time-series signal corresponding to the sound to be detected into the fine-tuned model after fine-tuning training, and obtain the audio embedding of the sound to be detected by passing it sequentially through the parameter learnable audio front-end and feature extraction network. S4.2 Calculate the feature distance between the audio embedding of the sound to be tested and the reference features of each normal operating condition of the specified device, determine the normal operating condition with the smallest feature distance as the candidate normal operating condition that is closest to the sound to be tested, and obtain the minimum feature distance between the audio embedding of the sound to be tested and the reference features of the candidate normal operating condition. S4.
3. Compare the minimum feature distance with the anomaly judgment threshold of the candidate normal working condition. When the minimum feature distance does not exceed the anomaly judgment threshold, the sound to be detected is judged as the normal sound of the candidate normal working condition. When the minimum feature distance exceeds the anomaly detection threshold, the sound to be inspected is identified as an abnormal sound, and the corresponding anomaly detection result is output through the on-site monitoring system for monitoring the operating status of the equipment under inspection and for fault early warning.
