Feature fusion method, electronic device and storage medium

By using the attention module to dynamically learn feature fusion weights and design multiple fusion strategies in the speaker confirmation system, the problem that fixed feature fusion solutions cannot model feature interactions is solved, achieving significant performance improvement and optimization of parameter efficiency.

CN115050374BActive Publication Date: 2024-09-13AISPEECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210494043.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2024-09-13
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

The feature fusion schemes used in existing speaker verification systems are fixed and unlearnable, and lack the ability to model the dynamic interactions between features, resulting in insufficient performance.

Method used

The attention module is used to dynamically learn fusion weights based on feature content, and sequential and parallel fusion strategies are designed to achieve dynamic weighted fusion of features through multi-scale channel attention modules and coordinated attention modules.

Benefits of technology

Significantly improves the performance of the speaker confirmation system, producing up to 40% relative improvement over the baseline system with less parameter increase, achieving new state-of-the-art performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115050374B
    Figure CN115050374B
Patent Text Reader

Abstract

The present invention discloses a feature fusion method, an electronic device and a storage medium for a speaker verification system, wherein a feature fusion method for a speaker verification system comprises: using an attention module to dynamically learn fusion weights according to the content of a feature; fusing each feature based on the fusion weight of each feature and a preset fusion strategy. Compared with a fixed and non-learnable feature fusion scheme, the method of the embodiment of the present application aims to dynamically fuse different features, wherein the attention module is used to learn the fusion weights according to the content of the feature. The method of the embodiment of the present application can significantly improve the performance of the baseline with only a slight increase in parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of speaker verification, and in particular relates to a feature fusion method, electronic equipment and storage medium for a speaker verification system. Background Art

[0002] Speaker verification (SV) is the task of verifying a person's claimed identity based on their speech features. Given two utterances, a typical SV system can extract speaker embeddings and automatically determine whether the two utterances belong to the same speaker. Usually, there are two parts in a SV system. One is an embedding extractor that extracts speaker embeddings from utterances of variable length. The other is a similarity scorer based on the extracted embeddings. Before the era of deep learning, i-vector and probabilistic linear discriminant analysis (PLDA) were the most popular methods in the field of speaker verification.

[0003] In recent years, deep embedding learning has been widely used in this task, and DNN-based methods have achieved state-of-the-art performance. Deep learning-based systems usually consist of three main components: a frame-level feature extractor, a segment-level embedding aggregator, and a speaker classifier. Given an utterance, the neural network first extracts high-level feature representations. Then the pooling layer aggregates the frame-level representations in the temporal dimension and projects the pooled vector into a low-dimensional speaker embedding.

[0004] The most commonly used network architectures in SV tasks include convolutional neural networks, such as ResNet, and time-delay neural networks, such as ECAPA-TDNN. Recently, many efforts have been made in architectural improvements and optimization procedures to further improve performance. In addition to network redesign, in this article, the embodiments of the present application focus on feature fusion, a ubiquitous component in the network architecture used in SV tasks, to further improve the representation capabilities of SV systems. Whether explicit or implicit, intentional or unintentional, feature fusion is an indispensable part of DNN-based SV systems. For example, ResNet uses shortcut connections to fuse identity mapping features and residual learning features. In ECAPA-TDNN, a multi-layer feature aggregation module is used to combine shallow features with deep features. However, the inventors found that feature fusion schemes such as element addition or direct connection currently used in SV systems are fixed, non-learnable, and lack the ability to model dynamic interactions between features. Summary of the invention

[0005] The embodiments of the present invention provide a feature fusion method and device for a speaker verification system, which are used to solve at least one of the above technical problems.

[0006] In a first aspect, an embodiment of the present invention provides a feature fusion method for a speaker verification system, comprising: using an attention module to dynamically learn fusion weights according to feature contents; and fusing each feature based on the fusion weight of each feature and a preset fusion strategy.

[0007] In a second aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the feature fusion method for a speaker verification system of any embodiment of the present invention.

