A method, device, electronic device, and storage medium for in-vehicle human-machine voice interaction based on a cooperative adaptive policy gradient algorithm.
By adopting the collaborative adaptive policy gradient algorithm in the vehicle system, using the Markov decision process and the policy gradient algorithm, dynamic mapping relationships are realized, which solves the problem of lack of adaptability of traditional interaction methods, improves interaction efficiency, and is closer to driver habits. effect.
Patent Information
- Application Number
- CN202410833227.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Traditional human-computer interaction methods lack adaptive capabilities and cannot adjust responses according to the driver's habits, resulting in low interaction efficiency.
A vehicle-mounted human-computer voice interaction method based on the collaborative adaptive policy gradient algorithm is adopted to obtain the user's voice, determine the acoustic action vector, and use the Markov decision process and the policy gradient algorithm to determine the machine action command to achieve a dynamic mapping relationship so that the machine can Adapt responses based on real-time context.
It improves the effect of in-vehicle interaction close to the driver's habits, improves the efficiency of interaction, and enables the machine to spontaneously find the optimal interaction method and adapt to the interaction environment and scene needs.
Smart Images

Figure CN118398014B
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle-computer interaction, and more specifically, to a vehicle-mounted human-computer voice interaction method, device, electronic device and storage medium based on a collaborative adaptive strategy gradient algorithm. Background Art
[0002] At present, the interaction and communication process between people and various industrial technologies and equipment is called human-machine interaction, which aims to establish mutual links and communications between people and robots. Traditional human-machine interaction methods are based on static mapping methods, in which humans must adapt to the machine's interface, and the machine's response remains static and does not change over time. This human-machine interaction method does not have a customized effect for driver habits, and the human-machine interaction efficiency is low. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a vehicle-mounted human-machine voice interaction method, device, electronic device and storage medium based on a collaborative adaptive policy gradient algorithm, so as to overcome the problem in the prior art that the machine's response to the user's voice does not change over time, resulting in the lack of adaptive ability of the vehicle-mounted system.
[0004] In a first aspect, the present invention provides a vehicle-mounted human-machine voice interaction method based on a collaborative adaptive policy gradient algorithm, the method comprising:
[0005] Acquiring user speech and determining an acoustic action vector based on the user speech;
[0006] Determining a machine action command based on the acoustic action vector and a human-machine interaction strategy, wherein the human-machine interaction strategy is determined based on a Markov decision process and a policy gradient algorithm;
[0007] A response result to the user voice is determined based on the machine action command.
[0008] The method of the first aspect of the present application obtains user voice and determines an acoustic action vector based on the user voice, and then can determine a machine action command based on the acoustic action vector and a human-computer interaction strategy, wherein the human-computer interaction strategy is determined based on a Markov decision process and a policy gradient algorithm, and then can determine a response result for the user voice based on the machine action command. Compared with the prior art, the present application can determine a human-computer interaction strategy based on a Markov decision process, so that the vehicle computer can make an optimal strategy to match the user voice based on the user data and the current state, that is, the static mapping relationship in the traditional human-computer interaction is transformed into a dynamic mapping relationship through the Markov decision process, so that the machine can adjust its response mode according to the real-time situation and needs, so that the interactive system has the ability to learn the driver's experience trajectory from the interactive environment and scene requirements, so that the in-vehicle interaction effect is closer to the driver's habits and improves the interaction efficiency. At the same time, the policy gradient algorithm can enable the vehicle computer to spontaneously find the interaction mode closest to the habit and find the optimal solution in a specific interaction space.
[0009] In an optional implementation, after determining the machine action command based on the acoustic action vector and the human-machine interaction strategy, the method further includes:
[0010] Calculate the strategy reward value of the machine action based on the backend speech model;
[0011] The human-machine interaction strategy is updated based on the strategy reward value of the machine action command.
[0012] This optional implementation can calculate the strategy reward value of the machine action based on the backend voice model, and then can update the human-computer interaction strategy based on the strategy reward value of the machine action command.
[0013] In an optional implementation, determining the acoustic action vector based on the user voice includes:
[0014] Inputting the user voice into a voice recognition model to identify the system voice instruction category of the user voice based on the voice recognition model;
[0015] The acoustic action vector is obtained based on the system voice instruction category of the user voice.
[0016] This optional implementation may input the user voice into a voice recognition model to identify the system voice instruction category of the user voice based on the voice recognition model, and further obtain the acoustic action vector based on the system voice instruction category of the user voice.
[0017] In an optional implementation, obtaining the acoustic action vector based on the system voice instruction category of the user voice includes:
[0018] The user voice is label-encoded based on the system voice instruction category of the user voice to obtain the acoustic action vector.
[0019] This optional implementation can perform label encoding on the user voice based on the system voice instruction category of the user voice to obtain the acoustic action vector.
[0020] In an optional embodiment, the system voice command categories include navigation-related commands, media control commands, vehicle information query commands, general control commands, voice assistant interaction commands, and application control commands.
[0021] This optional implementation may use one of the command types among navigation-related commands, media control commands, vehicle information query commands, general control commands, voice assistant interaction commands and application control commands as the system voice instruction category of the user voice.
[0022] In an optional implementation, the determining a response result to the user voice based on the machine action command includes:
[0023] Converting the machine action command into a system operation code based on a command voice system;
[0024] The response result to the user voice is determined based on the system operation code.
[0025] This optional implementation can convert the machine action command into a system operation code based on the command voice system, and then determine the response result to the user voice based on the system operation code.
[0026] In an optional implementation manner, determining the response result to the user voice based on the system operation code includes:
[0027] Determining a control command type of the system operation code;
[0028] The response result to the user voice is output based on the control command type of the system operation code and a command code table.
[0029] This optional implementation can determine the control command type of the system operation code, and then output the response result to the user voice based on the control command type of the system operation code and the command code table.
[0030] In a second aspect, the present invention provides a vehicle-mounted human-machine voice interaction device based on a collaborative adaptive policy gradient algorithm, the device comprising:
[0031] An acquisition module, configured to acquire a user voice and determine an acoustic action vector based on the user voice;
[0032] A first determination module, configured to determine a machine action command based on the acoustic action vector and a human-machine interaction strategy, wherein the human-machine interaction strategy is determined based on a Markov decision process and a policy gradient algorithm;
[0033] The second determination module is used to determine a response result to the user voice based on the machine action command.
[0034] The device of the second aspect of the present application obtains the user voice and determines the acoustic action vector based on the user voice, and then can determine the machine action command based on the acoustic action vector and the human-computer interaction strategy, wherein the human-computer interaction strategy is determined based on the Markov decision process and the policy gradient algorithm, and then can determine the response result for the user voice based on the machine action command. Compared with the prior art, the present application can determine the human-computer interaction strategy based on the Markov decision process, so that the vehicle computer can make the optimal strategy to match the user voice based on the user data and the current state, that is, the static mapping relationship in the traditional human-computer interaction is transformed into a dynamic mapping relationship through the Markov decision process, so that the machine can adjust its response mode according to the real-time situation and needs, so that the interactive system has the ability to learn the driver's experience trajectory from the interactive environment and scene requirements, so that the in-vehicle interaction effect is closer to the driver's habits and improves the interaction efficiency. At the same time, the policy gradient algorithm can enable the vehicle computer to spontaneously find the interaction method closest to the habit and find the optimal solution in a specific interaction space.
[0035] In a third aspect, the present invention provides an electronic device, comprising:
[0036] Processor; and
[0037] A memory is configured to store machine-readable instructions, which, when executed by the processor, execute the in-vehicle human-computer voice interaction method based on the collaborative adaptive policy gradient algorithm as described in any of the aforementioned implementations.
[0038] The electronic device of the third aspect of the present application obtains the user voice and determines the acoustic action vector based on the user voice, and then can determine the machine action command based on the acoustic action vector and the human-computer interaction strategy, wherein the human-computer interaction strategy is determined based on the Markov decision process and the policy gradient algorithm, and then can determine the response result for the user voice based on the machine action command. Compared with the prior art, the present application can determine the human-computer interaction strategy based on the Markov decision process, so that the vehicle computer can make the optimal strategy to match the user voice with the user data and the current state, that is, the static mapping relationship in the traditional human-computer interaction is transformed into a dynamic mapping relationship through the Markov decision process, so that the machine can adjust its response mode according to the real-time situation and demand, so that the interactive system has the ability to learn the driver's experience trajectory from the interactive environment and scene requirements, so that the in-vehicle interaction effect is closer to the driver's habits and improves the interaction efficiency. At the same time, the policy gradient algorithm can make the vehicle computer spontaneously find the interaction mode closest to the habit and find the optimal solution in a specific interaction space.
[0039] In a fourth aspect, the present invention provides a storage medium storing a computer program, wherein the computer program is executed by a processor as an in-vehicle human-computer voice interaction method based on a collaborative adaptive policy gradient algorithm as described in any one of the aforementioned implementations.
[0040] The storage medium of the fourth aspect of the present application obtains the user voice and determines the acoustic action vector based on the user voice, and then can determine the machine action command based on the acoustic action vector and the human-computer interaction strategy, wherein the human-computer interaction strategy is determined based on the Markov decision process and the policy gradient algorithm, and then can determine the response result for the user voice based on the machine action command. Compared with the prior art, the present application can determine the human-computer interaction strategy based on the Markov decision process, so that the vehicle computer can make the optimal strategy to match the user voice with the user data and the current state, that is, the static mapping relationship in the traditional human-computer interaction is transformed into a dynamic mapping relationship through the Markov decision process, so that the machine can adjust its response mode according to the real-time situation and demand, so that the interactive system has the ability to learn the driver's experience trajectory from the interactive environment and scene requirements, so that the in-vehicle interaction effect is closer to the driver's habits and improves the interaction efficiency. At the same time, the policy gradient algorithm can make the vehicle computer spontaneously find the interaction method closest to the habit and find the optimal solution in a specific interaction space. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 It is a flowchart of a vehicle-mounted human-machine voice interaction method based on a collaborative adaptive policy gradient algorithm disclosed in an embodiment of the present application;
[0043] Figure 2 It is an overall block diagram of a vehicle-mounted human-computer interaction method disclosed in an embodiment of the present application;
[0044] Figure 3 It is a schematic diagram of the structure of a deep convolutional network disclosed in an embodiment of the present application;
[0045] Figure 4 It is an operation execution flow chart based on an optimization strategy disclosed in an embodiment of the present application;
[0046] Figure 5 It is a structural schematic diagram of a vehicle-mounted human-machine voice interaction device based on a collaborative adaptive policy gradient algorithm disclosed in an embodiment of the present application;
[0047] Figure 6 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0049] Embodiment 1
[0050] See also Figure 1 , Figure 1 is a flow chart of a vehicle-mounted human-machine voice interaction method based on a collaborative adaptive policy gradient algorithm disclosed in an embodiment of the present application, such as Figure 1 As shown, the method of the embodiment of the present application includes the following steps:
[0051] 101. Acquire user voice and determine an acoustic action vector based on the user voice;
[0052] 102. Determine a machine action command based on an acoustic action vector and a human-machine interaction strategy, wherein the human-machine interaction strategy is determined based on a Markov decision process and a policy gradient algorithm;
[0053] 103. Determine a response result to the user's voice based on the machine action command.
[0054] The method of the embodiment of the present application obtains the user's voice and determines the acoustic action vector based on the user's voice, and then can determine the machine action command based on the acoustic action vector and the human-computer interaction strategy, wherein the human-computer interaction strategy is determined based on the Markov decision process and the policy gradient algorithm, and then can determine the response result for the user's voice based on the machine action command. Compared with the prior art, the present application can determine the human-computer interaction strategy based on the Markov decision process, so that the vehicle computer can make the optimal strategy to match the user's voice based on the user data and the current state, that is, the static mapping relationship in the traditional human-computer interaction is transformed into a dynamic mapping relationship through the Markov decision process, so that the machine can adjust its response mode according to the real-time situation and needs, so that the interactive system has the ability to learn the driver's experience trajectory from the interactive environment and scene requirements, so that the in-vehicle interaction effect is closer to the driver's habits and improves the interaction efficiency. At the same time, the policy gradient algorithm can enable the vehicle computer to spontaneously find the interaction method that is closest to the habit and find the optimal solution in a specific interaction space.
[0055] In the embodiment of the present application, the basic modeling of the human-computer interaction strategy can be completed based on the Markov decision process, wherein the Markov decision process is an adaptive decision framework that models the tasks that can only be completed by the interaction between machines and humans, thereby assisting in more efficient execution of the tasks. Specifically, the Markov decision process is processed based on reinforcement learning to search for the best human-computer interaction strategy in this method. , so that the Markov decision process can make decisions based on user needs, that is, make decisions dynamically.
[0056] For further information, see Figure 2 , Figure 2 is a general block diagram of a vehicle-mounted human-computer interaction method disclosed in an embodiment of the present application. Figure 2 As shown in the figure, the process and method of interactive strategy design based on the collaborative adaptive policy gradient algorithm are as follows:
[0057] Input: Acoustic motion vector ;
[0058] Customization of human-computer interaction strategy: The basic strategy formulated in the embodiment of the present application is to map the state of the "Markov decision process" to the action, and to achieve a situation in which both the human and the machine only observe the state of the "Markov decision process" through a cyclic interaction. For example: the decision / judgment results of human-computer interaction do not affect each other at the previous moment and the next moment, and these two decision results constitute a Markov process. These states are included in the process of human-computer collaborative adaptation, and the machine uses the "Markov decision process" state to affect human behavior. In the process of human-computer interaction, the machine receives a scalar reward signal calculated with the assistance of a speech model. , for each action to perform the task. This reward may be positive or negative depending on the result of applying the machine action to complete the task. To achieve the task of human-machine interaction, the machine goal is to find the optimal strategy with the maximum expected long-term reward :
[0059] ;
[0060] in, A discount factor.
[0061] Furthermore, based on the above basic strategy, the policy gradient algorithm is introduced to parameterize the strategy, rather than using the value function algorithm to indirectly find the corresponding strategy. For decision-making problems, the execution of the above steps is conducive to better balancing the use of known optimal strategies and the exploration of possible better strategies. In addition, through the policy gradient algorithm, the vector parameterized to any acceptable probability density function form , which changes the decision optimization direction from exploring the optimal strategy to finding a parameterized vector The optimal value of , where the policy gradient algorithm can be applied to continuous state space and action space without discretization or quantization, and handles the dimension problem well. Finally, the policy gradient algorithm provides a stochastic strategy that can handle problems related to partial observability of the "Markov decision process" or incomplete information about the state, and helps avoid local minima due to policy randomness.
[0062] Based on the above strategy, rules are formulated that the machine must cooperatively adapt to human behavior or actions. Therefore, during the machine's exploration step, it is necessary to perform a "joint learning" strategy by generating experience trajectories for each action performed by humans. Then, the machine strategy is updated with information from the trajectories generated in the exploration step to complete the development of unknown information areas. Thus, the machine's goal is to maximize the probability of obtaining a trajectory with the maximum expected long-term reward, given a strategy The trajectory probability in the case of is as follows:
[0063] ;
[0064] in, represents the initialization state distribution; Indicates The state and action of each time step; represents the interaction trajectory; Indicates The machine action in time steps.
[0065] Furthermore, the backend speech model reward calculation: it mainly uses the speech model to assist in calculating the strategy reward value, so that the strategy can be better updated. Apply actions to dynamically interact with the Markov decision process to implement the reward function The Markov decision process is dynamically expressed as ,in , Represent the state and action of the tth time step respectively, is in state Apply Actions The specific calculation formula is as follows:
[0066] ;
[0067] in, Representing noise in the spectrum graph Affects the machine action Feedback on the command recognition results is used to obtain the strategy reward signal.
[0068] Furthermore, each round of human-machine interaction will update the interaction strategy, and the machine update is to modify the expected long-term reward by changing the step size or learning rate. Parameterized vector in increasing direction , and finally maximize the expected long-term rewards on all human behavior trajectories , the specific formula is as follows:
[0069] ;
[0070] in, represents the gradient descent rate.
[0071] For the above formula Introducing the concept of log-likelihood, the following formula can be obtained by estimation:
[0072] ;
[0073] in, is in state Apply Actions The reward value.
[0074] Finally, the optimal voice human-computer interaction strategy can be obtained through iterative calculation of the above formula , and can be calculated by the following formula:
[0075] ;
[0076] In an optional embodiment, after determining the machine action command based on the acoustic action vector and the human-machine interaction strategy, the method further includes:
[0077] Calculate the strategic reward value of the machine action based on the backend speech model;
[0078] Update the human-computer interaction strategy based on the policy reward value of the machine action command.
[0079] This optional implementation can calculate the strategy reward value of the machine action based on the backend voice model, and then can update the human-computer interaction strategy based on the strategy reward value of the machine action command.
[0080] In the embodiment of the present application, as an optional implementation, step: determining the acoustic action vector based on the user voice includes the following steps:
[0081] Inputting the user's voice into the speech recognition model to recognize the system voice command category of the user's voice based on the speech recognition model;
[0082] The acoustic action vector is obtained based on the system voice command category of the user voice.
[0083] This optional implementation may input the user's voice into a speech recognition model to identify the system voice instruction category of the user's voice based on the speech recognition model, and further obtain an acoustic action vector based on the system voice instruction category of the user's voice.
[0084] For the above optional implementation, the speech recognition model is constructed based on a deep convolutional network, wherein the structure of the deep convolutional network used in the embodiment of the present application is as follows: Figure 3 As shown, Figure 3 Schematic diagram of a deep convolutional network disclosed in the embodiment of the present application. Figure 3As shown, the deep convolutional network includes multiple convolutional layers, activation functions, pooling layers and fully connected layers, wherein this hierarchical structure can capture the time characteristics and frequency characteristics of speech signals very well. On the other hand, the deep convolutional network uses convolution operations to extract features from input data, which can effectively capture local patterns and spatial relationships in the data, thereby reducing the number of model parameters and computational complexity. Finally, the deep convolutional network reduces the amount of calculation by using the weight sharing mechanism of the convolution layer and the downsampling operation of the pooling layer, making the model more efficient and training a deeper network structure with fewer computing resources. For the above optional implementation, a deep convolutional network can be trained based on data samples to obtain a speech recognition model, wherein the data samples collected through the actual driving environment on board contain a total of 1216 recorded audios and annotations. In order to increase the number of training samples, more training examples are artificially created through data enhancement technology. Data enhancement techniques include noise addition, left and right time offsets, time expansion and compression, pitch up and down movement, etc. In the frequency domain, time and frequency masking is applied to each spectrogram. After data augmentation, the final size of the training set is about 18,000 spectrograms, while the size of the test set is 365 spectrograms. Specifically, the spectrograms in the above dataset are three-channel images of 64*128 pixels. ,in For high, For width, is the number of channels. Each spectrum graph corresponds to different The label of the type system voice command is .
[0085] Furthermore, the two-dimensional spectrum data Input the deep convolutional network, where the convolution operation is performed to extract local features when passing through the convolution layer. For two-dimensional data, the definition of the convolution operation is as follows, and the convolution output feature map is obtained:
[0086] ;
[0087] in, is the convolution output feature map, is the input matrix of the spectrogram, is the convolution kernel, is the position in the output feature map.
[0088] Next, the convolution output feature map is input into the ReLU corrected linear activation function for nonlinear processing. The calculation results are as follows:
[0089] ;
[0090] in, is a nonlinear feature map, is the rectified linear activation function.
[0091] Then, the maximum pooling layer is used to perform the maximum pooling operation on the nonlinear feature map to reduce the feature dimension of the data to obtain the pooled feature map. The calculation results are as follows:
[0092] ;
[0093] in, is the pooling feature map.
[0094] Then, the fully connected layer is used to perform forward propagation calculation on the pooled feature map. Each neuron is fully connected to all activation values of the previous layer, and the fully connected feature map is flattened. The calculation results are as follows:
[0095] ;
[0096] in, is a fully connected feature map, is the weight matrix of the fully connected layer, is the bias vector of the fully connected layer.
[0097] Finally, for the classification task of speech recognition, the Softmax function is introduced to convert the fully connected features into speech classification probability distribution. The calculation results are as follows:
[0098] ;
[0099] in, is the score value of the fully connected feature map belonging to category i.
[0100] In the embodiment of the present application, as an optional implementation, the step of obtaining an acoustic action vector based on the system voice instruction category of the user voice includes the following steps:
[0101] The user's voice is labeled and encoded based on the system voice command category of the user's voice to obtain an acoustic action vector.
[0102] This optional implementation can perform label encoding on the user's voice based on the system voice instruction category of the user's voice to obtain an acoustic action vector.
[0103] In an embodiment of the present application, as an optional implementation, the system voice command categories include navigation-related commands, media control commands, vehicle information query commands, general control commands, voice assistant interaction commands, and application control commands.
[0104] This optional implementation may use one of the command types among navigation-related commands, media control commands, vehicle information query commands, general control commands, voice assistant interaction commands and application control commands as the system voice instruction category of the user voice.
[0105] In the embodiments of the present application, as an optional implementation, please refer to Figure 4 , Figure 4 This is an operation execution flow chart based on an optimization strategy disclosed in the embodiment of the present application. Figure 4 As shown, the step: determining the response result to the user's voice based on the machine action command includes the following steps:
[0106] Convert machine action commands into system operation codes based on command voice system;
[0107] The response result to the user's voice is determined based on the system operation code.
[0108] This optional implementation can convert the machine action command into a system operation code based on the command voice system, and then determine the response result to the user voice based on the system operation code.
[0109] In the embodiment of the present application, as an optional implementation, step: determining a response result to the user voice based on the system operation code includes the following steps:
[0110] Determine the control command type of the system operation code;
[0111] The control command type based on the system operation code and the command code table outputs the response result to the user's voice.
[0112] This optional implementation can determine the control command type of the system operation code, and then output a response result to the user's voice based on the control command type of the system operation code and the command code table.
[0113] Embodiment 2
[0114] See also Figure 5 , Figure 5 is a structural diagram of a vehicle-mounted human-machine voice interaction device based on a collaborative adaptive policy gradient algorithm disclosed in an embodiment of the present application, such as Figure 5 As shown, the device of the embodiment of the present application includes the following functional modules:
[0115] An acquisition module 201, configured to acquire user speech and determine an acoustic action vector based on the user speech;
[0116] A first determination module 202, configured to determine a machine action command based on an acoustic action vector and a human-machine interaction strategy, wherein the human-machine interaction strategy is determined based on a Markov decision process and a policy gradient algorithm;
[0117] The second determination module 203 is used to determine a response result to the user's voice based on the machine action command.
[0118] The device of the embodiment of the present application obtains the user's voice and determines the acoustic action vector based on the user's voice, and then can determine the machine action command based on the acoustic action vector and the human-computer interaction strategy, wherein the human-computer interaction strategy is determined based on the Markov decision process and the policy gradient algorithm, and then can determine the response result for the user's voice based on the machine action command. Compared with the prior art, the present application can determine the human-computer interaction strategy based on the Markov decision process, so that the vehicle computer can make the optimal strategy to match the user's voice based on the user data and the current state, that is, the static mapping relationship in the traditional human-computer interaction is transformed into a dynamic mapping relationship through the Markov decision process, so that the machine can adjust its response mode according to the real-time situation and needs, so that the interactive system has the ability to learn the driver's experience trajectory from the interactive environment and scene requirements, so that the in-vehicle interaction effect is closer to the driver's habits and improves the interaction efficiency. At the same time, the policy gradient algorithm can enable the vehicle computer to spontaneously find the interaction method closest to the habit and find the optimal solution in a specific interaction space.
[0119] It should be noted that for other detailed descriptions of the device in the embodiment of the present application, please refer to the relevant description of the embodiment of the present application, and the embodiment of the present application will not go into details.
[0120] Embodiment 3
[0121] See also Figure 6 , Figure 6 is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application, such as Figure 6 As shown, the electronic device of the embodiment of the present application includes:
[0122] Processor 301; and
[0123] The memory 302 is configured to store machine-readable instructions. When the instructions are executed by the processor 301, the vehicle-mounted human-computer voice interaction method based on the collaborative adaptive policy gradient algorithm as described in any of the aforementioned implementations is executed.
[0124] The electronic device of the embodiment of the present application obtains the user voice and determines the acoustic action vector based on the user voice, and then can determine the machine action command based on the acoustic action vector and the human-computer interaction strategy, wherein the human-computer interaction strategy is determined based on the Markov decision process and the policy gradient algorithm, and then can determine the response result for the user voice based on the machine action command. Compared with the prior art, the present application can determine the human-computer interaction strategy based on the Markov decision process, so that the vehicle computer can make the optimal strategy to match the user voice based on the user data and the current state, that is, the static mapping relationship in the traditional human-computer interaction is transformed into a dynamic mapping relationship through the Markov decision process, so that the machine can adjust its response mode according to the real-time situation and demand, so that the interactive system has the ability to learn the driver's experience trajectory from the interactive environment and scene requirements, so that the in-vehicle interaction effect is closer to the driver's habits and improves the interaction efficiency. At the same time, the policy gradient algorithm can make the vehicle computer spontaneously find the interaction method closest to the habit and find the optimal solution in a specific interaction space.
[0125] Embodiment 4
[0126] An embodiment of the present application provides a storage medium storing a computer program, and the computer program is executed by a processor to implement an in-vehicle human-computer voice interaction method based on a collaborative adaptive policy gradient algorithm as described in any of the aforementioned implementations.
[0127] The storage medium of the embodiment of the present application obtains the user voice and determines the acoustic action vector based on the user voice, and then can determine the machine action command based on the acoustic action vector and the human-computer interaction strategy, wherein the human-computer interaction strategy is determined based on the Markov decision process and the policy gradient algorithm, and then can determine the response result for the user voice based on the machine action command. Compared with the prior art, the present application can determine the human-computer interaction strategy based on the Markov decision process, so that the vehicle computer can make the optimal strategy to match the user voice with the user data and the current state, that is, the static mapping relationship in the traditional human-computer interaction is transformed into a dynamic mapping relationship through the Markov decision process, so that the machine can adjust its response mode according to the real-time situation and demand, so that the interactive system has the ability to learn the driver's experience trajectory from the interactive environment and scene requirements, so that the in-vehicle interaction effect is closer to the driver's habits and improves the interaction efficiency. At the same time, the policy gradient algorithm can make the vehicle computer spontaneously find the interaction method closest to the habit and find the optimal solution in a specific interaction space.
[0128] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0129] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0131] It should be noted that if the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0132] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0133] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A vehicle-mounted human-computer voice interaction method based on a collaborative adaptive policy gradient algorithm, characterized in that: The method comprises: Acquiring user speech and determining an acoustic action vector based on the user speech; Determining a machine action command based on the acoustic action vector and a human-machine interaction strategy, wherein the human-machine interaction strategy is determined based on a Markov decision process and a policy gradient algorithm; Determine a response result to the user voice based on the machine action command; And, determining the acoustic action vector based on the user voice includes: Inputting the user voice into a voice recognition model to identify the system voice instruction category of the user voice based on the voice recognition model; Obtaining the acoustic action vector based on the system voice instruction category of the user voice; And, obtaining the acoustic action vector based on the system voice instruction category of the user voice includes: Performing label encoding on the user voice based on the system voice instruction category of the user voice to obtain the acoustic action vector; Furthermore, the system voice command categories include navigation-related commands, media control commands, vehicle information query commands, general control commands, voice assistant interaction commands, and application control commands.
2. The method according to claim 1, characterized in that After determining the machine action command based on the acoustic action vector and the human-machine interaction strategy, the method further includes: Calculate the strategy reward value of the machine action based on the backend speech model; The human-machine interaction strategy is updated based on the strategy reward value of the machine action command.
3. The method according to claim 1, characterized in that The determining a response result to the user voice based on the machine action command includes: Converting the machine action command into a system operation code based on a command voice system; The response result to the user voice is determined based on the system operation code.
4. The method according to claim 3, characterized in that The determining the response result to the user voice based on the system operation code includes: Determining a control command type of the system operation code; The response result to the user voice is output based on the control command type of the system operation code and the command code table.
5. A vehicle-mounted human-machine voice interaction device based on a collaborative adaptive policy gradient algorithm, characterized in that: The device comprises: An acquisition module, configured to acquire a user voice and determine an acoustic action vector based on the user voice; A first determination module, configured to determine a machine action command based on the acoustic action vector and a human-machine interaction strategy, wherein the human-machine interaction strategy is determined based on a Markov decision process and a policy gradient algorithm; A second determination module, configured to determine a response result to the user voice based on the machine action command; And, determining the acoustic action vector based on the user voice includes: Inputting the user voice into a voice recognition model to identify the system voice instruction category of the user voice based on the voice recognition model; Obtaining the acoustic action vector based on the system voice instruction category of the user voice; And, obtaining the acoustic action vector based on the system voice instruction category of the user voice includes: Performing label encoding on the user voice based on the system voice instruction category of the user voice to obtain the acoustic action vector; Furthermore, the system voice command categories include navigation-related commands, media control commands, vehicle information query commands, general control commands, voice assistant interaction commands, and application control commands.
6. An electronic device, characterized in that: include: processor; as well as A memory configured to store machine-readable instructions, which, when executed by the processor, execute the in-vehicle human-computer voice interaction method based on the collaborative adaptive policy gradient algorithm as described in any one of claims 1 to 4.
7. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor as the in-vehicle human-computer voice interaction method based on the collaborative adaptive policy gradient algorithm as described in any one of claims 1 to 4.
