Multi-mode sound source intelligent separation method for mechanical equipment

By introducing audio feature extraction with visual features and coordinate attention mechanisms, combined with feature fusion module, the problem of not being able to determine the correspondence between the sound source and the equipment in the sound source separation of mechanical equipment is solved, and a better sound source separation effect is achieved.

CN119007741APending Publication Date: 2024-11-22SOUTHWEAT UNIV OF SCI & TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310560247.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-18
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the sound source separation of mechanical equipment, the corresponding relationship between the sound source and the mechanical equipment cannot be determined after separation, and the sound source separation effect is poor.

Method used

Using the intelligent separation method of multimodal sound source, by introducing visual features of mechanical equipment, the potential connection between visual features and audio features is constructed, and the improved Res2Net18 network is used for visual feature extraction and CA-UNet network with coordinate attention mechanism is used for Audio feature extraction, combined with feature fusion module to achieve sound source separation.

Benefits of technology

It effectively improves the accuracy and effect of sound source separation of mechanical equipment, and can accurately separate and correspond to sound source and mechanical equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

The invention provides a multi-mode sound source intelligent separation method for mechanical equipment, and the method comprises the steps: carrying out the processing of audio and video multi-mode data of the mechanical equipment, and obtaining a visual image and an audio spectrogram of the mechanical equipment; constructing a multi-modal sound source intelligent separation network model; and inputting the visual image and the audio spectrogram into a network model and training the visual image and the audio spectrogram to obtain an audio spectrogram mask corresponding to the visual image of the mechanical equipment, determining a corresponding audio spectrogram of the mechanical equipment according to the audio spectrogram mask, and separating a corresponding audio signal according to the image of the mechanical equipment. The method has the beneficial effects that the corresponding sound source signal is separated according to the visual image of the mechanical equipment, and the method can solve the problem that the sound source separation result of the mechanical equipment is disordered by a single-mode blind source separation method based on an audio signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to multimodal data fusion and sound source separation. Background Art

[0002] The separation of mechanical equipment sound sources is a prerequisite for noise fault monitoring and identification. The existing separation of mechanical equipment mixed audio signals usually adopts blind source separation methods. Blind source separation is a separation method that relies only on the received mixed signal to restore each independent source signal when the source signal and transmission characteristics are unknown. Blind source separation methods use the sparsity, non-negativity, independence and other characteristics of the signal or prior knowledge as separation criteria, such as ensemble empirical mode decomposition, independent component analysis, fast independent component analysis, etc. Therefore, the blind source separation algorithm is difficult to uniquely determine the source signal in the absence of certain prior knowledge, that is, it is impossible to determine the corresponding relationship between the separated sound source signal and the mechanical equipment.

[0003] In recent years, with the development of deep learning, many achievements have been made in the research fields of single-modal data such as speech, image, and natural language processing. Cross-modal related research has gradually become a new hotspot. Cross-modal feature fusion can improve model performance and solve the limitations of single-modal data. The multi-modal sound source separation method of audio and video feature fusion can rely on the potential connection between different modal features to build cross-modal correspondence between visual and auditory information, and solve the problems of poor sound source separation effect and inability to determine the correspondence between the sound source and the target after separation when using only mixed audio signal separation methods. At present, the research on separating sound sources using multi-modal feature fusion only exists in speech separation and instrument sound source separation. The existing technology is not sufficient for mechanical equipment feature extraction, and the sound source separation effect is poor when directly applied to mechanical equipment. Summary of the invention

[0004] The purpose of the present invention is to solve the problem that the existing sound source separation is performed only by using the audio signal of mechanical equipment, and the corresponding relationship between the sound source and the mechanical equipment after separation cannot be determined. A method for intelligent separation of multimodal sound sources of mechanical equipment is proposed. By introducing the visual features of mechanical equipment, the potential connection between the visual features and the audio features is constructed, and the corresponding sound source is separated according to the visual image of the mechanical equipment. The constructed multimodal sound source intelligent separation network model is as follows: Figure 1 As shown in the figure, the network model consists of a visual feature extraction module, an audio feature extraction module and a feature fusion module.

