Language Identification Method Based on Deep Temporal Feature Representation

Through the deep temporal feature representation method, a deep learning model is constructed to extract the temporal information between speech frames, which solves the problem of low language recognition accuracy in the existing technology and achieves higher language and dialect recognition accuracy.

CN117292675BActive Publication Date: 2024-09-17HARBIN UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311388897.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-24
Publication Date
2024-09-17
Estimated Expiration
2043-10-24

AI Technical Summary

Technical Problem

Existing language recognition methods have low accuracy in language recognition, and it is difficult to accurately distinguish different languages ​​and different accents or dialects within the same language.

Method used

Using a method based on deep temporal feature representation, a deep learning model is built by acquiring and data enhancing audio data sets in different languages, including a pre-training model, a time pool and a fully connected layer. The model is trained until the maximum number of iterations is reached for speech extraction. Timing information between frames is used for language identification.

Benefits of technology

It effectively improves the performance of the language recognition system, improves the recognition accuracy of different languages ​​and dialects, and reduces the recognition error rate and average loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117292675B
    Figure CN117292675B
Patent Text Reader

Abstract

The present invention relates to a language recognition method based on deep temporal feature representation, and belongs to the field of language recognition technology. The purpose of the present invention is to solve the problem of low accuracy of language recognition in existing methods. The process is: step 1, obtain audio data sets in different languages; perform data enhancement on the audio data sets in different languages ​​respectively; cut the audio data sets in different languages ​​after data enhancement into audio data of equal length as training sets; step 2, build a deep learning model, input the training set in step 1 into the deep learning model for training, until the set maximum number of iterations is reached, and obtain a trained deep learning model; the deep learning model includes a pre-training model, a time pool and a fully connected layer in sequence; step 3, input the audio data to be tested into the trained deep learning model to obtain the language category of the audio data to be tested.
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 deep temporal feature representation, belonging to the technical field of language recognition. Background Art

[0002] Language identification plays a vital role in modern society. As the trend of globalization continues to strengthen, we are in a world that is intertwined with each other. In this context, language identification technology has become crucial. It is not only a breakthrough in technology, but also a bond that promotes communication between different cultures. By quickly and accurately identifying the language used by the other party, the barriers to cross-cultural communication can be eliminated, creating convenient conditions for international cooperation and communication. In the Internet age, the speed and scope of information dissemination are unprecedented. However, this also brings a challenge, that is, a large amount of multilingual content has emerged on the Internet and social media. Language identification technology enables platforms to automatically identify and classify this content, allowing users to more easily obtain the information they need. This not only improves the efficiency of information acquisition, but also expands users' horizons and enables them to access knowledge and culture from all over the world. In addition, language identification also plays a key role in the work of search engines. It enables search engines to understand users' query language more accurately, thereby providing more appropriate and relevant search results. This is especially important for users who are looking for specific information, and it also improves the intelligence level of search engines. In technical and commercial applications, language identification provides the basis for multilingual applications, multilingual software, and cross-language data analysis. In the business world, language recognition technology has also spawned a series of innovations, such as intelligent customer service and multilingual support for multinational companies. The advancement of this technology has promoted innovation and development, providing more intelligent and personalized services for users of different languages. This not only improves the service level of enterprises, but also expands the internationalization opportunities of the market. In the field of education, language recognition provides unprecedented convenience for cross-cultural learning, allowing learners to more easily access knowledge and culture from all over the world. In the field of healthcare, it provides important support for communication between medical staff and patients, especially in a multilingual environment, improving the quality and efficiency of medical services. The importance of language recognition not only eliminates language barriers, but also promotes the exchange and diversified development of global cultures. It improves the efficiency of information acquisition and communication, and promotes scientific and technological innovation and cross-cultural understanding. The application of this technology is continuously affecting various fields of society, economy and culture, bringing broader possibilities to our world.

[0003] Timing information is crucial for language recognition. Speech signals change over time and contain rich timing features, such as changes in the audio spectrum and the rhythm of the sound. These timing information are important clues for distinguishing different languages. For example, some languages ​​may have unique patterns in speech rhythm, while other languages ​​may differ in the pause patterns between syllables. By analyzing these timing features, speech signals can be more accurately classified into specific languages. Secondly, timing information helps to distinguish different accents or dialects within the same language. The same language may have subtle pronunciation differences in different regions or groups, and these differences are usually reflected in timing features. Therefore, accurate capture of timing information can distinguish different accents or dialects more finely, thereby improving the accuracy of language recognition. Summary of the invention

