Language Identification Method Based on Adjusted Cosine Mutual Information Estimation

By adopting the method of adjusting cosine mutual information estimation in the language recognition system, the network training process is optimized, the problem of weak embedding distinction in complex sound environments is solved, and the language recognition performance is significantly improved.

CN114639372BActive Publication Date: 2024-10-25HARBIN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210221484.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-07
Publication Date
2024-10-25
Estimated Expiration
2042-03-07

AI Technical Summary

Technical Problem

In a complex sound environment, the embedding extracted by the network model in the existing language recognition system is not discriminative, resulting in a decline in language recognition performance.

Method used

A language recognition method based on adjusted cosine mutual information estimation is adopted, and the mutual information estimation of adjusted cosine similarity is used as the objective function through data enhancement, extraction of acoustic features, cepstral mean variance normalization, speech activity detection, semi-hard negative sample mining strategy and adjusted cosine similarity , optimize the network training process and make the embedding space structure more reasonable.

Benefits of technology

It improves the performance of the language recognition system in complex sound environments, enhances the distinction and invariance between embeddings, and significantly reduces the average loss and equal error rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114639372B_ABST
    Figure CN114639372B_ABST
Patent Text Reader

Abstract

The present invention discloses a language recognition method based on adjusted cosine mutual information estimation, which solves the problem that the embedding (embedded feature) extracted with classification loss as the objective function in a complex sound environment has a weak ability to distinguish. In the training stage, the acoustic features of the training set are first preprocessed and input into the TDNN-F network; then the embeddings output in the network are selected according to the semi-difficult negative sample mining strategy to perform mutual information estimation based on adjusted cosine similarity, and the network is trained using this as the objective function. In the recognition stage, the acoustic features of the registration set and the test set are first input into the trained TDNN-F network to obtain the corresponding embeddings; then the embeddings of the registration set and the test set are subjected to linear discriminant analysis, mean subtraction, zero phase component analysis whitening and vector length normalization; finally, a logistic regression (LR) classifier is used for scoring. The method can effectively utilize the mutual information between the language embedding features of the positive and negative sample pairs, thereby optimizing network training and reducing the error rate of the system. The present invention can be applied to the field of language recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a language recognition method based on adjusted cosine mutual information estimation, belonging to the technical field of language recognition. Background Art

[0002] In recent years, with the substantial improvement of computer performance and the continuous accumulation of data in the Internet industry, deep learning has developed rapidly, and has achieved breakthrough success in speech recognition, computer vision, and natural language processing, and has also been gradually introduced into the field of language recognition. In language recognition, deep learning aims to train an effective neural network model to extract distinguishing feature representations of speech. Common network models include convolutional neural networks (CNN), recurrent neural networks (RNN), long short-term memory neural networks (LSTM), and time-delay neural networks (TDNN). At present, the commonly used front-end network model in language recognition systems is TDNN, which maps speech feature sequences into fixed-dimensional embeddings (embedded features), called x-vectors. The initial embedding is obtained by minimizing classification losses such as cross entropy loss and mean square error loss (MSE), which enables the language recognition system to achieve good recognition performance. However, the spatial structure of the embedding is not only related to the class separation of the classification loss, but also to other distortion factors contained in the speech, such as noise and channel. Therefore, in a complex sound environment, the embedding extracted with classification loss as the objective function has weak discrimination ability, resulting in a decrease in the performance of language recognition.

[0003] To address the above problems, a language recognition method based on adjusted cosine mutual information estimation is proposed. This method is used to optimize the network training process and capture the complex nonlinear relationship between embeddings. This method makes the distance between similar languages ​​​​closer and the distance between different languages ​​​​farther in the embedding space structure, enhances the invariance between embeddings in complex sound environments, and thus improves the performance of language recognition. Summary of the invention

[0004] The purpose of the present invention is to solve the problem that the embedding extracted by the network model in language recognition in a complex sound environment is not distinguishable, and to improve the accuracy of the language recognition system, thereby proposing a language recognition method based on mutual information estimation of adjusted cosine similarity.