[0008] In a third aspect, an embodiment of the present invention further provides a computer program product, comprising a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes the steps of the feature fusion method for a speaker verification system of any embodiment of the present invention.

[0009] Compared with the fixed and non-learnable feature fusion scheme, the method of the embodiment of the present application aims to dynamically fuse different features, wherein the attention module is used to learn the fusion weight according to the content of the feature. The method of the embodiment of the present application can significantly improve the performance of the baseline with only a slight increase in parameters. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0011] Figure 1 A flow chart of a feature fusion method for a speaker verification system provided by an embodiment of the present invention;

[0012] Figure 2 A flowchart of attention feature fusion based on ResNet provided by an embodiment of the present invention;

[0013] Figure 3 A schematic diagram of a multi-scale channel attention module provided by an embodiment of the present invention;

[0014] Figure 4 A schematic diagram of a coordinated attention module provided by an embodiment of the present invention;

[0015] Figure 5A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0016] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0017] Please refer to Figure 1 , which shows a flow chart of an embodiment of a feature fusion method for a speaker verification system of the present application. The feature fusion method of this embodiment is applicable to a speaker verification system.

[0018] like Figure 1 As shown, in step 101, an attention module is used to dynamically learn fusion weights according to the content of the features;

[0019] In step 102, each feature is fused based on the fusion weight of each feature and a preset fusion strategy.

[0020] Compared with the fixed and non-learnable feature fusion scheme, the method of the embodiment of the present application aims to dynamically fuse different features, wherein the attention module is used to learn the fusion weight according to the content of the feature. The method of the embodiment of the present application can significantly improve the performance of the baseline with only a slight increase in parameters.

[0021] In some optional embodiments, the preset fusion strategy includes a sequential fusion strategy and a parallel fusion strategy. The embodiment of the present application can apply the attention feature fusion AFF to ResNet by simply replacing the original addition with the proposed AFF in each residual block. The AFF module proposed in the embodiment of the present application is very lightweight and efficient. Compared with the baseline system, the performance can be significantly improved with only a slight increase in parameters.

[0022] In a further optional embodiment, the preset fusion strategy is a sequential fusion strategy, and the use of the attention module to dynamically learn the fusion weight according to the content of the feature includes: adding each feature in an elemental manner; using each added feature as an input of the attention module to obtain the fusion weight corresponding to each feature. The fusion of each feature based on the fusion weight of each feature and the preset fusion strategy includes: scaling each feature based on at least the fusion weight of each feature; and fusing each feature by element-wise addition of each scaled feature.

[0023] In a further optional embodiment, the features are feature X and feature Y, the fusion weight is an attention map, and scaling the features at least based on the fusion weights of the features includes: scaling the feature X by the attention map, and scaling the feature Y by broadcast subtraction of the attention map.

[0024] In some optional embodiments, the preset fusion strategy is a parallel fusion strategy, and the use of the attention module to dynamically learn the fusion weight according to the content of the feature includes: inputting each feature into the attention module in parallel to obtain the fusion weight corresponding to each feature; the fusing of each feature based on the fusion weight of each feature and the preset fusion strategy includes: performing weighted fusion of the features based on the fusion weight of each feature to fuse the features.

[0025] In some other optional embodiments, the attention module includes a multi-scale channel attention module and a coordinated attention module. The multi-scale channel attention module aggregates multi-scale context information along the channel dimension by changing the spatial pool size. Specifically, local and global contexts are explored in the attention module. The coordinated attention module can embed direction-aware information, where channel attention is decomposed into two parallel one-dimensional feature encoding processes to effectively integrate spatial coordinate information into the generated attention map.

[0026] In a further optional embodiment, the attention module is a multi-scale channel attention module, and the use of the attention module to dynamically learn the fusion weight according to the content of the feature includes: for a given input feature, respectively calculating the local channel context and the global channel context corresponding to the feature; performing broadcast addition calculations on the local channel context and the global channel context to obtain a final attention map, wherein the final attention map is used as the fusion weight.

