A voice interaction system based on deep learning model

Through deep learning models and sound source localization technology, the problem of low speech recognition accuracy in high-noise environments is solved, an efficient voice interaction system is realized, alignment processing and post-processing steps are reduced, and recognition accuracy and training efficiency are improved.

CN114842835BActive Publication Date: 2024-10-18HENAN ZHONGYUAN POWER INTELLIGENT MFG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210411322.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-19
Publication Date
2024-10-18
Estimated Expiration
2042-04-19

AI Technical Summary

Technical Problem

Existing voice interaction systems have low recognition accuracy in high-noise environments and multiple sound sources, and traditional speech recognition models require tedious alignment preprocessing and local classification prediction, resulting in low recognition accuracy and long training time.

Method used

An end-to-end voice interaction system based on deep learning is adopted, including a sound source localization module, a speech recognition module, a natural language understanding module, a dialogue management module, and a speech synthesis module. The voice signal is processed through the end-to-end sound source localization model and the deep learning model. processing, directly outputting sequence predictions, reducing alignment processing and post-processing steps.

Benefits of technology

It improves the accuracy and efficiency of speech recognition, reduces model training time, and achieves efficient recognition and response of non-contact voice interaction systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114842835B_ABST
    Figure CN114842835B_ABST
Patent Text Reader

Abstract

The present invention discloses a voice interaction system based on a deep learning model. The system uses the sound source localization module to obtain corresponding target sound data from the collected sound signal; the speech recognition module is used to obtain text data corresponding to the target sound data, and transmit the text data to the natural language understanding module; the natural language understanding module is used to obtain the semantic analysis result of the text data; the dialogue management module is used to decide actions and update the semantic environment according to the received semantic analysis result, the current semantic environment and the preset dialogue state; the natural language generation module is used to generate a reply text according to the received semantic analysis result; the speech synthesis module is used to convert the reply text into speech for broadcasting. The technical solution of the present invention improves the speech interaction efficiency of the contactless voice interaction system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of voice interaction technology, and in particular to a voice interaction system based on a deep learning model. Background Art

[0002] Intelligent inspection robots are used in high-speed railway station squares to conduct inspections in the squares. In the high-speed railway station square, when passengers need to ask about routes, the intelligent robot voice interaction system can answer pedestrians' questions without contact to meet pedestrians' needs. At present, voice interaction in shopping malls still requires users to touch the screen and click to obtain corresponding information. At present, the epidemic has not completely passed, and the contact-based interaction system will bring huge hidden dangers to epidemic prevention and control. The contactless intelligent robot voice interaction system can greatly reduce this hidden danger. In the inspection robot of the high-speed railway station, adding a voice interaction system can meet the needs of passengers entering the station for inquiries about the entrance and ticket collection point, and can also meet the needs of passengers leaving the station to inquire about subway stations, bus stops, hotels and taxi pick-up points.

[0003] From the perspective of the entire voice interaction processing flow, it can be divided into three parts: voice input, voice processing and voice output, among which voice input includes: voice enhancement; voice processing includes: voice wake-up, voice recognition, semantic understanding; voice output includes: voice synthesis and sound enhancement. The quality of the signal feature extraction of sound will directly affect the accuracy of voice recognition. Since environmental noise includes the noise of people around, wind noise, surrounding vehicle noise, and media playback sound, these noise sources will weaken the signal characteristics of the human voice, thereby increasing the difficulty of recognition. In addition, there are many passengers in the square, and the robot needs to find a certain sound source and extract information to respond. In the existing technology, the accuracy of identifying and locating the sound source is low, which leads to a poor experience of human-computer interaction.

[0004] Traditional acoustic model training for speech recognition requires knowing the corresponding label for each frame of data in order to conduct effective training, and speech alignment preprocessing is required before training the data. Therefore, there is a problem that speech alignment preprocessing is required before training the data, which is time-consuming, and accurate predictions cannot be made when alignment labels are missing. The prediction of traditional speech recognition output is local classification, which only uses the information of the current frame and does not use the global information of the sequence for prediction, so there is a problem of low recognition accuracy. Summary of the invention