[0004] The purpose of the present invention is to solve the problem of low accuracy of language recognition in existing methods and to propose a language recognition method based on deep temporal feature representation.

[0005] The specific process of the language recognition method based on deep temporal feature representation is as follows:

[0006] Step 1: Obtain audio datasets in different languages;

[0007] Perform data enhancement on audio datasets in different languages;

[0008] The audio data sets of different languages ​​after data enhancement are cut into audio data of equal length as training sets;

[0009] Step 2: Build a deep learning model, input the training set in step 1 into the deep learning model for training, until the maximum number of iterations is reached, and obtain a trained deep learning model;

[0010] The deep learning model includes a pre-training model, a time pool and a fully connected layer in sequence;

[0011] Step 3: Input the audio data to be tested into the trained deep learning model to obtain the language category of the audio data to be tested.

[0012] The beneficial effects of the present invention are:

[0013] The method of the present invention can extract the time sequence information between speech frames and perform language recognition. The present invention refers to this method as a language recognition method based on deep time sequence feature representation.

[0014] In order to improve the feature representation capability of neural networks, the present invention proposes a language recognition method based on deep temporal feature representation, which can effectively improve the performance of language recognition systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a flow chart of the present invention;

[0016] Figure 2 This is a network architecture diagram proposed by the present invention, in which the feature representation layer can adopt two different forms, namely, a fully connected layer and a convolutional layer. The methods corresponding to the different forms are abbreviated as FCLT and CNNLT, respectively. NoLT refers to the case where there is no LT;

[0017] Figure 3 This is an ablation experiment comparison chart of the corresponding method FCLT of the present invention and the comparative methods FCNoLT and wav2vec2.0 in the dialect recognition task of the OLR2020 database. The performance is evaluated by equal error rate (EER) and average loss (Cavg), where FCNoLT is the method FCLT without timing constraints (LT);

[0018] Figure 4 This is an ablation experiment comparison chart of the corresponding method CNNLT of the present invention and the comparative methods CNNNoLT and wav2vec2.0 method in the dialect recognition task of the OLR2020 database. The performance is evaluated by equal error rate (EER) and average loss (Cavg), where CNNNoLT is the method CNNLT without timing constraints (LT);

[0019] Figure 5 It is a comparison chart of the equal error rate (EER) of the method of the present invention (FCLT and CNNLT) and the comparison methods FCNoLT, CNNNoLT, wav2vec2.0, [Pytorch]x-vector, [Kaldi]x-vector, and [Kaldi]i-vector in the dialect recognition task of the OLR2020 database;

[0020] Figure 6 This is a comparison chart of the average loss (Cavg) of the method of the present invention (FCLT and CNNLT) and the comparison methods FCNoLT, CNNNoLT, wav2vec2.0, [Pytorch]x-vector, [Kaldi]x-vector, and [Kaldi]i-vector in the OLR2020 database dialect recognition task. DETAILED DESCRIPTION

[0021] Specific implementation method 1: The specific process of the language recognition method based on deep temporal feature representation in this implementation method is as follows:

[0022] Step 1: Get audio data sets in different languages ​​(many audio segments);

[0023] Perform data enhancement on audio datasets in different languages;

[0024] The audio data sets of different languages ​​after data enhancement are cut into audio data of equal length as training sets;

[0025] Step 2: Build a deep learning model, input the training set in step 1 into the deep learning model for training, until the maximum number of iterations is reached, and obtain a trained deep learning model;

[0026] The deep learning model includes a pre-training model, a time pool and a fully connected layer in sequence;

[0027] Step 3: Input the audio data to be tested into the trained deep learning model to obtain the language category of the audio data to be tested.

[0028] Specific implementation method 2: This implementation method is different from specific implementation method 1 in that the data enhancement in step 1 is to perform data enhancement on each audio data segment in the audio data set of different languages ​​to obtain the audio data set of different languages ​​after data enhancement;

[0029] Data enhancement includes adding noise, speed enhancement, volume enhancement, pitch enhancement, movement enhancement, etc.

[0030] Pitch is the vibration frequency of sound; volume is the vibration amplitude of sound; motion enhancement is the process of disassembling and splicing a piece of audio data.

[0031] The other steps and parameters are the same as those in the first embodiment.