[0027] Specifically, local and global contexts are explored in the attention module. For the input feature X∈R C×F×T , where C, F, and T represent the channel, frequency, and time dimensions, respectively, and the local channel context L(X)∈R C×F×T The calculation through the bottleneck structure is as follows:

[0028] L(X)=B(Conv2(ReLU(B(Conv1(X))))) (1)

[0029] Among them, Conv1 and Conv2 are point-by-point convolutions, and the output channel sizes are C / r and C respectively. r is the channel reduction rate. B represents BatchNorm. ReLU is a nonlinear function.

[0030] Similarly, the global channel context G(X)∈R C×F×TObtained by the following formula:

[0031] G(X)=B(Conv2(ReLU(B(Conv1(GAP 2d (X)))))) (2)

[0032] Among them, GAP 2d It is a two-dimensional global average pooling.

[0033] Given the local channel context L(X) and the global channel context G(X), the attention map S∈R C×F×T It can be calculated as follows:

[0034]

[0035] in represents broadcast addition. σ is the sigmoid function.

[0036] In a further optional embodiment, the attention module is a coordinated attention module, and the use of the attention module to dynamically learn the fusion weight according to the content of the feature includes: for a given input feature, generating a time attention map and a frequency attention map corresponding to the feature along the time direction and the frequency direction, respectively; performing broadcast multiplication calculation on the time attention map and the frequency attention map to obtain a final attention map, wherein the final attention map is used as the fusion weight.

[0037] Specifically, for the time attention map S t ∈R C×F×1 , the calculation process is as follows:

[0038] S t =σ(Conv2(SiLU(B(Conv1(GAP t (X)))))) (4)

[0039] Among them, Conv1 and Conv2 are point-by-point convolutions, and the output channel sizes are C / r and C respectively. r is the channel reduction rate. B represents BatchNorm. GAP t is a one-dimensional global average pooling along the time dimension. SiLU is a nonlinear function. C, F, and T represent the channel, frequency, and time dimensions, respectively. σ is the sigmoid function.

[0040] Similarly, the frequency attention map S f ∈R C×1×T Calculated by:

[0041] S f =σ(Conv2(SiLU(B(Conv1(GAP f (X)))))) (5)

[0042] GAP f is a one-dimensional global average pooling along the frequency dimension.

[0043] The final attention map S∈R C×F×T Obtained by the following formula:

[0044]

[0045] in Represents broadcast multiplication.

[0046] It should be noted that the above method steps are not used to limit the execution order of each step. In fact, some steps may be executed simultaneously or in the opposite order to the specified step order, and this application has no limitation on this.

[0047] The following describes some problems encountered by the inventor in the process of implementing the present invention and a specific embodiment of the solution finally determined, so that those skilled in the art can better understand the solution of the present application.

[0048] The inventors found that the feature fusion schemes currently used in deep neural network speaker verification systems, such as feature addition or direct connection, are fixed and non-learnable, and lack the ability to model the dynamic interactions between features. The defects in the prior art are caused by feature addition or direct connection.

[0049] In the prior art, the above problems are mainly solved by adding features or directly connecting them, because this is the simplest and most easily conceivable method.

[0050] The embodiment of the present application proposes a more effective feature fusion scheme, namely attention feature fusion, to present a dynamic weighted fusion of different features. It uses the attention module to learn the fusion weight based on the feature content. In addition, two fusion strategies are designed: sequential fusion and parallel fusion.

[0051] Continue to refer Figure 2 , which shows a flowchart for implementing the solution of the present application.

[0052] like Figure 2 As shown, (1) the attention module is first used to dynamically learn the fusion weights.

[0053] (2) Design two strategies to fuse features: sequential fusion and parallel fusion.

[0054] (3) In ResNet, the attention fusion module directly replaces the original direct addition.