[0005] The present invention provides a voice interaction system based on a deep learning model, which improves the voice interaction efficiency of a contactless voice interaction system.

[0006] An embodiment of the present invention provides a voice interaction system based on a deep learning model, including a sound source localization module, a voice recognition module, a natural language understanding module, a dialogue management module, a natural language generation module and a voice synthesis module;

[0007] The sound source localization module is used to pre-process the collected sound signal and input it into the end-to-end sound source localization model to obtain sound localization information, and obtain corresponding target sound data from the collected sound signal according to the sound localization information, and transmit it to the speech recognition module;

[0008] The speech recognition module is used to input the received target sound data into an end-to-end deep learning model to obtain text data corresponding to the target sound data, and transmit the text data to the natural language understanding module;

[0009] The natural language understanding module is used to perform word segmentation, part-of-speech tagging, named entity recognition and dependency syntactic analysis on the received text data, and then combine the sentiment analysis result of the text data to obtain the semantic analysis result of the text data;

[0010] The dialogue management module is used to decide actions and update the semantic environment according to the received semantic analysis results, the current semantic environment and the preset dialogue state;

[0011] The natural language generation module is used to generate a reply text according to the received semantic analysis result;

[0012] The speech synthesis module is used to convert the reply text into speech for broadcasting.

[0013] Furthermore, the collected sound signal is pre-processed and then input into the end-to-end sound source localization model to obtain sound localization information, specifically:

[0014] Collecting sound signals through multiple microphone arrays, extracting features from the sound signals and inputting them into the end-to-end sound source localization model;

[0015] The end-to-end sound source localization model calculates the azimuth information, pitch angle information and distance information of the sound source corresponding to the sound signal to obtain the sound localization information corresponding to the sound source.

[0016] Furthermore, the end-to-end sound source localization model calculates the azimuth information, elevation information and distance information of the sound source corresponding to the sound signal, specifically:

[0017] The end-to-end sound source localization model calculates the time delay difference between the sound signals collected by each microphone array according to the delay estimation algorithm, and then calculates the azimuth information and elevation information of the sound source corresponding to the sound signal in combination with the geometric structure of each microphone array, and then calculates the distance information of the sound source according to the azimuth information, elevation information and hyperbola localization method.

[0018] Furthermore, the training process of the end-to-end deep learning model includes the following steps:

[0019] Determine an input sequence and a prediction sequence of the end-to-end deep learning model, wherein the input sequence is a sequence corresponding to an audio file, and the prediction sequence is a sequence corresponding to a text file;

[0020] After the input sequence is input into the end-to-end deep learning model, the end-to-end deep learning model extracts features of the input sequence through an encoder, and calculates a distribution result of a corresponding prediction sequence according to the feature extraction result;

[0021] The distribution result is decoded by a decoder, and then the decoded result is linearly transformed and softmax normalized to obtain the prediction result of the input sequence.

[0022] Furthermore, the process of obtaining the prediction sequence is as follows:

[0023] The sequences of the collected text files are annotated using an extended label set to obtain a first sequence set, and the sequences in the first sequence set that can be converted into real sequences through a mapping function are determined as predicted sequences.

[0024] Furthermore, when generating the reply text, the natural language generation module includes the following steps:

[0025] Determine the information that needs to be replied according to the received semantic analysis result, and determine a reasonable text order according to the information that needs to be replied;

[0026] Determining text information presented in a single sentence according to the text sequence, and selecting a corresponding plurality of words and phrases according to the text information of the single sentence;

[0027] Identify the field to which the information to be replied belongs, and select words and phrases corresponding to the field from the plurality of words and phrases according to the field;

[0028] The selected words and phrases of the corresponding field are combined into sentences with correct format.

[0029] Furthermore, the dialogue management module and the natural language generation module are executed in parallel or synchronously.

