A target speech separation method and system based on cross-modal loss
By introducing cross-modal loss and visual embedding into the target speech separation technology, and combining audio-visual multi-modal and single-modal branch architectures, the problems of target confusion and difficulty in obtaining auxiliary information in target speech separation are solved, and the accuracy of speech extraction is improved. sex and fitness.
Patent Information
- Application Number
- CN202410209637.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-26
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-02-26
AI Technical Summary
Existing target speech separation technology is prone to target confusion and difficulty in obtaining auxiliary information, especially when the target speech overlaps with background noise or interfering speech spectrum, resulting in low quality of the extracted speech, and it is difficult to obtain the speaker in real application scenarios Identity tags or pre-recorded voice clips.
A target speech separation method based on cross-modal loss is adopted to extract visual embeddings by introducing the visual information of the target speaker, and use self-extracted audio embeddings to replace pre-registered speech. It combines audio-visual multi-modal and single-modal branch architectures to utilize cross-modal Use state loss to perform metric learning to shorten the distance between positive samples and farther away from negative samples to optimize speech extraction.
It effectively avoids the problem of target confusion, improves the adaptability of target speech separation in practical application scenarios, obtains more accurate speaker embedding and speech extraction quality, and solves the problem of difficulty in obtaining auxiliary information.
Smart Images