[0055] The inventors conducted a large number of experiments, using ResNet18 and ResNet34 as baselines. Two different fusion strategies (S-AFF and P-AFF) are implemented based on MS-CAM (Multi-scale channel attention module) and CA (coordinate attention), respectively. It can be clearly seen that the AFF (Attentive Feature Fusion) module proposed in the embodiment of the present application can significantly improve the performance of the baseline with only a slight increase in parameters. In particular, the ResNet34-P-AFF (CA) system achieves new state-of-the-art performance on Voxceleb1, which proves that the proposed attention feature fusion scheme is superior to the traditional scheme.

[0056] The following introduces the process of implementing the present application, the experiments conducted, and the relevant experimental data by the inventor to enable those skilled in the art to better understand the solution of the present application.

[0057] At present, as the most widely used technology, deep speaker embedding learning has recently dominated the speaker verification task. This method uses deep neural networks to extract fixed-dimensional embedding vectors representing different speaker identities. Two network architectures, ResNet and ECOPA-TDNN, have been widely adopted in previous studies and have achieved state-of-the-art performance. An omnipresent part, feature fusion, plays an important role in both. For example, shortcut connections aim to fuse the identity mapping of the input and output of the residual block in ResNet. ECAPA-TDNN uses multi-layer feature aggregation to combine shallow feature maps with deep feature maps. Traditional feature fusion is usually achieved through simple operations such as element addition or concatenation. In the embodiment of the present application, a more effective feature fusion scheme, namely attention feature fusion, is proposed to present a dynamic weighted fusion of different features. It uses an attention module to learn fusion weights based on feature content. In addition, two fusion strategies are designed: sequential fusion and parallel fusion. Experiments on the Voxceleb dataset show that the attention feature fusion scheme proposed in the embodiment of the present application can produce up to 40% relative improvement over the baseline system.

[0058] 1. Introduction

[0059] In view of the limitations of the above-mentioned traditional feature fusion, the embodiments of the present application introduce a novel and more effective feature fusion scheme, called attention feature fusion (AFF), for speaker verification tasks. Compared with fixed and non-learnable feature fusion schemes, attention feature fusion aims to dynamically fuse different features, where the attention module is used to learn fusion weights based on the content of the features. In addition, two different fusion strategies are proposed to simulate the dynamic interaction between features, including sequential fusion and parallel fusion. Experiments conducted on Voxceleb show that the attention feature fusion scheme proposed in the embodiments of the present application can lead to significant improvements over the baseline system.

[0060] 2. Related Work

[0061] Deep Speaker Embedding Learning: d-vector was the first attempt to study the use of deep neural networks (DNNs) for small text-dependent speaker verification tasks. Subsequently, four types of deep features were introduced and used in tandem in related techniques. Recently, time-delay neural networks (TDNNs) and convolutional neural networks (CNNs) are the most commonly used architectures. x-vector is a well-known TDNN-based deep speaker embedding extractor, which provides reliable performance in the SV field. In addition, ECAPA-TDNN makes some architectural modifications to the vanilla x-vector and achieves state-of-the-art performance. Meanwhile, ResNet was adopted as a 2D speaker embedding extractor in VoxSRC 2019, which also published a strong baseline on Voxceleb.

[0062] Attention module: The attention module is an efficient plug-and-play component in modern deep neural networks, designed to tell the model "what to attend" and "where to go". It has been widely used in various deep learning tasks. In computer vision, a series of attention modules have been proposed. SENet simply compresses global spatial information into channel descriptors to capture channel correlation. CBAM further advances this idea by introducing spatial information encoding using convolution with large-size kernels. MS-CAM aggregates local and global contextual information along the channel dimension. CA encodes channel relationships and long-range dependencies using precise location information. In this article, the attention module is used to learn the fusion weights in the attention feature fusion scheme proposed in the embodiment of the present application.

[0063] 3. Suggested methods

[0064] The embodiments of this application will introduce in detail the proposed attention feature fusion (AFF) scheme and its application in the ResNet architecture.