[0030] The embodiments of the present invention have the following beneficial effects:

[0031] The present invention provides a voice interaction system based on a deep learning model, wherein the sound source localization module of the voice interaction system adopts the sound source localization technology to improve the efficiency of voice interaction. Specifically, the sound localization information is obtained by pre-processing the collected sound signal and inputting it into the end-to-end sound source localization model, and the corresponding target sound data is obtained from the collected sound signal according to the sound localization information, thereby improving the accuracy of voice recognition and thus improving the efficiency of voice recognition. The present invention adopts a completely end-to-end deep learning model. When training the end-to-end deep learning model, it is not necessary to align the data in advance, and only one input sequence and one output sequence are required for training. That is, there is no need to align and annotate the data one by one like a traditional voice recognition model. At the same time, the end-to-end deep learning model of the present invention directly outputs the probability of sequence prediction, and its prediction process is based on global sequence information. Therefore, no external post-processing is required after the probability of sequence prediction is output, while the prediction of the traditional voice recognition output is local classification, which only uses the information of the current frame and does not use the global information of the sequence, so other external post-processing is required. It can be seen that the present invention not only improves the accuracy of speech recognition but also reduces the time for model training by adopting a completely end-to-end deep learning model to obtain text data corresponding to the target sound data. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a structural diagram of a voice interaction system based on a deep learning model provided by an embodiment of the present invention;

[0033] Figure 2 It is a structural schematic diagram of an end-to-end sound source localization model of a voice interaction system based on a deep learning model provided by an embodiment of the present invention;

[0034] Figure 3 It is a schematic diagram of the processing flow of a natural language understanding module of a voice interaction system based on a deep learning model provided by an embodiment of the present invention;

[0035] Figure 4 It is a schematic diagram of the processing flow of a natural language generation module of a voice interaction system based on a deep learning model provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0036] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings 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 this field without creative work are within the scope of protection of the present invention.

[0037] like Figure 1 As shown, a voice interaction system based on a deep learning model provided by an embodiment of the present invention includes a sound source localization module, a voice recognition module, a natural language understanding module, a dialogue management module, a natural language generation module and a voice synthesis module;

[0038] The sound source localization module is used to pre-process the collected sound signal and input it into the end-to-end sound source localization model to obtain sound localization information, and obtain corresponding target sound data from the collected sound signal according to the sound localization information, and transmit it to the speech recognition module;

[0039] The speech recognition module is used to input the received target sound data into an end-to-end deep learning model to obtain text data corresponding to the target sound data, and transmit the text data to the natural language understanding module;

[0040] The natural language understanding module is used to perform word segmentation, part-of-speech tagging, named entity recognition and dependency syntax analysis on the received text data, and then combine the sentiment analysis results of the text data to obtain the semantic analysis results of the text data. Specifically, as shown in the figure, the text data is pre-processed and input into the deep learning model. The deep learning model extracts the features of the text data and converts them into word vectors, and then performs text classification, sentiment analysis, named entity recognition, machine translation and other processing. For example, the natural language understanding module analyzes "I want to buy tickets", recognizes that the subject is "I", the predicate is "want", and the object is "buy tickets", and finds the next action "buy tickets" from it.

[0041] The dialogue management module is used to decide actions and update semantic environments based on the received semantic analysis results, the current semantic environment, and the preset dialogue state. The dialogue management module controls the human-computer interaction process, maintains and updates the dialogue state, and decides on the next action. The preset dialogue state is the dialogue rule, and the dialogue rule includes but is not limited to dialogue flow, action judgment, and the combination of dialogue flow and action judgment. For example, the dialogue management module automatically opens the ticket purchase system interface based on the "ticket purchase" result received from the natural language understanding module, and then waits for the operator's next command, and gives operation prompts during the waiting process, and the prompts include but are not limited to selecting a departure point and selecting an arrival point.

[0042] The natural language generation module is used to generate a reply text according to the received semantic analysis result. That is, the natural language generation module is used to convert the reply information such as concepts, knowledge, data, intentions, etc. conveyed to the user into language text.