[0005] The technical solution adopted by the present invention to solve the above technical problems is: a language recognition method based on adjusted cosine mutual information estimation, the method comprising the following steps:

[0006] Step 1: First, perform data enhancement on the training set, and then extract acoustic features from the enhanced training set, registration set, and test set speech, including Mel-frequency cepstral coefficient features (MFCC) and pitch features (Pitch);

[0007] Step 2: Perform Cepstral Mean and Variance Normalization (CMVN) on the features extracted from the training set in step 1 and use Voice Activity Detection (VAD) to delete silent frames, and then divide the features of each speech into several data chunks on average;

[0008] Step 3: First, all chunks of the training set obtained in step 2 are batch-input into the network model; then, the embeddings output from the network are used to select positive and negative sample pairs according to the semi-hard negative sample mining strategy, where the mining strategy uses adjusted cosine similarity to measure the difference between sample pairs; finally, the mutual information of the positive and negative sample pairs is estimated based on adjusted cosine similarity, and this is used as the objective function for network training and updating network parameters;

[0009] Step 4: Input the acoustic features of the registration set and test set extracted in step 1 into the trained network model to obtain the corresponding embeddings;

[0010] Step 5: After performing linear discriminant analysis (LDA), submean, ZCA whiten, and vector length normalization on the embeddings of the registration set and the test set obtained in step 4, a logistic regression (LR) classifier is used for scoring.

[0011] Furthermore, the data augmentation of the training set described in step 1 refers to perturbing the speed and volume of the original speech in the training set, thereby adding two enhanced copies of the original speech to the original speech to obtain a 3-fold combined training set.

[0012] The process of extracting MFCC features described in step 1 is pre-emphasis, framing, windowing, fast Fourier transform (FFT), Mel filter bank, logarithmic operation, and discrete cosine transform (DCT).

[0013] The process of extracting the pitch feature described in step 1 is resampling the signal, normalizing the dynamic range of the resampled signal, determining the lag range for calculating the normalized cross correlation function (NCCF), calculating the NCCF, upsampling the NCCF in a nonlinear manner, and post-processing the NCCF.

[0014] Furthermore, in step 2, each speech feature is evenly divided into a number of chunks, which are composed of multiple continuous frames. When the number of frames contained in a speech feature is less than the set chunk size, the speech feature will be discarded.

[0015] Furthermore, in step 3, the embeddings output by the network are used to select positive and negative sample pairs according to the semi-hard negative sample mining strategy. The specific process is to randomly select an embedding from the embeddings output by the network, denoted as Then select is the embedding of the same language, denoted as and Constitute a positive sample pair Finally, according to the mining strategy requirements, select Embeddings that do not belong to the same language are recorded as and Constitute a negative sample pair Among them, f represents the network model, i represents the dimension of embedding, and Z p represents the positive sample set, Z n represents the negative sample set.

[0016] Furthermore, the adjusted cosine similarity described in step 3 is calculated as follows:

[0017]

[0018] Where x and y represent two different embeddings, Represents the mean of dimension i in batch embeddings.

[0019] Furthermore, the mutual information of the positive and negative sample pairs described in step 3 is estimated based on the adjusted cosine similarity, and this is used as the objective function for network training and updating network parameters, specifically by maximizing the positive sample pair And negative sample pairs The mutual information of the adjusted cosine similarity is used as the objective function of the network, and then the network parameters are optimized through back propagation of the network, so that the similarity between positive sample pairs is greater and the similarity between negative sample pairs is smaller. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described below with reference to the accompanying drawings, in which:

[0021] Figure 1 The flowchart of language recognition based on mutual information estimation of adjusted cosine similarity;

[0022] Figure 2 It is a curve diagram of the change of average loss (Cavg) and equal error rate (EER) corresponding to different training times of the method of the present invention;

[0023] Figure 3 Comparison chart of Cavg and EER of different methods. DETAILED DESCRIPTION