[0065] 3.1 Attention Module

[0066] In the attention feature fusion scheme proposed in the embodiment of the present application, an attention module is used to learn the fusion weight based on the feature content. In the experiment, the embodiment of the present application studied two different attention mechanisms of the ResNet architecture, namely MS-CAM and CA. Figure 3 and Figure 4 Their overview is schematically described.

[0067] Figure 3 The schematic diagram of MS-CAM is shown. The Chinese and English correspondences are as follows: GAP: global average pooling, Conv: convolution, BN: batch norm, ReLU: activation function, Sigmoid: S-type function.

[0068] Figure 4 CA insets are shown.

[0069] MS-CAM: Multi-scale channel attention module (MSCAM). Figure 3 As shown in , it aggregates multi-scale contextual information along the channel dimension by changing the spatial pooling size. Specifically, local and global contexts are explored in the attention module. For the input feature X∈R C×F×T , where C, F, and T represent the channel, frequency, and time dimensions, respectively, and the local channel context L(X)∈R C×F×T The calculation through the bottleneck structure is as follows:

[0070] L(X)=B(Conv2(ReLU(B(Conv1(X))))) (1)

[0071] Among them, Conv1 and Conv2 are point-by-point convolutions, and the output channel sizes are C / r and C respectively. r is the channel reduction rate. B represents BatchNorm. ReLU is a nonlinear function.

[0072] Similarly, the global channel context G(X)∈R C×F×T Obtained by the following formula:

[0073] G(X)=B(Conv2(ReLU(B(Conv1(GAP 2d (X)))))) (2)

[0074] Among them, GAP 2d It is a two-dimensional global average pooling.

[0075] Given the local channel context L(X) and the global channel context G(X), the attention map S∈R C×F×T It can be calculated as follows:

[0076]

[0077] in represents broadcast addition. σ is the sigmoid function.

[0078] When implementing attention feature fusion in the next section, the attention map S is used as the fusion weight.

[0079] CA: Coordinate attention (CA) is proposed to embed direction-aware information, where channel attention is decomposed into two parallel one-dimensional feature encoding processes to effectively integrate spatial coordinate information into the generated attention map. Figure 4 As shown, given an input feature X∈R C×F×T , two attention maps are generated along the time direction and frequency direction respectively. For the time attention map S t ∈R C×F×1 , the calculation process is as follows:

[0080] S t =σ(Conv2(SiLU(B(Conv1(GAP t (X)))))) (4)

[0081] GAP t It is a one-dimensional global average pooling along the time dimension. SiLU is a nonlinear function.

[0082] Similarly, the frequency attention map S f ∈R C×1×T Calculated by:

[0083] S f =σ(Conv2(SiLU(B(Conv1(GAP f (X)))))) (5)

[0084] GAP f is a one-dimensional global average pooling along the frequency dimension.

[0085] The final attention map S∈R C×F×T Obtained by the following formula:

[0086]

[0087] in Represents broadcast multiplication.

[0088] Similar to MS-CAM, this final attention map S is also used as the fusion weight in the attention feature fusion scheme proposed in the embodiment of the present application.

[0089] Continue to refer Figure 2The ResNet-based attention feature fusion is shown. When implementing attention feature fusion, the present application embodiment designs two different strategies. Sequential: First add two features. Then input the obtained features into the attention module to generate fusion weights. Parallel: Input the two features into the attention module in parallel and generate fusion weights respectively.

[0090] 3.2. Attention Feature Fusion (AFF)

[0091] The embodiments of the present application design two different attention feature fusion (AFF) strategies: sequential AFF (S-AFF) and parallel AFF (P-AFF). Figure 2 This is an overview of the method proposed in the embodiments of the present application.