[0043] The speech synthesis module is used to convert the text into speech for broadcasting.

[0044] As one example, Figure 2 As shown, the collected sound signal is pre-processed and then input into the end-to-end sound source localization model to obtain sound localization information, specifically:

[0045] Collecting sound signals through multiple microphone arrays, extracting features from the sound signals and inputting them into the end-to-end sound source localization model;

[0046] The end-to-end sound source localization model calculates the azimuth information, pitch angle information and distance information of the sound source corresponding to the sound signal, and obtains the sound localization information corresponding to the sound source. The sound source localization technology adopted in the embodiment of the present invention uses a spherical coordinate system, and the sound localization information includes azimuth, pitch angle and distance. Specifically, the end-to-end sound source localization model calculates the localization information of the sound source according to the feature-position mapping principle of sound propagation, and the localization information includes azimuth information, pitch angle information and distance information. The feature-position mapping principle of sound propagation includes a delay estimation algorithm and a hyperbolic localization method in specific applications. The principle of the delay estimation algorithm is: for the same sound source, the time when microphones at different positions receive the sound is different. According to the difference in time, combined with the propagation rate, the distance from the sound source to different microphones can be calculated, and then the position of the sound source can be inferred.

[0047] As one embodiment, the end-to-end sound source localization model calculates the azimuth information, elevation information, and distance information of the sound source corresponding to the sound signal, specifically:

[0048] The end-to-end sound source localization model calculates the delay difference between the sound signals collected by each microphone array according to the delay estimation algorithm, and then calculates the azimuth information and elevation angle information of the sound source corresponding to the sound signal in combination with the geometric structure of each microphone array; preferably, the delay estimation algorithm includes a cross-correlation delay algorithm, a generalized cross-correlation delay algorithm or a phase difference delay algorithm. Since the signals received by each microphone array have different degrees of delay, it is necessary to calculate the delay difference.

[0049] The distance information of the sound source is then calculated based on the azimuth information, the elevation information and the hyperbola positioning method. After the direction of arrival of the sound signal is estimated and the azimuth information and the elevation information of the sound source are obtained, the sound source can be located within the hyperbola between the microphone array and the captured signal. At this time, the sound source can be located by the intersection of the hyperbolas of each microphone array (i.e., the hyperbola positioning method is used) to obtain the distance information of the sound source.

[0050] As one embodiment, the training process of the end-to-end deep learning model includes the following steps:

[0051] Determine the input sequence X = [x1, x2, ..., xT] and the prediction sequence (i.e., label data) Y = [y1, y2, ..., yU] of the end-to-end deep learning model, where the input sequence is the sequence corresponding to the audio file and the prediction sequence is the sequence corresponding to the text file; where T is the length of the input sequence and U is the length of the output sequence. The purpose is to find a mapping from X to Y. The lengths of X and Y are both variable and unequal.

[0052] After the input sequence X is input into the end-to-end deep learning model, the end-to-end deep learning model extracts features of the input sequence X through an encoder, and calculates a distribution result of a corresponding prediction sequence Y according to the feature extraction result;

[0053] The distribution result is decoded by a decoder, and then the decoded result is subjected to linear transformation and softmax normalization processing to obtain the prediction result of the input sequence X. The prediction result is the text sequence corresponding to the input sequence.

[0054] During training, the probability and of all correct prediction sequences are maximized through the objective function. When searching for all correct prediction sequences, a forward-backward algorithm is used.

[0055] As one embodiment, the process of obtaining the tag data is as follows:

[0056] The sequences of the collected text files are annotated using an extended label set to obtain a first sequence set, and the sequences in the first sequence set that can be converted into real sequences through a mapping function are determined as predicted sequences.