[0032] Specific implementation method three: This implementation method is different from specific implementation methods one or two in that a deep learning model is constructed in step 2, and the training set in step 1 is input into the deep learning model for training until the set maximum number of iterations is reached, thereby obtaining a trained deep learning model;

[0033] The deep learning model includes a pre-training model, a time pool and a fully connected layer in sequence;

[0034] The specific process is:

[0035] Step 21: Input the training set in step 1 into the pre-training model to obtain the speech feature sequence T n ;

[0036] T n =[t 1 ,t 2 ,…,t i ,…,t n ]

[0037] Among them, t i ∈R F is the speech feature sequence T nThe i-th vector in; F is the potential speech feature T n Dimensions;

[0038] Step 22: The speech feature sequence T obtained in step 21 is n Input into the time pool to obtain the speech feature vector μ;

[0039] Step 23: input the speech feature vector μ obtained in step 22 into the fully connected layer for prediction, and obtain the prediction result, i.e., the language category of the audio data;

[0040] Step 24: Repeat steps 21 to 24 until the maximum number of iterations is reached to obtain a trained deep learning model.

[0041] The other steps and parameters are the same as those in the first or second embodiment.

[0042] Specific implementation method 4: This implementation method is different from any one of specific implementation methods 1 to 3 in that the pre-trained model in step 21 is wav2vec2-base.

[0043] The other steps and parameters are the same as those in Specific Embodiments 1 to 3.

[0044] Specific implementation mode 5: This implementation mode is different from any one of specific implementation modes 1 to 4 in that the time pool in step 22 is CNNLT or FCLT;

[0045] The loss function expression of the CNNLT or FCLT is:

[0046]

[0047] Where M is the number of audio data sample categories; is a sign function, taking 0 or 1. If the audio data sample If the true category of is equal to c, it takes 1, otherwise it takes 0; Output predicted audio data samples for temporal pooling The probability of belonging to category c, N represents the total number of audio data samples in the time pool, LT represents the regularization term, λ represents the hyperparameter, and the log base is 2;

[0048] The regular term LT expression is:

[0049] In order to satisfy the timing constraints of the time pool G, a regularization term formula is proposed;

[0050]

[0051] Among them, t i ,t i+1 Represent the speech feature sequence Tn The i-th and i+1-th vectors in ; n is the speech feature sequence T n The number of vectors contained in , μ represents the speech feature vector, and α represents the tolerance parameter.

[0052] The time pool refers to a network block that can obtain the speech feature vector μ that meets the timing constraints. The time pool includes the feature representation layer, the pooling layer, and the network layer in sequence. n Perform timing condition constraints.

[0053] The other steps and parameters are the same as those in Specific Embodiments 1 to 4.

[0054] Specific implementation method 6: This implementation method is different from any one of specific implementation methods 1 to 5 in that the CNNLT includes a feature representation layer, a pooling layer and a network layer in sequence;

[0055] The feature representation layer is a convolutional layer;

[0056] The pooling layer is a mean pooling layer;

[0057] The network layer is a feed-forward neural network (FNN).

[0058] The other steps and parameters are the same as those in Specific Implementation Methods 1 to 5.

[0059] Specific implementation method 7: This implementation method is different from any one of specific implementation methods 1 to 5 in that the FCLT includes a feature representation layer, a pooling layer and a network layer in sequence;

[0060] The feature representation layer is a fully connected layer;

[0061] The pooling layer is the mean variance pooling layer;

[0062] The network layer is a feed-forward neural network (FNN).

[0063] The other steps and parameters are the same as those in Specific Implementation Methods 1 to 5.

[0064] Specific implementation eight: This implementation differs from specific implementation six or seven in that the tolerance parameter α is set to 0.0001.

[0065] The other steps and parameters are the same as those in the sixth or seventh embodiment.

[0066] Example:

[0067] The technical solution adopted by the present invention is a language recognition method based on deep learning to realize time pool, and the method comprises the following steps:

[0068] Step 1: Get audio data sets in different languages ​​(many audio segments);

[0069] Perform data enhancement on audio datasets in different languages;

[0070] The audio data sets of different languages ​​after data enhancement are cut into audio data of equal length as training sets;

[0071] This example is cropped to 1 second in length;

[0072] Step 2: Build a deep learning model, input the training set in step 1 into the deep learning model for training, until the maximum number of iterations is reached, and obtain a trained deep learning model;