[0092] S-AFF: Figure 2 As shown, given two feature maps X, Y∈R C×F×T , S-AFF first adds X and Y element-wise. Then MS-CAM or CA takes the resulting features as input and generates an attention map S as the fusion weights. Subsequently, the original X and Y are scaled by broadcast subtraction of the attention maps S and S, respectively. Finally, the element-wise addition of the weighted features is the attention-fused feature Z∈R C×F×T . S-AFF can be expressed as:

[0093] S=MS-CAM / CA(X+Y) (7)

[0094]

[0095] Where MS-CAM / CA denotes the attention module introduced in Section 3.1. S is the attention map generated by MSCAM / CA. is broadcast subtraction. Represents element-wise multiplication.

[0096] P-AFF: Similarly, for two feature maps X,Y∈R C×F×T , P-AFF first feeds them into MS-CAM or CA in parallel and calculates the attention map S respectively. X and S Y The resulting attention map is then used to weight the original X and Y. The calculation process is as follows:

[0097] S X =MS-CAM / CA(X) (9)

[0098] S Y =MS-CAM / CA(Y) (10)

[0099]

[0100] Where S X and S Y are the attention maps generated based on the contents of X and Y respectively.

[0101] 3.3. Application in ResNet

[0102] In order to verify the proposed attention feature fusion scheme, the embodiment of the present application applies it to ResNet, which is a commonly used architecture in SV tasks. The original feature fusion method in ResNet is the element-wise addition between the identity mapping feature and the residual feature. Figure 2 As shown, or, the embodiment of the present application applies AFF to ResNet, and only needs to replace the original addition with the proposed AFF in each residual block. In addition, it is worth mentioning that the AFF module proposed in the embodiment of the present application is very lightweight and efficient. Compared with the baseline system, the performance can be significantly improved with only a slight increase in parameters.

[0103] 4. Experimental Setup

[0104] 4.1 Dataset and Data Augmentation

[0105] The experiments of the embodiments of the present application are conducted on Voxceleb1&2 to evaluate the proposed method, where the Voxceleb2 development set with 5994 speakers and 1,092,009 utterances is used as training data, and the entire Voxceleb1 is used as test data. Specifically, the performance is evaluated on three official test lists: Vox1-O, Vox1-E, and Vox1-H. In order to increase the diversity and richness of the training data, three data augmentation techniques are used to improve the robustness of the system.

[0106] Online Data Augmentation: Additional data samples are generated by adding noise or reverberation from the MUSAN dataset and the RIR dataset to the original training utterances in an online manner.

[0107] SpecAugment: SpecAugment was first introduced in the related art and has been widely used in speech recognition. The embodiment of the present application adds frequency and time step masking to the input acoustic features.

[0108] Speed ​​perturbation: Speed ​​perturbation can be used to increase the number of speakers. The embodiment of the present application uses sox to speed up or slow down each speech by 0.9 or 1.1 times. Finally, the training data has 1,092,009×3=3,276,027 speeches from 5,994×3=17,982 speakers.

[0109] 4.2. Training details

[0110] The embodiments of the present application use an 80-dimensional filter bank with a 25ms window and a 10ms shift as the input acoustic features. All systems are trained on 200 frame blocks that are randomly cropped from the training utterances. In addition, AAM-softmax with a margin of 0.2 and a scale of 32 is used as the loss function. Stochastic gradient descent (SGD) with a momentum of 0.9 and a weight decay of 1e-4 is used as the optimizer for the training model. The number of training epochs is 165, and the learning rate decreases exponentially from 0.1 to 1e-5.

[0111] Evaluation Metrics

[0112] During the test, the embodiment of the present application uses cosine distance as the scoring criterion. Subsequently, all scores are normalized using adaptive score normalization (AS-Norm), where the size of the impostor group is set to 600. Performance is measured based on the equal error rate (EER) and the minimum detection cost function (MinDCF), set to Ptarget=0.01 and CFA=CMiss=1.

[0113] Table 1: Comparison of the results of different systems in EER and MinDCF on the Voxceleb1 dataset. The Chinese and English correspondences are as follows: Architecture: architecture, Fusion Strategy: fusion strategy, #Params: parameter number, EER: equal error rate, MinDCF: minimum detection cost function.