[0005] The visual feature extraction module in the present invention constructs a Res2Net18 network with multi-scale feature extraction capability to improve the ability to extract fine-grained visual features of mechanical equipment. The residual module in the ResNet18 network is improved to a multi-scale feature extraction structure in Res2Net. This structure uses the idea of ​​feature grouping to replace the original single convolution with multiple groups of convolutions in the residual block, and connects them in a hierarchical residual manner. The output feature receptive field is increased by constructing multiple groups of convolution layer structures of different scales, thereby improving the network's ability to extract fine-grained visual features of mechanical equipment. The residual block structure before and after the improvement is shown in FIG. Figure 2 shown.

[0006] Figure 2 (a) is the residual block structure in the ResNet18 network, which contains two 3×3 convolutional layers. Figure 2 (b) is the improved residual block structure, which replaces the second 3×3 convolution in the ResNet18 residual block with multiple groups of 3×3 convolution structures that extract features of different scales, achieving the purpose of multi-scale feature extraction. The hyperparameter s introduced in this patent s =4, the feature map output by the 3×3 convolution layer Divided by channel s Group, that is, each group of features x i The shape of (i∈{1,2,…,s}) is , while keeping the spatial features unchanged, the operation of the 3×3 convolution output is recorded as k i (i=2,3,…, s ), the first set of features x1 directly outputs y1=x1 without convolution operation, and the second set of features x2 outputs y2= after 3×3 convolution layer. k 2(x2), the third set of features x2 and y2 are fused and then pass through a 3×3 convolutional layer to output y3= k 3(x3+y2), the calculation is shown in formula (3).

[0007]

[0008] The network structure parameters of the visual feature extraction network Res2Net18 in the present invention are shown in Table 1.

[0009] Table 1 Res2Net18 network structure

[0010] The audio feature extraction module in the present invention is a CA-UNet network with a coordinate attention mechanism. The UNet network is an image data feature extraction network model, which can effectively extract the boundary and spatial information of image features by introducing encoders, decoders, and fusing shallow features with deep features. The UNet network is used for mixed audio feature extraction. Since the sound sources of different mechanical equipment have a high degree of similarity, the differences in the performance of the spectral features of different mechanical equipment in the mixed spectrogram are small. If the output features of the encoder are directly connected to the features after upsampling of the decoder, due to the large semantic difference between the shallow features and the deep features, the failure to eliminate the primary noise interference will affect the final output result of the model and reduce the sound source separation effect. Therefore, a coordinate attention mechanism module (Coordinate Attention, CA) is introduced in the UNet network to replace the direct jump connection between the encoder and the decoder, enhance the spatial position information expression of different features in the encoder, suppress interference noise, and reduce the semantic feature differences between the encoder and the decoder. This patent is a CA-UNet built on a 5-layer UNet network model, and its structure is as follows: Figure 3 shown.

[0011] The CA module is a computing unit that can be used to enhance the ability to express information. It can take any feature as input. , and output an output feature of the same size with enhanced expressive power This module encodes channel relationships and long-distance dependencies through precise location information. The specific steps can be divided into coordinate information embedding and coordinate attention generation. The CA module structure is as follows: Figure 4 shown.

[0012] For coordinate information embedding, the global pooling method is usually used for channel attention mechanism to encode global spatial information, but it compresses the global spatial information into one channel dimension, which makes it difficult to preserve the position information in the feature, and the position information is crucial for extracting spatial structural features in the feature map. In order to improve the ability of the attention module to extract spatial structural features with precise position information, the CA module decomposes the global pooling into two one-dimensional feature encoding processes, compressing features along the horizontal X and vertical Y spatial directions respectively. For the feature map On each channel, use H , 1) and (1, W ) is encoded along the horizontal coordinate X direction and the vertical coordinate Y direction respectively, and its calculation is shown in Equation (4) and Equation (5).

[0013]

[0014]

[0015] Through this encoding, a pair of direction-aware attention maps are returned, which capture long-range dependencies in one spatial direction while retaining precise feature location information in another spatial direction. This helps the network to more accurately locate the area of ​​current interest.

[0016] For coordinate attention generation, the above coordinate information is embedded into the obtained attention map for splicing, and then a convolution operation is performed on it. The calculation is shown in formula (6).

[0017]

[0018] In formula (6), is the ReLU activation function, F 1 is a 1×1 convolution operation, The features are spliced ​​along the channels. To reduce the network complexity, the downsampling ratio r is used to compress the number of channels of the feature map f. In this patent, r=32, then It is an intermediate feature map that encodes spatial information in the horizontal and vertical directions, dividing the feature f into two tensors according to the channel dimension and , and then perform convolution operations to restore the number of channels of the input features. The calculation is shown in Equation (7) and Equation (8).