[0057] The input sequence refers to the sequence corresponding to the audio file, and the predicted sequence refers to the prediction result of the deep learning model, that is, the sequence corresponding to the text file. The real sequence refers to the text file sequence that completely corresponds to the audio file. For example, the input sequence, that is, the audio file is "Have you eaten?"; the real sequence, that is, the correct text file sequence corresponding to the audio file is "Have you eaten?". There are many kinds of predicted sequences, such as "Have you eaten?", "Have you eaten?", "Have you eaten?", and dashes represent the speaker's tone delay. The multiple predicted sequences of the embodiment of the present invention are all correct predictions, but there is only one real sequence. The difference between the predicted sequence and the real sequence is only the tone delay. The predicted sequence can be converted into a real sequence through a mapping function.

[0058] As one example, Figure 4 As shown, when generating a reply text, the natural language generation module includes the following steps:

[0059] Determine the information that needs to be replied (i.e., content determination) according to the received semantic analysis result, and determine a reasonable text order (i.e., text structure) according to the information that needs to be replied;

[0060] Determining text information presented in a single sentence according to the text order (i.e., sentence aggregation), and selecting a corresponding plurality of words and phrases according to the text information of the single sentence (i.e., grammaticalization);

[0061] Identify the field to which the information to be replied belongs, and select words and phrases corresponding to the field from the plurality of words and phrases according to the field (i.e., generate reference expressions);

[0062] The selected words and phrases of the corresponding field are combined into sentences with correct format (ie, phonetic realization).

[0063] In the content determination step of the embodiment of the present invention, it is necessary to decide which information should be included in the text being constructed and which should not be included. In the text structure step, the order of the text needs to be organized reasonably. In the sentence aggregation step, merging multiple information into one sentence may make the expression more fluent and easier to read. In the grammaticalization step, the determined sentence content is organized into natural language. In the reference expression generation step, some words and phrases are selected again to form a complete sentence. In the language implementation step, all the related words and phrases that have been determined are combined to form a well-structured complete sentence. For example, the dialogue management module opens the ticket purchase system and prompts the operator to say the starting point, arrival point, date and other information in turn. The natural language generation module finally generates a complete sentence based on the ticket purchase, starting point, arrival point, date and other information said by the operator, that is, "You will buy a ticket from b to c at time a, please confirm."

[0064] As one embodiment, the dialogue management module and the natural language generation module are executed in parallel or synchronously, that is, the dialogue management module and the natural language generation module can be executed in parallel or sequentially.

[0065] The present invention improves the efficiency of voice interaction by adopting sound source localization technology. Specifically, the present invention uses multiple microphones to measure sound signals at different locations in the environment. Since the time for the sound signal to reach each microphone has different degrees of delay, the measured sound signal is processed using an algorithm to obtain the direction of arrival DOA (including azimuth and pitch angle) and distance of the sound source point relative to the microphone, which greatly improves the accuracy of voice recognition and thus improves the efficiency of voice recognition.

[0066] The present invention adopts a completely end-to-end deep learning model. When training the end-to-end deep learning model, it is not necessary to align the data in advance, and only one input sequence and one output sequence are needed for training. That is, there is no need to align and annotate the data one by one like the traditional speech recognition model. The present invention uses an extended label set to annotate the sequence of the collected text file to obtain a first sequence set, and the sequence in the first sequence set that can be converted into a real sequence by a mapping function is determined as label data, and the obtained label data is the correct prediction result. It can be seen that the present invention does not need data alignment processing to obtain the predicted sequence. At the same time, the end-to-end deep learning model of the present invention directly outputs the probability of sequence prediction, and its prediction process is based on global sequence information. Therefore, no external post-processing is required after the probability of sequence prediction is output, and the prediction of the traditional speech recognition output is a local classification, which only uses the information of the current frame and does not use the global information of the sequence, so other external post-processing is required (such as the non-end-to-end model needs to align the prediction result with the input sequence at the time point). In summary, the present invention not only improves the accuracy of speech recognition but also reduces the time for model training by adopting a completely end-to-end deep learning model to obtain text data corresponding to the target sound data.