[0073] The deep learning model includes a pre-training model, a time pool and a fully connected layer in sequence;

[0074] Step 3: Calculate the speech feature vector μ of the test set respectively, send it to the fully connected layer for classification, randomly select 10,000 pairs of data as scoring data, and finally use the cosine distance classifier for scoring and classification to verify the performance of the deep learning model. If the standard is met, proceed to step 4, otherwise continue to step 2;

[0075] Step 4: Input the audio data to be tested into the trained deep learning model to obtain the language category of the audio data to be tested;

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

[0077] Step 21: Input the training set in step 1 into the pre-training model to obtain the speech feature sequence T n ;

[0078] T n =[t 1 ,t 2 ,…,t i ,…,t n ]

[0079] Among them, t i ∈R F is the speech feature sequence T n The i-th vector in; F is the potential speech feature T n Dimensions;

[0080] Step 22: The speech feature sequence T obtained in step 21 is n Input into the time pool to obtain the speech feature vector μ;

[0081] Step 23: input the speech feature vector μ obtained in step 22 into the fully connected layer for prediction, and obtain the prediction result, i.e., the language category of the audio data;

[0082] Step 24: Repeat steps 21 to 24 until the maximum number of iterations is reached to obtain a trained deep learning model.

[0083] In this embodiment, the specific process of step 21 is:

[0084] This example uses the pre-trained wav2vec2.0 model.

[0085] The audio data of the training set in step 1 is fed into the pre-trained wav2vec2.0 model to obtain the potential speech feature sequence T n Where T n =[t 1 ,t 2 ,…,t i ,…,t n ];

[0086] Among them, t i ∈R F is the speech feature sequence T n The value of n is related to the length of the original audio input, which is 49 in this example. F is the potential speech feature T n The dimension of is related to the model and is 728 in this example.

[0087] In this embodiment, the specific process of step 22 is:

[0088] There are two types of time pools:

[0089] One is CNNLT, which includes feature representation layer, pooling layer and network layer in sequence;

[0090] The feature representation layer is a convolutional layer; the pooling layer is a mean pooling layer; the network layer is a feedforward neural network (FNN);

[0091] The other is FCLT, which includes feature representation layer, pooling layer and network layer in sequence;

[0092] The feature representation layer is a fully connected layer; the pooling layer is a mean variance pooling layer; and the network layer is a feedforward neural network (FNN).

[0093] The loss function expression of the time pool is:

[0094]

[0095] Where M is the number of audio data sample categories; is a sign function, taking 0 or 1. If the audio data sample If the true category of is equal to c, it takes 1, otherwise it takes 0; Output predicted audio data samples for temporal pooling The probability of belonging to category c, N represents the total number of audio data samples in the time pool, LT represents the regularization term, λ represents the hyperparameter, and the log base is 2;

[0096] The regular term LT expression is:

[0097] In order to satisfy the timing constraints of the time pool G, a regularization term formula is proposed;

[0098]

[0099] Among them, t i ,t i+1 Represent the speech feature sequence T n The i-th and i+1-th vectors in ; n is the speech feature sequence T n The number of vectors contained in , μ represents the speech feature vector, and α represents the tolerance parameter.

[0100] The tolerance parameter α is set to 0.0001.

[0101] The purpose of the time pool feature representation layer is to perform feature transformation. The role of the pooling layer is to reduce the dimension and obtain the speech feature representation. The network layer transforms the dimension of the speech feature representation to ensure that it is consistent with the speech feature sequence T n The dimensions are consistent, which facilitates the calculation of the timing constraint function formula.

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

[0103] Set the maximum number of iterations to 50,000, the deep learning model learning rate to 0.00005, and the hyperparameter to 0.0001. After the iteration is completed, the deep learning model is obtained, including the wav2vec2.0 model weights and the time pool weights.

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

[0105] The test set data is processed using the method in steps 1-2 and fed into the trained model to obtain a single vector speech representation μ. 20,000 pairs of data are selected as scoring data, including 10,000 pairs of data in the same category and 10,000 pairs of data in different categories, and finally the cosine distance classifier is used for scoring.

[0106] Experimental results:

[0107] The present invention uses the dialect recognition task in the Oriental Language Recognition Competition 2020 for performance verification. The performance evaluation indicators use equal error rate (EER) and average loss (Cavg), both of which have smaller values ​​indicating better performance.

