Abnormal sound detection method and device, electronic equipment, storage medium and product

By adding noise and denoising and reconstructing the audio of the belt conveyor, automatic abnormal sound detection is realized, which solves the problem of low detection accuracy and efficiency caused by manual inspection and improves the accuracy and speed of fault identification. .

CN118629427APending Publication Date: 2024-09-10IFLYTEK CO LTD +1

Patent Information

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

AI Technical Summary

Technical Problem

Existing belt conveyor fault detection relies on manual inspection, resulting in low detection accuracy and efficiency, and the inability to provide effective early warning and timely detection of unplanned shutdowns.

Method used

Using the abnormal sound detection method, the audio of the device to be detected is extracted for noise addition and denoising reconstruction processing, and the detection result is determined based on the reconstruction difference between the audio and the reconstructed audio to achieve automatic abnormal sound detection.

Benefits of technology

It improves the efficiency and accuracy of abnormal sound detection, reduces the reliance on manual inspections, identifies equipment faults more quickly and accurately, and reduces the risk of economic losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629427A
    Figure CN118629427A
Patent Text Reader

Abstract

The invention provides an abnormal sound detection method and device, electronic equipment, a storage medium and a product, and the method comprises the steps: extracting an audio of a corresponding measurement point of to-be-detected equipment, and carrying out the noise adding processing of the audio, and obtaining a noise-added audio corresponding to the measurement point; based on the working condition of the to-be-detected equipment, de-noising reconstruction processing is carried out on the noise-added audio frequency to obtain a reconstructed audio frequency corresponding to the detection point, a detection result corresponding to the audio frequency of the detection point is determined based on the reconstruction difference between the audio frequency and the reconstructed audio frequency, and the detection result represents whether the audio frequency of the detection point is abnormal or not; wherein the noise addition processing algorithm and the de-noising reconstruction processing algorithm are determined by performing noise addition and de-noising reconstruction processing on the normal audio of the corresponding measuring point of the to-be-detected equipment. By adopting the technical scheme of the invention, automatic abnormal sound detection can be carried out on the audio of the detection point, and the abnormal sound detection efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio detection technology, and in particular to an abnormal sound detection method, device, electronic device, storage medium and product. Background Art

[0002] Belt conveyor is a kind of equipment used for material transportation. It can convey various types of materials and help enterprises improve production efficiency. However, in production, once an unplanned shutdown occurs, it will cause great economic losses. Therefore, early warning of belt conveyor failures has attracted more and more attention from related industries.

[0003] When a belt conveyor is abnormal, the drive motor, drum, and roller will make abnormal sounds. Therefore, the existing belt conveyor fault detection usually relies on inspectors to conduct abnormal sound inspections and analysis based on their own experience to detect whether the belt conveyor has a fault. However, manual inspections of abnormal sounds are too dependent on the inspectors' own quality and professionalism, and cannot guarantee the accuracy and efficiency of abnormal sound detection. Summary of the invention

[0004] Based on the above needs, the present application proposes an abnormal sound detection method, device, electronic device, storage medium and product, which can realize automatic abnormal sound detection and improve the efficiency and accuracy of abnormal sound detection.

[0005] To achieve the above objectives, this application proposes the following technical solutions:

[0006] According to a first aspect of an embodiment of the present application, a method for detecting an abnormal sound is provided, comprising:

[0007] Extracting the audio of the measuring point corresponding to the device to be detected, and performing noise processing on the audio to obtain the noisy audio corresponding to the measuring point;

[0008] Based on the working condition of the device to be detected, denoising and reconstructing the noisy audio to obtain a reconstructed audio corresponding to the measuring point, and based on a reconstruction difference between the audio and the reconstructed audio, determining a detection result corresponding to the audio of the measuring point, wherein the detection result indicates whether the audio of the measuring point is abnormal;

[0009] The noise adding processing algorithm and the noise removing and reconstruction processing algorithm are determined by performing noise adding and noise removing and reconstruction processing on the normal audio of the corresponding measuring point of the device to be detected.

[0010] Optionally, the measuring points corresponding to the device to be detected include at least two measuring points, and the at least two measuring points are arranged along one side of the device to be detected at a preset interval.

[0011] Optionally, the abnormal sound detection method further includes:

[0012] Sorting the detection results corresponding to the audio of each measurement point according to the position sequence of each measurement point corresponding to the device to be detected, to obtain a sorted detection result sequence;

[0013] According to the detection result sequence, an abnormal measurement point is determined, and a position in the device to be detected corresponding to the abnormal measurement point is used as a fault position of the device to be detected.

[0014] Optionally, determining abnormal measurement points according to the detection result sequence includes:

[0015] Determine a first measurement point in the detection result sequence corresponding to a detection result indicating that the audio is abnormal, and if the detection results corresponding to the measurement points adjacent to the first measurement point all indicate that the audio is normal, update the detection result corresponding to the first measurement point to a detection result indicating that the audio is normal;

[0016] A measurement point sequence whose corresponding detection results all indicate audio anomalies is determined from the detection result sequence, and a measurement point whose corresponding reconstruction difference of the audio is the largest is selected from the measurement point sequence as an abnormal measurement point.

[0017] Optionally, extract the audio of the corresponding test point of the device to be tested, including:

[0018] Based on the collected audio of each measuring point corresponding to the device to be detected, determining working condition judgment information of the device to be detected, the working condition judgment information indicating whether the working condition of the device to be detected is a working condition;

[0019] If the working condition judgment information indicates that the working condition of the device to be detected is a working condition, the audio of the corresponding measuring point of the device to be detected is extracted.

[0020] Optionally, determining the working condition judgment information of the device to be detected based on the collected audio of each measuring point corresponding to the device to be detected includes:

[0021] Determine the average sound energy of the device to be detected based on the sampling point energy in the audio of each measuring point;

[0022] The average sound energy is compared with a preset energy threshold to determine the working condition judgment information of the device to be detected.

[0023] Optionally, performing noise processing on the audio to obtain a noise-added audio corresponding to the measuring point, performing denoising and reconstruction processing on the noise-added audio based on the working condition of the device to be detected to obtain a reconstructed audio corresponding to the measuring point, and determining a detection result corresponding to the audio of the measuring point based on a reconstruction difference between the audio and the reconstructed audio, including:

[0024] Input the audio into a pre-trained abnormal sound detection model so that the abnormal sound detection model performs noise processing on the audio to obtain the noise-added audio corresponding to the measuring point, perform denoising and reconstruction processing on the noise-added audio based on the working condition of the device to be detected to obtain the reconstructed audio corresponding to the measuring point, and determine the detection result corresponding to the audio of the measuring point based on the reconstruction difference between the audio and the reconstructed audio;

[0025] The abnormal sound detection model is obtained by training the pre-collected sample audio by performing noise addition processing and denoising and reconstruction processing. The sample audio is the audio collected from the sample measurement point corresponding to the sample detection device when there is no fault in the sample detection device.

[0026] Optionally, the process of determining the working condition of the equipment to be detected includes:

[0027] Inputting the intermediate features generated during the denoising and reconstruction process of the noisy frequency into a pre-trained working condition classification model to obtain the working condition of the equipment to be detected;