[0019]

[0020]

[0021] In formula (7) and formula (8), is the Sigmoid activation function, F h and F w is a 1×1 convolution operation, and is the coordinate attention mechanism matrix, then the output features of the coordinate attention mechanism y c As shown in formula (9).

[0022]

[0023] The feature fusion module of the present invention integrates the extracted mechanical equipment visual features into the mixed audio features. i c The characteristic dimension , mixed audio features s c The characteristic dimension , C is the number of audio and video feature channels. C=32. When fusion of features is performed, the visual features are fused according to the feature channels. i c With audio features s c Each feature element is multiplied, and then the corresponding feature elements are added according to the feature channel to generate the sound source mask M corresponding to the visual feature. The feature dimension of mask M is ,The audio and video feature fusion calculation is shown in formula (10).

[0024]

[0025] In formula (10), and It is a set of weight coefficients that can be adaptively learned and automatically adjusted during training to speed up the convergence of the model. The generated mask M is subjected to Hadamard product operation with the mixed audio spectrum to obtain the single sound source spectrum corresponding to the visual image, and then the sound source signal in the time domain can be obtained through short-time Fourier inverse transform.

[0026] Compared with the prior art, the beneficial effects of the present invention may include: separating the sound source according to the visual characteristics of the mechanical equipment, and being able to achieve a better mechanical equipment sound source separation effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of the structure of a multi-modal sound source intelligent separation network model described in the invention content of the present invention is shown;

[0028] Figure 2 A schematic diagram of the structure of the Res2Net18 residual block described in the content of the invention is shown;

[0029] Figure 3 A schematic diagram of the CA-UNet network structure described in the invention content of the present invention is shown;

[0030] Figure 4 A schematic diagram of the structure of the coordinate attention mechanism CA module described in the content of the invention is shown;

[0031] Figure 5 A schematic flow chart of a specific implementation of the present invention is shown. DETAILED DESCRIPTION

[0032] Figure 5 FIG. 1 is a flowchart of a specific implementation method of the multi-modal sound source intelligent separation method for mechanical equipment of the present invention. Figure 5 As shown, the specific steps of the method for intelligently separating sound sources of mechanical equipment of the present invention include:

[0033] S101: Obtaining video and audio of mechanical equipment operation, randomly selecting two videos of mechanical equipment operation, extracting mechanical equipment audio signals A1 and A2 of preset lengths from the videos, respectively, and extracting three video images V1 and V2 from the videos, respectively;

[0034] S102: Obtain a mixed audio signal, mixing the audio signals A1 and A2 extracted in step S101 to obtain a mixed audio signal A mix ;

[0035] S103: Obtain training samples, replace A1 and A2 in step S101, A in step S102 mix , through short-time Fourier transform, the time domain audio signal is converted into a spectrum graph S A1 , S A2 , S mix , S mix , S A1 , S A2 , V1 and V2 in step S101 are taken as a set of training samples;

[0036] S104: constructing a multimodal sound source intelligent separation network model for mechanical equipment. The multimodal sound source intelligent separation network model constructed by the present invention includes a visual feature extraction module, an audio feature extraction module, and a feature fusion module;

[0037] The visual feature extraction module is used to extract the visual features of the video image and send them to the feature fusion module. The dimension of the visual feature input image is 3×224×224, and the dimension of the output visual feature is 32×1×1;

[0038] The audio feature extraction module is used to extract mixed audio features and send them to the feature fusion module. The present invention adopts the CA-UNet network with a coordinate attention mechanism. The audio feature extraction module inputs a mixed spectrum graph with a dimension of 1×256×256 and outputs an audio feature with a dimension of 32×256×256.

[0039] The feature fusion module fuses the visual features with the mixed spectrum features to obtain the spectrum mask matrix , according to the feature channel, the visual features i c With audio features s c Each feature element is multiplied, and then the corresponding feature elements are added according to the feature channel to generate the sound source mask matrix M corresponding to the visual feature. The dimension of the mask matrix M is 1×256×256;

[0040] S105: The training sample S obtained in step S103 is mix , V1 and V2 as input, S A1 and S A2As output, the network model is trained, and the loss L used in training is calculated using the following formula:

[0041]

