Editing distance algorithm-based multi-channel identification arbitration method and system, and electronic equipment
By using the multi-channel recognition arbitration method of the edit distance algorithm in voice intelligent control, combined with full-featured and streamlined recognition models, the problem of too slow output of recognition results in the vehicle-machine system is solved, achieving rapid recognition and improving user experience.
Patent Information
- Application Number
- CN202310188404.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, voice intelligent control in the vehicle-machine system causes the output of recognition results to be too slow due to the computational complexity of the all-round recognition model, which affects the user experience.
A multi-channel recognition arbitration method based on the edit distance algorithm is used to import the input data into two types of recognition models: full-featured recognition model and streamlined recognition model. Through the judgment of acoustic confidence score and edit distance ratio, the recognition results are quickly output and the response speed is improved.
It achieves rapid output of recognition results and improves user experience, especially the ability to quickly identify screen content in the car-machine system, which improves user interaction efficiency.
Smart Images

Figure CN118538208A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of voice control technology, and more specifically, it particularly relates to a multi-path recognition arbitration method based on an edit distance algorithm; the present invention also relates to a multi-path recognition arbitration system based on an edit distance algorithm; the present invention also relates to an electronic device. Background Art
[0002] Voice intelligent control has become a common means of controlling machines and equipment in social life. In the car system, sometimes the car system needs to quickly recognize and output based on the content displayed on the screen.
[0003] In the prior art, the content displayed on the screen or the received voice content is usually directly imported into a unique universal recognition model. Since the universal recognition model needs to analyze semantic parsing and dialogue management and other calculations, the result output is too slow.
[0004] Therefore, how to provide a multi-path recognition arbitration method based on the edit distance algorithm, which can quickly output the recognition results and improve the user experience, has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0005] The present invention aims to optimize the voice control scenario, bring better voice control experience to users, and improve the user's experience of voice intelligent control. In order to solve the above technical problems, the present invention provides a multi-path recognition arbitration method based on the edit distance algorithm, which can quickly output the recognition result and improve the user's experience.
[0006] The technical solution provided by the present invention is as follows:
[0007] The present invention provides a technical solution for a multi-path recognition arbitration method based on an edit distance algorithm, the method comprising the steps of: obtaining first input data; importing the first input data into a first general recognition model and a second visible or verbal recognition model; performing a first recognition process on the first input data by the first general recognition model to obtain a first recognition result; performing a second recognition process on the first input data by the second visible or verbal recognition model to obtain a second recognition result; performing an acoustic confidence score recognition on the second recognition result, if the result is identified as a medium acoustic confidence result, judging the medium acoustic confidence result based on the edit distance algorithm according to the first recognition result; if passed, outputting the second recognition result.
[0008] Furthermore, in a preferred embodiment of the present invention, the method further comprises the step of: in performing acoustic confidence score recognition on the second recognition result, if the second recognition result is recognized as a high acoustic confidence result, directly outputting the second recognition result.
[0009] Furthermore, in a preferred embodiment of the present invention, the method further comprises the step of: in performing acoustic confidence score recognition on the second recognition result, if a low acoustic confidence result is recognized, directly abandoning the second recognition result.
[0010] Furthermore, in a preferred embodiment of the present invention, if the "judgment of the acoustic confidence result based on the edit distance algorithm according to the first recognition result" fails, the second recognition result is abandoned.
[0011] Further, in a preferred embodiment of the present invention, the "judging the neutral acoustic confidence result based on the edit distance algorithm according to the first recognition result" specifically includes the following steps: converting the first recognition result into Chinese Pinyin to obtain a first Pinyin result; converting the neutral acoustic confidence result into Chinese Pinyin to obtain a second Pinyin result; taking the first Pinyin result as a reference value and the second Pinyin result as a target value; analyzing and obtaining the shortest edit distance between the first Pinyin result and the second Pinyin result, and analyzing and identifying the maximum value between the first Pinyin result and the second Pinyin result; comparing the shortest edit distance with the maximum value to obtain an edit distance ratio; comparing the edit distance ratio with a first preset value, if the edit distance ratio is less than the first preset value, the neutral acoustic confidence result is judged as passed, and the second recognition result is output; if the edit distance ratio is greater than the first preset value, the neutral acoustic confidence result is judged as failed, and the second recognition result is abandoned.
[0012] Furthermore, in a preferred embodiment of the present invention, the first general recognition model is a full-function recognition model, and compared with the first general model, the second visible recognition model is a simplified recognition model.
[0013] Furthermore, in a preferred embodiment of the present invention, the first input data is audio data or text data of currently displayed content.
[0014] The present invention also provides a technical solution for a multi-path recognition arbitration system based on an edit distance algorithm, which executes the above-mentioned multi-path recognition arbitration method based on an edit distance algorithm; the system includes: a first acquisition module for acquiring first input data; a first transmission module for importing the first input data into a first universal recognition model and a second visible recognition model; a first universal recognition model for performing a first recognition process on the first input data to obtain a first recognition result; a second universal recognition model for performing a second recognition process on the first input data to obtain a second recognition result; a first judgment module for judging the acoustic confidence result based on the edit distance algorithm according to the first recognition result; and a first output module for outputting the second recognition result.
[0015] The present invention also provides a technical solution for a multi-path identification arbitration system based on an edit distance algorithm, the system comprising: a controller, the controller being used to execute the above-mentioned multi-path identification arbitration method based on an edit distance algorithm; a data acquisition device connected to the controller; a data output device connected to the controller; the controller being provided with the first universal identification module and the second visible identification model.
[0016] The present invention also provides a technical solution for an electronic device, comprising: a computer program, which is used to execute the above-mentioned multi-path identification arbitration method based on the edit distance algorithm; a memory, which is used to store the computer program; and a processor, which is used to execute the computer program.
[0017] The present invention provides a multi-path recognition arbitration method based on the edit distance algorithm. Compared with the prior art, the first input data obtained is first subjected to two types of recognition. The first type of recognition is to import the first input data into the first general recognition model. Due to the omnipotence of the general recognition model, the first recognition result is used as a reference value to judge the second recognition result. Further, the second type of recognition is to import the first input data into the second visible recognition model. The second visible recognition model has a small amount of calculation and the speed of outputting results is greater than that of the first general recognition model. For the second recognition result, an acoustic confidence score recognition is immediately performed. If the recognition result is a high acoustic confidence result, it is directly output; if the recognition result is a low acoustic confidence result, it is directly discarded and the first recognition result is output instead; if the recognition result is a medium acoustic confidence result, a judgment based on the edit distance algorithm is further performed. Further, in the judgment of the medium acoustic confidence result, the first recognition result is used as a reference value for judgment, and the second recognition result is output if it passes. In summary, through the above technical solution, the second quick response module can be mainly used to quickly identify and output the content that needs to be identified; and further comparison can be performed for a small number of abnormal content / substandard content. Therefore, the technical solution provided by this application can quickly output the recognition results and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A flowchart of the main steps of a multi-path identification arbitration method based on an edit distance algorithm provided by an embodiment of the present invention;
[0020] Figure 2 A process node diagram of a multi-path identification arbitration method based on an edit distance algorithm provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions 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 only 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 the field without creative work are within the scope of protection of the present invention.
[0022] It should be noted that when an element is referred to as being "fixed on" or "set on" another element, it can be directly on the other element or indirectly set on the other element; when an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0023] It should be understood that the terms "length", "width", "up", "down", "front", "back", "first", "second", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0024] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" and "several" is two or more, unless otherwise clearly and specifically defined.
[0025] It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings of this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with this technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantive technical significance. Any structural modification, change in proportion or adjustment of size, without affecting the effects and purposes that can be achieved by the present invention, should still fall within the scope of the technical contents disclosed by the present invention.
[0026] Please Figure 1 and Figure 2 As shown, an embodiment of the present invention provides a multi-path recognition arbitration method based on an edit distance algorithm, the method comprising: obtaining first input data; importing the first input data into a first general recognition model and a second visible or verbal recognition model; performing a first recognition process on the first input data by the first general recognition model to obtain a first recognition result; performing a second recognition process on the first input data by the second visible or verbal recognition model to obtain a second recognition result; performing an acoustic confidence score recognition on the second recognition result, and if it is recognized as a medium acoustic confidence result, judging the medium acoustic confidence result based on the edit distance algorithm according to the first recognition result; if it passes, outputting the second recognition result.
[0027] The embodiment of the present invention provides a technical solution for a multi-path recognition arbitration method based on an edit distance algorithm, in which two types of recognition are first performed on the first input data obtained. The first type of recognition is to import the first input data into a first general recognition model. Due to the omnipotence of the general recognition model, the first recognition result is used as a reference value to judge the second recognition result. Further, the second type of recognition is to import the first input data into a second visible recognition model. The second visible recognition model has a smaller amount of calculation and a faster output speed than the first general recognition model. For the second recognition result, an acoustic confidence score recognition is immediately performed. If the recognition result is a high acoustic confidence result, it is directly output; if the recognition result is a low acoustic confidence result, it is directly discarded and the first recognition result is output instead; if the recognition result is a medium acoustic confidence result, a judgment based on the edit distance algorithm is further performed. Further, in the judgment of the medium acoustic confidence result, the first recognition result is used as a reference value for judgment, and the second recognition result is output if it passes. In summary, through the above technical solution, the second quick response module can be mainly used to quickly identify and output the content that needs to be identified; and further comparison can be performed for a small number of abnormal content / substandard content. Therefore, the technical solution provided by this application can quickly output the recognition results and improve the user experience.
[0028] It should be noted that the second visible-can-be-spoken recognition model is a visible-can-be-spoken recognition model.
[0029] It should be noted that since the second see-and-speak recognition model only has speech / text recognition functions but no semantic analysis and dialogue management processing functions, the result output efficiency of the second see-and-speak recognition model is higher than that of the first general recognition model.
[0030] Specifically, in an embodiment of the present invention, the method further includes the step of: in performing acoustic confidence score recognition on the second recognition result, if the recognition is a high acoustic confidence result, directly outputting the second recognition result.
[0031] Specifically, in an embodiment of the present invention, the method further includes the step of: in performing acoustic confidence score recognition on the second recognition result, if it is recognized as a low acoustic confidence result, directly abandoning the second recognition result.
[0032] It should be noted that in the speech recognition confidence score recognition, the second recognition result can be quickly recognized and judged. According to the preset scoring criteria, those above the scoring criteria are classified as high acoustic confidence results, those below the scoring criteria are classified as low acoustic confidence results, and those between the scoring criteria are classified as medium acoustic confidence results, so as to achieve the purpose of fast and reliable output.
[0033] Specifically, in the embodiment of the present invention, if the "judgment on the acoustic confidence result based on the edit distance algorithm according to the first recognition result" fails, the second recognition result is abandoned.
[0034] It should be noted that the second recognition result is only used as a reference value due to its slow output efficiency.
[0035] Specifically, in an embodiment of the present invention, the "judging the intermediate acoustic confidence result based on the edit distance algorithm according to the first recognition result" specifically includes the following steps: converting the first recognition result into Chinese Pinyin to obtain a first Pinyin result; converting the intermediate acoustic confidence result into Chinese Pinyin to obtain a second Pinyin result; taking the first Pinyin result as a reference value and the second Pinyin result as a target value; analyzing and obtaining the shortest edit distance between the first Pinyin result and the second Pinyin result, and analyzing and identifying the maximum value between the first Pinyin result and the second Pinyin result; comparing the shortest edit distance with the maximum value to obtain an edit distance ratio; comparing the edit distance ratio with a first preset value, if the edit distance ratio is less than the first preset value, the intermediate acoustic confidence result is judged as passed, and the second recognition result is output; if the edit distance ratio is greater than the first preset value, the intermediate acoustic confidence result is judged as failed, and the second recognition result is abandoned.
[0036] It should be noted that in the judgment based on the edit distance algorithm, combined with the characteristics of Chinese Pinyin, the object to be judged is converted into the first Pinyin result and the second Pinyin result for judging the edit distance, thereby improving the judgment efficiency of the edit distance. In the prior art, the edit distance is usually judged by binary code, resulting in low distance accuracy.
[0037] Specifically, in the embodiment of the present invention, the first general recognition model is a full-function recognition model, and compared with the first general model, the second visible recognition model is a simplified recognition model.
[0038] Specifically, in the embodiment of the present invention, the first input data is audio data or text data of currently displayed content.
[0039] It should be noted that the second visible recognition model is also used to quickly identify and play the current in-vehicle display content, thereby improving the efficiency of user interaction with the vehicle computer.
[0040] The present invention also provides a technical solution for a multi-path recognition arbitration system based on an edit distance algorithm, in which the above-mentioned multi-path recognition arbitration method based on an edit distance algorithm is executed; the system comprises: a first acquisition module for acquiring first input data; a first transmission module for importing the first input data into a first universal recognition model and a second visible recognition model; a first universal recognition model for performing a first recognition process on the first input data to obtain a first recognition result; a second universal recognition model for performing a second recognition process on the first input data to obtain a second recognition result; a first judgment module for judging the medium acoustic confidence result based on the edit distance algorithm according to the first recognition result; and a first output module for outputting the second recognition result. The present invention provides a multi-path recognition arbitration system based on an edit distance algorithm, which also has the above-mentioned technical effects.
[0041] The present invention also provides a technical solution for a multi-path identification arbitration system based on an edit distance algorithm, the system comprising: a controller, the controller is used to execute the above-mentioned multi-path identification arbitration method based on an edit distance algorithm; a data acquisition device connected to the controller; a data output device connected to the controller; the controller is provided with the first universal identification module and the second visible recognition model. The present invention provides a multi-path identification arbitration system based on an edit distance algorithm, which also has the above-mentioned technical effects.
[0042] The present invention also provides a technical solution for an electronic device, comprising: a computer program, the computer program executing the above-mentioned multi-path identification arbitration method based on the edit distance algorithm; a memory, the memory being used to store the computer program; and a processor, the processor being used to execute the computer program. The present invention provides a technical solution for an electronic device, which also has the above-mentioned technical effect.
[0043] It should be noted that the key steps of this application include:
[0044] 1. Two recognition engines are set up at the same time during voice initialization. One is called the general recognition model, which is used to meet the recognition of conventional speech content and is suitable for models with large-scale data processing, such as the recognition of speech such as vehicle control, map, multimedia, etc. in vehicle-mounted scenes. The other is called the visible-can-be-said recognition model. The grammatical model content of this recognition engine is derived from the visible content on the screen. The content in the visible range of the screen is dynamically extracted into the grammatical model. It is suitable for models with small-scale data processing, so the recognition accuracy of the content in the visible range of the screen can be guaranteed. Because the model is small, each recognition and analysis result will be much faster. At the same time, compared with general recognition, there is no semantic analysis and dialogue management processing, so the overall speed can be much faster.
[0045] 2. Two recognition engines are started at the same time for one recognition, and a human voice audio is sent to the two recognition engines at the same time. Due to the reasons explained above, the visible-can-speak recognition model gives results much faster than the general recognition results. After getting the visible-can-speak recognition results, the visible-can-speak results are dynamically divided into three categories according to the acoustic scores of the visible-can-speak recognition engines, namely: high acoustic confidence results, low acoustic confidence results, and intermediate results between the high and low results that cannot be directly determined by confidence.
[0046] Furthermore, after obtaining the high-confidence result and checking the result visibility, you can directly confirm the confidence, achieving the goal of both speed and accuracy. For the low-confidence result, you can directly discard it and wait for the general recognition result to be returned.
[0047] Furthermore, the acoustic results in the intermediate state need to wait for the general recognition results to be returned and then use the general recognition results to assist in judgment. After getting the two recognition results, first convert the Chinese recognition results to Chinese Pinyin, get the two Chinese Pinyin results, use the general recognition result as the reference value, and then use the general recognition result as the target value. Calculate the shortest distance and divide it by the maximum value of the two to get the two pronunciation similarity calculation results.
[0048] If the confidence threshold requirement is met, it proves that the universal recognition and universal recognition acoustic pronunciations are relatively similar, which indirectly proves that the result given by Visible and Speakable is similar to the original pronunciation of the human voice. You can choose to believe the Visible and Speakable result.
[0049] If,the threshold requirement is not met, it can be considered that the pronunciation of the visible and speakable result is quite different from that of the general recognition result. In this case, the general recognition with a larger trust model should be chosen, that is, the general recognition result should be trusted, and the visible and speakable result should be discarded.
[0050] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A multi-path identification arbitration method based on edit distance algorithm, characterized in that: The method comprises the steps of: Obtaining first input data; importing the first input data into a first universal recognition model and a second visible recognition model; The first universal recognition model performs a first recognition process on the first input data to obtain a first recognition result; The second visible recognition model performs a second recognition process on the first input data to obtain a second recognition result; Performing acoustic confidence scoring recognition on the second recognition result, if it is recognized as a medium acoustic confidence result, judging the medium acoustic confidence result based on the edit distance algorithm according to the first recognition result; If passed, the second recognition result is output.
2. The multi-path identification arbitration method based on the edit distance algorithm according to claim 1, characterized in that: The method further comprises the steps of: In the acoustic confidence score recognition of the second recognition result, if it is recognized as a high acoustic confidence result, the second recognition result is directly output.
3. The multi-path identification arbitration method based on edit distance algorithm according to claim 1, characterized in that: The method further comprises the steps of: In the acoustic confidence score recognition of the second recognition result, if it is recognized as a low acoustic confidence result, the second recognition result is directly abandoned.
4. The multi-path identification arbitration method based on the edit distance algorithm according to any one of claims 1 to 3, characterized in that: If the "judgment of the acoustic confidence result based on the edit distance algorithm according to the first recognition result" fails, the second recognition result is abandoned.
5. The multi-path identification arbitration method based on edit distance algorithm according to claim 4, characterized in that: The “judging the acoustic confidence result based on the edit distance algorithm according to the first recognition result” specifically includes the following steps: Convert the first recognition result into Chinese pinyin to obtain a first pinyin result; Convert the acoustic confidence result into Chinese Pinyin to obtain a second Pinyin result; Taking the first pinyin result as a reference value and taking the second pinyin result as a target value; Analyze and obtain the shortest edit distance between the first pinyin result and the second pinyin result, Analyze and identify the maximum value between the first pinyin result and the second pinyin result; Compare the shortest edit distance with the maximum value to obtain an edit distance ratio; Comparing the edit distance ratio with a first preset value, if the edit distance ratio is less than the first preset value, judging the medium acoustic confidence result as passed, and outputting the second recognition result; If the edit distance ratio is greater than the first preset value, the medium acoustic confidence result is judged as failed, and the second recognition result is abandoned.
6. The multi-path identification arbitration method based on edit distance algorithm according to claim 5, characterized in that: The first general recognition model is a full-function recognition model, and compared with the first general model, the second visible recognition model is a simplified recognition model.
7. The multi-path identification arbitration method based on edit distance algorithm according to claim 5, characterized in that: The first input data is audio data or text data of currently displayed content.
8. A multi-path identification arbitration system based on edit distance algorithm, characterized in that: The system implements the multi-path identification arbitration method based on the edit distance algorithm as described in any one of claims 1 to 7, and the system comprises: A first acquisition module for acquiring first input data; a first transmission module for importing the first input data into a first universal recognition model and a second visible or audible recognition model; A first general recognition model for performing a first recognition process on the first input data to obtain a first recognition result; A second general recognition model for performing a second recognition process on the first input data to obtain a second recognition result; A first judgment module for judging the acoustic confidence result based on the edit distance algorithm according to the first recognition result; A first output module is used to output the second recognition result.
9. A multi-path identification arbitration system based on edit distance algorithm, characterized in that: The system includes: A controller, the controller being used to execute the multi-path identification arbitration method based on the edit distance algorithm according to any one of claims 1 to 7; a data acquisition device connected to the controller; a data output device connected to the controller; The controller is provided with the first general recognition model and the second visible recognition model.
10. An electronic device, characterized in that: include: A computer program, the computer program being used to execute the multi-path identification arbitration method based on the edit distance algorithm as claimed in any one of claims 1 to 7; A memory, the memory being used to store the computer program; A processor is used to execute the computer program.