[0028] The working condition classification model is obtained by predicting the working condition type based on the sample audio features of the sample audio, and training with the goal of minimizing the cross entropy loss function between the predicted working condition and the pre-labeled sample working condition.

[0029] Optionally, the training process of the foreign sound detection model includes:

[0030] Based on the sample audio of each sample measuring point of the sample detection device collected in advance, determine the sample working condition judgment information and the sample working condition of the sample detection device; wherein the sample audio is the audio collected from the sample measuring point corresponding to the sample detection device when the sample detection device does not have any fault;

[0031] When the sample working condition judgment information indicates that the working condition of the sample detection device is a working condition, each sample audio is input into a pre-built abnormal sound detection model to obtain a reconstruction difference corresponding to each sample audio and a sample detection result corresponding to each sample audio;

[0032] The model parameters of the foreign sound detection model are adjusted with the goal of minimizing the reconstruction difference corresponding to the sample audio.

[0033] According to a second aspect of an embodiment of the present application, there is provided an abnormal sound detection device, comprising:

[0034] The first processing module is used to extract the audio of the measuring point corresponding to the device to be detected, and perform noise processing on the audio to obtain the noisy audio corresponding to the measuring point;

[0035] A second processing module is used to perform denoising and reconstruction processing on the noisy audio based on the working condition of the device to be detected to obtain a reconstructed audio corresponding to the measuring point, and determine a detection result corresponding to the audio of the measuring point based on a reconstruction difference between the audio and the reconstructed audio, wherein the detection result indicates whether the audio of the measuring point is abnormal;

[0036] The noise adding processing algorithm and the noise removing and reconstruction processing algorithm are determined by performing noise adding and noise removing and reconstruction processing on the normal audio of the corresponding measuring point of the device to be detected.

[0037] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including: a memory and a processor;

[0038] The memory is connected to the processor and is used to store programs;

[0039] The processor is used to implement the above-mentioned abnormal sound detection method by running the program in the memory.

[0040] According to a fourth aspect of an embodiment of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned abnormal sound detection method is implemented.

[0041] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, including computer program instructions, which, when executed by a processor, enable the processor to implement the above-mentioned abnormal sound detection method.

[0042] The abnormal sound detection method proposed in the present application extracts the audio of the measuring point corresponding to the device to be detected, and performs noise processing on the audio to obtain the noised audio corresponding to the measuring point; based on the working condition of the device to be detected, the noised audio is denoised and reconstructed to obtain the reconstructed audio corresponding to the measuring point, and based on the reconstruction difference between the audio and the reconstructed audio, the detection result corresponding to the audio of the measuring point is determined, and the detection result indicates whether the audio of the measuring point is abnormal; wherein, the processing algorithm of the noise processing algorithm and the processing algorithm of the noise removal and reconstruction processing are determined by performing noise addition and noise removal and reconstruction processing on the normal audio of the measuring point corresponding to the device to be detected. The technical solution of the present application can automatically detect abnormal sounds on the audio of the measuring point, which improves the efficiency and accuracy of abnormal sound detection compared to manual inspection of abnormal sounds. Moreover, denoising and reconstruction based on the working condition of the device to be detected can improve the accuracy and efficiency of denoising and reconstruction, further improving the efficiency and accuracy of abnormal sound detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0044] Figure 1 A schematic diagram of a flow chart of an abnormal sound detection method provided in an embodiment of the present application;

[0045] Figure 2 A schematic diagram of a flow chart of another abnormal sound detection method provided in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of a processing flow for extracting audio corresponding to a measurement point of a device to be detected provided in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of the processing flow of the abnormal sound detection model provided in the embodiment of the present application;

[0048] Figure 5 A schematic diagram of the processing structure of the abnormal sound detection model provided in the embodiment of the present application;

[0049] Figure 6 A schematic diagram of the processing flow of training a noise detection model provided in an embodiment of the present application;

[0050] Figure 7 A schematic diagram of a flow chart of an abnormal sound detection device provided in an embodiment of the present application;

[0051] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The technical solution of the embodiment of the present application is applicable to the application scenario of audio detection, and is specifically used in the application scenario of abnormal sound detection of mechanical equipment. The technical solution of the embodiment of the present application can realize automatic abnormal sound detection and improve the efficiency and accuracy of abnormal sound detection.

[0053] At present, my country's industrial intelligence has entered an era of rapid development. With the continuous development of science and technology and automated intelligence, industries such as manufacturing and energy are gradually moving towards automation and intelligence. Therefore, the normal operation of industrial equipment is becoming more and more important. Once a sudden failure of industrial equipment occurs, it will not only bring huge losses to the industrial manufacturing of a region, but also have great secondary safety hazards, causing major economic losses, and may even lead to catastrophic casualties or adverse social impacts.

[0054] Belt conveyor is a kind of equipment used for material transportation. It is a conveyor belt made of rubber, polyester fiber, nylon and other materials. It is covered with a layer of tear-resistant and wear-resistant rubber or plastic. It has the characteristics of high strength, wear resistance, waterproof, oil resistance, anti-static, etc. Belt conveyor can transport materials from one place to another. It can convey various types of materials, such as raw materials, semi-finished products, finished products, etc., to help enterprises improve production efficiency. Due to the high degree of automation of belt conveyors, it can greatly reduce the waste of manpower and time and improve production efficiency. Therefore, it is widely used in mining, metallurgy, coal and other industries. However, in production, once an unplanned shutdown occurs, it will cause great economic losses. Therefore, early warning of belt conveyor failures has also received more and more attention from related industries.

[0055] When a belt conveyor fails or operates abnormally, the drive motor, roller, and idler will make abnormal sounds. Therefore, the existing abnormal detection of belt conveyors is usually done by inspectors performing abnormal sound inspections based on their own experience. However, manual inspections of abnormal sounds are too dependent on the quality and professionalism of the inspectors themselves, and the accuracy of abnormal sound detection cannot be guaranteed. In addition, some belt conveyors are long, have many inspection points, and a large inspection workload, resulting in low inspection efficiency, which affects the efficiency of abnormal sound detection.

[0056] Based on this, the present application proposes a method for detecting abnormal sounds, and the technical solution can realize automatic detection of abnormal sounds, thereby solving the problem of low accuracy and efficiency of abnormal sound detection in the prior art.

[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0058] Exemplary Methods

[0059] See also Figure 1 As shown, the embodiment of the present application proposes a method for detecting abnormal sound. The method includes:

[0060] S101, extracting the audio of the measuring point corresponding to the device to be detected, and performing noise processing on the audio to obtain the noisy audio corresponding to the measuring point.

[0061] In this embodiment, a mechanical device that needs to be detected for abnormal sound is used as the device to be detected, for example, a belt conveyor. A measuring point is set near the position where the device to be detected needs to be detected for abnormal sound, and an audio acquisition device (such as a microphone, etc.) is set at the measuring point to collect the audio at the position where the abnormal sound detection needs to be performed, so as to extract the audio of the corresponding measuring point of the device to be detected. Specifically, this embodiment needs to accurately perform abnormal sound detection on the device to be detected only when the device to be detected is in a working condition (for example, a no-load condition or a loaded condition). When the device to be detected is in a shutdown condition or a condition with a relatively large noise environment, accurate abnormal sound detection cannot be performed. Therefore, this embodiment needs to extract the audio of the corresponding measuring point of the device to be detected when the device to be detected is in a working condition.

