Multi-field speech recognition method and device
By decomposing the speech recognition model into a pre-training model and a domain-specific bypass matrix, the problem of low recognition accuracy and high computational complexity of speech recognition systems in different fields in the existing technology is solved, achieving more efficient speech recognition and rapid Model updated.
Patent Information
- Application Number
- CN202410864850.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-06
AI Technical Summary
Existing speech recognition systems have low recognition accuracy when processing speech input in different fields, and the deep learning model has a large number of parameters and computational complexity, resulting in high resource consumption and difficulty in quickly adapting to iterative updates in specific fields.
By generating a pre-trained speech recognition model based on a general domain training data set, and combining it with a specific domain data set to generate a bypass matrix, a domain-specific speech recognition model is formed, reducing the amount of parameters and computational complexity, and achieving rapid iterative updates.
It reduces the parameter amount and computational complexity of speech recognition models in specific fields, improves recognition accuracy, adapts to speech input in different fields, and achieves rapid model updates.
Smart Images

Figure CN118609547A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a multi-domain speech recognition method and device. Background Art
[0002] Multi-domain speech recognition has always been a topic of concern in the industry. There may be some specific words, terms, and scenarios in different fields, which will lead to low recognition accuracy of speech recognition systems for these terms and scenarios. Most existing speech recognition systems are obtained by training deep learning models using large-scale data sets, which can achieve good recognition results. However, these deep learning models usually have a large number of parameters and computational complexity. Summary of the invention
[0003] The multi-domain speech recognition method according to an embodiment of the present invention includes: training a speech recognition model based on a general domain training data set to generate a pre-trained speech recognition model; generating a specific domain bypass matrix corresponding to the pre-trained speech recognition model based on a specific domain training data set and the pre-trained speech recognition model; and generating a recognition result corresponding to a specific domain speech signal based on the pre-trained speech recognition model and the specific domain bypass matrix.
[0004] A multi-domain speech recognition device according to an embodiment of the present invention includes: a memory configured to store computer-executable instructions; and a processor coupled to the memory, wherein when the computer-executable instructions are executed by the processor, the processor performs the model training process or the speech recognition process in the multi-domain speech recognition method. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] The present invention can be better understood from the following description of specific embodiments of the present invention in conjunction with the accompanying drawings, in which:
[0006] Figure 1 A schematic block diagram of a multi-domain speech recognition system according to an embodiment of the present invention is shown.
[0007] Figure 2 A schematic flow chart of a multi-domain speech recognition method according to an embodiment of the present invention is shown.
[0008] Figure 3 A schematic diagram of the prediction process of a domain-specific speech recognition model according to an embodiment of the present invention is shown.
[0009] Figure 4 A schematic diagram of a computer system that can implement the multi-domain speech recognition apparatus and method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0010] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In the detailed description below, many specific details are proposed to provide a comprehensive understanding of the present invention. However, it is obvious to those skilled in the art that the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention. The present invention is by no means limited to any specific configuration and algorithm proposed below, but covers any modification, replacement and improvement of elements, parts and algorithms without departing from the spirit of the present invention. In the accompanying drawings and the following description, known structures and technologies are not shown to avoid unnecessary ambiguity to the present invention.
[0011] At present, there are mainly the following speech recognition methods for specific fields: 1) Use a large number of general field training data sets to train the speech recognition model, and correct the trained speech recognition model in combination with the hot word system of the specific field. This method requires the construction of a complete hot word system, and cannot correct the recognition results of the hot word voice input. 2) Use the training data set of a specific field to fine-tune the trained speech recognition model through transfer learning to obtain a speech recognition model for a specific field. This method can achieve good recognition results, but requires high computational complexity and computing resources.
[0012] In view of the above situation, a multi-domain speech recognition system and method according to an embodiment of the present invention are proposed, which can not only reduce the number of parameters and computational complexity of the speech recognition model, but also adapt to speech input in different fields.
[0013] Figure 1 A schematic block diagram of a multi-domain speech recognition system according to an embodiment of the present invention is shown. Figure 2 A schematic flow chart of a multi-domain speech recognition method according to an embodiment of the present invention is shown. The multi-domain speech recognition system and method according to an embodiment of the present invention are described in detail below in conjunction with the accompanying drawings.
[0014] like Figure 1As shown, the multi-domain speech recognition system 100 according to an embodiment of the present invention includes a general model training unit 102, a bypass matrix training unit 104, and a speech recognition unit 106, wherein: the general model training unit 102 is configured to train the speech recognition model M based on the general domain training data set to generate a pre-trained speech recognition model M' (i.e., execute step S202); the bypass matrix training unit 104 is configured to generate a specific domain bypass matrix M0' corresponding to the pre-trained speech recognition model M' based on the specific domain training data set and the pre-trained speech recognition model M' (i.e., execute step S204); the speech recognition unit 106 is configured to generate a recognition result corresponding to the specific domain speech signal based on the pre-trained speech recognition model M' and the specific domain bypass matrix M0' (i.e., execute step S206). It should be understood that the pre-trained speech recognition model M' and the specific domain bypass matrix M0' constitute at least a part of the specific domain speech recognition model. Hereinafter, for convenience, the processing performed by the general model training unit 102 and the bypass matrix training unit 104 is collectively referred to as model training processing, and the processing performed by the speech recognition unit 106 is referred to as speech recognition processing.
[0015] In the multi-domain speech recognition system and method according to the embodiment of the present invention, by decomposing the specific domain speech recognition model into the pre-trained speech recognition model M' and the specific domain bypass matrix M0', the parameter amount of the specific domain speech recognition model during training and reasoning is reduced, thereby reducing the parameter amount and computational complexity of the specific domain speech recognition model. In addition, the specific domain speech recognition model can be updated by only updating the specific domain bypass matrix M0', so it is conducive to quickly realizing the iterative update of the specific domain speech recognition model.
[0016] In some embodiments, the general domain training data set includes a plurality of general domain speech sample-text data pairs, and the process of generating a pre-trained speech recognition model M' includes: extracting features from each speech sample in the plurality of general domain speech sample-text data pairs to generate a plurality of audio feature sequences corresponding to the plurality of general domain speech sample-text data pairs; and training the speech recognition model M based on the plurality of general domain speech sample-text data pairs and the plurality of audio feature sequences corresponding to them to generate the pre-trained speech recognition model M'. The audio feature sequence may be, for example, a Mel frequency cepstral coefficient sequence, a filter bank feature sequence, etc., and the speech recognition model may be, for example, a recurrent neural network, a convolutional neural network, a Transformer, a Conformer, a Squeezeformer, an Emformer, a Zipformer, etc.
[0017] In some embodiments, the process of generating a pre-trained speech recognition model M' may also include: measuring the difference between the recognition result of the pre-trained speech recognition model M' and the true label based on the cross entropy loss function, and updating the model parameters of the pre-trained speech recognition model M' based on the back propagation algorithm.
[0018] In some embodiments, the process of generating the pre-trained speech recognition model M' may further include: optimizing the pre-trained speech recognition model M' based on a learning rate adjustment method or a regularization method.
[0019] In some embodiments, the process of generating a specific domain bypass matrix M0' includes: initializing the bypass matrix parameters corresponding to the pre-trained speech recognition model M' and fine-tuning the pre-trained speech recognition model M' to generate the bypass matrix M0 corresponding to the pre-trained speech recognition model M'; and training the bypass matrix M0 based on a specific domain training data set to generate the specific domain bypass matrix M0'.
[0020] In some embodiments, the pre-trained speech recognition model M' can be fine-tuned using a low-rank adaptive method, and / or the reduced-dimensional matrix parameters in the bypass matrix parameters can be initialized to random numbers of a Gaussian distribution and the increased-dimensional matrix parameters in the bypass matrix parameters can be initialized to zero.
[0021] In some embodiments, the speech recognition word error rate of the pre-trained speech recognition model M' can be calculated based on a general domain verification dataset to evaluate the performance of the pre-trained speech recognition model M', and / or the speech recognition word error rate of a specific domain speech recognition model can be calculated based on a specific domain verification dataset to evaluate the performance of the specific domain speech recognition model.
[0022] In some embodiments, the process of generating a recognition result corresponding to a specific domain speech signal includes: extracting features from the specific domain speech signal to generate an audio feature sequence corresponding to the specific domain speech signal; generating a recognition result corresponding to the specific domain speech signal based on a pre-trained speech recognition model M', a specific domain bypass matrix M0', and an audio feature sequence corresponding to the specific domain speech signal.
[0023] Figure 3 FIG. 4 is a schematic diagram showing a prediction process of a domain-specific speech recognition model according to an embodiment of the present invention. Figure 3 As shown, in some embodiments, assuming that the parameters of the pre-trained speech recognition model M' are W0, the parameters of the specific domain bypass matrix M0' are W1, the specific domain speech recognition model is composed of the pre-trained speech recognition model M' and the specific domain bypass matrix M0', and the audio feature sequence input to the specific domain speech recognition model is x, then the output sequence H of the specific domain speech recognition model is H=W0*x+W1*x.
[0024] In some embodiments, the general model training unit 102 and the bypass matrix training unit 104 can be deployed on the server of the distributed speech recognition system, responsible for receiving the model requirements sent by the client of the distributed speech recognition system, and performing training and iterative updates of the speech recognition model in a specific field. The speech recognition unit 106 can be deployed as a client on an Internet of Things (IOT) device (e.g., smart speakers, smart phones, smart watches, etc.), responsible for receiving specific field voice signals from users in a specific field, and using a specific field voice recognition model to identify the specific field voice signals. Here, the client and server of the distributed speech recognition system communicate via a network connection, and the server maintains a specific field bypass matrix for different fields, and updates it to the client after completing the training of the specific field bypass matrix, so as to realize the iterative update of the speech recognition model in a specific field. In this case, the IOT device where the server and the client of the distributed speech recognition system are located can be regarded as a multi-field speech recognition device, wherein the multi-field speech recognition device as a server is used to perform model training processing, and the multi-field speech recognition device as the IOT device where the client is located is used to perform speech recognition processing.
[0025] Figure 4 A schematic diagram of a computer system that can implement the multi-domain speech recognition device and method according to an embodiment of the present invention is shown. Figure 4 , describes a computer system 400 suitable for implementing an embodiment of the present disclosure. It should be understood that Figure 4 The computer system 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0026] like Figure 4 As shown, the computer system 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 to a random access memory (RAM) 403. Various programs and data required for the operation of the computer system 400 are also stored in the RAM 403. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0027] Typically, the following devices may be connected to the I / O interface 405: input devices 406 including, for example, a touch screen, a touch pad, a camera, an accelerometer, a gyroscope, a sensor, etc.; output devices 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, a motor, an electronic speed controller, etc.; storage devices 408 including, for example, a flash memory (FlashCard), etc.; and communication devices 409. The communication devices 409 may allow the computer system 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The computer system 400 is shown with various devices, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have instead. Figure 4 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0028] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart may be implemented as a computer program. For example, an embodiment of the present disclosure provides a computer readable medium storing a computer program, the computer program including a method for executing Figure 2 In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, one or more functional units defined in the multi-domain speech recognition system according to the embodiment of the present invention are implemented.
[0029] It should be noted that the computer-readable medium according to the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. The computer-readable storage medium according to the embodiment of the present invention may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device, or device. In addition, the computer-readable signal medium according to the embodiment of the present invention may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0030] Computer program code for performing operations according to embodiments of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).
[0031] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function, and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0032] The present invention can be implemented in other specific forms without departing from its spirit and essential features. For example, the algorithms described in the specific embodiments can be modified, and the system architecture does not depart from the basic spirit of the present invention. Therefore, the current embodiments are regarded as exemplary and non-restrictive in all aspects, and the scope of the present invention is defined by the appended claims rather than the above description, and all changes falling within the meaning and equivalent scope of the claims are thus included in the scope of the present invention.
Claims
1. A multi-domain speech recognition method, comprising: Training a speech recognition model based on a general domain training dataset to generate a pre-trained speech recognition model; Based on the domain-specific training data set and the pre-trained speech recognition model, generating a domain-specific bypass matrix corresponding to the pre-trained speech recognition model; as well as Based on the pre-trained speech recognition model and the specific domain bypass matrix, a recognition result corresponding to the specific domain speech signal is generated.
2. The multi-domain speech recognition method according to claim 1, wherein: The general domain training data set includes a plurality of general domain speech sample-text data pairs, and the process of generating the pre-trained speech recognition model includes: Performing feature extraction on each speech sample in the plurality of general-domain speech sample-text data pairs to generate a plurality of audio feature sequences respectively corresponding to the plurality of general-domain speech sample-text data pairs; and The speech recognition model is trained based on the multiple general-domain speech sample-text data pairs and the multiple audio feature sequences corresponding to them respectively to generate the pre-trained speech recognition model.
3. The multi-domain speech recognition method according to claim 2, wherein: The process of generating the pre-trained speech recognition model further includes: The difference between the recognition result of the pre-trained speech recognition model and the true label is measured based on the cross entropy loss function, and the model parameters of the pre-trained speech recognition model are updated based on the back propagation algorithm.
4. The multi-domain speech recognition method according to claim 3, wherein: The process of generating the pre-trained speech recognition model further includes: The pre-trained speech recognition model is optimized based on a learning rate adjustment method or a regularization method.
5. The multi-domain speech recognition method according to claim 1, wherein: The process of generating the domain-specific bypass matrix includes: Initializing bypass matrix parameters corresponding to the pre-trained speech recognition model and fine-tuning the pre-trained speech recognition model to generate a bypass matrix corresponding to the pre-trained speech recognition model; and The bypass matrix is trained based on the specific domain training data set to generate the specific domain bypass matrix.
6. The multi-domain speech recognition method according to claim 5, wherein: The pre-trained speech recognition model is fine-tuned using a low-rank adaptive method.
7. The multi-domain speech recognition method according to claim 5, wherein: The dimension reduction matrix parameters in the bypass matrix parameters are initialized to random numbers of Gaussian distribution, and the dimension increase matrix parameters in the bypass matrix parameters are initialized to zero.
8. The multi-domain speech recognition method according to claim 1, further comprising: Calculating the speech recognition error rate of the pre-trained speech recognition model based on a general domain verification dataset; and / or Based on a specific domain verification data set, a speech recognition word error rate of a specific domain speech recognition model is calculated, wherein the pre-trained speech recognition model and the specific domain bypass matrix constitute at least a part of the specific domain speech recognition model.
9. The multi-domain speech recognition method according to claim 1, wherein: The process of generating a recognition result corresponding to the domain-specific speech signal includes: Performing feature extraction on the domain-specific speech signal to generate an audio feature sequence corresponding to the domain-specific speech signal; Based on the pre-trained speech recognition model, the specific domain bypass matrix, and the audio feature sequence corresponding to the specific domain speech signal, a recognition result corresponding to the specific domain speech signal is generated.
10. A multi-domain speech recognition device, comprising: a memory configured to store computer executable instructions; A processor coupled to the memory, wherein the computer executable instructions, when executed by the processor, cause the processor to perform a model training process or a speech recognition process in the multi-domain speech recognition method according to any one of claims 1 to 9.
11. A computer-readable storage medium having computer-executable instructions stored thereon, wherein: When the computer executable instructions are executed by a processor, the processor performs the model training process or the speech recognition process in the multi-domain speech recognition method according to any one of claims 1 to 9.
12. A computer program product comprising computer executable instructions, wherein: When the computer executable instructions are executed by a processor, the processor performs the model training process or the speech recognition process in the multi-domain speech recognition method according to any one of claims 1 to 9.