[0024] The technical solution of the present invention will be described in detail below through embodiments and in combination with the accompanying drawings. The described embodiments are only part of the embodiments of the present invention.

[0025] Example:

[0026] The technical solution adopted by the present invention is a language recognition method based on adjusted cosine mutual information estimation, which comprises the following steps:

[0027] Step 1: First, perform data enhancement on the training set, and then extract acoustic features from the enhanced training set, registration set, and test set speech, including Mel-frequency cepstral coefficient features (MFCC) and pitch features (Pitch);

[0028] Step 2: Perform Cepstral Mean and Variance Normalization (CMVN) on the features extracted from the training set in step 1 and use Voice Activity Detection (VAD) to delete silent frames, and then divide the features of each speech into several data chunks on average;

[0029] Step 3: First, all chunks of the training set obtained in step 2 are batch-input into the network model; then, the embeddings output from the network are used to select positive and negative sample pairs according to the semi-hard negative sample mining strategy, where the mining strategy uses adjusted cosine similarity to measure the difference between sample pairs; finally, the mutual information of the positive and negative sample pairs is estimated based on adjusted cosine similarity, and this is used as the objective function for network training and updating network parameters;

[0030] Step 4: Input the acoustic features of the registration set and test set extracted in step 1 into the trained network model to obtain the corresponding embeddings;

[0031] Step 5: After performing linear discriminant analysis (LDA), submean, ZCA whiten, and vector length normalization on the embeddings of the registration set and the test set obtained in step 4, a logistic regression (LR) classifier is used for scoring.

[0032] In this embodiment, the specific process of step 1 is:

[0033] Step 1-1, perform data enhancement on the training set. First, perform speed perturbation on the original speech in the training set, that is, apply speed factors of 0.9 and 1.1 to slow down and speed up the original speech; then use a random volume factor to perform volume perturbation on the original speech in the training set; finally, add the result of data enhancement to the original training set as a new training set.

[0034] Step 1-2: The speech signals of the training set, registration set and test set are pre-emphasized, framed, windowed, Fast Fourier Transform (FFT), Mel filter bank energy extraction, logarithmic energy calculation and discrete cosine transform (DCT) to obtain 20-dimensional MFCC features. The audio sampling rate is 16000 Hz, the window length is 25 ms, and the frame shift is 10 ms.

[0035] Steps 1-3: For the speech signals of the training set, registration set, and test set, the speech signals are resampled, the dynamic range of the resampled signals is normalized, the lag range is established to calculate the Normalized Cross Correlation Function (NCCF), the NCCF is upsampled in a nonlinear manner, the NCCF is post-processed, and finally the 3D Pitch features are extracted. Then the MFCC features and the Pitch features are combined to obtain the 23D acoustic features.

[0036] In this embodiment, the specific process of step 2 is:

[0037] Perform CMVN on the features extracted from the training set in step 1 and use VAD to remove silent frames. Then, cut each speech feature into multiple chunks evenly in time sequence, each chunk contains 100 frames, and discard speech features with less than 100 frames.

[0038] In this embodiment, the specific process of step 3 is:

[0039] Step 3-1. Input the chunks obtained in step 2 into the TDNN-F network model in batches. The TDNN-F network mainly consists of Tdnn layer, FTdnnBlock layer and pooling layer. The Tdnn layer consists of a one-dimensional convolution layer and a BatchNorm layer. The front-end features are activated by the ReLU function after convolution. The FTdnnBlock layer is improved on the basis of the Tdnn layer. By adding a bottleneck layer, the parameter matrix of the one-dimensional convolution layer of the Tdnn layer is decomposed into the form of multiplication of two small parameter matrices. When updating the layer parameters, one of the small parameter matrices is made to approach a semi-positive definite matrix, so as to control the change speed of the layer parameters and make the training more stable. The FTdnnBlock layer consists of two one-dimensional convolution layers and a BatchNorm layer. The front-end features are activated by the ReLU function after convolution in the second convolution layer. The TDNN-F network first uses the Tdnn layer to extract frame-level features of chunks; then multiple FTdnnBlock layers are used to extract stronger and more stable frame-level features, and three skip connections are used between the FTdnnBlock layers, that is, the output of the third layer is directly connected to the fifth layer as its input, the outputs of the second and fourth layers are spliced ​​together and directly connected to the seventh layer as its input, and the outputs of the fourth, sixth and eighth layers are spliced ​​together and directly connected to the ninth layer as its input, ensuring that feature information flows into the deep layer and preventing the gradient from disappearing; after the frame-level features pass through multiple FTdnnBlock layers, they are then captured through the average pooling layer to capture the segment-level features, and finally pass through two Tdnn layers to obtain 512-dimensional embeddings.