[0062] Further, in this embodiment, the measuring point corresponding to the device to be detected includes at least two measuring points, each measuring point is arranged along one side of the device to be detected according to a preset interval, and each measuring point is at the same distance from the body of the device to be detected. For example, when the device to be detected is a belt conveyor, a measuring point is set every N meters on one side of the belt conveyor, and a microphone is arranged at each measuring point. All microphones are of the same model and have the same distance from the body of the belt conveyor. Among them, N meters is the preset interval distance, and the microphone is the audio acquisition device set at the measuring point. Among them, the preset interval distance in this embodiment can be a constant or a variable. For example, the model or type of the device to be detected is different, and the preset interval distance set is also different. In addition, the preset interval distance can also be an unequal interval, for example, the distance between the first measuring point and the second measuring point is N meters, the distance between the second measuring point and the third measuring point is M meters, etc., and a measuring point with a smaller interval distance can be set near an area with a higher failure rate of the device to be detected, and a measuring point with a larger interval distance can be set near an area with a lower failure rate of the device to be detected.

[0063] After the audio corresponding to the measuring point of the device to be detected is extracted in this embodiment, it is necessary to perform noise processing on the audio to obtain the noise-added frequency corresponding to the measuring point. To perform noise processing on the audio, it is first necessary to extract the audio features corresponding to the audio, and then add Gaussian noise to the audio features corresponding to the audio, so as to obtain the noise-added frequency features after the noise processing, and use the noise-added frequency features as the noise-added frequency after the audio is noise-added. Among them, the audio features include time-frequency features, for example, FilterBank time-frequency features. In addition to the time-frequency features, the audio features may also include audio attribute features, and the audio attributes include: at least one of audio intensity, audio sharpness, and audio clarity. Adding Gaussian noise to the audio features corresponding to the audio may directly add Gaussian noise to the audio features once, so as to obtain the noise-added frequency features as the noise-added frequency; Gaussian noise may also be added multiple times, that is, adding Gaussian noise to the audio features for the first time to obtain the first noise-added feature, and then adding Gaussian noise to the first noise-added feature for the second time to obtain the second noise-added feature, until the multiple additions are completed, and the final noise-added frequency features are obtained as the noise-added frequency.

[0064] S102, based on the working condition of the device to be detected, denoise and reconstruct the noisy audio to obtain the reconstructed audio corresponding to the measuring point, and determine the detection result corresponding to the audio of the measuring point based on the reconstruction difference between the audio and the reconstructed audio.

[0065] In this embodiment, after the audio is processed by adding noise to obtain the added noise audio, it is also necessary to perform denoising and reconstruction processing on the added noise audio to obtain the reconstructed audio corresponding to the audio of the measuring point, that is, the reconstructed audio corresponding to the measuring point, and the working condition of the device to be detected can be used for guidance when performing denoising and reconstruction processing on the added noise audio, so as to improve the efficiency and accuracy of the denoising and reconstruction processing. Specifically, the denoising and reconstruction processing on the added noise audio is to denoise and restore the added noise audio features obtained by the above steps, and obtain the reconstructed audio features after the noise is removed, and use the reconstructed audio features as the reconstructed audio. The denoising and reconstruction processing on the added noise audio features can be performed by directly denoising and restoring the added noise audio features once, so as to obtain the reconstructed audio features as the reconstructed audio; it can also be performed by denoising and restoring multiple times, that is, the added noise audio features are denoised and restored for the first time to obtain the first denoised features, and then the first denoised features are denoised and restored for the second time to obtain the second denoised features, until multiple denoising and restoration are completed, and the final reconstructed audio features are obtained as the reconstructed audio. In this embodiment, the number of times the added noise audio features are denoised and restored is preferably the same as the number of times Gaussian noise is added to the audio features. In addition, each denoising and restoration needs to use the working conditions of the equipment to be tested as a guide to improve the accuracy and efficiency of denoising and restoration.

[0066] In this embodiment, the processing algorithm for noise addition processing and the processing algorithm for denoising and reconstructing processing, wherein the processing algorithm for noise addition processing and the processing algorithm for denoising and reconstructing processing are determined by performing noise addition and denoising and reconstructing processing on the normal audio of the corresponding measuring point of the detection device. Specifically, the processing algorithm for noise addition processing and the processing algorithm for denoising and reconstructing processing can be determined by training the sample audio with noise addition processing and denoising and reconstructing processing, and during the training process, the goal is to minimize the reconstruction difference between the sample audio and the sample reconstructed audio obtained after the sample audio is subjected to noise addition processing and denoising and reconstructing processing. Wherein, the sample audio is the audio collected from the sample measurement point corresponding to the sample detection device when there is no fault in the sample detection device. Therefore, the sample audio is normal audio, not abnormal sound. Then the noise addition processing and denoising reconstruction processing after training can make the reconstruction difference between the reconstructed audio obtained by denoising and denoising the original audio (i.e., normal audio) collected when there is no fault smaller than the original audio. Therefore, the noise addition and denoising reconstruction after the above training can only ensure that the reconstructed audio after denoising and denoising the normal audio is similar to the original audio and the difference is small, and cannot make the reconstructed audio after denoising and denoising the abnormal audio similar to the original audio. Wherein, the sample detection device can be the device to be detected, or it can be a device of the same type as the device to be detected.

[0067] It can be seen from this that this embodiment can determine whether the audio of the measuring point is abnormal by calculating the reconstruction difference between the audio of the measuring point and the corresponding reconstructed audio. That is, if the reconstruction difference between the calculated audio of the measuring point and the corresponding reconstructed audio is small, then the detection result corresponding to the audio of the measuring point indicates that the audio of the measuring point is normal. If the reconstruction difference between the calculated audio of the measuring point and the corresponding reconstructed audio is large, then the detection result corresponding to the audio of the measuring point indicates that the audio of the measuring point is abnormal. Among them, this embodiment can pre-set a comparison threshold. If the reconstruction difference between the audio of the measuring point and the corresponding reconstructed audio is less than the comparison threshold, it is determined that the reconstruction difference between the audio of the measuring point and the corresponding reconstructed audio is small, and the detection result corresponding to the audio of the measuring point indicates that the audio of the measuring point is normal; if the reconstruction difference between the audio of the measuring point and the corresponding reconstructed audio is not less than the comparison threshold, it is determined that the reconstruction difference between the audio of the measuring point and the corresponding reconstructed audio is large, and the detection result corresponding to the audio of the measuring point indicates that the audio of the measuring point is abnormal.

[0068] In this embodiment, the reconstruction difference between the audio of the measurement point and the corresponding reconstructed audio may be calculated by using the root mean square error loss (MSE Loss) between the audio features of the audio of the measurement point and the corresponding reconstructed audio features as the reconstruction difference between the two.