[0114]

[0115] 5. Results and Analysis

[0116] The results of the baseline system and the attention feature fusion (AFF) system proposed in the embodiment of the present application are listed in Table 1. The embodiment of the present application uses ResNet18 and ResNet34 as baselines respectively. Two different fusion strategies (S-AFF and P-AFF) are implemented based on MS-CAM and CA respectively. It can be clearly seen that the AFF module proposed in the embodiment of the present application can significantly improve the performance of the baseline with only a slight increase in parameters. In particular, the ResNet34-P-AFF (CA) system achieves new state-of-the-art performance on Voxceleb1, which proves that the proposed attention feature fusion scheme is superior to the traditional scheme.

[0117] 5.1 Sequential Attention Feature Fusion

[0118] For sequential attention feature fusion (S-AFF), the embodiments of the present application respectively examine the effects of different attention modules based on MS-CAM and CA. It is worth noting that both MS-CAM and CA are lightweight, with only slightly increased parameters. And the CA-based S-AFF can achieve better performance than the MS-CAM-based S-AFF with fewer parameters. Specifically, for the CA-based S-AFF, in the three official test lists, the ResNet18 system obtained a relative improvement of EER 37.2%, 30.9%, 28.7% and MinDCF 46.8%, 31.9%, 23.5%. Similarly, ResNet34-S-AFF (CA) reduced the EER on Vox1-O, Vox1-E, and Vox1H to 0.65%, 0.82%, and 1.59%, respectively. The embodiments of the present application attribute the effectiveness of the CA-based SAFF to CA's ability to encode coordinate-aware information along the frequency and time dimensions, respectively. Some evidence suggests that for speaker verification, it is crucial to model the frequency and time domains of the spectrogram separately rather than treating them equally.

[0119] 5.2. Parallel Attention Feature Fusion

[0120] In addition, MS-CAM and CA are used for parallel attention feature fusion (P-AFF). The increase in the parameter size of P-AFF is twice that of S-AFF. At the same time, the performance of P-AFF is better than that of S-AFF. Similarly, P-AFF based on CA greatly outperforms P-AFF based on MS-CAM, which can lead to a relative improvement of EER by 41.9%, 34.9%, and 33.1%, and a relative improvement of MinDCF by 48.6%, 35.1%, and 26.6% Resource Network 18. In addition, ResNet34-P-AFF (CA) achieved a new state-of-the-art result on Voxceleb1, that is, the EER on the three official test lists were 0.62%, 0.79%, and 1.57%, respectively.

[0121] 5.3. Comparison with other systems

[0122] In this section, the present embodiment will comprehensively compare the proposed method and four different types of systems in recent works on VoxCeleb1. According to the embedding extractor architecture, the other systems are divided into ResNet-based, TDNN-based, Transformer-based, and MLP-based systems. As shown in Table 2, the best system ResNet34-P-AFF (CA), i.e., ResNet with the proposed parallel attention feature fusion, greatly outperforms all listed methods, especially on Vox1-E and Vox1-H, which shows that the proposed attention feature fusion scheme is effective and powerful.

[0123] Table 2: Comparison with other systems on Voxceleb1.

[0124]

[0125] 6 Conclusion

[0126] The present application embodiment introduces a new attention feature fusion (AFF) scheme to replace the traditional feature fusion method for DNN-based speaker verification. Two different fusion strategies are carefully designed, including sequential AFF (S-AFF) and parallel AFF (P-AFF), and the present application embodiment utilizes MSCAM and CA attention modules to learn the fusion weights. Compared with traditional feature fusion, the proposed AFF is dynamic and learnable. Experiments on the Voxceleb dataset demonstrate the efficiency and superiority of the method proposed in the present application embodiment, which can lead to significant improvements over the baseline with only a slight increase in parameters.