[0040] Step 3-2: According to the semi-hard negative sample mining strategy, randomly select an embedding from the 512-dimensional embeddings output by the network, denoted as Then select is the embedding of the same language, denoted as and Constitute a positive sample pair Finally, we select the one that meets the following formula (2) The embedding that does not belong to the same language and has the largest adjusted cosine similarity is denoted as and Constitute a negative sample pair Among them, Z p represents the positive sample set, Z n represents the negative sample set.

[0041]

[0042] Among them, α is set to 0.03.

[0043] Step 3-3, maximize the positive sample pair And negative sample pairs The mutual information of the adjusted cosine similarity between the two is used as the objective function to update the network model. The optimizer for training the TDNN-F network uses the Stochastic Gradient Descent (SGD) algorithm, and the initial learning rate is set to 0.05; the learning rate adjustment strategy uses StepLR to adjust the learning rate at equal intervals. The number of training rounds is set to 21.

[0044] The objective function of mutual information estimation based on adjusted cosine similarity can be specifically expressed as:

[0045]

[0046] in, and They are respectively expressed as the distance scoring function between the positive and negative sample pairs. Here, the adjusted cosine similarity is used. The specific formula is as follows:

[0047]

[0048] The network training process is optimized by maximizing the objective function L(Θ), that is, maximizing the positive sample set Z p With negative sample set Z n The mutual information between them makes the positive sample pairs composed of the embeddings extracted by the network more similar and the negative sample pairs more dissimilar, so as to learn more appropriate embeddings.

[0049] In this embodiment, the specific process of step 4 is as follows:

[0050] Input the acoustic features of the registration set and test set extracted in step 1 into the trained network model to obtain the corresponding embeddings.

[0051] In this embodiment, the specific process of step 5 is as follows:

[0052] After performing linear discriminant analysis (LDA), submean, ZCA whiten, and vector length normalization on the embeddings of the registration set and the test set obtained in step 4, a logistic regression (LR) classifier is used for scoring.

[0053] Experimental results:

[0054] This paper uses the noisy LID (Language Identification) dataset of Track 3 in the Oriental Language Recognition Competition 2020 for performance verification, and the performance evaluation indicators use average loss (Cavg) and equal error rate (EER).

[0055] Table 1 Performance comparison of different methods

[0056]

[0057] As the number of training times increases, the changes in Cavg and EER are as follows: Figure 2 As shown in the figure, the method achieves the lowest Cavg of 0.0474 and the lowest EER of 4.82%. Compared with other methods, the method of the present invention significantly reduces the Cavg and EER of the language recognition system. As shown in Table 1, compared with the baseline system, the present invention reduces the relative Cavg and relative EER of noisy LID by 33.22% and 32.45%, respectively. Compared with the cross entropy loss function, the relative Cavg and relative EER are reduced by 26.51% and 25.77%, respectively; compared with the maximum mutual information loss function, the relative Cavg and relative EER are reduced by 12.06% and 12.44%, respectively.

[0058] The above embodiments are only used to illustrate the design ideas and features of the present invention, and their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. The protection scope of the present invention is not limited to the above embodiments. Therefore, any equivalent changes made based on the principles and ideas disclosed by the present invention still fall within the protection scope of the present invention.