[0069] From the above introduction, it can be seen that the abnormal sound detection method proposed in the embodiment of the present application extracts the audio of the measuring point corresponding to the device to be detected, and performs noise processing on the audio to obtain the noised audio corresponding to the measuring point; based on the working condition of the device to be detected, the noised audio is denoised and reconstructed to obtain the reconstructed audio corresponding to the measuring point, and based on the reconstruction difference between the audio and the reconstructed audio, the detection result corresponding to the audio of the measuring point is determined, and the detection result indicates whether the audio of the measuring point is abnormal; wherein, the processing algorithm of the noise processing algorithm and the processing algorithm of the denoising and reconstruction processing are determined by performing noise adding and denoising and reconstruction processing on the normal audio of the measuring point corresponding to the device to be detected. By adopting the technical solution of this embodiment, the audio of the measuring point can be automatically detected for abnormal sounds, which improves the efficiency and accuracy of abnormal sound detection compared with manual inspection of abnormal sounds. Moreover, denoising and reconstruction based on the working condition of the device to be detected can improve the accuracy and efficiency of denoising and reconstruction, and further improve the efficiency and accuracy of abnormal sound detection.

[0070] As an optional implementation, see Figure 2 As shown, in another embodiment of the present application, the abnormal sound detection method further includes:

[0071] S201 , sorting the detection results corresponding to the audio of each measurement point according to the position sequence of each measurement point corresponding to the device to be detected, to obtain a sorted detection result sequence.

[0072] Through the above embodiment, the audio of each measuring point set on one side of the device to be detected can be detected for abnormal sound, and the detection result corresponding to the audio of each measuring point can be determined. In this embodiment, the detection results corresponding to the audio of each measuring point are sorted according to the arrangement order of the setting positions of each measuring point corresponding to the device to be detected, and all the sorted detection results form a detection result sequence.

[0073] S202: Determine an abnormal measurement point according to the detection result sequence, and use the position in the device to be detected corresponding to the abnormal measurement point as the fault position of the device to be detected.

[0074] This embodiment performs an overall analysis on each detection result in the detection result sequence, and is able to query and locate abnormal measurement points therefrom, determine the corresponding position of the abnormal measurement point in the device to be detected according to the setting position of the abnormal measurement point, and use the position in the device to be detected corresponding to the abnormal measurement point as the fault position of the device to be detected, thereby realizing fault detection and positioning of the device to be detected.

[0075] Specifically, according to the detection result sequence, the specific steps of determining the abnormal measurement point include:

[0076] First, determine the first measurement point in the detection result sequence corresponding to the detection result indicating audio abnormality. If the detection results corresponding to the measurement points adjacent to the first measurement point all indicate that the audio is normal, then update the detection result corresponding to the first measurement point to a detection result indicating that the audio is normal.

[0077] In this embodiment, all the detection results in the detection result sequence are retrieved, and the detection result indicating that the audio of the measurement point is abnormal is queried therefrom, and the measurement point to which the detection result indicating that the audio of the measurement point belongs is taken as the first measurement point, and then the detection results adjacent to the detection result corresponding to the first measurement point are queried from the detection result sequence, and it is determined whether the detection results adjacent to the detection result corresponding to the first measurement point all indicate that the audio of the measurement point is normal. If it is determined that the detection results adjacent to the detection result corresponding to the first measurement point all indicate that the audio of the measurement point is normal, it means that the first measurement point is an isolated abnormal measurement point. However, under normal circumstances, if a measurement point fails at a corresponding position in the device to be detected, the measurement point detects an abnormal sound, and the measurement points adjacent to the measurement point will also detect the abnormal sound. Therefore, if the first measurement point is an isolated abnormal measurement point, it is likely to be a false alarm. At this time, the detection result corresponding to the first measurement point is updated to a detection result indicating that the audio of the measurement point is normal, thereby reducing false alarms and improving the accuracy of fault detection and positioning of the device to be detected.

[0078] Second, a measurement point sequence whose corresponding detection results all indicate audio anomalies is determined from the detection result sequence, and a measurement point whose corresponding audio reconstruction difference is the largest is selected from the measurement point sequence as an abnormal measurement point.

[0079] This embodiment searches for all the test results in the test result sequence. If there are a continuous preset number of test results that all indicate that the audio of the test point is abnormal, the test points to which these continuous preset number of test results belong are combined into a test point sequence, that is, the test points contained in the test point sequence are continuous test points whose test results all indicate that the audio of the test point is abnormal. Then, the reconstruction difference between the audio of each test point in the test point sequence and the corresponding reconstructed audio is determined as the reconstruction difference corresponding to the audio of each test point. The larger the reconstruction difference, the worse the effect of denoising and reconstruction, the more obvious the audio abnormality, and the closer the test point is to the fault location of the device to be detected. Therefore, this embodiment selects the test point with the largest reconstruction difference corresponding to the audio from the test point sequence as the final abnormal test point, so as to achieve accurate positioning of the fault location.

[0080] As an optional implementation, see Figure 3 As shown, in another embodiment of the present application, step S101 extracts the audio corresponding to the measuring point of the device to be detected, including the following steps:

[0081] S301 : Determine working condition judgment information of the device to be detected based on the collected audio of each measuring point corresponding to the device to be detected.

[0082] This embodiment uses an audio acquisition device set at each measuring point corresponding to the device to be detected to collect the audio of each measuring point, and judges the working condition of the device to be detected based on the sampling point energy in the audio of each measuring point, that is, judges whether the working condition of the device to be detected is a working condition, thereby determining the working condition judgment information of the device to be detected. Among them, the working condition judgment information indicates whether the working condition of the device to be detected is a working condition. The working condition includes a loaded condition and an unloaded condition, while the shutdown condition and the condition of a relatively noisy environment do not belong to the working condition.

[0083] Furthermore, this step specifically includes:

[0084] First, based on the sampling point energy in the audio of each measurement point, the average sound energy of the device to be tested is determined.

[0085] This embodiment calculates the average energy of the audio of the measuring point based on the energy of all sampling points in the audio of the measuring point, so that the average energy of the audio of each measuring point can be calculated. The average energy of the sound of the device to be detected is calculated based on the average energy of the audio of all measuring points corresponding to the device to be detected.

[0086] Specifically, the average energy of the audio of the measuring point is calculated based on the energy of all sampling points in the audio of the measuring point. First, the sampling point energy of each sampling point in the audio of the measuring point needs to be sorted, and the sorted sampling point energies are combined to obtain a sampling point energy sequence. Then, the average value of all sampling point energies in the first target sequence interval in the sampling point energy sequence is calculated as the average energy of the audio of the measuring point. The first target sequence interval is a sequence interval other than the sequence intervals of the set lengths at the beginning and the end. For example, the set lengths at the beginning and the end can be 25% of the length of the sampling point energy sequence, that is, the first 25% of the sampling point energies and the last 25% of the sampling point energies in the sampling point energy sequence are removed, and the remaining 50% of the sampling point energies in the middle of the sort are all the sampling point energies in the first target sequence interval. Through the above steps, the average energy of the audio of all measuring points corresponding to the device to be tested can be calculated.

[0087] According to the average energy of the audio of all the measuring points corresponding to the device to be detected, the average energy of the sound of the device to be detected is calculated. First, the average energy of the audio of all the measuring points needs to be sorted, and the sorted average energy is combined to obtain an audio energy sequence, and then the average value of all the average energy in the second target sequence interval in the audio energy sequence is calculated as the average energy of the sound of the device to be detected. The second target sequence interval is the sequence interval except the sequence interval of the set length at the beginning and the end. For example, the set length at the beginning and the end can be 25% of the length of the audio energy sequence, that is, the first 25% of the average energy and the last 25% of the average energy in the audio energy sequence are removed, and the remaining 50% of the average energy in the middle of the sort are all the average energy in the second target sequence interval.

