A method and device for detecting abnormal sound of micromotor
The micromotor sound signals are collected by sensing equipment and combined with the deep residual shrinkage network model for abnormal sound detection, which solves the problems of low efficiency and high misjudgment rate in the existing technology, and achieves efficient identification of abnormal micromotor sounds.
Patent Information
- Application Number
- CN202410944209.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-12
AI Technical Summary
The existing micromotor abnormal sound detection methods are inefficient and the results are greatly affected by experience, resulting in misdiagnosis of faults.
Sensing equipment is used to collect micromotor sound signals. Through preprocessing, classification and decomposition, combined with the SGE module, Dropout layer and deep residual shrinkage network model, an improved deep residual shrinkage network model is generated for training to achieve abnormal sound detection.
It improves the identification efficiency and accuracy of abnormal sounds of micromotors, reduces misidentifications, and has strong adaptability.
Smart Images

Figure CN118501691B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for detecting abnormal noise of a micromotor. Background Art
[0002] Micromotors are widely used electric motors and play an important role in the fields of household appliances, aerospace, automobile manufacturing, medical equipment, etc. However, due to quality control problems in the manufacturing process or wear and tear caused by long-term operation, micromotors may have abnormal noise failures, which will affect the normal operation of the machine or even cause damage. At present, traditional abnormal noise detection methods mainly rely on manual hearing or simple signal processing technology, but these methods are not only inefficient, but the results are also greatly affected by the experience and subjective judgment of the inspectors, and the detection and recognition accuracy is low, which leads to the problem of misjudgment of faults.
[0003] Therefore, a method and device for detecting abnormal sounds of micromotors are provided, which can intelligently detect and identify various abnormal sounds generated by the micromotors during operation, reduce the misidentification of abnormal sounds of the micromotors, and help improve the efficiency and accuracy of abnormal sound detection and identification of the micromotors. Summary of the invention
[0004] The present invention provides a method and a device for detecting abnormal sound of a micromotor, which can improve the efficiency and accuracy of detecting and identifying abnormal sound of the micromotor.
[0005] In order to solve the above technical problems, the first aspect of the present invention discloses a method for detecting abnormal noise of a micromotor, the method comprising:
[0006] The sound signal of the micromotor in a preset state is collected by a sensor device;
[0007] Preprocessing the sound signal to obtain a processed audio signal data set, wherein the audio signal data set includes a plurality of audio signal segments, and classifying and decomposing the audio signal data set to obtain a training data set and a verification data set of a foreign sound signal;
[0008] The SGE module, the Dropout layer and the deep residual shrinkage network model are integrated to generate an improved deep residual shrinkage network model, and the training data set and the verification data set are input into the improved deep residual shrinkage network model for training and parameter adjustment respectively to obtain a final foreign sound detection model;
[0009] The pre-acquired abnormal sound test data is input into the abnormal sound detection model for recognition and classification to obtain the final abnormal sound recognition and classification result.
[0010] As an optional implementation, in the first aspect of the present invention, the types of the preset states include: normal operation state, foreign matter fault state, poor assembly fault state and gear meshing fault state;
[0011] The preprocessing of the sound signal to obtain a processed audio signal data set includes:
[0012] The sound signal is sampled according to the Nyquist sampling theorem, a preset sampling point and a preset sampling frequency to obtain a sampled audio signal data set, wherein the audio signal data set includes a plurality of audio signal segments of preset duration.
[0013] As an optional implementation, in the first aspect of the present invention, the classification and decomposition operations are performed on the audio signal data set to obtain a training data set, a test data set and a verification data set of foreign sound signals, including:
[0014] Marking and classifying the audio signal data set according to the type of each preset state to obtain an audio signal classification set corresponding to each type;
[0015] Decomposing each audio signal segment in all audio signal classification sets by an empirical Fourier decomposition algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment after processing, and selecting target component data with the highest frequency component from the component data corresponding to each audio signal segment as the fault characteristic component corresponding to the audio signal segment, wherein the component data includes time domain data and frequency domain data corresponding to each audio signal segment;
[0016] According to a preset segmentation ratio, sample segmentation is performed on the fault feature components corresponding to the audio signal segments in all audio signal classification sets to obtain a training data set, a test data set and a verification data set of the segmented abnormal sound signals.
[0017] As an optional implementation, in the first aspect of the present invention, the decomposing each audio signal segment in all audio signal classification sets by using an empirical Fourier decomposition algorithm comprises:
[0018] Divide each audio signal segment in all audio signal classification sets within a preset angular frequency range by using a spectrum segmentation technology to obtain N angular frequency segments corresponding to each audio signal segment within the preset angular frequency range;
[0019] Extract the spectrum values corresponding to the first preset angular frequency, the second preset angular frequency and the local extreme value of each audio signal segment within the preset angular frequency range as the target sequence, and arrange the amplitudes in the target sequence in descending order to obtain the angular frequency corresponding to the maximum value of the first N amplitudes Array sequence of , the first preset angular frequency is expressed as , the second preset angular frequency is expressed as ;
[0020] Define a boundary signal expression formula corresponding to the first preset angular frequency and the second preset angular frequency in the frequency sequence, and obtain a boundary signal according to the boundary signal expression formula ;
[0021] Wherein, the expression formula of the boundary signal is:
[0022]
[0023] Among them, the express and The spectrum value between Expressed as When the minimum value is obtained in the domain The corresponding value, n represents the number of decomposed components;
[0024] According to the boundary signal Construct a zero-phase filter bank;
[0025] The boundary signal is filtered by the zero-phase filter bank. A filtering operation is performed to obtain a filtered signal after the filtering operation, and a transform operation is performed on the filtered signal through an inverse Fourier transform algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment.
[0026] As an optional implementation, in the first aspect of the present invention, the improved deep residual shrinkage network model includes at least one improved residual module, the improved residual module includes: an SGE module, a BasicBlock layer, a Bottleneck layer, a soft threshold function layer and an attention layer, the SGE module is used to group the input training data set and enhance the spatial features of the training data set;
[0027] The BasicBlock layer includes at least a first convolutional layer, a second convolutional layer and a Dropout layer, and the Bottleneck layer includes a third convolutional layer, a fourth convolutional layer and a fifth convolutional layer;
[0028] The first convolution layer and the second convolution layer use 3*1 convolution kernels, a batch normalization layer and an activation function layer are connected after the first convolution layer, a batch normalization layer is connected after the second convolution layer, and the Dropout layer is used to remove overfitting;
[0029] The third convolution layer and the fifth convolution layer use a 1*1 convolution kernel, the fourth convolution layer uses a 3*1 convolution kernel, the third convolution layer and the fourth convolution layer are respectively connected to a batch normalization layer and an activation function layer, the fifth convolution layer is connected to a batch normalization layer, the third convolution layer is used to reduce the dimension, the fourth convolution layer is used to perform feature extraction, and the fifth convolution layer is used to restore the dimension.
[0030] As an optional implementation, in the first aspect of the present invention, the inputting the training data set and the verification data set into the improved deep residual shrinkage network model for training and parameter adjustment respectively includes:
[0031] The cross entropy loss function is used as the loss function of the improved deep residual shrinkage network model, the training data set and the verification data set are input into the improved deep residual shrinkage network model, the initial learning rate of the training operation is set to 0.001, the preset number of iterations of the training operation is set to 300 times, the improved deep residual shrinkage network model is iteratively trained, and the parameter optimization operation of the improved deep residual shrinkage network model is performed through Adam, SGD optimizer and the verification data set.
[0032] As an optional implementation, in the first aspect of the present invention, the preset segmentation ratio is expressed as: the data volume of the training data set: the data volume of the verification data set = 7:3;
[0033] The iterative training operation on the improved deep residual shrinkage network model includes:
[0034] Performing an iterative training operation on the improved deep residual shrinkage network model to obtain a target model, and judging whether the target model tends to converge according to a loss function;
[0035] When it is determined that the target model has not converged, re-inputting the training data set and the verification data set into the target model, and repeatedly performing the iterative training operation on the target model;
[0036] When it is determined that the target model tends to converge, the iterative training operation is stopped to obtain a final foreign sound detection model.
[0037] The second aspect of the present invention discloses a micromotor abnormal noise detection device, the device comprising:
[0038] A collection module, used for collecting sound signals of the micromotor in a preset state through a sensor device;
[0039] A preprocessing module, configured to preprocess the sound signal collected by the collection module to obtain a processed audio signal data set, wherein the audio signal data set includes a plurality of audio signal segments;
[0040] A classification and decomposition module, used to classify and decompose the audio signal data set obtained by the preprocessing module to obtain a training data set and a verification data set of foreign sound signals;
[0041] A fusion module is used to fuse the SGE module, the Dropout layer and the deep residual shrinkage network model to generate an improved deep residual shrinkage network model;
[0042] A parameter adjustment training module, used for inputting the training data set and the verification data set obtained by the classification decomposition module into the improved deep residual shrinkage network model generated by the fusion module for training and parameter adjustment operations respectively, so as to obtain a final foreign sound detection model;
[0043] The recognition module is used to input the pre-acquired abnormal sound test data into the abnormal sound detection model obtained by the parameter adjustment training module for recognition and classification, so as to obtain the final abnormal sound recognition and classification results.
[0044] As an optional implementation, in the second aspect of the present invention, the types of the preset states include: normal operation state, foreign matter fault state, poor assembly fault state and gear meshing fault state;
[0045] The specific method in which the preprocessing module preprocesses the sound signal to obtain the processed audio signal data set is:
[0046] The sound signal is sampled according to the Nyquist sampling theorem, a preset sampling point and a preset sampling frequency to obtain a sampled audio signal data set, wherein the audio signal data set includes a plurality of audio signal segments of preset duration.
[0047] As an optional implementation, in the second aspect of the present invention, the classification and decomposition module performs classification and decomposition operations on the audio signal data set to obtain a training data set and a verification data set of foreign sound signals in the following specific manner:
[0048] Marking and classifying the audio signal data set according to the type of each preset state to obtain an audio signal classification set corresponding to each type;
[0049] Decomposing each audio signal segment in all audio signal classification sets by an empirical Fourier decomposition algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment after processing, and selecting target component data with the highest frequency component from the component data corresponding to each audio signal segment as the fault characteristic component corresponding to the audio signal segment, wherein the component data includes time domain data and frequency domain data corresponding to each audio signal segment;
[0050] The fault feature components corresponding to the audio signal segments in all audio signal classification sets are sample segmented according to a preset segmentation ratio to obtain a training data set and a verification data set of segmented abnormal sound signals.
[0051] As an optional implementation, in the second aspect of the present invention, the classification decomposition module decomposes each audio signal segment in all audio signal classification sets by using an empirical Fourier decomposition algorithm in a specific manner as follows:
[0052] Divide each audio signal segment in all audio signal classification sets within a preset angular frequency range by using a spectrum segmentation technology to obtain N angular frequency segments corresponding to each audio signal segment within the preset angular frequency range;
[0053] Extract the spectrum values corresponding to the first preset angular frequency, the second preset angular frequency and the local extreme value of each audio signal segment within the preset angular frequency range as the target sequence, and arrange the amplitudes in the target sequence in descending order to obtain the angular frequency corresponding to the maximum value of the first N amplitudes Array sequence of , the first preset angular frequency is expressed as , the second preset angular frequency is expressed as ;
[0054] Define a boundary signal expression formula corresponding to the first preset angular frequency and the second preset angular frequency in the frequency sequence, and obtain a boundary signal according to the boundary signal expression formula ;
[0055] The boundary signal is expressed as follows:
[0056]
[0057] Among them, the express and The spectrum value between Expressed as When the minimum value is obtained in the domain The corresponding value, n represents the number of decomposed components;
[0058] According to the boundary signal Construct a zero-phase filter bank;
[0059] The boundary signal is filtered by the zero-phase filter bank. A filtering operation is performed to obtain a filtered signal after the filtering operation, and a transform operation is performed on the filtered signal through an inverse Fourier transform algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment.
[0060] As an optional implementation, in the second aspect of the present invention, the improved deep residual shrinkage network model includes at least one improved residual shrinkage module, and the improved residual shrinkage module includes: an SGE module, a BasicBlock layer, a Bottleneck layer, a soft threshold function layer and an attention layer;
[0061] The BasicBlock layer includes at least a first convolutional layer, a second convolutional layer and a Dropout layer, the Bottleneck layer includes a third convolutional layer, a fourth convolutional layer and a fifth convolutional layer, and the SGE module is used to group the input training data set and enhance the spatial features of the training data set;
[0062] The first convolution layer and the second convolution layer use 3*1 convolution kernels, a batch normalization layer and an activation function layer are connected after the first convolution layer, a batch normalization layer is connected after the second convolution layer, and the Dropout layer is used to remove overfitting;
[0063] The third convolution layer and the fifth convolution layer use a 1*1 convolution kernel, the fourth convolution layer uses a 3*1 convolution kernel, the third convolution layer and the fourth convolution layer are respectively connected to a batch normalization layer and an activation function layer, the fifth convolution layer is connected to a batch normalization layer, the third convolution layer is used to reduce the dimension, the fourth convolution layer is used to perform feature extraction, and the fifth convolution layer is used to restore the dimension.
[0064] As an optional implementation, in the second aspect of the present invention, the specific manner in which the parameter adjustment training module inputs the training data set and the verification data set into the improved deep residual shrinkage network model for training and parameter adjustment operations respectively is:
[0065] The cross entropy loss function is used as the loss function of the improved deep residual shrinkage network model, the training data set and the verification data set are input into the improved deep residual shrinkage network model, the initial learning rate of the training operation is set to 0.001, the preset number of iterations of the training operation is set to 300 times, the improved deep residual shrinkage network model is iteratively trained, and the parameter optimization operation of the improved deep residual shrinkage network model is performed through Adam, SGD optimizer and the verification data set.
[0066] As an optional implementation, in the second aspect of the present invention, the preset segmentation ratio is expressed as: the data volume of the training data set: the data volume of the verification data set = 7:3;
[0067] The specific method in which the parameter adjustment training module performs iterative training operations on the improved deep residual shrinkage network model is:
[0068] Performing an iterative training operation on the improved deep residual shrinkage network model to obtain a target model, and judging whether the target model tends to converge according to a loss function;
[0069] When it is determined that the target model has not converged, re-inputting the training data set and the verification data set into the target model, and repeatedly performing the iterative training operation on the target model;
[0070] When it is determined that the target model tends to converge, the iterative training operation is stopped to obtain a final foreign sound detection model.
[0071] The third aspect of the present invention discloses another micromotor abnormal noise detection device, the device comprising:
[0072] A memory storing executable program code;
[0073] a processor coupled to the memory;
[0074] The processor calls the executable program code stored in the memory to execute the micromotor abnormal sound detection method disclosed in the first aspect of the present invention.
[0075] The fourth aspect of the present invention discloses a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the micromotor abnormal sound detection method disclosed in the first aspect of the present invention.
[0076] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0077] The present invention provides a method and device for detecting abnormal sound of a micromotor. The method comprises: collecting sound signals of a micromotor in a preset state by a sensing device, preprocessing the sound signals to obtain a processed audio signal data set, classifying and decomposing the audio signal data set to obtain a training data set and a verification data set of abnormal sound signals, fusing an SGE module, a Dropout layer and a deep residual shrinkage network model to generate an improved deep residual shrinkage network model, inputting the training data set and the verification data set into the improved deep residual shrinkage network model for training and parameter adjustment respectively to obtain a final abnormal sound detection model, and inputting the abnormal sound test data acquired in advance into the abnormal sound detection model for recognition and classification to obtain a final abnormal sound recognition and classification result. It can be seen that the implementation of the present invention can collect the sound signal of the micromotor in a preset state through the sensing device, pre-process the sound signal, obtain a processed audio signal data set, classify and decompose the audio signal data set, and obtain a training data set and a verification data set of the abnormal sound signal, so as to facilitate the subsequent detection model training, which is beneficial to improving the recognition efficiency of the abnormal sound of the micromotor; the training data set and the verification data set are input into the fused improved deep residual shrinkage network model for training and parameter adjustment respectively, to obtain the final abnormal sound detection model, which can intelligently identify a variety of abnormal sounds generated in the working process of the micromotor, has strong adaptability, reduces the erroneous recognition of the abnormal sounds of the micromotor, and is beneficial to improving the efficiency and accuracy of abnormal sound detection and recognition of the micromotor. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0079] Figure 1 It is a flow chart of a method for detecting abnormal noise of a micromotor disclosed in an embodiment of the present invention;
[0080] Figure 2 It is a schematic diagram of the time domain and frequency domain of component data with local frequency characteristics disclosed in an embodiment of the present invention;
[0081] Figure 3 is a structural schematic diagram of a basic residual block and a bottleneck block in a residual shrinkage module before improvement disclosed in an embodiment of the present invention;
[0082] Figure 4 A schematic diagram of the structure of an improved residual shrinkage module disclosed in an embodiment of the present invention;
[0083] Figure 5A schematic diagram of a function value range of a zero-phase filter bank disclosed in an embodiment of the present invention;
[0084] Figure 6 It is a flow chart of another method for detecting abnormal sound of a micromotor disclosed in an embodiment of the present invention;
[0085] Figure 7 A schematic structural diagram of a micromotor abnormal noise detection device disclosed in an embodiment of the present invention;
[0086] Figure 8 A schematic structural diagram of another micromotor abnormal noise detection device disclosed in an embodiment of the present invention;
[0087] Fig. 9 A schematic structural diagram of another micromotor abnormal noise detection device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0088] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0089] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.
[0090] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0091] The present invention discloses a method and device for detecting abnormal sound of a micromotor, which can collect the sound signal of the micromotor in a preset state through a sensing device, pre-process the sound signal, obtain a processed audio signal data set, classify and decompose the audio signal data set, obtain a training data set and a verification data set of the abnormal sound signal, so as to facilitate the subsequent detection model training, which is conducive to improving the recognition efficiency of the abnormal sound of the micromotor; the training data set and the verification data set are input into the fused improved deep residual shrinkage network model for training and parameter adjustment respectively, and the final abnormal sound detection model is obtained, which can intelligently identify a variety of abnormal sounds generated during the working process of the micromotor, has strong adaptability, reduces the erroneous recognition of the abnormal sound of the micromotor, and is conducive to improving the efficiency and accuracy of the abnormal sound detection and recognition of the micromotor. The following are detailed descriptions.
[0092] Embodiment 1
[0093] See also Figure 1 , Figure 1 1 is a flow chart of a method for detecting abnormal sound of a micromotor disclosed in an embodiment of the present invention. Figure 1 The micromotor abnormal sound detection method described can be applied to a micromotor abnormal sound detection device. Optionally, the device may include a high-precision microphone, an audio acquisition card, and a computer or server for identification calculations. The computer or server may be a local computer or local server, or a cloud computer or cloud server, which is not limited in the embodiments of the present invention. Figure 1 As shown, the micromotor abnormal sound detection method may include the following operations:
[0094] 101. The sound signal of the micromotor in a preset state is collected by a sensor device, and the sound signal is pre-processed to obtain a processed audio signal data set.
[0095] In the embodiments of the present invention, the micromotor can be used in a control system or a transmission mechanical load to realize functions such as detection, analytical operation, amplification, execution or conversion of electromechanical signals or energy.
[0096] In the embodiment of the present invention, optionally, Fig. 9 As shown, the micromotor abnormal sound detection device includes a motor sample, a microphone, a motor fixture, a universal shaping hose and a base. The experimental acquisition platform can be designed by combining a high-precision microphone, an audio acquisition card and a computer to collect the sound signal audio of the micromotor in a preset state in a silent room. Among them, the types of preset states may include: normal operation state, foreign body fault state, poor assembly fault state and gear meshing fault state, and the audio signal data set may include multiple audio signal segments.
[0097] In an embodiment of the present invention, preprocessing the sound signal to obtain a processed audio signal data set may include:
[0098] The sound signal is sampled according to the Nyquist sampling theorem, a preset sampling point and a preset sampling frequency to obtain a sampled audio signal data set.
[0099] Among them, the frequency of the acoustic signal run by the micromotor is lower than 8000Hz. According to the Nyquist sampling theorem, the preset sampling point can be selected as 32000, and the preset sampling frequency can be selected as 16KHz, that is, the sampling time = sampling point / sampling frequency = 2 seconds. After sampling, multiple audio signal segments with a sampling time of 2 seconds are obtained.
[0100] In this way, the audio signal data set is preprocessed to obtain multiple audio signal segments of the sound signal for subsequent detection model training, which is beneficial to improving the recognition efficiency of micromotor abnormal sound.
[0101] 102. Classify and decompose the audio signal data set to obtain a training data set and a verification data set of the foreign sound signal.
[0102] In an embodiment of the present invention, the audio signal data set is classified and decomposed to obtain a training data set and a verification data set of foreign sound signals, which may include:
[0103] The audio signal data set is marked and classified according to the type of each preset state to obtain an audio signal classification set corresponding to each type.
[0104] Each audio signal segment in all audio signal classification sets is decomposed by an empirical Fourier decomposition algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment after processing, and target component data with the highest frequency component in the component data corresponding to each audio signal segment is selected as the fault feature component corresponding to the audio signal segment, and the component data includes time domain data and frequency domain data corresponding to each audio signal segment.
[0105] The fault feature components corresponding to the audio signal segments in all audio signal classification sets are sample segmented according to a preset segmentation ratio to obtain a training data set and a verification data set of segmented abnormal sound signals.
[0106] In the embodiment of the present invention, optionally, after the decomposition process, the first 6 component data with local frequency characteristics corresponding to each processed audio signal segment (such as Figure 2As shown), the types of component data may include: FIMF1, FIMF2, FIMF3, FIMF4, FIMF5, FIMF6, wherein FIMF6 can retain the original signal characteristics, and FIMF6 with the highest frequency component is selected as the fault characteristic component.
[0107] In the embodiment of the present invention, optionally, the preset segmentation ratio may be: the data volume of the training data set: the data volume of the verification data set = 7:3.
[0108] Such classification and decomposition of the audio signal data set can simplify the complex sound signal and obtain a training data set and a verification data set corresponding to a clear and intuitive abnormal sound signal for subsequent detection model training, which is beneficial to improving the recognition efficiency of micromotor abnormal sound.
[0109] 103. The SGE module, the Dropout layer and the deep residual shrinkage network model are integrated to generate an improved deep residual shrinkage network model. The training data set and the verification data set are input into the improved deep residual shrinkage network model for training and parameter adjustment respectively to obtain the final abnormal sound detection model.
[0110] In an embodiment of the present invention, optionally, SGE (Spatial Group Enhance) is a technology for enhancing the spatial characteristics of feature maps in convolutional neural networks. It extracts global spatial information by grouping feature maps and performing spatial pooling within each group, and then uses this information to modulate the features of each group. Dropout is a regularization technology used to prevent overfitting of neural networks, and it can reduce the interaction between feature detectors (hidden layer nodes) so that the model will not rely too much on certain local features, thereby improving its generalization ability.
[0111] In an embodiment of the present invention, before the training data set and the verification data set are input into the improved deep residual shrinkage network model for training and parameter adjustment operations respectively, the Kaiming initialization method can be used to set the initial weights for the trained convolutional layer to ensure stable training of the deep residual shrinkage network model.
[0112] In an embodiment of the present invention, optionally, the improved deep residual shrinkage network model may include at least one improved residual shrinkage module, such as Figure 3 As shown, Figure 3 is the structure of the BasicBlock layer (basic residual block) and the Bottleneck layer (bottleneck block) in the residual contraction module before improvement. And Figure 4 As shown, the improved residual shrinkage module may include: an SGE module, a BasicBlock layer, a Bottleneck layer, a soft threshold function layer and an attention layer.
[0113] Among them, the soft threshold function expression formula of the soft threshold function layer is:
[0114]
[0115] Among them, x represents the input data of the previous layer of network, y represents the output result, and τ represents the threshold.
[0116] like Figure 3 As shown, the BasicBlock layer includes at least the first convolution layer, the second convolution layer and the Dropout layer, the Bottleneck layer includes the third convolution layer, the fourth convolution layer and the fifth convolution layer, and the SGE module is used to group the input training data set and enhance the spatial features of the training data set.
[0117] The first and second convolutional layers use 3*1 convolution kernels. A batch normalization layer and an activation function layer are connected after the first convolutional layer, and a batch normalization layer is connected after the second convolutional layer. The Dropout layer is used to remove overfitting.
[0118] The third and fifth convolutional layers use 1*1 convolution kernels, the fourth convolutional layer uses 3*1 convolution kernels, a batch normalization layer and an activation function layer are connected after the third and fourth convolutional layers, and a batch normalization layer is connected after the fifth convolutional layer. The third convolutional layer is used to reduce the dimension, the fourth convolutional layer is used to perform feature extraction, and the fifth convolutional layer is used to restore the dimension.
[0119] In this way, by introducing the SGE module, the Dropout layer and the deep residual shrinkage network model, the SGE module can enhance the spatial features within each group by processing the input signal in groups. This strategy allows the network to more effectively process features with different scales and characteristics, thereby optimizing the utilization efficiency and expression ability of the features. Through such processing, the SGE module helps the model to maintain important information in the deep network structure while enhancing the recognition and utilization of key features, further improving the performance of the model in complex data parsing tasks; and the Dropout layer can reduce the interaction between feature detectors (hidden layer nodes), so that the model will not rely too much on certain local features, thereby improving its generalization ability.
[0120] In an embodiment of the present invention, inputting the training data set and the verification data set into the improved deep residual shrinkage network model for training and parameter adjustment operations respectively may include:
[0121] The cross entropy loss function is used as the loss function of the improved deep residual shrinkage network model. The training data set and the verification data set are input into the improved deep residual shrinkage network model. The initial learning rate of the training operation is set to 0.001 and the preset number of iterations of the training operation is set to 300. The improved deep residual shrinkage network model is iteratively trained, and the parameters of the improved deep residual shrinkage network model are optimized through Adam, SGD optimizer and verification data set.
[0122] In the embodiment of the present invention, when the improved deep residual shrinkage network model is used for training, the principle process of model training is as follows: the input training data set is first pre-activated through a layer with an activation function layer (ReLU) and a batch normalization (BN), which helps to enhance the nonlinear response of the model to the input data and stabilize the entire training process. After the pre-activation process, the data flows to the first convolution layer, which uses a 3*1 convolution kernel to capture the primary features of the signal.
[0123] The training data set enters a series of improved residual shrinkage modules, each of which uses ReLU activation and BN for pre-activation again to further refine and strengthen higher-level feature representations. In order to reduce the risk of overfitting, a Dropout layer is also integrated in each residual block, setting a drop probability of 0.2 to randomly disconnect neurons. BN stands for Batch Normalization, which is mainly used to solve the problem of internal covariate shift in deep neural network training, thereby accelerating the convergence speed of the network and improving the generalization ability of the model.
[0124] After reducing overfitting through multiple residual blocks and Dropout layers, an adaptive average pooling layer is used to normalize the spatial dimensions of the feature map from the output of each residual block to a fixed-size convolution layer (the convolution kernel is usually 1*1) to reduce the number of parameters and reduce computational complexity.
[0125] The flattened output is passed to a fully connected layer (FC), which maps the pooled feature vector to a new space whose dimension is equal to the number of categories in the classification task. The output of the fully connected layer is then converted into a probability distribution through the Softmax activation function, representing the predicted probability of each category. Finally, an accuracy of 98.44% was achieved on the test set.
[0126] The iterative training operation of the improved deep residual shrinkage network model may include:
[0127] The improved deep residual shrinkage network model is iteratively trained to obtain the target model, and whether the target model tends to converge is judged based on the loss function.
[0128] In the embodiment of the present invention, whether the target model tends to converge can be judged by judging the difference between the real value of the input training data set calculated by the loss function and the predicted value of the output recognition result. When the difference is less than or equal to the preset threshold, it is judged that the target model tends to converge; when the difference is greater than the preset threshold, it is judged that the target model does not tend to converge.
[0129] When it is determined that the target model has not converged, the training data set and the validation data set are re-input into the target model, and the iterative training operation on the target model is repeated.
[0130] When it is determined that the target model tends to converge, the iterative training operation is stopped to obtain the final foreign sound detection model.
[0131] In this way, the training data set and the verification data set are input into the fused improved deep residual shrinkage network model for training and parameter adjustment respectively, and the loss function is used to optimize the model convergence to obtain the final abnormal sound detection model, which can intelligently identify the various abnormal sounds generated during the operation of the micromotor, reduce the misidentification of the abnormal sounds of the micromotor, and thus help improve the efficiency and accuracy of abnormal sound detection and identification of the micromotor.
[0132] 104. Input the pre-acquired abnormal sound test data into the abnormal sound detection model for recognition and classification to obtain the final abnormal sound recognition and classification result.
[0133] In this way, the abnormal sound detection model is used to identify and classify the abnormal sound test data acquired in advance, and the various abnormal sounds generated during the operation of the micromotor are intelligently identified, thereby reducing the misidentification of the abnormal sounds of the micromotor, which is beneficial to improving the efficiency and accuracy of abnormal sound detection and identification of the micromotor.
[0134] Embodiment 2
[0135] See also Figure 6 , Figure 6 1 is a flow chart of a method for detecting abnormal sound of a micromotor disclosed in an embodiment of the present invention. Figure 6 The micromotor abnormal sound detection method described can be applied to a micromotor abnormal sound detection device. Optionally, the device may include a high-precision microphone, an audio acquisition card, and a computer or server for identification calculations. The computer or server may be a local computer or local server, or a cloud computer or cloud server, which is not limited in the embodiments of the present invention. Figure 6 As shown, the micromotor abnormal sound detection method may include the following operations:
[0136] 201. The sound signal of the micromotor in a preset state is collected by a sensor device, and the sound signal is pre-processed to obtain a processed audio signal data set.
[0137] 202. Label and classify the audio signal data set according to the type of each preset state to obtain an audio signal classification set corresponding to each type.
[0138] 203. Divide each audio signal segment in all audio signal classification sets within a preset angular frequency range by using a spectrum segmentation technology to obtain N angular frequency segments corresponding to each audio signal segment within the preset angular frequency range.
[0139] 204. Extract the spectrum values corresponding to the first preset angular frequency, the second preset angular frequency and the local extreme value of each audio signal segment within the preset angular frequency range as the target sequence, and arrange the amplitudes in the target sequence in descending order to obtain the angular frequency corresponding to the maximum value of the first N amplitudes. Array sequence of .
[0140] In the embodiment of the present invention, optionally, the angular frequency (unit: radians / second) is used to represent the physical quantity of the speed of the object's vibration, and the first preset angular frequency is expressed as , the second preset angular frequency is expressed as . Further optionally, the value of the first preset angular frequency is 0, and the value of the second preset angular frequency is .
[0141] 205. Define a boundary signal expression formula corresponding to the first preset angular frequency and the second preset angular frequency in the frequency sequence, and obtain the boundary signal according to the boundary signal expression formula. .
[0142] In the embodiment of the present invention, optionally, the boundary signal is expressed as:
[0143]
[0144] in, express and The spectrum values between Expressed as When the minimum value is obtained in the domain The corresponding value, n represents the number of decomposition components.
[0145] 206. According to the boundary signal Construct a zero-phase filter bank and use it to filter the boundary signal A filtering operation is performed to obtain a filtered signal after the filtering operation, and a transform operation is performed on the filtered signal through an inverse Fourier transform algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment.
[0146] In the embodiment of the present invention, optionally, the zero-phase filter is a and As a bandpass filter with a cutoff frequency, it has no transition frequency band. Therefore, the zero-phase filter retains the main Fourier spectrum components in this band, while other Fourier spectrum components beyond this band are effectively removed. Figure 5 As shown, the horizontal axis represents the angular frequency (unit: rad / s) and the vertical axis represents the amplitude. Figure 5 The histogram in is represented by the spectrum of the zero-phase filter bank. The expression formula of the spectrum corresponding to the zero-phase filter bank is:
[0147]
[0148] Among them, the calculation formula of the filtered signal obtained after filtering is:
[0149] The expression of Fourier transform algorithm is:
[0150]
[0151] Therefore, the calculation formula of the inverse Fourier transform algorithm of the filtered signal can be obtained as follows:
[0152]
[0153] Where, t and ω represent time and angular frequency respectively, n = (1, 2, ..., i) is the number of single noise signals, is the unit of the imaginary part of the complex number, Represented as multiple calculated component data with local frequency characteristics, for The Fourier transform of Expressed as The inverse Fourier transform of .
[0154] 207. Select target component data with the highest frequency component from the component data corresponding to each audio signal segment as the fault feature component corresponding to the audio signal segment, and perform sample segmentation on the fault feature components corresponding to the audio signal segments in all audio signal classification sets according to a preset segmentation ratio to obtain a training data set and a verification data set of the segmented abnormal sound signals.
[0155] The component data includes time domain data and frequency domain data corresponding to each audio signal segment.
[0156] 208. The SGE module, the Dropout layer and the deep residual shrinkage network model are integrated to generate an improved deep residual shrinkage network model. The training data set and the verification data set are input into the improved deep residual shrinkage network model for training and parameter adjustment respectively to obtain the final abnormal sound detection model.
[0157] 209. Input the pre-acquired abnormal sound test data into the abnormal sound detection model for recognition and classification, and obtain the final abnormal sound recognition and classification result.
[0158] In the embodiment of the present invention, for other descriptions of step 201 - step 202 and step 207 - step 209, please refer to the detailed description of step 101 - step 104 in the first embodiment, and the embodiment of the present invention will not be repeated.
[0159] It can be seen that the implementation of the embodiment of the present invention can process each audio signal segment in all audio signal classification sets through spectrum segmentation technology, zero-phase filter group and inverse Fourier transform algorithm, and obtain multiple clear and intuitive component data with local frequency characteristics, which can reconstruct the sound signal and remove unnecessary noise signal interference in the sound signal, significantly improve the system's processing ability for complex signals and reduce the erroneous recognition of abnormal sounds of micromotors, thereby facilitating improving the efficiency and accuracy of subsequent abnormal sound detection and recognition of micromotors.
[0160] It can be seen that implementation Figure 6 The micromotor abnormal sound detection method can collect the sound signal of the micromotor in a preset state through a sensing device, pre-process the sound signal, obtain a processed audio signal data set, and classify the audio signal data set, and process each audio signal fragment in all audio signal classification sets through spectrum segmentation technology, zero-phase filter group and Fourier inverse transform algorithm to obtain multiple clear and intuitive component data with local frequency characteristics, which can reconstruct the sound signal and remove unnecessary noise signal interference in the sound signal, significantly improving the system's processing ability for complex signals, so as to facilitate subsequent detection model training; the training data set and the verification data set are input into the fused improved deep residual shrinkage network model for training and parameter adjustment operations respectively, to obtain the final abnormal sound detection model, which can intelligently identify a variety of abnormal sounds generated in the working process of the micromotor, has strong adaptability, reduces the erroneous recognition of abnormal sounds of the micromotor, and is conducive to improving the efficiency and accuracy of abnormal sound detection and recognition of the micromotor.
[0161] Embodiment 3
[0162] See also Figure 7 , Figure 7Schematic diagram of a micromotor abnormal noise detection device disclosed in an embodiment of the present invention. Figure 7 The micromotor abnormal sound detection device described can execute the above-mentioned micromotor abnormal sound detection method. Optionally, the device may include a high-precision microphone, an audio acquisition card, and a computer or server for identification calculation, and the computer or server may be a local computer or local server, or a cloud computer or cloud server, which is not limited in the embodiment of the present invention. Figure 7 As shown, the micromotor abnormal sound detection device may include: a collection module 301, a preprocessing module 302, a classification and decomposition module 303, a fusion module 304, a parameter adjustment and training module 305, and a recognition module 306, wherein:
[0163] The acquisition module 301 is used to acquire the sound signal of the micromotor in a preset state through a sensor device.
[0164] The preprocessing module 302 is used to preprocess the sound signal collected by the collecting module 301 to obtain a processed audio signal data set, where the audio signal data set includes multiple audio signal segments.
[0165] The classification and decomposition module 303 is used to classify and decompose the audio signal data set obtained by the preprocessing module 302 to obtain a training data set and a verification data set of foreign sound signals.
[0166] The fusion module 304 is used to fuse the SGE module, the Dropout layer and the deep residual shrinkage network model to generate an improved deep residual shrinkage network model.
[0167] The parameter adjustment training module 305 is used to input the training data set and the verification data set obtained by the classification decomposition module 303 into the improved deep residual shrinkage network model generated by the fusion module 304 for training and parameter adjustment operations respectively, so as to obtain the final foreign sound detection model.
[0168] The recognition module 306 is used to input the pre-acquired abnormal sound test data into the abnormal sound detection model obtained by the parameter training module 305 for recognition and classification, so as to obtain the final abnormal sound recognition and classification results.
[0169] It can be seen that the implementation Figure 7The described micromotor abnormal sound detection device can collect the sound signal of the micromotor in a preset state through a sensing device, pre-process the sound signal to obtain a processed audio signal data set, classify and decompose the audio signal data set, and obtain a training data set and a verification data set of the abnormal sound signal for subsequent detection model training, which is beneficial to improving the recognition efficiency of the micromotor abnormal sound; the training data set and the verification data set are input into the fused improved deep residual shrinkage network model for training and parameter adjustment respectively, to obtain the final abnormal sound detection model, which can intelligently identify a variety of abnormal sounds generated during the operation of the micromotor, has strong adaptability, reduces the erroneous recognition of the abnormal sounds of the micromotor, and is beneficial to improving the efficiency and accuracy of abnormal sound detection and recognition of the micromotor.
[0170] In an optional embodiment, the types of preset states include: normal operation state, foreign matter fault state, poor assembly fault state and gear meshing fault state.
[0171] As well as Figure 7 As shown, the preprocessing module 302 preprocesses the sound signal to obtain the processed audio signal data set in the following specific manner:
[0172] The sound signal is sampled according to the Nyquist sampling theorem, a preset sampling point and a preset sampling frequency to obtain a sampled audio signal data set, wherein the audio signal data set includes a plurality of audio signal segments of preset duration.
[0173] It can be seen that implementation Figure 7 The described micromotor abnormal sound detection device can perform preprocessing operations on an audio signal data set to obtain multiple audio signal segments of the sound signal for subsequent detection model training, which is beneficial to improving the recognition efficiency of micromotor abnormal sound.
[0174] In another optional embodiment, Figure 7 As shown, the classification and decomposition module 303 performs classification and decomposition operations on the audio signal data set to obtain the training data set and the verification data set of the foreign sound signal in the following specific manner:
[0175] The audio signal data set is marked and classified according to the type of each preset state to obtain an audio signal classification set corresponding to each type.
[0176] Each audio signal segment in all audio signal classification sets is decomposed by an empirical Fourier decomposition algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment after processing, and target component data with the highest frequency component in the component data corresponding to each audio signal segment is selected as the fault feature component corresponding to the audio signal segment, and the component data includes time domain data and frequency domain data corresponding to each audio signal segment.
[0177] The fault feature components corresponding to the audio signal segments in all audio signal classification sets are sample segmented according to a preset segmentation ratio to obtain a training data set and a verification data set of segmented abnormal sound signals.
[0178] It can be seen that implementation Figure 7 The described micromotor abnormal sound detection device can classify and decompose audio signal data sets, simplify complex sound signals, and obtain training data sets and verification data sets corresponding to clear and intuitive abnormal sound signals for subsequent detection model training, which is beneficial to improving the recognition efficiency of micromotor abnormal sounds.
[0179] In yet another optional embodiment, Figure 7 As shown, the specific manner in which the classification decomposition module 303 decomposes each audio signal segment in all audio signal classification sets by using the empirical Fourier decomposition algorithm is as follows:
[0180] Each audio signal segment in all audio signal classification sets is divided within a preset angular frequency range by spectrum segmentation technology to obtain N angular frequency segments corresponding to each audio signal segment within the preset angular frequency range.
[0181] Extract the spectrum values corresponding to the first preset angular frequency, the second preset angular frequency and the local extreme value of each audio signal segment within the preset angular frequency range as the target sequence, and arrange the amplitudes in the target sequence in descending order to obtain the angular frequency corresponding to the maximum value of the first N amplitudes Array sequence of , the first preset angular frequency is expressed as , the second preset angular frequency is expressed as .
[0182] Define the boundary signal expression formula corresponding to the first preset angular frequency and the second preset angular frequency in the frequency sequence, and obtain the boundary signal according to the boundary signal expression formula .
[0183] The boundary signal expression formula is:
[0184]
[0185] in, express and The spectrum values between Expressed as When the minimum value is obtained in the domain The corresponding value, n represents the number of decomposition components.
[0186] Boundary signal obtained by spectrum segmentation technology Construct a zero-phase filter bank.
[0187] The boundary signal is filtered by a zero-phase filter bank. A filtering operation is performed to obtain a filtered signal after the filtering operation, and a transform operation is performed on the filtered signal through an inverse Fourier transform algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment.
[0188] It can be seen that the implementation Figure 7 The described micromotor abnormal sound detection device processes each audio signal segment in all audio signal classification sets through spectrum segmentation technology, zero-phase filter group and Fourier inverse transform algorithm to obtain multiple clear and intuitive component data with local frequency characteristics, which can reconstruct the sound signal and remove unnecessary noise signal interference in the sound signal, significantly improve the system's processing ability for complex signals and reduce the erroneous recognition of abnormal sounds of micromotors, thereby facilitating improving the efficiency and accuracy of subsequent abnormal sound detection and recognition of micromotors.
[0189] In another optional embodiment, the improved deep residual shrinkage network model includes at least one improved residual shrinkage module, and the improved residual shrinkage module includes: an SGE module, a BasicBlock layer, a Bottleneck layer, a soft threshold function layer and an attention layer.
[0190] Among them, the BasicBlock layer includes at least the first convolutional layer, the second convolutional layer and the Dropout layer, the Bottleneck layer includes the third convolutional layer, the fourth convolutional layer and the fifth convolutional layer, and the SGE module is used to group the input training data set and enhance the spatial characteristics of the training data set.
[0191] The first and second convolutional layers use 3*1 convolution kernels. A batch normalization layer and an activation function layer are connected after the first convolutional layer, and a batch normalization layer is connected after the second convolutional layer. The Dropout layer is used to remove overfitting.
[0192] The third and fifth convolutional layers use 1*1 convolution kernels, and the fourth convolutional layer uses 3*1 convolution kernels. A batch normalization layer and an activation function layer are connected to the third and fourth convolutional layers respectively, and a batch normalization layer is connected to the fifth convolutional layer. The third convolutional layer is used to reduce the dimension, the fourth convolutional layer is used to perform feature extraction, and the fifth convolutional layer is used to restore the dimension.
[0193] It can be seen that the implementation Figure 7 The described micromotor abnormal sound detection device is integrated with the deep residual shrinkage network model by introducing the SGE module, the Dropout layer, and the SGE module enhances the spatial features within each group by grouping the input signal, thereby optimizing the utilization efficiency and expression ability of the features. Through such processing, the SGE module helps the model to maintain important information in the deep network structure while enhancing the recognition and utilization of key features, further improving the performance of the model in complex data parsing tasks; and the Dropout layer can reduce the interaction between feature detectors (hidden layer nodes), so that the model will not be too dependent on certain local features, thereby improving its generalization ability.
[0194] In yet another optional embodiment, Figure 7 As shown, the specific manner in which the parameter adjustment training module 305 inputs the training data set and the verification data set into the improved deep residual shrinkage network model for training and parameter adjustment operations respectively is:
[0195] The cross entropy loss function is used as the loss function of the improved deep residual shrinkage network model. The training data set and the verification data set are input into the improved deep residual shrinkage network model. The initial learning rate of the training operation is set to 0.001 and the preset number of iterations of the training operation is set to 300. The improved deep residual shrinkage network model is iteratively trained, and the parameters of the improved deep residual shrinkage network model are optimized through Adam, SGD optimizer and verification data set.
[0196] It can be seen that the implementation Figure 7 The described micromotor abnormal sound detection device can input the training data set and the verification data set into the fused improved deep residual shrinkage network model for training and parameter adjustment respectively, so as to obtain the final abnormal sound detection model, which can intelligently identify the various abnormal sounds generated during the operation of the micromotor, reduce the misidentification of the abnormal sounds of the micromotor, and thus help to improve the efficiency and accuracy of abnormal sound detection and identification of the micromotor.
[0197] In yet another optional embodiment, the preset segmentation ratio is expressed as: the data volume of the training data set: the data volume of the verification data set = 7:3.
[0198] As well as Figure 7 As shown, the specific method of the parameter adjustment training module 305 to perform iterative training operations on the improved deep residual shrinkage network model is:
[0199] The improved deep residual shrinkage network model is iteratively trained to obtain the target model, and whether the target model tends to converge is judged based on the loss function.
[0200] When it is determined that the target model has not converged, the training data set and the validation data set are re-input into the target model, and the iterative training operation on the target model is repeated.
[0201] When it is determined that the target model tends to converge, the iterative training operation is stopped to obtain the final foreign sound detection model.
[0202] It can be seen that implementation Figure 7 The described micromotor abnormal sound detection device can use the loss function to perform convergence optimization on the model to obtain the final abnormal sound detection model, and can intelligently identify the various abnormal sounds generated during the operation of the micromotor, reduce the misidentification of the abnormal sounds of the micromotor, and thus help improve the efficiency and accuracy of abnormal sound detection and identification of the micromotor.
[0203] Embodiment 4
[0204] See also Figure 8 , Figure 8 FIG. 1 is a schematic diagram of the structure of another micromotor abnormal sound detection device disclosed in an embodiment of the present invention. Figure 8 As shown, the micromotor abnormal sound detection device may include:
[0205] A memory 401 storing executable program codes;
[0206] a processor 402 coupled to the memory 401;
[0207] The processor 402 calls the executable program code stored in the memory 401 to execute the steps of the micromotor abnormal sound detection method described in the first embodiment of the present invention or the second embodiment of the present invention.
[0208] Embodiment 5
[0209] The embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps of the micromotor abnormal sound detection method described in the first embodiment of the present invention or the second embodiment of the present invention.
[0210] Embodiment 6
[0211] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps of the micromotor abnormal sound detection method described in embodiment 1 or embodiment 2.
[0212] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0213] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0214] Finally, it should be noted that the micromotor abnormal sound detection method and device disclosed in the embodiment of the present invention discloses only the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for detecting abnormal noise of a micromotor, characterized in that: The method comprises: The sound signal of the micromotor in a preset state is collected by a sensor device; Preprocessing the sound signal to obtain a processed audio signal data set, wherein the audio signal data set includes a plurality of audio signal segments, and classifying and decomposing the audio signal data set to obtain a training data set and a verification data set of a foreign sound signal; The SGE module, the Dropout layer and the deep residual shrinkage network model are integrated to generate an improved deep residual shrinkage network model, and the training data set and the verification data set are input into the improved deep residual shrinkage network model for training and parameter adjustment respectively to obtain a final foreign sound detection model; Inputting the pre-acquired abnormal sound test data into the abnormal sound detection model for recognition and classification to obtain the final abnormal sound recognition and classification result; The step of classifying and decomposing the audio signal data set to obtain a training data set and a verification data set of foreign sound signals includes: Marking and classifying the audio signal data set according to the type of each preset state to obtain an audio signal classification set corresponding to each type; Decomposing each audio signal segment in all audio signal classification sets by an empirical Fourier decomposition algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment after processing, and selecting target component data with the highest frequency component from the component data corresponding to each audio signal segment as the fault characteristic component corresponding to the audio signal segment, wherein the component data includes time domain data and frequency domain data corresponding to each audio signal segment; Performing sample segmentation on the fault feature components corresponding to the audio signal segments in all audio signal classification sets according to a preset segmentation ratio, and obtaining a training data set and a verification data set of segmented abnormal sound signals; The decomposition process of each audio signal segment in all audio signal classification sets by using an empirical Fourier decomposition algorithm includes: Divide each audio signal segment in all audio signal classification sets within a preset angular frequency range by using a spectrum segmentation technology to obtain N angular frequency segments corresponding to each audio signal segment within the preset angular frequency range; Extract the spectrum values corresponding to the first preset angular frequency, the second preset angular frequency and the local extreme value of each audio signal segment within the preset angular frequency range as the target sequence, and arrange the amplitudes in the target sequence in descending order to obtain the angular frequency corresponding to the maximum value of the first N amplitudes Array sequence of , the first preset angular frequency is expressed as , the second preset angular frequency is expressed as ; Define the angular frequency The boundary signal expression formula corresponding to the first preset angular frequency and the second preset angular frequency interval in the array sequence of , and the boundary signal is obtained according to the boundary signal expression formula ; Wherein, the expression formula of the boundary signal is: Among them, the express and The spectrum value between Expressed as When the minimum value is obtained in the domain The corresponding value, n represents the number of decomposed components; According to the boundary signal Construct a zero-phase filter bank; The boundary signal is filtered by the zero-phase filter bank. A filtering operation is performed to obtain a filtered signal after the filtering operation, and a transform operation is performed on the filtered signal through an inverse Fourier transform algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment.
2. The micromotor abnormal noise detection method according to claim 1, characterized in that: The types of the preset states include: normal operation state, foreign matter fault state, poor assembly fault state and gear meshing fault state; The preprocessing of the sound signal to obtain a processed audio signal data set includes: The sound signal is sampled according to the Nyquist sampling theorem, a preset sampling point and a preset sampling frequency to obtain a sampled audio signal data set, wherein the audio signal data set includes a plurality of audio signal segments of preset duration.
3. The micromotor abnormal noise detection method according to claim 1, characterized in that: The improved deep residual shrinkage network model includes at least one improved residual shrinkage module, and the improved residual shrinkage module includes: an SGE module, a BasicBlock layer, a Bottleneck layer, a soft threshold function layer and an attention layer; The BasicBlock layer includes at least a first convolutional layer, a second convolutional layer and a Dropout layer, the Bottleneck layer includes a third convolutional layer, a fourth convolutional layer and a fifth convolutional layer, and the SGE module is used to group the input training data set and enhance the spatial features of the training data set; The first convolution layer and the second convolution layer use 3*1 convolution kernels, a batch normalization layer and an activation function layer are connected after the first convolution layer, a batch normalization layer is connected after the second convolution layer, and the Dropout layer is used to remove overfitting; The third convolution layer and the fifth convolution layer use a 1*1 convolution kernel, the fourth convolution layer uses a 3*1 convolution kernel, the third convolution layer and the fourth convolution layer are respectively connected to a batch normalization layer and an activation function layer, the fifth convolution layer is connected to a batch normalization layer, the third convolution layer is used to reduce the dimension, the fourth convolution layer is used to perform feature extraction, and the fifth convolution layer is used to restore the dimension.
4. The micromotor abnormal noise detection method according to claim 1, characterized in that: The step of inputting the training data set and the verification data set into the improved deep residual shrinkage network model for training and parameter adjustment respectively includes: The cross entropy loss function is used as the loss function of the improved deep residual shrinkage network model, the training data set and the verification data set are input into the improved deep residual shrinkage network model, the initial learning rate of the training operation is set to 0.001, the preset number of iterations of the training operation is set to 300 times, the improved deep residual shrinkage network model is iteratively trained, and the parameter optimization operation of the improved deep residual shrinkage network model is performed through Adam, SGD optimizer and the verification data set.
5. The micromotor abnormal noise detection method according to claim 4, characterized in that: The preset segmentation ratio is expressed as: the data volume of the training data set: the data volume of the verification data set = 7:3; The iterative training operation of the improved deep residual shrinkage network model includes: Performing an iterative training operation on the improved deep residual shrinkage network model to obtain a target model, and judging whether the target model tends to converge according to a loss function; When it is determined that the target model has not converged, re-inputting the training data set and the verification data set into the target model, and repeatedly performing the iterative training operation on the target model; When it is determined that the target model tends to converge, the iterative training operation is stopped to obtain a final foreign sound detection model.
6. A micromotor abnormal noise detection device, characterized in that: The device comprises: A collection module, used for collecting sound signals of the micromotor in a preset state through a sensor device; A preprocessing module, configured to preprocess the sound signal collected by the collection module to obtain a processed audio signal data set, wherein the audio signal data set includes a plurality of audio signal segments; A classification and decomposition module, used for classifying and decomposing the audio signal data set obtained by the preprocessing module to obtain a training data set and a verification data set of foreign sound signals; A fusion module is used to fuse the SGE module, the Dropout layer and the deep residual shrinkage network model to generate an improved deep residual shrinkage network model; A parameter adjustment training module, used for inputting the training data set and the verification data set obtained by the classification decomposition module into the improved deep residual shrinkage network model generated by the fusion module for training and parameter adjustment operations respectively, so as to obtain a final foreign sound detection model; A recognition module is used to input the pre-acquired abnormal sound test data into the abnormal sound detection model obtained by the parameter adjustment training module for recognition and classification, so as to obtain the final abnormal sound recognition and classification result; The specific method in which the classification and decomposition module performs classification and decomposition operations on the audio signal data set to obtain a training data set and a verification data set of the foreign sound signal is: Marking and classifying the audio signal data set according to the type of each preset state to obtain an audio signal classification set corresponding to each type; Decomposing each audio signal segment in all audio signal classification sets by an empirical Fourier decomposition algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment after processing, and selecting target component data with the highest frequency component from the component data corresponding to each audio signal segment as the fault characteristic component corresponding to the audio signal segment, wherein the component data includes time domain data and frequency domain data corresponding to each audio signal segment; Performing sample segmentation on the fault feature components corresponding to the audio signal segments in all audio signal classification sets according to a preset segmentation ratio, and obtaining a training data set and a verification data set of segmented abnormal sound signals; The specific method of decomposing each audio signal segment in all audio signal classification sets by using the empirical Fourier decomposition algorithm is as follows: Divide each audio signal segment in all audio signal classification sets within a preset angular frequency range by using a spectrum segmentation technology to obtain N angular frequency segments corresponding to each audio signal segment within the preset angular frequency range; Extract the spectrum values corresponding to the first preset angular frequency, the second preset angular frequency and the local extreme value of each audio signal segment within the preset angular frequency range as the target sequence, and arrange the amplitudes in the target sequence in descending order to obtain the angular frequency corresponding to the maximum value of the first N amplitudes Array sequence of , the first preset angular frequency is expressed as , the second preset angular frequency is expressed as ; Define the angular frequency The boundary signal expression formula corresponding to the first preset angular frequency and the second preset angular frequency interval in the array sequence of , and the boundary signal is obtained according to the boundary signal expression formula ; Wherein, the expression formula of the boundary signal is: Among them, the express and The spectrum value between Expressed as When the minimum value is obtained in the domain The corresponding value, n represents the number of decomposed components; According to the boundary signal Construct a zero-phase filter bank; The boundary signal is filtered by the zero-phase filter bank. A filtering operation is performed to obtain a filtered signal after the filtering operation, and a transform operation is performed on the filtered signal through an inverse Fourier transform algorithm to obtain a plurality of component data with local frequency characteristics corresponding to each audio signal segment.
7. A micromotor abnormal noise detection device, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the micromotor abnormal sound detection method as described in any one of claims 1-5.
8. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the micromotor abnormal sound detection method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Bird identification integrated management system with noise removal function and noise removal method thereof
CN112289326A
Detection equipment for output torque of stepping motor
CN112729638A
Vehicle collision detection method based on deep residual shrinkage network and device thereof
CN113177536A
Voiceprint recognition method based on short voice
CN113488058A
Sound-based signal extraction and classification method
CN114049901A