[0108] The lowest average loss achieved in the dialect recognition task in the method of the present invention is 0.1323, and the lowest equal error rate is 13.32%; compared with the performance of the i-vector model on Pytorch and the original wav2vec2.0 model officially given by OLR2020, the performance of dialect recognition has been greatly improved. Figure 3 As shown in the figure, under the same conditions, the lowest average loss of CNNNoLT is 0.1532 and the lowest error rate is 15.41%; compared with CNNNoLT, the relative average loss and relative error rate of dialect recognition task of method CNNLT are reduced by 13.05% and 13.56% respectively. Figure 4 As shown in the figure, under the same conditions, the lowest average loss of FCNoLT is 0.1595 and the lowest error rate is 15.74%; compared with FCNoLT, the relative average loss and relative error rate of dialect recognition task of method FCLT are reduced by 15.31% and 16.55% respectively. Figure 5 As shown in Figure 2, compared with the performance of the x-vector model on the baseline system Pytorch, the relative average loss of the dialect recognition task was reduced by 24..49%; compared with the performance of the original wav2vec 2.0 model, the relative average loss of the dialect recognition task was reduced by 8.76%. Figure 6 As shown in the figure, compared with the performance of the x-vector model on the baseline system Pytorch, the relative error rate of the dialect identification task was reduced by 32.52%; compared with the performance of the original wav2vec 2.0 model, the relative error rate of the dialect identification task was reduced by 8.26%.

[0109] 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 deep temporal feature representation, characterized by: The specific process of the method is: Step 1: Obtain audio datasets in different languages; Perform data enhancement on audio datasets in different languages; The audio data sets of different languages ​​after data enhancement are cut into audio data of equal length as training sets; Step 2: Build a deep learning model, input the training set in step 1 into the deep learning model for training, until the maximum number of iterations is reached, and obtain a trained deep learning model; The deep learning model includes a pre-training model, a time pool and a fully connected layer in sequence; Step 3: Input the audio data to be tested into the trained deep learning model to obtain the language category of the audio data to be tested; The data enhancement in step 1 is to perform data enhancement on each audio data segment in the audio data sets of different languages ​​to obtain the audio data sets of different languages ​​after data enhancement; Data enhancement includes adding noise, speed enhancement, volume enhancement, pitch enhancement, and movement enhancement; In step 2, a deep learning model is constructed, and the training set in step 1 is input into the deep learning model for training until a set maximum number of iterations is reached to obtain a trained deep learning model; The deep learning model includes a pre-training model, a time pool and a fully connected layer in sequence; The specific process is: Step 21, input the training set of step 1 into the pre-training model to obtain a speech feature sequence Tn; Tn=[t1,t2,…,ti,…,tn] Where ti∈RF is the i-th vector in the speech feature sequence Tn; F is the dimension of the potential speech feature Tn; Step 22: input the speech feature sequence Tn obtained in step 21 into the time pool to obtain a speech feature vector μ; Step 23: input the speech feature vector μ obtained in step 22 into the fully connected layer for prediction, and obtain the prediction result, i.e., the language category of the audio data; Step 24: Repeat steps 21 to 24 until the maximum number of iterations is reached to obtain a trained deep learning model. The pre-trained model in step 21 is wav2vec2-base; In step 22, the time pool is CNNLT or FCLT; CNNLT includes feature representation layer, pooling layer and network layer in sequence; The feature representation layer is a convolutional layer; the pooling layer is a mean pooling layer; the network layer is a feedforward neural network; FCLT includes feature representation layer, pooling layer and network layer in sequence; The feature representation layer is a fully connected layer; the pooling layer is a mean variance pooling layer; the network layer is a feedforward neural network; The loss function expression of the CNNLT or FCLT is: Where M is the number of audio data sample categories; is a sign function, taking 0 or 1. If the audio data sample If the true category of is equal to c, it takes 1, otherwise it takes 0; Output predicted audio data samples for temporal pooling The probability of belonging to category c, N represents the total number of audio data samples in the time pool, LT represents the regularization term, and λ represents the hyperparameter; The regular term LT expression is: Among them, ti, ti +1 They represent the i-th and i+1-th vectors in the speech feature sequence Tn respectively; n is the number of vectors contained in the speech feature sequence Tn, μ represents the speech feature vector, and α represents the tolerance parameter.

2. The language identification method based on deep temporal feature representation according to claim 1, characterized in that: The tolerance parameter α is set to 0.0001.