[0088] Second, the average sound energy is compared with a preset energy threshold to determine the working condition judgment information of the equipment to be tested.

[0089] This embodiment pre-sets an energy threshold, compares the average sound energy of the device to be detected with the energy threshold, and determines the working condition judgment information of the device to be detected based on the comparison result. Among them, the energy threshold includes a first energy threshold and a second energy threshold, and the first energy threshold is less than the second energy threshold. If the average sound energy is less than the first energy threshold, it means that the current working condition of the device to be detected is a shutdown condition. At this time, the working condition judgment information of the device to be detected indicates that the working condition of the device to be detected is not a working condition; if the average sound energy is greater than the second energy threshold, it means that the current working condition of the device to be detected is a condition of a relatively large noise environment. At this time, the working condition judgment information of the device to be detected indicates that the working condition of the device to be detected is not a working condition. If the average sound energy is greater than or equal to the first energy threshold and less than or equal to the second energy threshold, it means that the current working condition of the device to be detected is a loaded condition or a no-load condition. At this time, the working condition judgment information of the device to be detected indicates that the working condition of the device to be detected is a working condition.

[0090] S302: If the working condition judgment information indicates that the working condition of the device to be detected is a working condition, extract the audio of the corresponding measuring point of the device to be detected.

[0091] Through the above steps, if it is determined that the working condition judgment information of the device to be detected indicates that the working condition of the device to be detected is a working condition, the audio of each measuring point corresponding to the device to be detected is extracted. If it is determined that the working condition judgment information indicates that the working condition of the device to be detected is not a working condition, a detection prompt information is output, and the detection prompt information indicates that the current working condition of the device to be detected cannot perform abnormal sound detection.

[0092] As an optional implementation, see Figure 4As shown, in another embodiment of the present application, a method is disclosed in which the audio is subjected to noise processing to obtain a noise-added audio corresponding to a measuring point, the noise-added audio is subjected to denoising and reconstruction processing based on the working condition of the device to be detected to obtain a reconstructed audio corresponding to the measuring point, and a detection result corresponding to the audio of the measuring point is determined based on a reconstruction difference between the audio and the reconstructed audio, including:

[0093] S401. Input the audio into a pre-trained abnormal sound detection model so that the abnormal sound detection model performs noise processing on the audio to obtain the noisy audio corresponding to the measuring point, perform denoising and reconstruction processing on the noisy audio based on the working condition of the equipment to be detected to obtain the reconstructed audio corresponding to the measuring point, and determine the detection result corresponding to the audio of the measuring point based on the reconstruction difference between the audio and the reconstructed audio.

[0094] This embodiment pre-trains an abnormal sound detection model, which can perform noise processing and denoising and reconstruction processing on the original audio to obtain reconstructed audio, and for normal original audio, the difference between the corresponding reconstructed audio and the original audio is small, while for abnormal original audio, the difference between the corresponding reconstructed audio and the original audio is large. Therefore, this embodiment inputs the audio of the measuring point into the pre-trained abnormal sound detection model, that is, inputs the audio features corresponding to the audio of the measuring point into the abnormal sound detection model, and the abnormal sound detection model can perform noise processing on the audio to obtain the noised audio corresponding to the measuring point, and based on the working condition of the device to be detected, denoise and reconstruct the noised audio to obtain the reconstructed audio corresponding to the measuring point, and then determine the detection result corresponding to the audio of the measuring point based on the reconstruction difference between the audio and the reconstructed audio.

[0095] Among them, the training sample of the abnormal sound detection model is the audio collected from the sample measurement point corresponding to the sample detection device when there is no fault in the sample detection device, that is, normal audio. Then the sample audio is input into the abnormal sound detection model, and the sample audio is processed by the abnormal sound detection model after adding noise and then denoising and reconstructing, so as to obtain the sample reconstructed audio corresponding to the sample audio, calculate the reconstruction difference between the sample audio and the corresponding sample reconstructed audio, and adjust the parameters of the abnormal sound detection model with the goal of minimizing the reconstruction difference. Through this training method, the noise and denoising reconstruction of the normal audio by the trained abnormal sound detection model can be more accurate, that is, the reconstructed audio obtained after denoising and reconstruction is less different from the normal audio. On the contrary, if the trained abnormal sound detection model is not trained with abnormal audio, then the accuracy of the noise and denoising reconstruction of the abnormal audio is low, and the reconstructed audio obtained after denoising and reconstruction is greatly different from the abnormal audio. In this way, the size of the reconstruction difference between the input audio and the corresponding reconstructed audio can be calculated by the trained abnormal sound detection model to determine whether the input audio is normal audio or abnormal audio.

[0096] For details, see Figure 5As shown in the figure, the process of adding noise to the audio by the noise detection model is as follows Figure 5 In the forward diffusion process, Gaussian noise is added to the audio feature X0 of the audio for the first time to obtain the first noisy feature X1. Then, Gaussian noise is added to the first noisy feature X1 for the second time to obtain the second noisy feature X2. And so on. After the tth time of adding Gaussian noise, the noisy audio feature X corresponding to the measurement point is obtained. t The process of the abnormal sound detection model to denoise and reconstruct the noise frequency based on the working condition of the equipment to be detected is as follows: Figure 5 The reverse diffusion process in the noise frequency adds the noise frequency characteristic Y t Perform the first denoising restoration to obtain the first denoising feature, where the noise frequency feature Y t With the noise frequency feature X t is the same feature. Based on the first denoising feature, the working condition of the device to be detected is determined, and then based on the working condition of the device to be detected, the first denoising feature is denoised and restored for the second time to obtain the second denoising feature, and so on. The t-1th denoising and restoration first determines the working condition of the device to be detected based on the t-2th denoising feature Y2, and then performs the t-1th denoising and restoration on the t-2th denoising feature Y2 based on the working condition of the device to be detected to obtain the t-1th denoising and restoration feature Y1. Based on the t-1th denoising feature Y1, the working condition of the device to be detected is determined, and the t-1th denoising and restoration is performed on the t-1th denoising and restoration feature Y1 based on the working condition of the device to be detected to obtain the reconstructed audio feature Y0, and the reconstructed audio feature Y0 is used as the reconstructed audio corresponding to the audio of the measurement point. Finally, the foreign sound detection model calculates the root mean square error loss (MSE Loss) between the audio feature X0 of the audio and the reconstructed audio feature Y0, and uses the calculated root mean square error loss as the reconstruction difference between the audio and the reconstructed audio, and compares the reconstruction difference with a preset comparison threshold. If the reconstruction difference is less than the comparison threshold, it is determined that the detection result corresponding to the audio of the measuring point indicates that the audio of the measuring point is normal. If the reconstruction difference is not less than the comparison threshold, it is determined that the detection result corresponding to the audio of the measuring point indicates that the audio of the measuring point is abnormal.

[0097] Furthermore, in the process of denoising and reconstructing the noise frequency by the abnormal sound detection model, the process of determining the working condition of the equipment to be detected includes:

[0098] The intermediate features generated during the denoising and reconstruction process of the noisy frequency are input into a pre-trained working condition classification model to obtain the working condition of the equipment to be tested.

[0099] In this embodiment, the working condition classification model is pre-trained. The abnormal sound detection model generates at least one intermediate feature during the denoising and reconstruction process of the noise frequency features corresponding to the noise frequency. The intermediate feature is input into the pre-trained working condition classification model. The working condition classification model can identify the working condition type corresponding to the intermediate feature and use the working condition type as the current working condition of the device to be detected. Figure 5 As shown, the noise frequency feature Y t Each feature between the reconstructed audio feature Y0 is an intermediate feature, such as the first denoising feature, the second denoising feature, ..., the t-2 denoising feature Y2, the t-1 denoising feature Y1, etc. Before denoising and restoring each intermediate feature, it is necessary to first input the intermediate feature into the working condition classification model, obtain the working condition of the device to be detected output by the working condition classification model, and then denoise and restore the intermediate feature based on the working condition of the device to be detected.

[0100] In this embodiment, the training sample of the working condition classification model is a sample audio, and the sample audio is pre-labeled with its real working condition as the sample working condition of the sample audio. The sample audio features corresponding to the sample audio are input into the working condition classification model to predict the working condition type, and the predicted working condition of the sample audio is predicted. Then, the model parameters of the working condition classification model are adjusted with the goal of minimizing the difference between the predicted working condition of the sample audio and the sample working condition pre-labeled by the sample audio, so as to realize the training of the working condition classification model. Among them, the goal is to minimize the difference between the predicted working condition of the sample audio and the sample working condition pre-labeled by the sample audio, that is, to minimize the cross entropy loss function between the predicted working condition of the sample audio and the sample working condition pre-labeled by the sample audio.

[0101] As an optional implementation, see Figure 6 As shown, in another embodiment of the present application, a training process of a foreign sound detection model is disclosed, including:

[0102] S601 . Determine sample working condition judgment information and sample working condition of the sample detection device based on pre-collected sample audio of each sample measurement point of the sample detection device.

[0103] In this embodiment, when there is no fault in the sample detection device, audio is collected from the sample measurement points corresponding to the sample detection device, and the collected audio is used as the sample audio. The method of collecting the sample audio of each sample measurement point of the sample detection device is the same as the method of collecting the audio of each measurement point of the device to be detected in the above embodiment, and this embodiment will not be repeated.

[0104] This embodiment determines the average sound energy of the sample detection device based on the sampling point energy in the sample audio of each sample measurement point. Specifically, the sampling point energy of each sampling point in the sample audio of the sample measurement point is sorted to obtain a sampling point energy sequence, and the energy average value of the first target sequence interval in the sampling point energy sequence is calculated as the average energy of the sample audio of the sample measurement point, and the first target sequence interval includes sequence intervals other than sequence intervals of set lengths at the beginning and the end; the average energy of the sample audio of all sample measurement points is sorted to obtain an audio energy sequence, and the energy average value of the second target sequence interval in the audio energy sequence is calculated as the average sound energy of the sample detection device, and the second target sequence interval includes sequence intervals other than sequence intervals of set lengths at the beginning and the end. Among them, the specific steps of determining the average sound energy of the sample detection device based on the sampling point energy in the sample audio of each sample measurement point are the same as the specific steps of determining the average sound energy of the device to be detected based on the sampling point energy in the audio of each measurement point in the above-mentioned embodiment, and will not be repeated in this embodiment.

[0105] After determining the average sound energy of the sample detection device, this embodiment compares the average sound energy of the sample detection device with the pre-set energy threshold to determine the sample working condition judgment information and the sample working condition of the sample detection device. Among them, the pre-set energy threshold includes not only the first energy threshold and the second energy threshold, but also the third energy threshold, wherein the first energy threshold is less than the third energy threshold and less than the second energy threshold. If the average sound energy of the sample detection device is less than the first energy threshold, it means that the current working condition of the sample detection device is a shutdown condition. At this time, the working condition judgment information of the sample detection device is determined to indicate that the working condition of the device to be detected is not a working condition; if the average sound energy of the sample detection device is greater than the second energy threshold, it means that the current working condition of the sample detection device is a condition of a relatively large noise environment. At this time, the working condition judgment information of the sample detection device is determined to indicate that the working condition of the device to be detected is not a working condition. If the average sound energy of the sample detection device is greater than or equal to the first energy threshold and less than or equal to the second energy threshold, it means that the current working condition of the sample detection device is a loaded condition or an unloaded condition. At this time, the working condition judgment information of the sample detection device is determined to indicate that the working condition of the sample detection device is a working condition.

[0106] When the average sound energy of the sample detection device is greater than or equal to the first energy threshold and less than the third energy threshold, the sample operating condition of the sample detection device is determined to be a no-load condition. When the average sound energy of the sample detection device is greater than or equal to the third energy threshold and less than or equal to the second energy threshold, the sample operating condition of the sample detection device is determined to be a loaded condition.

[0107] S602. When the sample working condition judgment information indicates that the working condition of the sample detection device is a working condition, each sample audio is input into a pre-built abnormal sound detection model to obtain a reconstruction difference corresponding to each sample audio and a sample detection result corresponding to each sample audio.

[0108] In the case where the sample working condition judgment information indicates that the working condition of the sample detection device is the working condition, the sample audio of each sample measurement point is used as a training sample of the abnormal sound detection model, the sample audio is input into the pre-built abnormal sound detection model, the sample audio feature of the sample audio of the abnormal sound detection model is subjected to noise processing, and the sample noisy audio feature corresponding to the sample audio is obtained. The sample noisy audio feature is subjected to denoising and reconstruction processing based on the sample working condition of the sample detection device to obtain the sample reconstructed audio feature, the reconstruction difference between the sample reconstructed audio feature and the sample audio feature of the sample audio is calculated as the reconstruction difference corresponding to the sample audio, and the sample detection result corresponding to the sample audio is determined based on the reconstruction difference corresponding to the sample audio and the pre-set comparison threshold. Among them, the abnormal sound detection process of the sample audio by the abnormal sound detection model is the same as the abnormal sound detection process of the audio of the measurement point by the abnormal sound detection model in the above embodiment, and this embodiment will not be repeated.

[0109] S603: Adjust model parameters of the foreign sound detection model with the goal of minimizing the reconstruction difference corresponding to the sample audio.

[0110] The reconstruction differences corresponding to the audio samples are calculated through the above steps. The model parameters of the abnormal sound detection model are adjusted with the goal of minimizing the reconstruction differences corresponding to the audio samples, thereby completing the training of the abnormal sound detection model.

[0111] In this embodiment, the sample working conditions of the sample audio may be annotated on the sample audio, and the sample audio annotated with the sample working conditions may be directly used as a training sample for the working condition classification model.

[0112] Exemplary Devices

[0113] Accordingly, the present application also provides an abnormal sound detection device, see Figure 7 As shown, the device comprises:

[0114] The first processing module 100 is used to extract the audio of the measuring point corresponding to the device to be detected, and perform noise processing on the audio to obtain the noisy audio corresponding to the measuring point;