[0127] In some other embodiments, the embodiments of the present invention further provide a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, the computer executable instructions can execute the feature fusion method for a speaker verification system in any of the above method embodiments;

[0128] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:

[0129] Use the attention module to dynamically learn fusion weights based on the content of the features;

[0130] The features are fused based on their fusion weights and preset fusion strategies.

[0131] The non-volatile computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the feature fusion device for the speaker confirmation system, etc. In addition, the non-volatile computer-readable storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the feature fusion device for the speaker confirmation system via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0132] An embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes any one of the above-mentioned feature fusion methods for a speaker verification system.

[0133] Figure 5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 5 As shown, the device includes: one or more processors 510 and a memory 520, Figure 5 A processor 510 is taken as an example. The device for the feature fusion method of the speaker verification system may also include: an input device 530 and an output device 540. The processor 510, the memory 520, the input device 530 and the output device 540 may be connected via a bus or other means. Figure 5 The example of connecting via a bus is taken. The memory 520 is the above-mentioned non-volatile computer-readable storage medium. The processor 510 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 520, that is, the feature fusion method for the speaker confirmation system of the above-mentioned method embodiment is implemented. The input device 530 can receive input digital or character information, and generate key signal input related to the user setting and function control of the communication compensation device. The output device 540 may include a display device such as a display screen.

[0134] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.

[0135] As an implementation mode, the electronic device is applied to a feature fusion device for a speaker confirmation system, and is used for a client, and includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can:

[0136] Use the attention module to dynamically learn fusion weights based on the content of the features;

[0137] The features are fused based on their fusion weights and preset fusion strategies.

[0138] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:

[0139] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0140] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0141] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.

[0142] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0143] (5) Other electronic devices with data interaction functions.

[0144] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A feature fusion method for speaker verification system, include: Use the attention module to dynamically learn fusion weights based on the content of the features; The attention module includes a multi-scale channel attention module and a coordinated attention module; Fuse each feature based on its fusion weight and preset fusion strategy; The method of using the attention module to dynamically learn the fusion weight according to the content of the feature includes: Based on the coordinated attention module, for a given input feature, a time attention map and a frequency attention map corresponding to the feature are generated along the time direction and the frequency direction respectively; A final attention map is obtained by performing broadcast multiplication on the time attention map and the frequency attention map, wherein the final attention map is used as a fusion weight.

2. The method according to claim 1, in, The preset fusion strategy includes a sequential fusion strategy and a parallel fusion strategy.

3. The method according to claim 2, in, The preset fusion strategy is a sequential fusion strategy, and the use of the attention module to dynamically learn the fusion weight according to the content of the feature includes: Add each feature in an elemental way; The added features are used as inputs of the attention module to obtain fusion weights corresponding to the features; The fusing of the features based on the fusion weights of the features and the preset fusion strategy includes: scaling each of the features at least based on the fusion weights of the features; The scaled features are element-wise added to fuse the features.

4. The method according to claim 3, in, The features are feature X and feature Y, the fusion weight is an attention map, and scaling the features at least based on the fusion weights of the features comprises: The feature X is scaled by the attention map, and the feature Y is scaled by broadcast subtraction of the attention map.

5. The method according to claim 2, in, The preset fusion strategy is a parallel fusion strategy, and the use of the attention module to dynamically learn the fusion weight according to the content of the feature includes: Input each feature into the attention module in parallel to obtain a fusion weight corresponding to each feature; The fusing of the features based on the fusion weights of the features and the preset fusion strategy includes: The features are weightedly fused based on the fusion weights of the features to fuse the features.

6. The method according to claim 1, in, The method of using the attention module to dynamically learn the fusion weight according to the content of the feature includes: Based on the multi-scale channel attention module, for a given input feature, a local channel context and a global channel context corresponding to the feature are respectively calculated; A final attention map is obtained by broadcasting and adding the local channel context and the global channel context, wherein the final attention map is used as a fusion weight.

7. An electronic device, wherein include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1 to 6.

8. A storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.