Claims

1. A language recognition method based on adjusted cosine mutual information estimation, It is characterized in that The method comprises the following steps: Step 1: First, perform data enhancement on the training set, and then extract acoustic features from the enhanced training set, registration set, and test set speech, including Mel frequency cepstral coefficient feature MFCC and pitch feature Pitch; Step 2: Perform Cepstral Mean and Variance Normalization (CMVN) on the features extracted from the training set in Step 1 and use Voice Activity Detection (VAD) to delete silent frames, and then divide the features of each speech into several data chunks on average; Step 3: First, all chunks of the training set obtained in step 2 are batch-input into the network model; then, the embeddings output from the network are used to select positive and negative sample pairs according to the semi-hard negative sample mining strategy, where the mining strategy uses adjusted cosine similarity to measure the difference between sample pairs; finally, the mutual information of the positive and negative sample pairs is estimated based on adjusted cosine similarity, and this is used as the objective function for network training and updating network parameters; Step 4: Input the acoustic features of the registration set and test set extracted in step 1 into the trained network model to obtain the corresponding embeddings; Step 5: After performing Linear Discriminant Analysis (LDA), Submean, ZCA Whiten, and Vector Length Normalization on the embeddings of the registration set and the test set obtained in Step 4, a logistic regression (LR) classifier is used for scoring; The specific description of step 1 is as follows: The data augmentation of the training set described in step 1 refers to perturbing the speed and volume of the original speech in the training set, thereby adding two augmented copies of the original speech to the original speech to obtain a 3-fold combined training set; The process of extracting MFCC features described in step 1 is pre-emphasis, framing, windowing, fast Fourier transform (FFT), Mel filter bank, logarithmic operation, discrete cosine transform (DCT); The process of extracting the pitch feature described in step 1 is resampling the signal, normalizing the dynamic range of the resampled signal, determining the hysteresis range for calculating the normalized cross correlation function (NCCF), calculating the NCCF, upsampling the NCCF in a nonlinear manner, and post-processing the NCCF; In step 2, the feature of each speech is evenly divided into several chunks, which are composed of multiple continuous frames; when the number of frames contained in the feature of a speech is less than the set chunk size, the speech feature will be discarded; The specific description of step 3 is as follows: In step 3, the embeddings output by the network are used to select positive and negative sample pairs according to the semi-hard negative sample mining strategy. The specific process is to randomly select an embedding from the embeddings output by the network, denoted as Then select is the embedding of the same language, denoted as and Constitute a positive sample pair Finally, according to the mining strategy requirements, select the The embedding that does not belong to the same language and has the largest adjusted cosine similarity is denoted as Formula (4) is expressed as: Among them, α is set to 0.03, and Constitute a negative sample pair Among them, f represents the network model, i represents the dimension of embedding, and Z p represents the positive sample set, Z n represents the negative sample set; The adjusted cosine similarity described in step 3 is calculated as follows: Where x and y represent two different embeddings, Represents the mean of dimension i in batch embeddings; In step 3, the mutual information of the positive and negative sample pairs is estimated based on the adjusted cosine similarity, and this is used as the objective function for network training and updating network parameters. Specifically, it means maximizing the positive sample pair And negative sample pairs The mutual information of the adjusted cosine similarity is used as the objective function of the network, and then the network parameters are optimized through back propagation of the network, so that the similarity between positive sample pairs is greater and the similarity between negative sample pairs is smaller.

2. The method for language recognition based on adjusted cosine mutual information estimation according to claim 1, It is characterized in that The objective function can be specifically expressed as: in, and They are respectively expressed as the distance scoring function between the positive and negative sample pairs. Here, the adjusted cosine similarity is used. The specific formula is as follows: The network training process is optimized by maximizing the objective function L(Θ), that is, maximizing the positive sample set Z p With negative sample set Z n The mutual information between them makes the positive sample pairs composed of the embeddings extracted by the network more similar and the negative sample pairs more dissimilar, so as to learn more appropriate embeddings.