[0115] The second processing module 110 is used to perform denoising and reconstruction processing on the noisy audio based on the working condition of the device to be detected, obtain the reconstructed audio corresponding to the measuring point, and determine the detection result corresponding to the audio of the measuring point based on the reconstruction difference between the audio and the reconstructed audio, and the detection result indicates whether the audio of the measuring point is abnormal;

[0116] The noise adding processing algorithm and the noise removing and reconstruction processing algorithm are determined by performing noise adding and noise removing and reconstruction processing on the normal audio of the corresponding measuring point of the device to be detected.

[0117] From the above introduction, it can be seen that the abnormal sound detection device proposed in the embodiment of the present application can automatically detect abnormal sound at the audio of the measuring point, which improves the efficiency and accuracy of abnormal sound detection compared to manual inspection of abnormal sound. In addition, denoising and reconstruction based on the working conditions of the equipment to be detected can improve the accuracy and efficiency of denoising and reconstruction, further improving the efficiency and accuracy of abnormal sound detection.

[0118] As an optional implementation, another embodiment of the present application discloses that the measuring points corresponding to the device to be detected include at least two measuring points, and the at least two measuring points are arranged along one side of the device to be detected at a preset interval.

[0119] As an optional implementation, another embodiment of the present application discloses that the abnormal sound detection device further includes: a sorting module and a fault determination module.

[0120] A sorting module is used to sort the detection results corresponding to the audio of each measurement point according to the position order of each measurement point corresponding to the device to be detected, so as to obtain a sorted detection result sequence;

[0121] The fault determination module is used to determine the abnormal measurement point according to the detection result sequence, and use the position in the device to be detected corresponding to the abnormal measurement point as the fault position of the device to be detected.

[0122] As an optional implementation, another embodiment of the present application discloses that the fault determination module includes: a detection result updating unit and an abnormal measurement point determination unit.

[0123] A detection result updating unit, configured to determine a first measurement point in the detection result sequence corresponding to a detection result indicating that the audio is abnormal, and if the detection results corresponding to the measurement points adjacent to the first measurement point all indicate that the audio is normal, then updating the detection result corresponding to the first measurement point to a detection result indicating that the audio is normal;

[0124] The abnormal measurement point determination unit is used to determine a measurement point sequence whose corresponding detection results all indicate audio abnormality from the detection result sequence, and select a measurement point with the largest reconstruction difference corresponding to the audio from the measurement point sequence as the abnormal measurement point.

[0125] As an optional implementation, another embodiment of the present application discloses that the first processing module 100 includes: a working condition judgment unit and an audio extraction unit.

[0126] A working condition judgment unit, used to determine working condition judgment information of the device to be detected based on the collected audio of each measuring point corresponding to the device to be detected, the working condition judgment information indicating whether the working condition of the device to be detected is a working condition;

[0127] The audio extraction unit is used to extract the audio of the corresponding measuring point of the device to be detected if the working condition judgment information indicates that the working condition of the device to be detected is a working condition.

[0128] As an optional implementation, another embodiment of the present application discloses that the operating condition judgment unit includes: an energy determination unit and a comparison unit.

[0129] An energy determination unit, used to determine the average sound energy of the device to be detected based on the sampling point energy in the audio of each measurement point;

[0130] The comparison unit is used to compare the average sound energy with a preset energy threshold to determine the working condition judgment information of the device to be detected.

[0131] As an optional implementation manner, another embodiment of the present application discloses an energy determination unit, which is specifically used to:

[0132] Sorting the sampling point energies of each sampling point in the audio of the measuring point to obtain a sampling point energy sequence, calculating the energy average of a first target sequence interval in the sampling point energy sequence as the average energy of the audio of the measuring point, the first target sequence interval including sequence intervals other than sequence intervals of set lengths at the beginning and the end;

[0133] The average energy of the audio of all measuring points is sorted to obtain an audio energy sequence, and the energy average of the second target sequence interval in the audio energy sequence is calculated as the sound average energy of the device to be detected. The second target sequence interval includes sequence intervals other than sequence intervals of set length at the beginning and end.

[0134] As an optional implementation, another embodiment of the present application discloses that the first processing module 100 and the second processing module 110 are specifically used for:

[0135] The audio is input into a pre-trained abnormal sound detection model so that the abnormal sound detection model performs noise processing on the audio to obtain the noise-added audio corresponding to the measuring point, and based on the working condition of the equipment to be detected, the noise-added audio is denoised and reconstructed to obtain the reconstructed audio corresponding to the measuring point, and based on the reconstruction difference between the audio and the reconstructed audio, the detection result corresponding to the audio of the measuring point is determined;

[0136] The abnormal sound detection model is obtained by training the pre-collected sample audio by performing noise addition processing and denoising and reconstruction processing. The sample audio is the audio collected from the sample measurement point corresponding to the sample detection device when there is no fault in the sample detection device.

[0137] As an optional implementation, it is disclosed in another embodiment of the present application that the abnormal sound detection device also includes: an operating condition classification module.

[0138] The working condition classification module is used to input the intermediate features generated in the process of denoising and reconstructing the noisy frequency into the pre-trained working condition classification model to obtain the working condition of the equipment to be tested;

[0139] The working condition classification model is obtained by predicting the working condition type based on the sample audio features of the sample audio, and is trained with the goal of minimizing the cross entropy loss function between the predicted working condition and the pre-labeled sample working condition.

[0140] As an optional implementation, another embodiment of the present application discloses that the abnormal sound detection device further includes: a model training module. The model training module is specifically used to:

[0141] Based on the sample audio of each sample measuring point of the sample detection device collected in advance, determine the sample working condition judgment information and the sample working condition of the sample detection device; wherein the sample audio is the audio collected from the sample measuring point corresponding to the sample detection device when the sample detection device does not have a fault;

[0142] When the sample working condition judgment information indicates that the working condition of the sample detection device is a working condition, each sample audio is input into a pre-built abnormal sound detection model to obtain a reconstruction difference corresponding to each sample audio and a sample detection result corresponding to each sample audio;

[0143] With the goal of minimizing the reconstruction difference corresponding to the sample audio, the model parameters of the foreign sound detection model are adjusted.

[0144] The abnormal sound detection device provided in this embodiment belongs to the same application concept as the abnormal sound detection method provided in the above embodiments of this application, and can execute the abnormal sound detection method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of executing the abnormal sound detection method. For technical details not fully described in this embodiment, please refer to the specific processing content of the abnormal sound detection method provided in the above embodiments of this application, and will not be repeated here.

[0145] Exemplary Electronic Devices

[0146] Another embodiment of the present application also provides an electronic device, see Figure 8 As shown, the device includes:

[0147] Memory 200 and processor 210;

[0148] The memory 200 is connected to the processor 210 and is used to store programs;

[0149] The processor 210 is used to implement the abnormal sound detection method disclosed in any of the above embodiments by running the program stored in the memory 200.

[0150] Specifically, the electronic device may further include: a bus, a communication interface 220 , an input device 230 and an output device 240 .

[0151] The processor 210, the memory 200, the communication interface 220, the input device 230 and the output device 240 are connected to each other via a bus.

[0152] A bus may include a pathway that transfers information between components of a computer system.

[0153] The processor 210 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the scheme of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0154] The processor 210 may include a main processor, and may also include a baseband chip, a modem, and the like.