[0067] Those of ordinary skill in the art can understand and implement it without creative work. The above is a preferred embodiment of the present invention. It should be noted that for those of ordinary skill in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention. Those of ordinary skill in the art can understand that all or part of the processes in the above embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above embodiments. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

Claims

1. A voice interaction system based on a deep learning model, characterized in that: It includes sound source localization module, speech recognition module, natural language understanding module, dialogue management module, natural language generation module and speech synthesis module; The sound source localization module is used to pre-process the collected sound signal and input it into the end-to-end sound source localization model to obtain sound localization information, and obtain corresponding target sound data from the collected sound signal according to the sound localization information, and transmit it to the speech recognition module; The speech recognition module is used to input the received target sound data into an end-to-end deep learning model to obtain text data corresponding to the target sound data, and transmit the text data to the natural language understanding module; The natural language understanding module is used to perform word segmentation, part-of-speech tagging, named entity recognition and dependency syntactic analysis on the received text data, and then combine the sentiment analysis result of the text data to obtain the semantic analysis result of the text data; The dialogue management module is used to decide actions and update the semantic environment according to the received semantic analysis results, the current semantic environment and the preset dialogue state; The natural language generation module is used to generate a reply text according to the received semantic analysis result; The speech synthesis module is used to convert the reply text into speech for broadcasting; The collected sound signal is pre-processed and then input into the end-to-end sound source localization model to obtain sound localization information, specifically: Collecting sound signals through multiple microphone arrays, extracting features from the sound signals and inputting them into the end-to-end sound source localization model; The end-to-end sound source localization model calculates the azimuth information, pitch angle information and distance information of the sound source corresponding to the sound signal to obtain the sound localization information corresponding to the sound source; The training process of the end-to-end deep learning model includes the following steps: Determine an input sequence and a prediction sequence of the end-to-end deep learning model, wherein the input sequence is a sequence corresponding to an audio file, and the prediction sequence is a sequence corresponding to a text file; After the input sequence is input into the end-to-end deep learning model, the end-to-end deep learning model extracts features of the input sequence through an encoder, and calculates a distribution result of a corresponding prediction sequence according to the feature extraction result; Decoding the distribution result through a decoder, and then performing linear transformation and softmax normalization processing on the decoded result to obtain a prediction result of the input sequence; The process of obtaining the prediction sequence is as follows: The sequences of the collected text files are annotated using the extended label set to obtain a first sequence set, and the sequences in the first sequence set that are converted into real sequences by a mapping function are determined as predicted sequences.

2. The voice interaction system based on the deep learning model according to claim 1, characterized in that: The end-to-end sound source localization model calculates the azimuth information, elevation information and distance information of the sound source corresponding to the sound signal, specifically: The end-to-end sound source localization model calculates the time delay difference between the sound signals collected by each microphone array according to the delay estimation algorithm, and then calculates the azimuth information and elevation information of the sound source corresponding to the sound signal in combination with the geometric structure of each microphone array, and then calculates the distance information of the sound source according to the azimuth information, elevation information and hyperbola localization method.

3. The voice interaction system based on deep learning model according to claim 1, characterized in that: When generating a reply text, the natural language generation module includes the following steps: Determine the information that needs to be replied according to the received semantic analysis result, and determine a reasonable text order according to the information that needs to be replied; Determining text information presented in a single sentence according to the text sequence, and selecting a corresponding plurality of words and phrases according to the text information of the single sentence; Identify the field to which the information to be replied belongs, and select words and phrases corresponding to the field from the plurality of words and phrases according to the field; The selected words and phrases of the corresponding field are combined into sentences with correct format.

4. The voice interaction system based on the deep learning model according to any one of claims 1 to 3, characterized in that: The dialogue management module and the natural language generation module are executed in parallel or synchronously.

Citation Information

Patent Citations

  • Intelligent system obtaining human voice and obtaining method based on the system

    CN106409306A

  • Multi-round dialogue intelligent voice interaction system and device

    CN110209791A