A Speech Separation Method Using Cascaded Masking Estimation
Through the cascade masking estimation method, combined with coarse and fine-grained features, multi-level processing and weighted averaging are performed, which solves the problem of feature redundancy and fine-grained feature boundary blur in the existing technology, and improves the robustness and accuracy of speech separation.
Patent Information
- Application Number
- CN202110120278.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-01-28
AI Technical Summary
When existing speech separation technology handles different granularity features, it is difficult to effectively combine multiple granularity information, resulting in feature redundancy or fine-grained feature boundary information being blurred, affecting the performance of the estimator.
Using the cascade masking estimation method, through the feature extraction module and the cross-granularity feature cascade fusion module, combined with coarse and fine granular features, multi-level processing and weighted averaging are performed to generate the final masking matrix to separate the target signal.
It improves the fusion performance of multi-granularity features, enhances the robustness and accuracy of speech separation, reduces noise interference, and improves the separation effect.
Smart Images

Figure CN114822582B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of signal processing, and in particular relates to a speech separation method using cascade masking estimation. Background Art
[0002] In actual scenarios, the target speech signal is often accompanied by interferences such as environmental noise, background music, and voice. These interferences not only reduce the hearing quality and speech intelligibility of the target signal, but also seriously affect the effect of subsequent speech application systems.
[0003] To address this problem, sound source separation and speech enhancement have become important links to improve the robustness of application systems. Single-channel sound source separation mainly deals with how to extract the effective target speech signal from a single-channel mixed signal when the background is common audio interference such as voice, music, and noise.
[0004] Traditionally, Independent Component Analysis (ICA) and Nonnegative Matrix Factorization (NMF) are widely used in sound source separation. ICA achieves the purpose of separating source signals by assuming that the target signal and the interference signal are statistically independent. NMF uses the learned prior information dictionary of the source to be separated to guide subsequent separation. For ICA, when the statistical independence assumption of the target and interference signals is not strong, the separation effect is usually poor; for NMF, when the sources to be separated are highly similar (such as aliasing of similar sounds), the prior dictionary usually has aliasing, resulting in the failure to achieve the separation goal.
[0005] With the development of deep learning technology, various deep neural network architecture models are widely used in single-channel speech separation. For example, models based on one-dimensional time domain and dilated convolution, and separation models based on Conv-LSTM. These models usually adopt the structure of encoder-decoder and sound source separator, in which the encoder is responsible for feature extraction and transformation of the input signal, and the decoder is responsible for synthesizing the separated target signal features to generate target signal estimation. The sound source separator estimates the masking value of the target signal based on the latent space representation output by the encoder.
[0006] The above methods have been successful in experimental environments, but there are some problems. Features of different granularities have different distribution characteristics. Large-grained features have rich long-term information and can reflect the global characteristics of the signal, but lack detailed information. Fine-grained features have detailed information, but are easily affected by noise and lack robustness. In order to produce accurate masking estimates, features of multiple granularities need to be combined. However, the lack of control over the information flow of different granularities may cause feature redundancy, resulting in the mixing of noise of fine-grained features into coarse-grained features, or the blurring of boundary information of fine-grained features by high-grained features, thereby affecting the performance of the estimator. Summary of the invention
[0007] The object of the present invention is to overcome the above technical defects and propose a speech separation method using cascaded masking estimation, the method comprising:
[0008] The mixed sound source signal is input into the encoder, and the latent space matrix is output;
[0009] The latent space matrix is input into a sound source separator, and a masking matrix of the sound source signal to be separated is output; the sound source separator adopts a cascaded masking estimation separator;
[0010] Perform dot multiplication of the latent space matrix and the masking matrix to obtain the estimated value of the sound source signal to be separated in the latent space;
[0011] The estimated value is input into the decoder and the separated target signal waveform is output.
[0012] As an improvement of the above method, the sound source separator includes: a feature extraction module, a cross-granularity feature cascade fusion module and an adder;
[0013] The feature extraction module is used to transform the latent space matrix output by the encoder to generate features of different time granularities and output them to the cross-granularity feature cascade fusion module;
[0014] The cross-granularity feature cascade fusion module is used to gradually refine the quality of fused features through multi-level processing; each level of processing includes two operations: "bottom-up" and "top-down"; "bottom-up" starts from coarse-grained features and gradually fuses fine-grained features of different scales to generate a masking estimate of the target signal at this level; "top-down" fuses the multi-granularity fusion results of the previous level with the granular features of this level respectively, and uses this as the input of this level;
[0015] The adder is used to perform weighted averaging on the masking estimates of each level and each granularity to generate a final masking matrix.
[0016] As an improvement of the above method, the feature extraction module includes a first feature extraction unit FEM_1, a second feature extraction unit FEM_2 and a third feature extraction unit FEM_3 connected in sequence;
[0017] Each feature extraction unit is composed of M stacked 1D causal convolution blocks; these convolution blocks have independent dilation factors, and the dilation factors of these M 1D convolution blocks are d=2 0 ,d=2 1 ,…d=2 M-1 ; These dilation factors determine the width of the temporal context used by the time domain convolution, i.e., the temporal granularity; different temporal granularities are generated by the characteristics of the dilation convolution operation;
[0018] Each 1D causal convolution block includes: 1×1 convolution, nonlinear activation function PReLU, normalization function, D convolution, nonlinear activation function, normalization function, two 1×1 convolutions in parallel and an adder; among them, 1×1 convolution, nonlinear activation function PReLU, normalization function, D convolution, nonlinear activation function, normalization function, one 1×1 convolution and an adder constitute a residual path; 1×1 convolution, nonlinear activation function PReLU, normalization function, D convolution, nonlinear activation function, normalization function and another 1×1 convolution constitute a skip path; the output of the residual path is used as the input of the previous 1D causal convolution block connected to it; and the output of the skip path is the feature of the time granularity;
[0019] The nonlinear activation function PReLU has the following form:
[0020]
[0021] in, is a trainable real number, x is a function variable;
[0022] The normalization function uses global layer normalization, which has the following form gLN(F):
[0023]
[0024]
[0025]
[0026] in, is the input feature to be normalized, N and T represent the number of channels and time dimension respectively; γ and β are trainable parameters, ∈ is a fixed constant; E[F] is the expectation of F, Var[F] is the variance of F, ⊙ is the dot multiplication operation, and gLN(F) is the normalized value of F.
[0027] As an improvement of the above method, the structure of the cross-granularity feature cascade fusion module is:
[0028]
[0029] Among them, CFM represents a cross-granularity feature fusion unit, which is used to fuse features of different time granularities to compensate for the missing information of features of different granularities; 0 means that there is no cross-granularity feature fusion processing unit here, and softmax represents the softmax activation function; the row vectors of the above matrix represent the feature path of the same time granularity, and the column vectors constitute the cross-time granularity feature path; each softmax outputs the processing result to the adder; each CFM outputs the fusion result to the CFM on the right and the CFM on the upper layer respectively.
[0030] As an improvement of the above method, the processing process of the cross-granularity feature fusion unit is:
[0031] assumed and Representing fine-grained and coarse-grained features respectively, we first extract f by calculating the inner product between the two l and f h The common part of the original f l and f h Add together to get the two granular features after fusion and
[0032] f l and f h First, nonlinear transformation is performed separately; then, the two granular features after transformation are element-wise multiplied; the features after product are nonlinearly transformed again to obtain the final common features; these common features are then summed with the original features to obtain and Its mathematical representation is:
[0033]
[0034]
[0035] Among them, Ω l (·),Ω h (·),φ(·), Represent the nonlinear transformation operations on fine-grained and coarse-grained feature paths respectively; these nonlinear transformations have the same structure: including a 2D 3×3 convolution, a batch normalization operation, and a PReLU nonlinear function;
[0036] final, It propagates laterally and enters the next level CFM for processing. It propagates vertically from bottom to top and is input into the next CFM for processing.
[0037] As an improvement of the above method, the method further includes: a step of jointly training the encoder, the sound source separator and the decoder, wherein the cost function uses SI-SDR:
[0038]
[0039] in, T represents the transpose operation; is the estimate of the i-th source output by the source separator; s i is the i-th clean source signal.
[0040] The advantages of the present invention are:
[0041] 1. The method of the present invention adopts cross-granularity feature fusion, integrates the complementary features of two different granularities, coarse and fine, and improves the fusion performance of multi-granularity features;
[0042] 2. In order to further improve the quality and efficiency of multi-granularity feature fusion, the method of the present invention is based on the cross-granularity feature fusion unit, and gradually optimizes the fusion features of multiple time granularities through multi-level refinement and granularity-by-granularity fusion. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 The sound source separation algorithm flow of the encoder-source separator-decoder structure;
[0044] Figure 2 A flow chart of a speech separation method using cascaded masking estimation according to the present invention;
[0045] Figure 3 It is a structural schematic diagram of a feature extraction unit of the present invention;
[0046] Figure 4 Schematic diagram of causal hole convolution of the present invention;
[0047] Figure 5 It is a schematic diagram of the cross-granularity feature fusion unit structure of the present invention. DETAILED DESCRIPTION
[0048] The technical solution of the present invention is described in detail below with reference to the accompanying drawings.
[0049] like Figure 1 As shown, the present invention adopts an end-to-end optimized encoder-source separator-decoder structure. The encoder and decoder are two paired layers. The encoder is used to convert the mixed signal to the latent space to facilitate the subsequent separation operation; the decoder performs a reverse transformation on the processed latent space signal to reconstruct the target signal estimate. The source separator extracts the target signal information in the transform domain.
[0050] like Figure 2 As shown, the present invention proposes a speech separation method using cascade masking estimation, including the following specific processes:
[0051] 1.1 Problem Definition
[0052] The single-channel time-domain speech separation problem can be expressed as: given a mixed signal Estimate C source signals And satisfy m(t)=∑ i s i (t). To simplify the representation, m(t) is expressed as Similarly, s1(t),…,s C (t) can be expressed as
[0053] 1.2 Encoder-Decoder
[0054] The input mixed signal is divided into T0 frames of time length L and overlap L / 2 m k After 1D time domain convolution (i.e. encoder), it is transformed into N-dimensional representation This transformation can be written as a matrix operation:
[0055] w=H(m k U) (1)
[0056] in, Contains N basis vectors of dimension L; H(·) is a nonlinear function, which is selected as Relu(x)=max(0,x) here.
[0057] The decoder uses a 1-dimensional transposed convolution to reconstruct the original waveform from w. This operation can also be expressed in matrix form:
[0058]
[0059] in, is m k The reconstructed signal of Each row of corresponds to a decoding basis vector of length L. Finally, the mixed signal is stacked and added according to Reconstruction is carried out.
[0060] 1.3 Cascaded Masking Estimation Separator
[0061] The separation operation of a single frame signal is performed by estimating C masking vectors where C is the number of speakers in the mixed signal; Mi is an N-dimensional vector whose elements are between 0 and 1.
[0062] Then each source to be separated can be estimated as:
[0063] h i =M i ⊙w (3)
[0064] Among them, ⊙ represents the operation of multiplying the corresponding elements. The waveform of each source signal can be expressed as:
[0065]
[0066] Among them, ∑ i M i =1.
[0067] From the above discussion, it can be seen that the goal of the source separator is to estimate M i , and then the separated target signal can be obtained according to formula (4). In the present invention, the source separator adopts Figure 2 The cascade structure shown estimates the mask vector
[0068] The separator adopts 1D time domain convolution and its dilated convolution as feature extraction modules to generate features of different time granularities. The feature extraction module includes three feature extraction units FEM.
[0069] Features of different granularities are integrated through the cross-granularity feature cascade fusion module to compensate for the missing information of different granularities and suppress / weaken the interference in the features of a single granularity. The cross-granularity feature cascade fusion module constructs multi-level processing through multiple cross-granularity feature fusion units, continuously refines the fusion results, and finally generates a masking estimate of the source to be separated. Each level of processing includes two operations: "bottom-up" and "top-down". "Bottom-up" starts with coarse-grained features and gradually fuses fine-grained features of different scales to generate a masking estimate of the target signal for this level of module. "Top-down" fuses the multi-granularity fusion results of the previous level with the granular features of this level, and uses this as the input of the processing module of this level.
[0070] Finally, the masking estimates of each level and granularity are weighted averaged through an adder to produce the final masking value.
[0071] 1.3.1 Feature Extraction Unit FEM
[0072] The structure of FEM is as follows Figure 3As shown in (a), each FEM is composed of M 1D causal convolution blocks stacked together. These convolution blocks have independent dilation factors. As shown in the figure, the dilation factors of these M convolution blocks are d=2 0 ,d=2 1 ,…d=2 M-1 These dilation factors determine the width of the temporal context exploited by the time domain convolution, and therefore the temporal granularity of the analysis. To understand this, Figure 4 This is a schematic diagram of the causal dilated convolution operation. In the figure, the entire network contains three hidden layers, and the activated neurons are represented by dark colors. As can be seen from the figure, the dilated convolution is equivalent to using a filter with a larger convolution kernel, but this filter is implemented by "filling zeros" between adjacent nodes of the original filter. Compared with standard convolution, dilated convolution allows the network to analyze the input signal at a coarser granularity. Specifically, for the first hidden layer, its dilated factor d = 2 0 = 1, then the dilated convolution is equivalent to the standard convolution. Assuming the convolution kernel size is 2, then Figure 4 As shown, the activation of the neurons in this layer at time t needs to depend on the input at time t and t-1. For the second hidden layer, its hole factor d = 2 1 =2, the activation of the neurons in this layer at time t depends on the input at time t and t-2. For the third hidden layer, its hole factor d = 2 2 =4, the activation of the neuron at time t in this layer depends on the input at time t and t-4. From the above calculation process, it can be seen that the closer to the output layer, the wider the time interval between the inputs that the activation of a single neuron depends on, that is, the larger the time granularity. This is equivalent to first downsampling the input and then using the original convolution kernel to perform a standard convolution operation.
[0073] In a single FEM, each 1-D convolution block has a different time granularity. The addition unit in the FEM accumulates the outputs of 1-D convolutions with different dilation factors to achieve a multi-granularity feature fusion within the FEM unit (see Figure 3 In addition, note that the three FEMs are connected in series (see Figure 2 ), the output of the previous FEM is used as the input of the next FEM. Therefore, in terms of time scale, the FEM connected in series always has a larger time granularity, that is, it can only see the global information at a longer time.
[0074] Figure 3 (b) shows the detailed structure of the 1D convolutional block. Each 1D convolutional block contains a "residual" path and a "skip" path, and the output of the "residual" path is used as the input of the next 1-D convolutional module (see Figure 3(a)); the output of the “jump” path is used as the feature of the time granularity, which is accumulated with the “jump” output features of other 1-D dilated convolutions to produce the output of the FEM (see Figure 3 (a)). In order to further reduce the model parameters, Depthwise separable convolution (S-conv) is used to replace the standard convolution. This convolution greatly reduces the number of parameters and computational costs by decoupling the standard convolution into Depthwise convolution (D-conv) and Pointwise convolution (1×1 convolution).
[0075] D-conv(Y,K)=concat(y j *k j ),j=1,…,G
[0076] S-conv(Y,K,L)=D-conv(Y,K)*L (5)
[0077] in, is the input of S-conv(·), is a convolution kernel of length P, and are the j-th row of matrices Y and K, respectively, is a convolution kernel of scale 1, that is, L represents G×H 1×1 convolutions, concat(·) is the operation of concatenating vectors by rows, and * represents the convolution operation.
[0078] It can be seen that the Depthwise separable convolution contains only G×P+G×H parameters, while the corresponding standard convolution requires the kernel It contains G×P×H parameters.
[0079] After each convolution operation, nonlinear activation and normalization operations are added. The nonlinear activation function PReLU has the following form:
[0080]
[0081] in, is a trainable real number.
[0082] The normalization operation uses global layer normalization, which has the following form:
[0083]
[0084]
[0085]
[0086] in, is the input feature to be normalized, N and T represent the number of channels and time dimension respectively. γ and β are trainable parameters, and ∈ is a fixed constant.
[0087] 1.3.2 Cross-granularity feature fusion unit CFM
[0088] CFM completes the fusion of features of different granularities. It reduces the inconsistency between features through cross-feature correlation operations. Figure 5 A schematic diagram of the cross-granularity feature fusion unit is given. CFM contains coarse-grained feature paths and fine-grained feature paths. Fine-grained features contain rich detail information and background noise; while for coarse-grained features, due to the dilated convolution operation with a gradually increasing receptive field, the resolution at the category boundary is relatively fuzzy.
[0089] assumed and Representing fine-grained and coarse-grained features respectively, CFM first extracts f by calculating the inner product between the two l and f h The common part of the original f l and f h Add together to get the two granular features after fusion and Specifically, f l and f h First, nonlinear transformation is performed separately; then, the two granular features after transformation are element-wise multiplied. The features after product are nonlinearly transformed again to obtain the final common features. These common features are then summed with the original features to obtain and Its mathematical representation is:
[0090]
[0091]
[0092] Among them, Ω l (·),Ω h (·),φ(·), Respectively represent the nonlinear transformation functions on the fine-grained and coarse-grained feature paths; the nonlinear transformation operation includes a 2D 3×3 convolution, batch normalization operation, and PReLU nonlinear function. Finally, Transmitted laterally to the next level CFM for processing (see Figure 2 transverse flow direction), and Then it propagates vertically from bottom to top and enters the next CFM for processing (see Figure 2 longitudinal flow direction).
[0093] 1.3.3 Cost Function
[0094] Model training is optimized in an end-to-end manner. The cost function uses SI-SDR:
[0095]
[0096] in, T represents the transpose operation; is the estimate of the ith source obtained by the model; s i is the i-th clean source signal.
[0097] 2. The implementation process is as follows:
[0098] Training process
[0099] Input: mixed signal X = {x0,…,x L}, clean source signal and
[0100] Parameters: Encoder ε(θ i ; ·), decoder Source Separator
[0101] Output: trained ε(θ i ;·),
[0102] Repeat:
[0103] 1. WSJ0-2mix is used to train the entire end-to-end sound source separation system; 30 hours of data are used for training and 10 hours of data are used for verification;
[0104] 2. The network is trained on 4-second speech segments for 200 epochs;
[0105] 3. If there is no improvement on the validation set for three consecutive epochs, the learning rate is halved;
[0106] 4. Select Adam as the optimizer, gradient truncation is used to ensure training convergence, and weight decay is set to 0.0005;
[0107] 5. Calculate using formula (9) As a training cost function;
[0108] 5. Update parameters using back propagation algorithm
[0109] Until convergence
[0110] Testing Process
[0111] Input: mixed signal X = {x0,…,x L}, encoder ε(θ i ; ·), decoder Source Separator
[0112] Output: separated signal and
[0113] Repeat
[0114] 1.X input is composed of {encoder ε(θ i ; ·), decoder Source Separator The source separation system produced an estimate of the clean signal and
[0115] Until all audio is processed.
[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention is described in detail with reference to the embodiments, it should be understood by those skilled in the art that any modification or equivalent replacement of the technical solutions of the present invention does not depart from the spirit and scope of the technical solutions of the present invention and should be included in the scope of the claims of the present invention.
Claims
1. A speech separation method using cascaded masking estimation, the method include: The mixed sound source signal is input into the encoder, and the latent space matrix is output; The latent space matrix is input into the sound source separator, and the masking matrix of the sound source signal to be separated is output; The sound source separator adopts a cascaded masking estimation separator; Perform dot multiplication of the latent space matrix and the masking matrix to obtain the estimated value of the sound source signal to be separated in the latent space; The estimated value is input into the decoder, and the separated target signal waveform is output; The sound source separator comprises: a feature extraction module, a cross-granularity feature cascade fusion module and an adder; The feature extraction module is used to transform the latent space matrix output by the encoder to generate features of different time granularities and output them to the cross-granularity feature cascade fusion module; The cross-granularity feature cascade fusion module is used to gradually refine the quality of fused features through multi-level processing; each level of processing includes two operations: "bottom-up" and "top-down"; "bottom-up" starts from coarse-grained features and gradually fuses fine-grained features of different scales to generate a masking estimate of the target signal at this level; "top-down" fuses the multi-granularity fusion results of the previous level with the granular features of this level respectively, and uses this as the input of this level; The adder is used to perform weighted averaging on the masking estimates of each level and each granularity to generate a final masking matrix.
2. The method for speech separation using cascaded masking estimation according to claim 1, It is characterized in that The feature extraction module comprises a first feature extraction unit FEM_1, a second feature extraction unit FEM_2 and a third feature extraction unit FEM_3 connected in sequence; Each feature extraction unit is composed of M stacked 1D causal convolution blocks; these convolution blocks have independent dilation factors, and the dilation factors of these M 1D convolution blocks are ; These dilation factors determine the width of the temporal context used by the time domain convolution, i.e., the temporal granularity; Different time granularities are generated by the characteristics of the dilated convolution operation; Each 1D causal convolutional block consists of: Convolution, nonlinear activation function PReLU, normalization function, D convolution, nonlinear activation function, normalization function, two in parallel Convolution and addition operators; among them, Convolution, nonlinear activation function PReLU, normalization function, D convolution, nonlinear activation function, normalization function, one The convolution and addition operators form the residual path; Convolution, nonlinear activation function PReLU, normalization function, D convolution, nonlinear activation function, normalization function, and another The convolution forms a skip path; the output of the residual path is used as the input of the previous 1D causal convolution block connected to it; and the output of the skip path is the feature of the time granularity; The nonlinear activation function PReLU has the following form: ; in, is a trainable real number, is a function variable; The normalization function uses global layer normalization, which has the following form : ; ; ; in, is the input feature to be normalized, and Represent the number of channels and time dimension respectively; and is a trainable parameter, is a fixed constant; for expectations, for The variance of is the dot multiplication operation, for The normalized value of .
3. The method for speech separation using cascaded masking estimation according to claim 2, It is characterized in that The structure of the cross-granularity feature cascade fusion module is: ; Among them, CFM represents a cross-granularity feature fusion unit, which is used to fuse features of different time granularities to compensate for the missing information of features of different granularities; 0 means that there is no cross-granularity feature fusion processing unit here, and softmax represents the softmax activation function; the row vectors of the above matrix represent the feature path of the same time granularity, and the column vectors constitute the cross-time granularity feature path; each softmax outputs the processing result to the adder; each CFM outputs the fusion result to the CFM on the right and the CFM on the upper layer respectively.
4. The method for speech separation using cascaded masking estimation according to claim 3, It is characterized in that The processing process of the cross-granularity feature fusion unit is as follows: assumed and Representing fine-grained and coarse-grained features respectively, first extract them by calculating the inner product between the two and the public part of Then, the common part is respectively and Add together to get the two granular features after fusion and : and First, nonlinear transformation is performed separately; then, the two granular features after transformation are element-wise multiplied; the features after product are nonlinearly transformed again to obtain the final common features; These common features are then summed with the original features to obtain and ; Its mathematical expression is: ; ; in, , , , , Represent the nonlinear transformation operations on fine-grained and coarse-grained feature paths respectively; these nonlinear transformations have the same structure: they contain a 2-dimensional Convolution, batch normalization operations, and PReLU nonlinear functions; final, It propagates laterally and enters the next level CFM for processing. It propagates vertically from bottom to top and is input into the next CFM for processing.
5. The method for speech separation using cascaded masking estimation according to claim 4, It is characterized in that The method further comprises: a step of jointly training an encoder, a sound source separator and a decoder, wherein the cost function uses SI-SDR: ; in, ; Represents the transpose operation; It is the output of the sound source separator. Estimates of individual sources; It is A clean source signal.
Citation Information
Patent Citations
Complex field speech enhancement method and system based on generative adversarial network and medium
CN110739002A
Voice separation method and device, electronic equipment and storage medium
CN111326168A