[0155] The memory 200 stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes a computer operation instruction. More specifically, the memory 200 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.

[0156] The input device 230 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.

[0157] Output device 240 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.

[0158] The communication interface 220 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.

[0159] The processor 210 executes the program stored in the memory 200 and calls other devices, which can be used to implement each step of any abnormal sound detection method provided in the above embodiments of the present application.

[0160] Exemplary computer program products and storage media

[0161] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the abnormal sound detection method according to various embodiments of the present application described in the above-mentioned "Exemplary Method" section of this specification.

[0162] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0163] In addition, an embodiment of the present application may also be a storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the abnormal sound detection method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0164] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0165] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0166] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.

[0167] The modules and sub-modules in the devices and terminals of the various embodiments of the present application can be combined, divided and deleted according to actual needs.

[0168] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0169] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0170] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.

[0171] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0172] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0173] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0174] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for detecting abnormal sound, characterized in that: include: Extracting the audio of the measuring point corresponding to the device to be detected, and performing noise processing on the audio to obtain the noisy audio corresponding to the measuring point; Based on the working condition of the device to be detected, denoising and reconstructing the noisy audio to obtain a reconstructed audio corresponding to the measuring point, and based on a reconstruction difference between the audio and the reconstructed audio, determining a detection result corresponding to the audio of the measuring point, wherein the detection result indicates whether the audio of the measuring point is abnormal; The noise adding processing algorithm and the noise removing and reconstruction processing algorithm are determined by performing noise adding and noise removing and reconstruction processing on the normal audio of the corresponding measuring point of the device to be detected.

2. The method according to claim 1, characterized in that The measuring points corresponding to the device to be detected include at least two measuring points, and the at least two measuring points are arranged along one side of the device to be detected according to a preset interval distance.

3. The method according to claim 2, characterized in that Also includes: Sorting the detection results corresponding to the audio of each measurement point according to the position sequence of each measurement point corresponding to the device to be detected, to obtain a sorted detection result sequence; According to the detection result sequence, an abnormal measurement point is determined, and a position in the device to be detected corresponding to the abnormal measurement point is used as a fault position of the device to be detected.

4. The method according to claim 3, characterized in that Determining abnormal measurement points according to the detection result sequence includes: Determine a first measurement point in the detection result sequence corresponding to a detection result indicating that the audio is abnormal, and if the detection results corresponding to the measurement points adjacent to the first measurement point all indicate that the audio is normal, update the detection result corresponding to the first measurement point to a detection result indicating that the audio is normal; A measurement point sequence whose corresponding detection results all indicate audio anomalies is determined from the detection result sequence, and a measurement point whose corresponding reconstruction difference of the audio is the largest is selected from the measurement point sequence as an abnormal measurement point.

5. The method according to claim 2, characterized in that: Extract the audio of the corresponding test point of the device to be tested, including: Based on the collected audio of each measuring point corresponding to the device to be detected, determining working condition judgment information of the device to be detected, the working condition judgment information indicating whether the working condition of the device to be detected is a working condition; If the working condition judgment information indicates that the working condition of the device to be detected is a working condition, the audio of the corresponding measuring point of the device to be detected is extracted.

6. The method according to claim 5, characterized in that Based on the collected audio of each measuring point corresponding to the device to be detected, determining the working condition judgment information of the device to be detected, including: Determine the average sound energy of the device to be detected based on the sampling point energy in the audio of each measuring point; The average sound energy is compared with a preset energy threshold to determine the working condition judgment information of the device to be detected.

7. The method according to claim 1, characterized in that Noising the audio to obtain a noisy audio corresponding to the measuring point, denoising and reconstructing the noisy audio based on the working condition of the device to be detected to obtain a reconstructed audio corresponding to the measuring point, and determining a detection result corresponding to the audio of the measuring point based on a reconstruction difference between the audio and the reconstructed audio, including: Input the audio into a pre-trained abnormal sound detection model so that the abnormal sound detection model performs noise processing on the audio to obtain the noise-added audio corresponding to the measuring point, perform denoising and reconstruction processing on the noise-added audio based on the working condition of the device to be detected to obtain the reconstructed audio corresponding to the measuring point, and determine the detection result corresponding to the audio of the measuring point based on the reconstruction difference between the audio and the reconstructed audio; The abnormal sound detection model is obtained by training the pre-collected sample audio by performing noise addition processing and denoising and reconstruction processing. The sample audio is the audio collected from the sample measurement point corresponding to the sample detection device when there is no fault in the sample detection device.

8. The method according to claim 7, characterized in that The process of determining the working condition of the equipment to be detected includes: Inputting the intermediate features generated during the denoising and reconstruction process of the noisy frequency into a pre-trained working condition classification model to obtain the working condition of the equipment to be detected; The working condition classification model is obtained by predicting the working condition type based on the sample audio features of the sample audio, and training with the goal of minimizing the cross entropy loss function between the predicted working condition and the pre-labeled sample working condition.

9. The method according to claim 7, characterized in that: The training process of the foreign sound detection model includes: Based on the sample audio of each sample measuring point of the sample detection device collected in advance, determine the sample working condition judgment information and the sample working condition of the sample detection device; wherein the sample audio is the audio collected from the sample measuring point corresponding to the sample detection device when the sample detection device does not have any fault; When the sample working condition judgment information indicates that the working condition of the sample detection device is a working condition, each sample audio is input into a pre-built abnormal sound detection model to obtain a reconstruction difference corresponding to each sample audio and a sample detection result corresponding to each sample audio; The model parameters of the foreign sound detection model are adjusted with the goal of minimizing the reconstruction difference corresponding to the sample audio.

10. A device for detecting abnormal sound, characterized in that: include: The first processing module is used to extract the audio of the measuring point corresponding to the device to be detected, and perform noise processing on the audio to obtain the noisy audio corresponding to the measuring point; A second processing module is used to perform denoising and reconstruction processing on the noisy audio based on the working condition of the device to be detected to obtain a reconstructed audio corresponding to the measuring point, and determine a detection result corresponding to the audio of the measuring point based on a reconstruction difference between the audio and the reconstructed audio, wherein the detection result indicates whether the audio of the measuring point is abnormal; The noise adding processing algorithm and the noise removing and reconstruction processing algorithm are determined by performing noise adding and noise removing and reconstruction processing on the normal audio of the corresponding measuring point of the device to be detected.

11. An electronic device, characterized in that: include: Memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the abnormal sound detection method according to any one of claims 1 to 9 by running the program in the memory.

12. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the abnormal sound detection method according to any one of claims 1 to 9 is implemented.

13. A computer program product, characterized in that The method comprises computer program instructions, which, when executed by a processor, enable the processor to implement the abnormal sound detection method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Elevator operation abnormality detection method based on spare denoising self-coding

    CN110550518A

  • Multi-strategy fused nuclear power key equipment fault diagnosis method and system

    CN112036087A

  • Audio anomaly detection method and device, electronic equipment and storage medium

    CN115565525A

  • Motor abnormal voiceprint detection method and device and terminal equipment

    CN116758927A

  • Abnormity detection method and system based on improved noise reduction auto-encoder

    CN117688305A

Cited By

  • A device abnormal audio detection method and system

    CN123095039A