[0042] in, K Indicates the number of mechanical device audio corresponding to the input mixed spectrum. K =2, V k Indicates the first k Mechanical equipment videos, The predicted k A mechanical audio spectrum mask, Represents the true k The actual spectrum mask is calculated using the following formula:

[0043]

[0044] in, Indicates k The spectrum image obtained by short-time Fourier transform of the audio of a mechanical device;

[0045] S106: Collect a mechanical equipment operation video of a preset length containing two audio signals, convert the audio signal to be separated in the video through short-time Fourier transform, input the mechanical equipment video image and the frequency spectrum to be separated into the trained mechanical equipment multimodal sound source intelligent separation network model, and obtain the sound source spectrum corresponding to the mechanical equipment video image, and then convert the sound spectrum in the frequency domain into a waveform signal in the time domain through inverse short-time Fourier transform, so as to separate the corresponding mechanical equipment sound source signal from the mixed audio according to the visual image.

Claims

1. A method for intelligent separation of multi-modal sound sources of mechanical equipment, characterized by: The mechanical equipment mentioned above refers to some parts or mechanical devices that can perform different forms of mechanical movements; The multimodality refers to different types of data generated by mechanical equipment during operation, such as video data and audio data; The sound source refers to the location where the audio signal is emitted when the mechanical equipment is working; The intelligent separation refers to constructing an intelligent separation network model to automatically separate the audio signal of the corresponding device from the mixed audio generated by the operation of the mechanical device according to the visual image of the mechanical device; The intelligent separation network model includes a visual feature extraction module, an audio feature extraction module and a feature fusion module; The visual feature extraction module is a Res2Net18 network with multi-scale feature extraction capability, including a convolutional layer, a pooling layer, and a multi-scale residual block. The visual feature extraction module extracts video image features and sends them to the feature fusion module; The audio feature extraction module is a CA-UNet network with a coordinate attention mechanism. A coordinate attention mechanism module is introduced into the UNet network to replace the direct jump connection between the encoder and the decoder. The audio feature extraction module extracts mixed audio features and sends them to the feature fusion module; The feature fusion module is a module that receives visual features and mixed audio features and performs calculations according to specific rules, obtains a mask corresponding to the visual feature through calculation, and then uses the mask and the mixed audio to perform a Hadamard product operation to generate a spectrum corresponding to the visual feature; A method for intelligently separating multi-modal sound sources of mechanical equipment comprises the following steps: S01. Construct a network model for intelligent separation of multi-modal sound sources of mechanical equipment; S02, randomly select audio and video multimodal data M1 and M2 of two mechanical devices; S03, extracting audio signals A1 and A2 from M1 and M2 respectively; S04, mix A1 and A2 to obtain a mixed audio signal A mix ; S05, randomly extract 3 frames of images V1 and V2 from M1 and M2 respectively; S06, against A mix , A1 and A2 short-time Fourier transform, get the mixed audio spectrum S mix , single audio spectrum S A1 and S A2 ; S07, S mix , V1 and V2 are used as the input of the network model, and S A1 and S A2 As the output of the network model, the network model is trained; S08. Collect audio signals A mixed from two devices n , corresponding equipment working video V of preset length n1 and V n2 ; S09, A n The mixed audio spectrum S is obtained by short-time Fourier transform n ; S10, respectively from V n1 and V n2 Randomly extract 3 frames of image P n1 and P n2 ; S11, S n , P n1 and P n2 Send it into the trained network model; S12, network model output V n1 and V n2 The sound source spectrum A of the corresponding device n1 and A n2 ; S13, A n1 and A n2 The inverse short-time Fourier transform is converted into a time domain waveform signal to realize intelligent separation of the corresponding audio signal from the mixed audio signal according to the visual image.

2. The method for intelligent separation of multi-modal sound sources of mechanical equipment according to claim 1 is characterized in that: The loss used in the network model training in step S07 L The calculation is done using formula (1), where: K Indicates the number of mechanical device audios corresponding to the current input mixed spectrum. K =2, V k Indicates the number of the mixed spectrum currently input. k Mechanical equipment working video, The predicted k A mechanical audio spectrum mask, Indicates k The real audio spectrum mask of a mechanical device is calculated using formula (2). In formula (2), Indicates k The frequency spectrum of the audio signal of a mechanical device obtained by short-time Fourier transform, formula (1) and formula (2) are as follows:

Citation Information

Cited By

  • Multi-channel voice separation method and device based on multi-scale feature channel fusion

    CN119252272A