Equipment abnormal sound detection method, device and inspection robot
Through the multi-mic linear array and sound recognition model, the automatic detection and location of abnormal sounds of equipment are realized, solving the problem of low efficiency in the existing technology, and improving the intelligence and maintenance efficiency of equipment monitoring.
Patent Information
- Application Number
- CN202210840946.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-18
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-07-18
AI Technical Summary
In the existing technology, when detecting abnormal sound of equipment, the sound collected by a single pickup has a lot of interference and cannot accurately locate the source of the abnormal sound, resulting in low efficiency and requiring manual investigation one by one.
A multi-mic linear array is used to collect multi-channel original audio data, and Mel spectrum feature extraction and sound recognition models are used to classify and identify sounds, trigger abnormal sound alarms, and determine the location of abnormal sound sources through abnormal sound source localization technology.
It realizes automatic alarm and location of abnormal equipment sounds, reduces manual inspection costs and improves maintenance efficiency.
Smart Images

Figure CN115206341B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of audio signal processing, and in particular to a method, device and inspection robot for detecting abnormal sound of equipment. Background Art
[0002] With the development of production technology, it is normal for enterprises to purchase more and more large-scale equipment in production rooms. Sound is generated by vibration. Under normal circumstances, motors, gears, conveyor belts and other equipment will produce regular vibrations. When the equipment is abnormal, it will generally emit additional abnormal sound characteristics. Abnormal sound detection of equipment plays an important role in intelligent monitoring of enterprises.
[0003] The general method of abnormal sound detection uses a single microphone to extract the audio features of various devices, and then connects them to a hidden Markov model or a vector machine model of traditional machine learning for identification. However, the sound collected by a simple single microphone has a lot of interference, and it is impossible to accurately locate the source of abnormal sounds. Even if an abnormal sound alarm occurs, a large number of devices still need to be manually checked one by one, which is inefficient. Summary of the invention
[0004] In view of this, embodiments of the present application provide a method, device and inspection robot for detecting abnormal sounds of equipment.
[0005] In a first aspect, an embodiment of the present application provides a method for detecting abnormal sound of a device, comprising:
[0006] Collect multi-channel raw audio data through a multi-microphone linear array;
[0007] Performing Mel spectrum feature extraction on the original audio data of each channel to obtain the Mel spectrum of the corresponding channel;
[0008] Use the sound recognition model to classify and recognize sounds based on the Mel spectrum of all channels;
[0009] When abnormal sounds are detected in more than a preset number of channels, an abnormal sound alarm is triggered.
[0010] In some embodiments, after the abnormal sound alarm is triggered, the method further includes:
[0011] The abnormal sound source is located according to the original audio data of the channel where the abnormal sound is located, and the identified abnormal sound data and the location information of the abnormal sound source are sent to the device management platform.
[0012] In some embodiments, locating the abnormal sound source according to the original audio data of the channel where the abnormal sound is located includes:
[0013] According to the sound classification result output by the sound recognition model, extracting the Mel spectrum local response area of the corresponding audio that triggers the abnormal sound alarm through gradient backpropagation;
[0014] Extracting a target Mel frequency range segment from the Mel frequency spectrum local response area of each audio channel, wherein the target Mel frequency range segment is other Mel frequency range segments except the Mel frequency range segment corresponding to the abnormal sound;
[0015] Performing short-time Fourier transform on the original audio data of the channel where the abnormal sound is located to obtain a spectrogram;
[0016] The location of the abnormal sound source is determined according to the spectrogram and the target Mel frequency range segment.
[0017] In some embodiments, determining the location of the abnormal sound source according to the spectrogram and the target Mel frequency range segment includes:
[0018] Performing an inverse Mel frequency transform on the target Mel frequency range segment to calculate a corresponding target sound frequency range segment;
[0019] Setting the amplitude of the target sound frequency range segment to zero to filter the spectrogram to obtain a filtered spectrogram;
[0020] Performing short-time inverse Fourier transform on the filtered spectrum to obtain filtered audio;
[0021] The sound source is located based on the filtered audio of each channel based on the beamforming technology, and the position of the abnormal sound source is calculated.
[0022] In some embodiments, the method of performing sound type recognition using a sound recognition model according to the Mel spectrum of all channels includes:
[0023] Based on the acquisition time of the original audio data, adjusting the number of frames of the Mel spectrum of each channel to obtain a corresponding Mel spectrum frame;
[0024] The Mel spectrum frame of each channel is converted into a two-dimensional image to be input into the sound recognition model for sound classification and recognition, so as to obtain the sound classification results of each channel.
[0025] In some embodiments, the sound recognition model includes an improved batch normalization layer, a first to a fourth bottleneck stacking structure, and a pooling classification layer connected in sequence;
[0026] Among them, the improved batch normalization layer includes a first channel transposition unit, a batch normalization unit and a second channel transposition unit arranged in sequence; the first to fourth bottleneck stacking structures each include at least one bottleneck unit and one maximum pooling unit; the pooling classification layer includes a pooling unit that performs pooling based on the average value and the maximum value of the input feature map.
[0027] In some embodiments, the first bottleneck stacking structure includes one bottleneck unit, the second and third bottleneck stacking structures each include three bottleneck units, and the fourth bottleneck stacking structure includes two bottleneck units; wherein the bottleneck unit is a bottleneck layer in the residual network.
[0028] In a second aspect, an embodiment of the present application provides a device for detecting abnormal sound of a device, comprising:
[0029] A data acquisition module, used to collect multi-channel raw audio data through a multi-microphone linear array;
[0030] A data analysis module, used to extract Mel spectrum features from the original audio data of each channel to obtain the Mel spectrum of the corresponding channel;
[0031] A model recognition module is used to classify and recognize sounds using a sound recognition model based on the Mel spectra of all channels;
[0032] The abnormal alarm module is used to trigger an abnormal sound alarm when it is identified that there are abnormal sounds in more than a preset number of channels.
[0033] In a third aspect, an embodiment of the present application provides an inspection robot, which includes a multi-microphone linear array, a processor and a memory, wherein the multi-microphone linear array is used to collect multi-channel raw audio data, the memory stores a computer program, and the processor is used to execute the computer program to implement the above-mentioned device abnormal sound detection method.
[0034] In a fourth aspect, an embodiment of the present application provides a readable storage medium storing a computer program, which, when executed on a processor, implements the above-mentioned method for detecting abnormal sound of a device.
[0035] The embodiments of the present application have the following beneficial effects:
[0036] The device abnormal sound detection method of the present application uses a multi-microphone linear array to collect multi-channel raw audio data in real time, and extracts Mel spectrum features from the raw audio data to obtain the Mel spectrum of the corresponding channel; then, the sound classification and recognition is performed based on the Mel spectrum of all channels using the sound recognition model constructed in advance, and when abnormal sounds are detected in more than a preset number of channels, an abnormal sound alarm is triggered. This method can solve the problem of abnormal sound detection of equipment and automatically alarm when abnormal sounds occur, realizing intelligent monitoring and reducing labor costs; in addition, the raw data collected based on the multi-microphone linear array can be further used to locate abnormal sound sources, etc., so that there is no need for manual investigation one by one, which can greatly improve maintenance efficiency, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A schematic diagram of the structure of the inspection robot according to an embodiment of the present application is shown;
[0039] Figure 2 A schematic diagram of the structure of a four-microphone linear array according to an embodiment of the present application is shown;
[0040] Figure 3 A first flow chart of a method for detecting abnormal sound of a device according to an embodiment of the present application is shown;
[0041] Figure 4 A schematic diagram showing the structure of a sound recognition model according to an embodiment of the present application is shown;
[0042] Figure 5 A schematic diagram of the structure of an improved batch normalization layer in an embodiment of the present application is shown;
[0043] Figure 6 A schematic diagram of the structure of a pooling classification layer based on a combination of average value and maximum value in an embodiment of the present application is shown;
[0044] Figure 7 A second flow chart of the abnormal sound detection method of the device according to the embodiment of the present application is shown;
[0045] Figure 8 A flowchart of abnormal sound source localization according to an embodiment of the present application is shown;
[0046] Fig.9A and Fig. 9BThe schematic diagrams of the Mel spectrum input of one audio channel and the Mel spectrum local response area obtained based on gradient feedback are shown respectively;
[0047] Fig.10 A schematic diagram of the structure of an abnormal sound detection device for equipment according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0049] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0050] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0051] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0052] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0053] Please refer to Figure 1, which is a schematic diagram of the structure of the inspection robot proposed in the embodiment of the present application. Exemplarily, the inspection robot may include a memory 11, a processor 12 and a sound perception unit 13, wherein the memory 11, the processor 12 and the sound perception unit 13 are electrically connected to each other directly or indirectly to achieve data transmission or interaction.
[0054] In this embodiment, the memory 11 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 11 is used to store a computer program, and the processor 12 may execute the computer program accordingly after receiving an execution instruction.
[0055] In this embodiment, the processor 12 may be an integrated circuit chip with signal processing capability. The processor 12 may be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and may implement or execute the disclosed methods, steps, and logic block diagrams in the embodiments of the present application.
[0056] In this embodiment, the sound sensing unit 13 is mainly a microphone, which is used to collect sound signals from the external environment. Preferably, the inspection robot will use a multi-microphone linear array, such as Figure 2As shown, the embodiment of the present application adopts a four-microphone linear array, specifically including a four-channel audio input composed of microphones m1~m4, and a four-channel audio output out1~out4, which is used to directly output the original audio data collected by m1~m4 through a processing unit (DSP); in addition, it also includes channels out5~out6 for outputting the audio of two speakers, and a channel speech out, which is used to output the interference-free audio data after the audio signal of the six-channel input is denoised and echo-cancelled using a third-party audio processing library. It can be understood that in actual use, when workers are performing maintenance, they can use the voice intercom function on the inspection robot on the robot side to make a voice call with the central control room within the local area network.
[0057] Based on the above-mentioned inspection robot structure, an embodiment of the present application proposes a method for detecting abnormal sound of equipment, which can be applied to robot inspection scenarios of equipment such as pipe belt conveyors. The method performs sound anomaly detection based on a multi-microphone linear array to promptly remind equipment of abnormalities, etc.; in addition, after an abnormal sound alarm occurs, the approximate location of the source of the abnormal sound can be located and uploaded to the equipment management platform for subsequent maintenance workers to repair the equipment, etc.
[0058] like Figure 3 As shown, exemplarily, the abnormal sound detection method of the device includes steps S110 to S140:
[0059] S110 collects multi-channel raw audio data through a multi-microphone linear array.
[0060] Exemplarily, when using a multi-microphone linear array to collect audio data, real-time collection can be performed according to a preset sampling period, and each collection can be performed for a preset duration. For example, audio data of a duration of 3s to 5s can be collected each time. The specific duration is not limited here and can be adjusted according to actual needs. It can be understood that the number of channels here corresponds to the number of microphones, such as Figure 2 The four-microphone linear array shown in the figure will obtain the original audio data output by the four channels out1 to out4.
[0061] S120, performing Mel spectrum feature extraction on the original audio data of each channel to obtain the Mel spectrum of the corresponding channel.
[0062] Among them, the Mel spectrum largely retains the information needed by the human ear to understand the original speech, so here the Mel spectrum feature extraction is performed on the original audio data. Regarding the feature extraction of the Mel spectrum, it is not described in detail here, and the details can be found in the relevant literature that has been published.
[0063] S130, performing sound classification and recognition using a sound recognition model according to the mel spectrograms of all channels.
[0064] The sound recognition model is obtained through pre-training and is used to classify and recognize sounds. For example, it can be a classification result of whether there is an abnormal sound or no abnormal sound in the output audio. It can be understood that the abnormal sound mainly refers to one or more sounds generated by the corresponding device when it is abnormal.
[0065] Taking the pipe conveyor equipment as an example, the abnormal sound may include but is not limited to abnormal noise of the motor, knocking of the metal bracket, interference of the roller, etc. For example, when the roller is damaged, it is easy to break into two parts. Under the transmission of the pipe conveyor, the two broken parts are constantly colliding and making abnormal sounds. This kind of sound is the abnormal sound of roller interference.
[0066] In one embodiment, the above-mentioned sound recognition model is obtained by improving the audio pre-trained neural network (PANNs), and the improved model structure is as follows: Figure 4 Specifically, the sound recognition model includes an improved batch normalization layer (denoted as Mel BN structure), the first to fourth bottleneck stacking structures and a pooling classification layer (denoted as Meanmaxpool layer) connected in sequence. The improved batch normalization layer is used as the input layer of the model to perform batch normalization processing on the input Mel spectrum feature map in the audio time series. Figure 5 As shown in the figure, the Mel BN structure includes a first channel transposition unit (i.e., transpose), a batch normalization unit (i.e., BN), and a second channel transposition unit, which are arranged in sequence. It is worth noting that, unlike batch normalization in computer vision, the amplitudes corresponding to each Mel frequency are independent of each other. The Mel BN structure only performs batch normalization in the dimension of time series. The advantage is that it ensures easier convergence while highlighting the change of each Mel frequency energy in the time dimension, so that the detection of abnormal sounds with different frequency distributions has better robustness. According to the ablation experiment test, the Mel BN structure can increase the mAP of abnormal sound recognition classification by 1.7%.
[0067] Among them, the first to fourth bottleneck stacking structures are mainly used to deepen the network depth to extract deeper features. In one embodiment, each of the four bottleneck stacking structures includes at least one bottleneck unit (referred to as a CBR structure) and a maximum pooling unit (max pool). For example, the first bottleneck stacking structure includes a bottleneck unit (such as Figure 4 The second and third bottleneck stacking structures each include three bottleneck units (e.g. Figure 4 The fourth bottleneck stacking structure includes two bottleneck units (such as Figure 4It should be understood that the number of these bottleneck stacking structures can be increased or decreased according to actual needs, and the number of bottleneck units in each bottleneck stacking structure can also be adaptively adjusted. For example, the bottleneck unit in each bottleneck stacking structure can be implemented by using the bottleneck layer in the residual (resnet) network.
[0068] It can be understood that in sound classification, the stacking basis in the original PANNs network is convolution, normalization and Relu activation, which will cause the gradient vanishing problem in deeper networks. Therefore, this embodiment adopts a stacking structure of multiple CBR*n, which can deepen the network depth without significantly increasing the amount of model calculation, thereby improving the accuracy of multiple abnormal sound recognition and classification. After ablation experiment testing, after adopting the above-mentioned bottleneck stacking structure, the abnormal sound recognition and classification mAP can be improved by 3%.
[0069] Among them, the Meanmax pool layer is used to reduce the dimension of features and classify the output, such as Figure 6 As shown, the pooling classification layer may include a pooling unit and a classification function based on the combination of the mean and maximum values of the input feature map. Compared with the solution of using the global average pooling / global maximum pooling layer alone for dimensionality reduction, this embodiment can enhance the feature representation capability by combining the mean and maximum values of the feature map. According to the ablation experiment test, the abnormal sound recognition classification mAP increased by 2% and 1.4% respectively when the meanmax pool structure was used compared with the global average / maximum pooling structure.
[0070] After constructing the network model of the above structure, the above sound recognition model can be obtained through further training, and then deployed to the inspection robot. It can be understood that this embodiment improves the structure of the existing PANNs network. On the one hand, the improved network can have better accuracy and robustness for sound classification and recognition. On the other hand, it also fully considers that the inspection robot, as an edge processing device, is often restricted by hardware in terms of its computing and processing capabilities.
[0071] For the above step S130, illustratively, the number of frames of the Mel spectrum of each channel can be adjusted according to the acquisition time and sampling rate of the original audio data to obtain corresponding Mel spectrum frames; then, the Mel spectrum frames of each channel are converted into two-dimensional images to be input into the above-mentioned trained sound recognition model for sound classification and recognition, thereby obtaining sound classification results for each channel.
[0072] Among them, the above-mentioned frame number adjustment mainly depends on the input size of the above-mentioned sound recognition model. Since the abnormal sound of the device is generally highly periodic, the audio data within 3s is basically sufficient to characterize this type of abnormal sound. Therefore, taking the original audio data of 3s length as an example, assuming that the sampling rate sr is 16000, the Hamming window size n_fft=512, the adjacent frame offset hop_length=320, and the number of Mel filters is n_mel=64, the number of Mel spectrum frames of 3s audio is seq_len=(3*sr-n_fft) / hop_length+1, such as 160 frames. Thus, the two-dimensional data with Mel spectrum input of [160, 64] is obtained. It can be understood that the original PANNs input is 1000 frames, and here it is adjusted to 160 frames (only as an example), which greatly speeds up the algorithm operation efficiency and reduces the computing pressure of the edge computing device. The adjusted target frame number can be adaptively adjusted according to the audio duration and sampling rate of each acquisition, which is not limited here.
[0073] S140, when it is identified that more than a preset number of channels have abnormal sounds, an abnormal sound alarm is triggered.
[0074] The preset number can be adaptively set according to the total number of channels and the strictness of the scene for sound recognition, etc., and is not limited here. For example, taking the above four channels as an example, it can be set that when abnormal sounds are recognized in the audio input from more than two channels, an abnormal sound alarm is triggered to remind the staff to repair in time, etc. On the contrary, if abnormal sounds are not recognized in the corresponding number of channels, return to the above step S110 to continue abnormal sound detection.
[0075] As a preferred solution, the method also includes automatically locating the abnormal sound source and uploading relevant information such as the audio data of the abnormal sound and the location of the abnormal sound source to the management platform, so as to record the equipment operation status and prompt maintenance workers to perform equipment maintenance.
[0076] For example, Figure 7 As shown, the abnormal sound detection method of the device further includes step S150:
[0077] S150, locating the abnormal sound source according to the original audio data of the channel where the abnormal sound is located, and sending the identified abnormal sound data and the positioning information of the abnormal sound source to the device management platform.
[0078] In one embodiment, Figure 8 As shown in Figure 1, the process of locating abnormal sound sources mainly includes:
[0079] S210, extracting the Mel spectrum local response area of the corresponding audio that triggers the abnormal sound alarm through gradient feedback according to the sound classification result output by the sound recognition model.
[0080] Among them, the gradient backpropagation is mainly to update the gradient of the network once according to the classification output result of the model. For example, the GradCam algorithm can be used to take the gradient output of the last convolutional layer, calculate the response heat map of the convolutional layer, and then restore the original Mel spectrum input size through upsampling interpolation to determine the local response area of the Mel spectrum. For example, Fig. 9A The figure shows the Mel spectrum input of a certain audio channel. Fig. 9B The figure shows a schematic diagram of the corresponding Mel spectrum local response area extracted based on gradient feedback, wherein the frequency domain direction (y direction) component of the area pointed by the arrow is the Mel frequency range segment of the abnormal sound.
[0081] S220, extracting a target mel frequency range segment from the mel frequency spectrum local response area of each audio channel; the target mel frequency range segment is other mel frequency range segments except the mel frequency range segment corresponding to the abnormal sound.
[0082] S230, performing short-time Fourier transform on the original audio data of the channel where the abnormal sound is located to obtain a spectrum diagram.
[0083] S240: Determine the location of the abnormal sound source according to the spectrum diagram and the target Mel frequency range segment.
[0084] Exemplarily, when determining the location of the abnormal sound source, the above-mentioned target Mel frequency range segment can be subjected to Mel frequency inverse transformation to calculate the corresponding target sound frequency range segment; then, the amplitude of the target sound frequency range segment is set to zero to filter the spectrogram to obtain a filtered spectrogram; the filtered spectrogram is subjected to short-time Fourier inverse transformation to obtain filtered audio. It can be understood that the obtained filtered audio output suppresses other sounds other than abnormal sounds to prevent interference with subsequent sound source positioning. For example, the sound of roller interference appears at the front point of a high-speed transmission belt conveyor, but because the motor sound is loud, if the motor sound is not suppressed, the sound source positioning algorithm often locates the motor sound position instead of the roller interference sound position. Finally, the sound source is located based on the beamforming technology according to the filtered audio of each channel where abnormal sound exists, and the location of the abnormal sound source is obtained. It can be understood that selecting multi-channel original audio data for abnormal sound recognition and sound source positioning, using original audio data instead of audio data processed by denoising, echo cancellation, etc., has the advantage of retaining the most complete abnormal sound data and preventing too many abnormal sound features from being lost during audio processing.
[0085] The abnormal sound detection method for equipment in the embodiment of the present application adopts a multi-microphone array and an improved model to perform abnormal sound recognition and abnormal sound alarm, etc., which can solve the problem of abnormal sound detection of equipment and automatically alarm when abnormal sound occurs, thereby realizing intelligent monitoring and reducing labor costs; in addition, the abnormal sound source can be further located based on the original data collected by the multi-microphone linear array, etc., which does not require manual investigation one by one, and can greatly improve maintenance efficiency, etc.
[0086] Please refer to Fig.10 Based on the method of the above embodiment, this embodiment proposes a device abnormal sound detection device 100. Exemplarily, the device abnormal sound detection device 100 includes:
[0087] The data acquisition module 110 is used to collect multi-channel original audio data through a multi-microphone linear array.
[0088] The data analysis module 120 is used to extract Mel spectrum features from the original audio data of each channel to obtain the Mel spectrum of the corresponding channel.
[0089] The model recognition module 130 is used to perform sound classification and recognition using a sound recognition model according to the Mel-spectrograms of all channels.
[0090] The abnormal alarm module 140 is used to trigger an abnormal sound alarm when it is identified that there are abnormal sounds in more than a preset number of channels.
[0091] Furthermore, the device abnormal sound detection apparatus 100 also includes a sound source localization module, which is used to localize the abnormal sound source according to the original audio data of the channel where the abnormal sound is located, and send the identified abnormal sound data and the localization information of the abnormal sound source to the device management platform.
[0092] It can be understood that the device of this embodiment corresponds to the method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.
[0093] The present application also provides a readable storage medium for storing the computer program used in the above-mentioned inspection robot.
[0094] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0095] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0096] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0097] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A method for detecting abnormal sound of equipment, characterized in that: include: Collect multi-channel raw audio data through a multi-microphone linear array; Performing Mel spectrum feature extraction on the original audio data of each channel to obtain the Mel spectrum of the corresponding channel; Use the sound recognition model to classify and recognize sounds based on the Mel spectrum of all channels; When abnormal sound is detected in more than a preset number of channels, an abnormal sound alarm is triggered; The abnormal sound source is located according to the original audio data of the channel where the abnormal sound is located, including: According to the sound classification result output by the sound recognition model, the Mel spectrum local response area of the corresponding audio that triggers the abnormal sound alarm is extracted through gradient feedback; from the Mel spectrum local response area of each audio channel, a target Mel frequency range segment is extracted, and the target Mel frequency range segment is other Mel frequency range segments except the Mel frequency range segment corresponding to the abnormal sound; the original audio data of the channel where the abnormal sound is located is subjected to short-time Fourier transform to obtain a spectrogram; according to the spectrogram and the target Mel frequency range segment, the location of the abnormal sound source is determined; Among them, the spectrum graph is filtered and short-time Fourier inverse transformed based on the target Mel frequency range segment to obtain filtered audio; sound source positioning is performed based on the beamforming technology according to the filtered audio of each channel with abnormal sound to obtain the position of the abnormal sound source.
2. The device abnormal sound detection method according to claim 1, characterized in that: After the abnormal sound alarm is triggered, the method further includes: The identified abnormal sound data and the location information of the abnormal sound source are sent to the device management platform.
3. The device abnormal sound detection method according to claim 1, characterized in that: The filtering and inverse short-time Fourier transform of the spectrum graph based on the target Mel frequency range to obtain filtered audio includes: Performing an inverse Mel frequency transform on the target Mel frequency range segment to calculate a corresponding target sound frequency range segment; Setting the amplitude of the target sound frequency range segment to zero to filter the spectrogram to obtain a filtered spectrogram; Performing short-time inverse Fourier transform on the filtered spectrum to obtain filtered audio.
4. The device abnormal sound detection method according to any one of claims 1 to 3, characterized in that: The method of performing sound type recognition using a sound recognition model according to the Mel spectrum of all channels includes: Based on the acquisition time of the original audio data, adjusting the number of frames of the Mel spectrum of each channel to obtain a corresponding Mel spectrum frame; The Mel spectrum frame of each channel is converted into a two-dimensional image to be input into the sound recognition model for sound classification and recognition, so as to obtain the sound classification results of each channel.
5. The device abnormal sound detection method according to any one of claims 1 to 3, characterized in that: The sound recognition model includes an improved batch normalization layer, a first to a fourth bottleneck stacking structure, and a pooling classification layer connected in sequence; Among them, the improved batch normalization layer includes a first channel transposition unit, a batch normalization unit and a second channel transposition unit arranged in sequence; the first to fourth bottleneck stacking structures each include at least one bottleneck unit and one maximum pooling unit; the pooling classification layer includes a pooling unit that performs pooling based on the average value and the maximum value of the input feature map.
6. The device abnormal sound detection method according to claim 5, characterized in that: The first bottleneck stacking structure includes one bottleneck unit, the second and third bottleneck stacking structures each include three bottleneck units, and the fourth bottleneck stacking structure includes two bottleneck units; wherein the bottleneck unit is a bottleneck layer in the residual network.
7. A device for detecting abnormal sound of equipment, characterized in that: include: A data acquisition module, used to collect multi-channel raw audio data through a multi-microphone linear array; A data analysis module, used to extract Mel spectrum features from the original audio data of each channel to obtain the Mel spectrum of the corresponding channel; A model recognition module is used to classify and recognize sounds using a sound recognition model based on the Mel spectra of all channels; An abnormal alarm module is used to trigger an abnormal sound alarm when abnormal sounds are detected in more than a preset number of channels; A sound source localization module, used for localizing the abnormal sound source according to the original audio data of the channel where the abnormal sound is located, comprises: According to the sound classification result output by the sound recognition model, the Mel spectrum local response area of the corresponding audio that triggers the abnormal sound alarm is extracted through gradient feedback; from the Mel spectrum local response area of each audio channel, a target Mel frequency range segment is extracted, and the target Mel frequency range segment is other Mel frequency range segments except the Mel frequency range segment corresponding to the abnormal sound; the original audio data of the channel where the abnormal sound is located is subjected to short-time Fourier transform to obtain a spectrogram; according to the spectrogram and the target Mel frequency range segment, the location of the abnormal sound source is determined; Among them, the spectrum graph is filtered and short-time Fourier inverse transformed based on the target Mel frequency range segment to obtain filtered audio; sound source positioning is performed based on the beamforming technology according to the filtered audio of each channel with abnormal sound to obtain the position of the abnormal sound source.
8. A patrol robot, characterized in that: The inspection robot includes a multi-microphone linear array, a processor and a memory, the multi-microphone linear array is used to collect multi-channel raw audio data, the memory stores a computer program, and the processor is used to execute the computer program to implement the abnormal sound detection method for equipment described in any one of claims 1-6.
9. A readable storage medium, characterized in that: It stores a computer program, which, when executed on a processor, implements the device abnormal sound detection method according to any one of claims 1-6.
Citation Information
Patent Citations
Bottleneck and channel segmentation-based lightweight speaker identification method and system
CN114220438A