Figure CN118016093B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of speech processing, and in particular relates to a target speech separation method and system based on cross-modal loss. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] The target speech separation problem refers to extracting the voice of a specific target speaker from mixed audio, and is a branch of the speech separation problem. In complex multi-speaker scenarios, speech separation can effectively improve the performance of applications such as speech recognition and speaker recognition, and can be applied to systems such as remote conference recording and smart home. Unlike multi-speaker separation, which extracts the voices of all speakers in a speaking scene, target speech separation has only one output, which is the estimated voice of the target speaker. Target speech separation can avoid the problem of permutation ambiguity in multi-speaker separation, and does not require the number of speakers to be known in advance, but prior knowledge or auxiliary information must be provided to specify the target signal. Depending on the form of the auxiliary information, target speech separation can be divided into methods such as relying on the target speaker's vision and relying on the target speaker's registered speech fragment to assist in extraction.
[0004] The target speech separation network usually consists of a main network and an auxiliary network, where the main network is used to learn the target speaker mask and the auxiliary network is used to learn discriminative speaker embeddings. In the target speech separation network, the output of the auxiliary network has important guiding significance for the main network. When the speaker embedding generated by the auxiliary network cannot distinguish the target speaker from the interfering speaker, the target confusion problem will occur, that is, the interfering speaker is incorrectly extracted, or the target speaker speech quality is not high. At the same time, the information such as speaker labels and speaker pre-registration fragments used in the auxiliary network may be difficult to obtain and are not suitable for real application scenarios. Therefore, if the auxiliary information can be better utilized to extract discriminative embeddings, the performance of target speech separation will be further improved.
[0005] However, according to the inventors' understanding, the current target speech separation has the following problems:
[0006] (1) Target confusion is likely to occur: When the target speech overlaps with the background noise or interfering speech in the frequency spectrum, the different sound sources in the mixed signal will interfere with each other in the frequency domain, resulting in the extraction of the interfering speaker's speech or the extraction of the target speaker's speech of low quality.
[0007] (2) It is difficult to obtain some auxiliary information: In the method that relies on visual-assisted extraction of the target speaker, it is usually necessary to obtain the speaker identity label during training and calculate the speaker classification loss to constrain the speaker extraction. However, identity labels are difficult to obtain in real life. In the method that relies on the target speaker's registered speech segment to assist extraction, it is necessary to obtain a pre-recorded pure speech of the target speaker in advance, which is not suitable for actual application scenarios. Summary of the invention
[0008] In order to solve the above problems, the present invention proposes a target speech separation method and system based on cross-modal loss. The present invention introduces the visual information of the target speaker into the model to extract visual embedding, adopts self-extracted audio embedding to replace pre-registered speech, and replaces speaker cross-entropy loss with cross-modal loss. This can avoid the target confusion problem and improve the adaptability of the target speech separation in actual application scenarios.
[0009] According to some embodiments, the present invention adopts the following technical solutions:
[0010] A target speech separation method based on cross-modal loss comprises the following steps:
[0011] Obtain the target speaker's video and extract the target speaker's lip sequence;
[0012] Obtaining a mixed audio signal;
[0013] The pre-trained target speech separation model is used to obtain the separated target speech signal based on the target speaker's lip sequence and the mixed audio signal, and the training process of the target speech separation model takes cross-modal loss into consideration;
[0014] The target speech separation model has a two-branch architecture during the training process, where:
[0015] The first branch is used to realize audio-visual multimodal target speech extraction, and obtains the separated target speech signal based on the target speaker's lip sequence and the mixed audio signal;
[0016] The second branch is used to realize the unimodal interference speech extraction. Based on the estimated target speech signal and the mixed audio signal of the first branch, the separated interference speech signal is obtained. The obtained interference speech signal is used as auxiliary information to affect the extraction of the target speech of the first branch through the cross-modal loss.
[0017] The cross-modal loss affects the training process of the two branches at the same time, performs metric learning between the target speaker's visual features, the target speech features, and the interfering speech features, shortens the distance between positive samples, increases the distance between negative samples, and constrains the extraction of visual and auditory features.
[0018] As an optional implementation, the first branch includes an audio encoder, a visual encoder, a speaker extractor and an audio decoder, wherein:
[0019] The audio encoder extracts audio embeddings from the mixed audio signal, and the visual encoder encodes the target speaker's lip sequences into visual embeddings;
[0020] A speaker extractor receives the extracted audio embedding and visual embedding inputs, the speaker extractor includes multiple layers of iterative extractor blocks, each of which includes a speaker encoder and a mask estimator, the speaker encoder concatenates the embeddings of the two modalities in the time dimension to obtain a target speaker embedding containing discriminative identity information, and the mask estimator obtains a target speaker mask according to the visual embedding, the target speaker embedding and the output of the mask estimator of the previous layer;
[0021] The audio decoder obtains a target speech signal based on a target speaker mask.
[0022] As an optional implementation, the second branch comprises an audio encoder, a speaker extractor and an audio decoder connected in sequence;
[0023] The second branch only exists during training.
[0024] As an optional implementation, the audio encoder of the second branch receives the difference between the mixed audio signal and the target speech signal estimated in the first branch, and the speaker encoder only receives the audio embedding and outputs the interference speaker embedding.
[0025] As an optional implementation, the audio encoder includes a one-dimensional convolution for converting the time domain audio signal into an audio feature sequence.
[0026] As an optional implementation, the audio decoder performs an overlap-add operation to reconstruct the audio feature sequence into an audio signal.
[0027] As an optional implementation, the visual encoder includes a 3D convolution layer, a residual network layer and a video time convolution layer connected in sequence, the video time convolution layer includes a rectified linear unit, a batch normalization layer and a depth-separable convolution layer connected in sequence, the visual encoder receives the audio-synchronized cropped target speaker lip sequence, extracts the visual embedding through the network layer, upsamples the output of the video time convolution layer, and finally obtains the visual embedding
[0028] As an optional implementation, the speaker encoder includes three residual blocks and an adaptive average pooling layer connected in sequence, and the mask estimator includes a plurality of stacked temporal convolution blocks, each of which includes a plurality of one-dimensional convolution layers and residual modules connected in sequence.
[0029] As an optional implementation, a cross-modal loss is introduced into the target speech separation algorithm, and metric learning is performed between the target speaker's visual features, the target speech features, and the interfering speech features. The audiovisual consistency is used to constrain the extraction of visual and auditory features, and the interfering speaker information is converted into auxiliary information to optimize the speech extraction of the first branch.
[0030] As an optional implementation, during the training process of the target speech separation model, a multi-task learning framework containing three objective functions is constructed. The scale-invariant signal-to-noise ratio loss of the first branch is used to measure the quality between the extracted target speech and the clean speech, the scale-invariant signal-to-noise ratio loss of the second branch is used to measure the quality between the extracted interference speech and the clean target speech, and the cross-modal loss is used to pull in the target visual features and estimate the audio features of the target speech signal, and to pull out the target visual features and estimate the audio features of the interference speech signal.
[0031] As an optional implementation, during the training process of the target speech separation model, the existing audio data and the corresponding video data are used to perform optimization training using the Adam optimizer until the test requirements are met.
[0032] A target speech separation system based on cross-modal loss, comprising:
[0033] The data acquisition module is configured to acquire a target speaker video, extract a target speaker lip sequence, and acquire a mixed audio signal;
[0034] A target speech separation module is configured to obtain a separated target speech signal based on a target speaker lip sequence and a mixed audio signal using a pre-trained target speech separation model, and a training process of the target speech separation model considers cross-modal loss;
[0035] The target speech separation model has a two-branch architecture during the training process, where:
[0036] The first branch is used to realize audio-visual multimodal target speech extraction, and obtains the separated target speech signal based on the target speaker's lip sequence and the mixed audio signal;
[0037] The second branch is used to realize the unimodal interference speech extraction. Based on the estimated target speech signal and the mixed audio signal of the first branch, the separated interference speech signal is obtained. The obtained interference speech signal is used as auxiliary information to affect the extraction of the target speech of the first branch through the cross-modal loss.
[0038] The cross-modal loss affects the training process of the two branches at the same time, performs metric learning between the target speaker's visual features, the target speech features, and the interfering speech features, shortens the distance between positive samples, increases the distance between negative samples, and constrains the extraction of visual and auditory features.
[0039] An electronic device comprises a memory and a processor, and computer instructions stored in the memory and executed on the processor. When the computer instructions are executed by the processor, the steps in the above method are completed.
[0040] Compared with the prior art, the present invention has the following beneficial effects:
[0041] The present invention introduces the visual information of the target speaker into the model to extract visual embedding, adopts self-extracted audio embedding instead of pre-registered speech, splices the self-extracted audio embedding and visual embedding and sends them to the speaker encoder to obtain speaker embedding as an attractor of the separation network, thereby avoiding the target confusion problem.
[0042] The present invention replaces speaker cross entropy loss with cross-modal loss. During the training process, the distance between the target speaker's audio embedding and visual embedding is shortened, and the distance between the interfering speaker's audio embedding and visual embedding is increased, so as to urge the visual encoder to extract better visual embedding, thereby obtaining more accurate speaker embedding. Self-extracted speech replaces pre-registered speech, and the speaker extractor network is repeated four times to obtain prior knowledge to solve the problem of difficulty in obtaining auxiliary information.
[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0045] Figure 1 Schematic diagram of the model structure of this embodiment;
[0046] Figure 2 Schematic diagram of the structure of the mask estimator of this embodiment. DETAILED DESCRIPTION
[0047] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0048] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0049] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0050] In the absence of conflict, the embodiments in this application and the features in the embodiments may be combined with each other.
[0051] Embodiment 1
[0052] A target speech separation method based on cross-modal loss comprises the following steps:
[0053] Obtain the target speaker's video and extract the target speaker's lip sequence;
[0054] Obtaining a mixed audio signal;
[0055] The pre-trained target speech separation model is used to obtain the separated target speech signal based on the target speaker's lip sequence and the mixed audio signal, and the training process of the target speech separation model takes cross-modal loss into consideration;
[0056] The target speech separation model has a two-branch architecture during the training process, where:
[0057] The first branch is used to realize audio-visual multimodal target speech extraction, and obtains the separated target speech signal based on the target speaker's lip sequence and the mixed audio signal;
[0058] The second branch is used to realize the unimodal interference speech extraction. Based on the estimated target speech signal and the mixed audio signal of the first branch, the separated interference speech signal is obtained. The obtained interference speech signal is used as auxiliary information to affect the extraction of the target speech of the first branch through the cross-modal loss.
[0059] The cross-modal loss affects the training process of the two branches at the same time, performs metric learning between the target speaker's visual features, the target speech features, and the interfering speech features, shortens the distance between positive samples, increases the distance between negative samples, and constrains the extraction of visual and auditory features.
[0060] The pre-trained target speech separation model includes an audio encoder, a visual encoder, a speaker extractor, and an audio decoder, where:
[0061] The audio encoder extracts audio embeddings from the mixed audio signal, and the visual encoder encodes the target speaker's lip sequences into visual embeddings;
[0062] A speaker extractor receives the extracted audio embedding and visual embedding inputs, the speaker extractor includes multiple layers of iterative extractor blocks, each of which includes a speaker encoder and a mask estimator, the speaker encoder concatenates the embeddings of the two modalities in the time dimension to obtain a target speaker embedding containing discriminative identity information, and the mask estimator obtains a target speaker mask according to the visual embedding, the target speaker embedding and the output of the mask estimator of the previous layer;
[0063] The audio decoder obtains a target speech signal based on a target speaker mask.
[0064] The target speech separation model of this embodiment is a dual-branch speaker extraction network based on the time domain, such as Figure 1 As shown in the figure, it mainly consists of four parts, namely audio encoder, audio decoder, visual encoder and speaker extractor.
[0065] The first branch and the second branch both have an audio encoder, an audio decoder and a speaker extractor.
[0066] The audio encoder extracts audio embedding from the input mixed audio signal, the audio decoder can restore the audio embedding to an audio signal, and the visual encoder encodes the input target speaker lip sequence into a visual embedding. The main task of the speaker extractor is to obtain the speaker mask, but the structures of the two branches are slightly different, and the second branch only exists in the training phase. In actual use or testing, the second branch does not exist.
[0067] The following is a detailed introduction to each part of the model.
[0068] Audio encoder: The audio encoder converts the time domain audio signal into Convert to audio feature sequence ,The conversion process can be expressed as:
[0069] (1)
[0070] in, N is the audio embedding dimension, T is the total number of audio samples, , L is the convolution kernel size of the one-dimensional convolution.
[0071] In the second branch, the input of the audio encoder is the difference between the mixed audio signal and the target speech signal estimated in the first branch.
[0072] Audio decoder: The audio decoder performs an overlap-add operation to convert the audio feature sequence Reconstruction into audio signal , the decoding process is:
[0073] (2)
[0074] (3)
[0075] In the model, in this embodiment, set L is 40, N is 256.
[0076] Visual encoder: The visual encoder mainly consists of three parts: 3D convolution layer, ResNet18 layer and video temporal convolution layer. The 3D convolution layer and ResNet18 layer are derived from the pre-trained lip reading network. Their weights are fixed during speaker extraction training. The video temporal convolution layer consists of rectified linear units (Relu), batch normalization layers (BN) and depthwise separable convolution layers (DS Conv1D). The visual encoder receives the audio-synchronized cropped lip sequence of the target speaker and extracts the visual embedding through the network layer. In order to match the temporal resolution of the audio embedding, the output of the video temporal convolution layer needs to be upsampled to finally obtain a visual embedding of size 1024. .
[0077] Speaker Extractor: The speaker extractor consists of four layers of extractor blocks, each of which consists of a speaker encoder and a mask estimator. The speaker encoder encodes the speaker embedding according to the dynamically estimated speech signal. , the mask estimator estimates a mask that only lets the target speech pass The speaker encoder consists of three residual blocks and an adaptive average pooling layer. In the two branches, the two encoders are slightly different. In the first branch containing visual information, the speaker encoder receives the visual embedding output by the visual encoder and the audio embedding of the dynamically estimated speech signal, concatenates the embeddings of the two modalities in the time dimension, and outputs the target speaker embedding containing discriminative identity information with an embedding size of 256. In the second branch, the speaker encoder only receives the audio embedding as input and outputs the perturbed speaker embedding.
[0078] like Figure 2 As shown in Figure 1, the mask estimator is built based on a temporal convolutional network, which is composed of 8 stacked temporal convolutional blocks. Each temporal convolutional block consists of multiple one-dimensional convolutional layers and residual modules. The kernel size of the one-dimensional convolution is 3, and the expansion factor of the temporal convolutional block is The input of the mask estimator is the visual embedding , target speaker embedding And the mask output by the previous layer extraction block ,The mask estimator input in the second branch does not contain visual embedding, and the rest is the same as the first branch.
[0079] In this embodiment, three objective functions are used to construct a multi-task learning framework. The scale-invariant signal-to-noise ratio (SISNR) loss of the first branch is used to measure the quality between the extracted target speech and the clean speech. The scale-invariant signal-to-noise ratio loss (SISNR) of the second branch is used to measure the quality between the extracted interference speech and the clean target speech. The cross-modal loss is used to pull in the target visual features and the estimated target speech signal audio features, and pull out the target visual features and the estimated interference speech signal audio features. The loss definition is as follows.
[0080] (4)
[0081] (5)
[0082] (6)
[0083] in, is the scaling factor, which is set to 0.1 in this embodiment.
[0084] Of course, in other embodiments, the proportional factors of various losses may be set or adjusted according to the requirements of target speech separation, application scenarios, etc.
[0085] In formula (6), dp represents the cosine distance between the visual features and the estimated target speech signal audio features, dn represents the cosine distance between the visual feature and the estimated audio feature of the interfering speech signal, , margin is the margin between the two distances , Set to 0.5.
[0086] In this embodiment, the data set VoxCeleb2 is used to train and evaluate the model. The data set VoxCeleb2 contains more than 1 million audios and corresponding videos extracted from YouTube, with 5994 speakers in the training set and 118 speakers in the test set. Two voices can be randomly selected from the original training data set each time and directly mixed to create a training set containing 20,000 mixed audios. Two voices can be randomly selected from the original test set each time and directly mixed to create a verification set containing 5,000 mixed audios. There are 3,000 mixed audios in the test set, and the creation method is the same as the verification set. The sampling frequency of each voice in the data set is 16kHz, and the audio length is 4s. In the data set, the video sampling rate is 25FPS, and the video and audio lengths are the same and the time corresponds.
[0087] During the model training process, this embodiment uses the Adam optimizer and sets the initial learning rate to 1e -4If the validation set loss increases for 3 consecutive epochs, the learning rate is reduced by 0.5. When the validation loss increases for 6 consecutive epochs, the training stops. In the inference stage, only the speaker extraction process of the first branch is retained.
[0088] Of course, in the above process, the data set can be trained with data from other legal public sources, and the model optimizer, such as momentum optimizer, etc., are all conventional options that can be easily thought of by technicians in this field and will not be elaborated here.
[0089] It can be understood that in other embodiments, the setting values, values, etc. of the above parameters or thresholds can be adjusted or changed according to specific scenarios and situations. These are conventional options that can be easily thought of by technical personnel in this field and should fall within the scope of protection of the present invention.
[0090] Embodiment 2
[0091] A target speech separation system based on cross-modal loss, characterized by comprising:
[0092] The data acquisition module is configured to acquire a target speaker video, extract a target speaker lip sequence, and acquire a mixed audio signal;
[0093] A target speech separation module is configured to obtain a separated target speech signal based on a target speaker lip sequence and a mixed audio signal using a pre-trained target speech separation model, and a training process of the target speech separation model considers cross-modal loss;
[0094] The target speech separation model has a two-branch architecture during the training process, where:
[0095] The first branch is used to realize audio-visual multimodal target speech extraction, and obtains the separated target speech signal based on the target speaker's lip sequence and the mixed audio signal;
[0096] The second branch is used to realize the unimodal interference speech extraction. Based on the estimated target speech signal and the mixed audio signal of the first branch, the separated interference speech signal is obtained. The obtained interference speech signal is used as auxiliary information to affect the extraction of the target speech of the first branch through the cross-modal loss.
[0097] The cross-modal loss affects the training process of the two branches at the same time, performs metric learning between the target speaker's visual features, the target speech features, and the interfering speech features, shortens the distance between positive samples, increases the distance between negative samples, and constrains the extraction of visual and auditory features.
[0098] The trained target speech separation model includes an audio encoder, a visual encoder, a speaker extractor, and an audio decoder, wherein:
[0099] The audio encoder extracts audio embeddings from the mixed audio signal, and the visual encoder encodes the target speaker's lip sequences into visual embeddings;
[0100] A speaker extractor receives the extracted audio embedding and visual embedding inputs, the speaker extractor includes multiple layers of iterative extractor blocks, each of which includes a speaker encoder and a mask estimator, the speaker encoder concatenates the embeddings of the two modalities in the time dimension to obtain a target speaker embedding containing discriminative identity information, and the mask estimator obtains a target speaker mask according to the visual embedding, the target speaker embedding and the output of the mask estimator of the previous layer;
[0101] The audio decoder obtains a target speech signal based on a target speaker mask.
[0102] In order to verify the effectiveness and performance of the technical solutions provided in the above embodiments, the following quality evaluation is performed here.
[0103] In this embodiment, the following four indicators are used to evaluate the performance of the target speech separation algorithm.
[0104] (1) Signal to Distortion Ratio improvement (SDRi). SDRi is the difference between the two signal distortion ratios (SDR) of the estimated speech signal and the input mixed speech signal. It can directly reflect the improvement of the speech signal quality before and after the algorithm separation. The greater the SDR improvement before and after the algorithm separation, the larger the SDRi value, indicating that the model performance is better. SDR represents the ratio of the target signal power to the power of other interference signals, reflecting the energy ratio of the target speech component to other interference speech components in the enhanced speech after algorithm separation. The larger the proportion of the target effective signal, the larger the signal distortion ratio, indicating that the target speech separated by the algorithm is closer to the real speech. The calculation formula of SDR is:
[0105] (7)
[0106] (2) Scale Invariant Signal to Distortion Ratio improvement (SISDR). SISDRi is the difference between the two scale invariant signal distortion ratios (SISDR) of the estimated speech signal and the input mixed speech signal. SISDR is a more robust improved evaluation index proposed on the basis of SDR, which aims to avoid the deviation problem caused by scale mismatch. The larger the SISDR value, the closer the estimated speech separated by the separation algorithm is to the real speech, and the better the model performance. The calculation formula of SISDR is:
[0107] (8)
[0108] (3) Perceptual Evaluation of Speech Quality (PESQ). PESQ is one of the most commonly used quality evaluation indicators for speech enhancement, separation, and extraction. This indicator is designed based on the subjective evaluation indicator MOS. The MOS prediction value is calculated by using the noisy attenuated signal and the reference signal, and the score range is mapped to the MOS scale range. The PESQ value range is between -0.5 and 4.5. The larger the value, the better the test speech quality.
[0109] (4) Short-Time Objective Intelligibility (STOI). STOI is an objective speech quality evaluation index that is linearly related to the intelligibility of speech signals. It is used to evaluate the intelligibility of speech signals and is applicable to scenarios such as speech recognition. STOI aims to calculate the percentage of words that can be accurately understood in a speech segment, thereby evaluating the comprehensibility of the extracted speech. Its range is between 0 and 1. The larger the STOI, the higher the intelligibility of the extracted speech.
[0110] The results of the model evaluation on the dataset VoxCeleb2 are shown in Table 1. After algorithm processing, the SISDR of the speech signal increased by 8.201dB and the SDR increased by 8.777dB. The model effectively extracts the target speech from the mixed speech signal without introducing complex target auxiliary information, avoiding the target confusion problem and achieving good results in various evaluation indicators.
[0111] Table 1 Target speech separation results in the scheme of the present invention
[0112]
[0113] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of an all-hardware embodiment, an all-software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of one or more computer-usable storage media (including but not limited to disk storage, CD - ROM , optical storage, etc.).
[0114] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0115] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0116] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0117] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made by those skilled in the art within the spirit and principle of the present invention without creative labor shall be included in the protection scope of the present invention.
Claims
1. A target speech separation method based on cross-modal loss, characterized in that: The following steps are involved: Obtain the target speaker's video and extract the target speaker's lip sequence; Obtaining a mixed audio signal; The pre-trained target speech separation model is used to obtain the separated target speech signal based on the target speaker's lip sequence and the mixed audio signal, and the training process of the target speech separation model takes cross-modal loss into consideration; The target speech separation model has a two-branch architecture during the training process, where: The first branch is used to realize audio-visual multimodal target speech extraction, and obtains the separated target speech signal based on the target speaker's lip sequence and the mixed audio signal; The first branch includes an audio encoder, a visual encoder, a speaker extractor and an audio decoder, wherein: The audio encoder extracts audio embeddings from the mixed audio signal, and the visual encoder encodes the target speaker's lip sequences into visual embeddings; A speaker extractor receives the extracted audio embedding and visual embedding inputs, the speaker extractor includes multiple layers of iterative extractor blocks, each of which includes a speaker encoder and a mask estimator, the speaker encoder concatenates the embeddings of the two modalities in the time dimension to obtain a target speaker embedding containing discriminative identity information, and the mask estimator obtains a target speaker mask according to the visual embedding, the target speaker embedding and the output of the mask estimator of the previous layer; The audio decoder obtains a target speech signal based on a target speaker mask; The second branch is used to realize the unimodal interference speech extraction. Based on the estimated target speech signal and the mixed audio signal of the first branch, the separated interference speech signal is obtained. The obtained interference speech signal is used as auxiliary information to affect the extraction of the target speech of the first branch through the cross-modal loss. The second branch comprises an audio encoder, a speaker extractor and an audio decoder connected in sequence; The second branch only exists during training; The audio encoder of the second branch receives the difference between the mixed audio signal and the target speech signal estimated in the first branch, and the speaker encoder only receives the audio embedding and outputs the interference speaker embedding; The first branch and the second branch both have an audio encoder, an audio decoder and a speaker extractor; Among them, the audio encoder realizes the time domain audio signal through one-dimensional convolution Convert to audio feature sequence ,The conversion process can be expressed as: in, N is the audio embedding dimension, T is the total number of audio samples, , L is the convolution kernel size of one-dimensional convolution; The audio decoder performs an overlap-add operation to convert the audio feature sequence Reconstruction into audio signal , the decoding process is: During the training process of the target speech separation model, a multi-task learning framework with three objective functions is constructed. The scale-invariant signal-to-noise ratio loss of the first branch is used to measure the quality between the extracted target speech and the clean speech. The scale-invariant signal-to-noise ratio loss of the second branch is used to measure the quality between the extracted interference speech and the clean target speech. The cross-modal loss is used to bring the target visual features and the estimated target speech signal audio features closer, and to pull the target visual features and the estimated interference speech signal audio features further apart. The loss definition is as follows; The cross-modal loss affects the training process of both branches at the same time, performs metric learning between the target speaker's visual features, the target speech features, and the interfering speech features, shortens the distance between positive samples, lengthens the distance between negative samples, and constrains the extraction of visual and auditory features. in, is the scaling factor, represents the cosine distance between the visual features and the estimated target speech signal audio features, represents the cosine distance between the visual feature and the estimated audio feature of the interfering speech signal, , is the margin between the two distances , Set to 0.5; Cross-modal loss is introduced into the target speech separation algorithm, and metric learning is performed between the target speaker's visual features, target speech features and interfering speech features. The audio-visual consistency is used to constrain the extraction of visual and auditory features, and the interfering speaker information is converted into auxiliary information to optimize the speech extraction of the first branch.
2. The target speech separation method based on cross-modal loss as claimed in claim 1, characterized in that: The visual encoder includes a 3D convolutional layer, a residual network layer and a video time convolutional layer connected in sequence, and the video time convolutional layer includes a rectified linear unit, a batch normalization layer and a depth-separable convolutional layer connected in sequence. The visual encoder receives the audio-synchronized cropped lip sequence of the target speaker, extracts the visual embedding through the network layer, upsamples the output of the video time convolutional layer, and finally obtains the visual embedding.
3. The target speech separation method based on cross-modal loss as claimed in claim 1, characterized in that: The speaker encoder includes three residual blocks and an adaptive average pooling layer connected in sequence, and the mask estimator includes a plurality of stacked temporal convolution blocks, each of which includes a plurality of one-dimensional convolution layers and residual modules connected in sequence.
4. The target speech separation method based on cross-modal loss as claimed in claim 1, characterized in that: During the training process of the target speech separation model, the existing audio data and corresponding video data are used to perform optimization training using the Adam optimizer until the test requirements are met.
5. A target speech separation system based on cross-modal loss, characterized in that: include: A data acquisition module is configured to acquire a target speaker video and extract a lip sequence of the target speaker; Obtaining a mixed audio signal; A target speech separation module is configured to obtain a separated target speech signal based on a target speaker lip sequence and a mixed audio signal using a pre-trained target speech separation model, and a training process of the target speech separation model considers cross-modal loss; The target speech separation model has a two-branch architecture during the training process, where: The first branch is used to realize audio-visual multimodal target speech extraction, and obtains the separated target speech signal based on the target speaker's lip sequence and the mixed audio signal; The first branch includes an audio encoder, a visual encoder, a speaker extractor and an audio decoder, wherein: The audio encoder extracts audio embeddings from the mixed audio signal, and the visual encoder encodes the target speaker's lip sequences into visual embeddings; A speaker extractor receives the extracted audio embedding and visual embedding inputs, the speaker extractor includes multiple layers of iterative extractor blocks, each of which includes a speaker encoder and a mask estimator, the speaker encoder concatenates the embeddings of the two modalities in the time dimension to obtain a target speaker embedding containing discriminative identity information, and the mask estimator obtains a target speaker mask according to the visual embedding, the target speaker embedding and the output of the mask estimator of the previous layer; The audio decoder obtains a target speech signal based on a target speaker mask; The second branch is used to realize the unimodal interference speech extraction. Based on the estimated target speech signal and the mixed audio signal of the first branch, the separated interference speech signal is obtained. The obtained interference speech signal is used as auxiliary information to affect the extraction of the target speech of the first branch through the cross-modal loss. The second branch comprises an audio encoder, a speaker extractor and an audio decoder connected in sequence; The second branch only exists during training; The audio encoder of the second branch receives the difference between the mixed audio signal and the target speech signal estimated in the first branch, and the speaker encoder only receives the audio embedding and outputs the interference speaker embedding; The first branch and the second branch both have an audio encoder, an audio decoder and a speaker extractor; Among them, the audio encoder realizes the time domain audio signal through one-dimensional convolution Convert to audio feature sequence ,The conversion process can be expressed as: in, N is the audio embedding dimension, T is the total number of audio samples, , L is the convolution kernel size of one-dimensional convolution; The audio decoder performs an overlap-add operation to convert the audio feature sequence Reconstruction into audio signal , the decoding process is: During the training process of the target speech separation model, a multi-task learning framework with three objective functions is constructed. The scale-invariant signal-to-noise ratio loss of the first branch is used to measure the quality between the extracted target speech and the clean speech. The scale-invariant signal-to-noise ratio loss of the second branch is used to measure the quality between the extracted interference speech and the clean target speech. The cross-modal loss is used to bring the target visual features and the estimated target speech signal audio features closer, and to pull the target visual features and the estimated interference speech signal audio features further apart. The loss definition is as follows; The cross-modal loss affects the training process of both branches at the same time, performs metric learning between the target speaker's visual features, the target speech features, and the interfering speech features, shortens the distance between positive samples, lengthens the distance between negative samples, and constrains the extraction of visual and auditory features. in, is the scaling factor, represents the cosine distance between the visual features and the estimated target speech signal audio features, represents the cosine distance between the visual feature and the estimated audio feature of the interfering speech signal, , is the margin between the two distances , Set to 0.5; Cross-modal loss is introduced into the target speech separation algorithm, and metric learning is performed between the target speaker's visual features, target speech features and interfering speech features. The audio-visual consistency is used to constrain the extraction of visual and auditory features, and the interfering speaker information is converted into auxiliary information to optimize the speech extraction of the first branch.
6. An electronic device, characterized in that: The method comprises a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the steps in the method according to any one of claims 1 to 4 are completed.
