A human-computer interaction determination method and device

In the vehicle voice interaction system, multi-dimensional feature analysis is used to directly determine the interaction scene, which solves the problem of recognition error of ASR technology under noise interference and accent differences, improves the recognition accuracy of interaction scenes, and improves driving safety and user safety. experience.

CN118072765BActive Publication Date: 2024-09-06HOZON NEW ENERGY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410496021.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2024-09-06
Estimated Expiration
2044-04-24

AI Technical Summary

Technical Problem

When the existing vehicle-mounted voice interaction system distinguishes between human-computer interaction and human-human interaction scenarios, it is easy to cause recognition errors due to noise interference, accent differences and other factors. In addition, ASR technology loses non-text information when converting text, affecting the recognition accuracy of interactive scenes. .

Method used

By obtaining the audio features of the target audio pair, inputting sub-task models of multiple recognition dimensions respectively, we obtain the feature results of each dimension, and stack them into the main task model to directly perform multi-dimensional feature analysis to determine whether the interaction scene is human-computer interaction. Avoid converting text via ASR techniques.

Benefits of technology

It improves the recognition accuracy of interactive scenes, makes up for the non-text information lost when ASR technology converts text, and improves driving safety and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118072765B
    Figure CN118072765B
Patent Text Reader

Abstract

The present application discloses a method and device for determining human-computer interaction, which relates to the field of in-vehicle intelligent dialogue technology, and its main purpose is to improve the accuracy of identifying whether the interactive environment is human-human interaction or human-computer interaction. The main technical solution of the present application is: obtaining the audio features of the target audio pair, the target audio pair includes two different specific audio segments of a specified length; inputting the audio features into a plurality of subtask models corresponding to different recognition dimensions, respectively, to obtain the dimensional feature results corresponding to each of the subtask models; stacking the plurality of dimensional feature results and inputting them into the main task model, to obtain the comprehensive determination result corresponding to the main task model, and the comprehensive determination result is used to characterize whether the interaction scenario of the target audio pair is human-computer interaction. The present application is used for determining human-computer interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle-mounted intelligent dialogue technology, and in particular to a method and device for determining human-computer interaction. Background Art

[0002] As the level of intelligence of modern cars continues to improve, in-vehicle voice interaction systems have become an important part of improving driving safety and user experience. However, accurately distinguishing whether users are interacting with each other or with the car has always been a key technical problem that the industry needs to solve.

[0003] At present, the in-vehicle voice interaction system mainly relies on the combination of Automatic Speech Recognition (ASR) technology and Natural Language Processing (NLP) technology to distinguish whether the interaction scene is human-to-human interaction or human-to-machine interaction, that is, by converting audio information into text information, and then judging the interaction scene based on the semantics and contextual relationship analysis of the text information. However, ASR technology is prone to errors in the converted text information due to factors such as noise interference and accent differences, and converting text information will cause the loss of non-text information such as emotions and tone in the audio, which will affect the judgment of subsequent NLP technology, thereby reducing the accuracy of identifying the interaction scene. Summary of the invention

[0004] In view of the above problems, the present application provides a method and device for determining human-computer interaction, the main purpose of which is to improve the accuracy of identifying whether the interaction scene is human-human interaction or human-computer interaction.

[0005] In order to solve the above technical problems, this application proposes the following solutions:

[0006] In a first aspect, the present application provides a method for determining human-computer interaction, the method comprising:

[0007] Acquire audio features of a target audio pair, where the target audio pair includes two different specific audio segments of a specified length;

[0008] Inputting the audio features into a plurality of subtask models corresponding to different recognition dimensions respectively, and obtaining dimensional feature results corresponding to each subtask model;

[0009] A plurality of the dimensional feature results are stacked and input into the main task model to obtain a comprehensive determination result corresponding to the main task model, wherein the comprehensive determination result is used to characterize whether the interaction scenario of the target audio pair is human-computer interaction.

[0010] In a second aspect, the present application provides a human-computer interaction determination device, the device comprising:

[0011] An acquisition unit, configured to acquire audio features of a target audio pair, wherein the target audio pair includes two different specific audio segments of a specified length;

[0012] A first processing unit, configured to input the audio features of the acquisition unit into a plurality of subtask models corresponding to different recognition dimensions, to obtain a dimensional feature result corresponding to each subtask model;

[0013] The second processing unit is used to stack the multiple dimensional feature results of the first processing unit and input them into the main task model to obtain a comprehensive judgment result corresponding to the main task model, and the comprehensive judgment result is used to characterize whether the interaction scenario of the target audio pair is human-computer interaction.

[0014] In order to achieve the above-mentioned purpose, according to the third aspect of the present application, a storage medium is provided, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the human-computer interaction determination method of the above-mentioned first aspect.

[0015] In order to achieve the above-mentioned purpose, according to a fourth aspect of the present application, a processor is provided, wherein the processor is used to run a program, wherein the human-computer interaction determination method of the above-mentioned first aspect is executed when the program is running.

[0016] By means of the above-mentioned technical scheme, a human-computer interaction determination method and device provided in the present application is to first obtain the audio features of the target audio pair when it is necessary to determine the human-computer interaction, the target audio pair including two different specific audios of specified length, and then input the audio features into a plurality of sub-task models corresponding to different recognition dimensions respectively, to obtain the dimensional feature results corresponding to each sub-task model, and finally stack the plurality of dimensional feature results and input them into the main task model to obtain the comprehensive determination result corresponding to the main task model, that is, to determine whether the interaction scenario of the target audio pair is human-computer interaction. Through the technical solution provided by the present application, the audio feature pairs are directly processed through sub-task models of multiple recognition dimensions to obtain dimensional features of each recognition dimension, and then the multiple dimensional features are stacked to obtain multi-dimensional features and the multi-dimensional features are processed through the main task model to obtain a judgment result of whether the interaction scenario of the audio feature pair is human-computer interaction. That is, there is no need to convert text through ASR technology, but directly perform multi-dimensional feature analysis on the target audio pair, so as to capture and utilize audio information more comprehensively, make up for the non-text information lost by traditional ASR technology when converting text, thereby improving the accuracy of identifying human-computer interaction and human-human interaction, and further improving driving safety and user experience.

[0017] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0019] Figure 1 A flow chart of a human-computer interaction determination method provided in an embodiment of the present application is shown;

[0020] Figure 2 Another flow chart of a human-computer interaction determination method provided by an embodiment of the present application is shown;

[0021] Figure 3 A block diagram showing a composition of a human-computer interaction determination device provided in an embodiment of the present application is shown;

[0022] Figure 4 A block diagram showing the composition of another human-computer interaction determination device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0024] At present, the in-vehicle voice interaction system mainly relies on the combination of automatic speech recognition (ASR) technology and natural language processing (NLP) technology to distinguish whether the interaction scene is human-to-human interaction or human-to-machine interaction, that is, by converting audio information into text information, and then judging the interaction scene based on the semantics and contextual relationship analysis of the text information. However, the above method has major limitations:

[0025] First, ASR technology is prone to errors in the converted text information due to noise interference, accent differences and other factors, especially in the vehicle environment, where the stability and robustness of ASR technology face severe tests due to the complexity and variability of external noise;

[0026] Second, converting the text information will cause the loss of non-text information such as emotions and tone in the audio. These non-text information plays an important role in judging the human-computer dialogue scenario. For example, identifying whether the user is directly initiating a conversation with the car computer or having daily communication with other passengers can significantly improve the recognition accuracy and naturalness.

[0027] Therefore, subsequent judgment of text information obtained by converting audio information based on ASR technology through NLP technology will reduce the accuracy of recognition of interactive scenarios, thereby affecting driving safety and user experience.

[0028] After research, the inventor found that the multi-dimensional features of audio can be used to directly determine whether the interaction scene is human-to-human interaction or human-to-computer interaction, that is, multiple sub-task models with multiple recognition dimensions are set to obtain features of multiple dimensions such as intent and emotion of the audio, and then the main task model is set to determine whether the interaction scene is human-to-human interaction or human-to-computer interaction based on features of multiple dimensions such as intent and emotion. In this way, by directly performing multi-dimensional feature analysis on the target audio pair, audio information can be captured and utilized more comprehensively, making up for the non-text information lost when converting text by traditional ASR technology, thereby improving the accuracy of identifying human-to-computer interaction and human-to-human interaction, and further improving driving safety and user experience.

[0029] Based on the above considerations, the embodiment of the present application provides a method for determining human-computer interaction, by which the accuracy of identifying whether the interactive environment is human-human interaction or human-computer interaction can be improved. The specific execution steps are as follows: Figure 1 As shown, including:

[0030] 101. Obtain audio features of the target audio pair.

[0031] It should be noted that the target audio pair includes two different specific audios of specified length. In this embodiment, the two specific audios can be randomly extracted in the vehicle environment, such as the recording of the conversation between the user and the vehicle computer, but since the audio length may be different, in order to ensure the convenience of unified processing, the audio length of the two specific audios needs to be consistent, such as the average audio length of the user in the human-computer interaction scenario can be obtained according to the historical data of the vehicle voice interaction system, or the average audio length of the voice control of each function by the vehicle voice interaction system, and the average audio length is used as the specified length, and the two specific audios are compared respectively. When it exceeds the specified length, it is intercepted, otherwise it is filled, such as by 0, etc., and when the length of the two specific audios is equal to the specified length, the two can be spliced, so that it can simulate the two-way communication between the user and the vehicle computer in the human-computer interaction scenario, so that the target audio pair has a complete interaction of the front and back relationship and coherence, thereby making the audio features of the target audio pair more complete and comprehensive. The audio features can be obtained through existing speech feature models, which include but are not limited to wavlm, wav2vector, sew, whisper, etc.

[0032] 102. Input the audio features into a plurality of sub-task models corresponding to different recognition dimensions respectively, and obtain the dimensional feature results corresponding to each sub-task model.

[0033] Among them, the recognition dimension is used to characterize the feature recognition dimension that can reflect non-text information, which includes but is not limited to the intention recognition dimension, similarity recognition dimension, emotion recognition dimension, noise recognition dimension, dialect / accent recognition dimension, etc., and the subtask model is a model that is pre-trained by using multiple groups of audio pairs that are consistent with the composition of the target audio pair as samples, that is, it is pre-trained, wherein one recognition dimension corresponds to one subtask model, and due to the diversity of recognition dimensions, the subtask model may be a binary classification task or a multi-classification task, which is not limited in this embodiment. By inputting audio features into multiple subtask models respectively, they can output dimensional feature results corresponding to different recognition dimensions respectively, that is, non-text dimensional features are obtained, such as intention features including navigation, listening to music, etc., and emotional features including satisfaction, anxiety, doubt, etc. These features all help to improve the recognition accuracy of the interactive scene, so as to perform the subsequent step 103.

[0034] 103. Stack the multiple dimensional feature results and input them into the main task model to obtain the comprehensive judgment result corresponding to the main task model.

[0035] Each dimensional feature result obtained in the aforementioned step 102 corresponds to a single recognition dimension, and in order to ensure the accuracy of the comprehensive judgment result, it is necessary to perform a multi-dimensional analysis of the audio features, and the dimensional feature results can be regarded as a component of a vector, and these components can be combined to form a multi-dimensional feature vector. In other words, multiple dimensional feature results can be stacked in a vector stacking manner to obtain a multi-dimensional feature result, so that an accurate comprehensive judgment result can be finally obtained through the main task model.

[0036] Among them, the comprehensive judgment result is used to characterize whether the interaction scenario of the target audio pair is human-computer interaction. It should be noted that, in this embodiment, the main task model is a model trained by stacking the multidimensional feature results of the dimensional feature results output by multiple sub-task models as samples, that is, the main task model and multiple sub-task models are deployed and trained at the same time. And because the final result of this embodiment is to determine whether the interaction scenario of the target audio pair is human-computer interaction, that is, it is necessary to reflect the priority of the main task model, therefore, it is necessary to set a weight distribution function that meets the priority condition between the main task model and the sub-task model during deployment. The priority condition is that the weight of the main task model in the weight distribution function is equal to the sum of the weights of multiple sub-task models, and through such weight distribution, it can be ensured that the main task model is always given priority, even if the dimensional feature results of the sub-task model deviate, It will not seriously affect the judgment of the main task model.

[0037] Among them, the weight corresponding to each subtask model in the weight distribution function is used to characterize the contribution of the subtask model to the result of the main task model. It can determine the importance of the recognition dimension based on the prior knowledge in the field of in-vehicle intelligent dialogue, and set it according to the importance. For example, intent recognition may be more important than emotion recognition, so the weight of the subtask model corresponding to the intent recognition dimension may be higher. It can also be set according to the change of the loss function, that is, the weight is dynamically adjusted according to the change characteristics of the loss value of the subtask model during the training process. For example, the loss corresponding to the dimensional feature result of a subtask model drops rapidly, indicating that the subtask model has mastered the corresponding feature well. At this time, its weight can be appropriately reduced, and the weight of other subtask models can be increased accordingly. This embodiment does not limit this. By setting the weight distribution function, there will be mutual competition between multiple subtask models, which can ensure that the weights corresponding to each subtask model are mutually restricted, avoiding the weight corresponding to a subtask model being too large and causing other subtask models to be ignored. At the same time, it also ensures that the contribution of each subtask model to the result of the main task model is relatively balanced, further ensuring the accuracy and rationality of the comprehensive judgment result.

[0038] Based on the above Figure 1It can be seen from the implementation method that a human-computer interaction determination method provided by the present application is to first obtain the audio features of the target audio pair when it is necessary to determine the human-computer interaction, and the target audio pair includes two different specific audios of specified lengths, and then input the audio features into multiple sub-task models corresponding to different recognition dimensions, and obtain the dimensional feature results corresponding to each sub-task model, and finally stack the multiple dimensional feature results and input them into the main task model to obtain the comprehensive determination result corresponding to the main task model, that is, whether the interaction scenario of the target audio pair is human-computer interaction. Through the technical solution provided by the present application, the audio feature pairs are directly processed through sub-task models of multiple recognition dimensions to obtain dimensional features of each recognition dimension, and then the multiple dimensional features are stacked to obtain multi-dimensional features and the multi-dimensional features are processed through the main task model to obtain a judgment result of whether the interaction scenario of the audio feature pair is human-computer interaction. That is, there is no need to convert text through ASR technology, but directly perform multi-dimensional feature analysis on the target audio pair, so as to capture and utilize audio information more comprehensively, make up for the non-text information lost by traditional ASR technology when converting text, thereby improving the accuracy of identifying human-computer interaction and human-human interaction, and further improving driving safety and user experience.

[0039] Further, the preferred embodiment of the present application is in the above Figure 1 Based on this, a detailed description of the process of human-computer interaction determination is given, and its specific steps are as follows Figure 2 As shown, including:

[0040] 201. Pre-deploy multiple sub-task models and main task models corresponding to different recognition dimensions.

[0041] It should be noted that, in this embodiment, a weight distribution function that satisfies the priority condition is set between the multiple subtask models and the main task model, and the priority condition is that the weight of the main task model in the weight distribution function is equal to the sum of the weights of the multiple subtask models. Since the multiple subtask models and the main task model are trained at the same time and have a corresponding hierarchical relationship, in order to ensure that the main task model is always given priority, and to enable the main task model to comprehensively analyze the results of multiple subtask models and accurately judge whether the interaction scene is human interaction or human-computer interaction, it is necessary to set a weight distribution function that can give priority to the main task model. The weight of each subtask model in the weight distribution function is used to characterize the contribution of the subtask model to the result of the main task model, that is, the weight of the main task model can be equal to the sum of the weights of multiple subtask models, thereby ensuring that the weight of the main task model is always the largest and has the highest priority. For the determination of the weight of each subtask model, a cross entropy loss function can be set for each subtask model, and the loss value corresponding to the result of each subtask model in the training process is calculated, and the optimal weight corresponding to each subtask model is determined by the change characteristics of the loss value. Before training, the hyperparameters of multiple subtask models and the main task model can be initialized and set before training. The hyperparameters are used to characterize the initial weights set based on the importance of the recognition dimension or through prior knowledge, and on the basis of the initial weights, the hyperparameters are dynamically adjusted according to the change characteristics of the loss value corresponding to the result of each subtask model in the training process corresponding to the cross entropy loss function, so as to obtain the optimal weight corresponding to each subtask model.

[0042] 202. Obtain audio features of the target audio pair.

[0043] This step is combined with the description of step 101 in the above method, and the same content will not be repeated here. It should be noted that in this step, the specific process of obtaining the audio features of the target audio pair is: extract two different audio data segments, and determine whether the duration of each audio data segment exceeds the specified length; if so, perform a cut operation when the duration reaches the specified length to obtain a specific audio; if not, perform a filling operation based on the difference between the duration and the specified length to obtain a specific audio; splice the two specific audio segments into a target audio pair, and input the target audio pair into a preset speech feature model to obtain the audio features of the target audio pair.

[0044] Among them, the specified length is used to characterize the average audio length of the user's voice control of different functions of the car computer in the human-computer interaction scenario. In actual applications, when the user voice controls the car computer, the audio length of each interaction will have a certain regularity and range. Through statistical analysis of a large amount of actual voice interaction data, a reasonable average audio length can be obtained as the specified length. Therefore, the average audio length of the user in the human-computer interaction scenario can be obtained based on the historical data of the in-vehicle voice interaction system, or the average audio length of the voice control of each function by the in-vehicle voice interaction system. For example, users may interact through short commands (such as "turn on the air conditioner" and "play music"), or through more complex instructions (such as "navigate to the nearest shopping mall"). By analyzing the recordings of these commands, we can calculate the audio duration of most effective commands and use it as the specified length of the target audio pair. This ensures that enough audio containing key information is collected, while avoiding capturing other redundant information such as emotions and tone. By forming a target audio pair with two such audio segments, we can simulate the two-way communication between the user and the car in the human-computer interaction scenario, so that the target audio pair has the context and coherence of a complete interaction, thereby making the audio features of the target audio pair more complete and comprehensive. After obtaining the target audio pair, the preset voice feature model can be used to obtain its corresponding audio features. This can be achieved by using wavlm, wav2vector, sew, whisper, etc. as preset voice feature models.

[0045] 203. Input the audio features into a plurality of sub-task models corresponding to different recognition dimensions respectively, and obtain the dimensional feature results corresponding to each sub-task model.

[0046] This step is combined with the description of step 102 in the above method, and the same content is not repeated here. It should be noted that in this embodiment, the recognition dimension at least includes the intention recognition dimension, the similarity recognition dimension and the emotion recognition dimension. Among them, the intention recognition dimension and the emotion recognition dimension are multi-classification tasks, that is, they correspond to multiple different results, such as the intention recognition dimension is used to enable its corresponding subtask model to obtain intention features such as "navigation" and "listening to music" according to audio features, and the emotion recognition dimension is used to enable its corresponding subtask model to obtain emotional features such as "satisfaction" and "doubt" according to audio features. The similarity recognition dimension is similar to the subsequent main task model, both of which are binary classification tasks, and correspond to two exactly opposite results, such as the similarity features of two specific audios in the target audio pair "belonging to the same speaker" or "not belonging to the same speaker". By determining the intention features, similarity features and emotion features, the dimensional features of multiple recognition dimensions can be obtained, which can effectively improve the accuracy of the subsequent subtask models. In addition, the noise recognition dimension, dialect / accent recognition dimension, etc. can also be added or replaced, as long as it helps to improve the accuracy of the main task model.

[0047] 204. Obtain a weight distribution function between the main task model and the multiple subtask models.

[0048] As can be seen from the aforementioned step 201, the main task model and the multiple subtask models are provided with a weight distribution function that satisfies the priority condition, and the weight of each subtask model in the weight distribution function is used to characterize the contribution of the subtask model to the result of the main task model. Therefore, the weight distribution function can be obtained at this time to execute the subsequent step 205.

[0049] 205. Determine the weight coefficient corresponding to each subtask model according to the weight distribution function.

[0050] Among them, the weight coefficient is used to characterize the contribution degree of each subtask model to the result of the main task model. That is, the contribution degree of the dimensional feature results of the subtask model to the accuracy of the comprehensive judgment result of the main task model, that is, the influence of each dimensional feature result on the accuracy of the comprehensive judgment result under the premise of ensuring the accuracy of the comprehensive judgment result. In addition, multiple subtask models and the main task model have been trained, and the weights of each subtask model are the optimal weights after being processed by the cross entropy loss function. Therefore, at this time, the weight coefficient corresponding to each subtask model can be determined by the weight allocation function to execute the subsequent step 206.

[0051] 206. Each dimensional feature result is stacked based on the weight coefficient to obtain a multi-dimensional feature result.

[0052] This step is combined with the description of the dimensional feature results in step 103 of the above method. It can be seen that the dimensional feature results can be regarded as a component of a vector, and these components can be combined to form a multidimensional feature vector. In other words, multiple dimensional feature results can be stacked in a vector stacking manner to obtain a multidimensional feature result, so that an accurate comprehensive judgment result can be finally obtained through the main task model. The specific processing process is to treat the dimensional feature result as a dimensional feature vector, multiply the dimensional feature vector by the weight coefficient, that is, weight the dimensional feature vector of each subtask model, and splice all the weighted dimensional feature vectors together according to the recognition dimension to form a multidimensional feature vector, that is, a multidimensional feature result.

[0053] Exemplary:

[0054] Assume that the weight of subtask model i is w_i and its dimension feature vector is f_i, then the weighted dimension feature vector is w_i * f_i;

[0055] Then, if there are n subtask models, the concatenated multidimensional feature vector is F = [w_1 * f_1; w_2 * f_2; ...; w_n * f_n], where “;” indicates column concatenation, that is, each weighted feature vector is stacked vertically as a multidimensional feature result, so as to execute the subsequent step 207.

[0056] 207. Output the multi-dimensional feature results to the sub-task model to obtain a comprehensive judgment result.

[0057] In this step, the stacked multi-dimensional feature results are input into the main task model, which will further process them to make a comprehensive judgment on whether the interaction scenario of the target audio pair is human-computer interaction. For example, the result of "human-computer interaction" or "non-human-computer interaction". Through the multi-dimensional feature analysis of the target audio pair, the accuracy of identifying human-computer interaction and human-human interaction can be effectively improved, thereby improving driving safety and user experience.

[0058] Furthermore, in actual applications, different users may have different situations when performing voice control of the vehicle machine, such as the language, emotion, tone, etc. used in issuing instructions. In order to enable the weight distribution function set between the above-mentioned multiple sub-task models and the main task model to still be accurately adapted in the actual application of the user, so as to ensure the accuracy of the user's personal recognition of whether the interaction scene is human-computer interaction or human-human interaction in actual application, before steps 204-207, the method also includes: calculating the loss value corresponding to the feature result of each dimension within the specified period based on the cross entropy loss function; judging whether to update the weight distribution function according to the change characteristics of the loss value; if so, updating the weight distribution function according to the preset weight update rule to adjust the weight coefficient corresponding to each sub-task model.

[0059] Among them, the specified period can be the latest month or three months, etc., and this embodiment does not limit this. Users or car dealers can customize the settings. The specific deployment of the cross entropy loss function is that each subtask model is set accordingly. It will automatically calculate the loss value corresponding to the dimensional feature results of each subtask model in the specified period in the actual application, and analyze the corresponding change characteristics, such as loss gradient, loss change rate, etc. Then, the change characteristics of the loss value are used to determine whether the weight distribution function needs to be updated, that is, whether the weight of the subtask model corresponding to the current weight distribution function is reasonable, that is, whether the weight of the subtask model affects the accuracy of the main task model. If it needs to be updated, the weight distribution function can be updated according to the preset weight update rule to adjust the weight coefficient corresponding to each subtask model. The preset weight update rule can be adjusted based on the loss gradient setting gradient descent method. If the loss gradient is large, it means that there is a large learning space on the recognition dimension corresponding to the subtask model, and the weight can be appropriately increased; otherwise, it means that the recognition dimension corresponding to the subtask model has matured and the weight can be appropriately reduced. It can also be adjusted based on the degree of change in the loss rate. For example, if the loss rate drops significantly, its weight is increased to promote further optimization of the subtask model. If the loss rate rises or hardly drops, its weight is reduced. A threshold can also be set to adjust the loss value of the subtask model by comparing the threshold. For example, when the loss value is higher than the threshold, the weight is reduced; when the loss value is lower than the threshold, the weight is increased. This embodiment does not limit this.

[0060] Based on the architecture in which multiple subtask models serve one main task model in this embodiment, in order to make different subtask models flexibly adapt to the actual application of users, the weight distribution is dynamically adjusted. The specific execution process of updating the weight distribution function according to the preset weight update rule is: determine the loss gradients corresponding to multiple subtask models according to the change characteristics of the loss value; determine whether the gradient direction corresponding to the loss gradient is consistent with the loss direction of the corresponding subtask model; if not, reduce the weight coefficient of the corresponding subtask model; if so, when the loss gradient is greater than the preset gradient, increase the weight coefficient of the corresponding subtask model, and when the loss gradient is less than or equal to the preset gradient, reduce the weight coefficient of the corresponding subtask model.

[0061] It should be noted that the loss gradient is used to characterize the degree and direction of the influence of each subtask model parameter on the loss value under the current weight distribution function. It can be achieved by taking the adjacent loss values ​​before and after the specified period as a group, calculating the loss difference of each group, taking the average or maximum value of the loss difference as the loss gradient, and taking the increase and decrease of the loss difference as the gradient direction of the loss gradient.

[0062] Since the corresponding loss value of the subtask model will continue to decrease and stabilize as it matures, the loss decrease can be used as the loss direction. If the gradient direction is inconsistent with the loss direction of the corresponding subtask model, it means that the loss of the subtask model has increased at this time. Continuing to use the weights in the weight distribution function may have a negative impact on the comprehensive judgment results of the subsequent main task model, that is, it is necessary to reduce its weight coefficient and reduce the contribution of the subtask model to the results of the main task model. If the gradient direction is consistent with the loss direction of the corresponding subtask model, it means that the loss of the subtask model has decreased at this time. Continuing to use the weights in the weight distribution function or appropriately increasing the weights will have a positive impact on the comprehensive judgment results of the subsequent main task model, that is, it is necessary to increase its weight coefficient and increase the contribution of the subtask model to the results of the main task model.

[0063] Since the subtask model and the main task model are pre-trained. Under normal circumstances, as long as the actual situation of the user's voice control of the car machine is not much different from that of the pre-training, such as the language, emotion, tone, etc. used in issuing instructions are relatively consistent, the change of the corresponding loss gradient will not be too obvious. At this time, if the weight corresponding to a subtask model is increased or decreased rashly, it may cause an uneven contribution to the result of the subtask model. Therefore, a gradient threshold can be set, which can be set according to human experience, such as preliminarily estimating a suitable gradient threshold range, and then gradually adjusting it through trial and error to finally determine a more ideal threshold. It can also be determined based on historical loss gradient data, such as analyzing the loss gradients in multiple historical cycles before the specified cycle, and finding an intermediate value that can cover the loss gradients corresponding to most subtask models as a more ideal threshold. The preset gradient is used to determine whether the size of the loss gradient is sufficient to support increasing or decreasing the weight of the subtask model. That is, when the loss gradient is greater than the preset gradient, it means that the loss gradient of the subtask model is very significant and there is a lot of room for optimization, so its weight coefficient is increased. On the contrary, when the loss gradient is less than or equal to the preset gradient, it means that the optimization space of the subtask model is small. At this time, reducing its weight coefficient can avoid its over-optimization, thereby promoting the optimization of other subtask models. In this way, it is possible to adjust the weights in combination with the actual situation of users in actual applications, and then optimize the contribution of subtask models of different recognition dimensions to the results of the main task model, thereby improving the accuracy of the main task model in judging human-computer interaction.

[0064] Furthermore, as a response to the above Figure 1-2The implementation of the method embodiment shown in the figure, the embodiment of the present application provides a human-computer interaction determination device, which is used to improve the accuracy of identifying whether the interactive environment is human-human interaction or human-computer interaction. The embodiment of the device corresponds to the aforementioned method embodiment. For ease of reading, this embodiment will no longer repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Specifically, Figure 3 As shown, the device comprises:

[0065] An acquisition unit 31 is used to acquire audio features of a target audio pair, where the target audio pair includes two different specific audio segments of a specified length;

[0066] A first processing unit 32 is used to input the audio features of the acquisition unit 31 into a plurality of sub-task models corresponding to different recognition dimensions, and obtain a dimensional feature result corresponding to each sub-task model;

[0067] The second processing unit 33 is used to stack the multiple dimensional feature results of the first processing unit 32 and input them into the main task model to obtain a comprehensive judgment result corresponding to the main task model, and the comprehensive judgment result is used to characterize whether the interaction scenario of the target audio pair is human-computer interaction.

[0068] Further, such as Figure 4 As shown, the acquisition unit 31 includes:

[0069] The judging module 311 is used to extract two different audio data segments and judge whether the duration of each audio data segment exceeds the specified length;

[0070] A first processing module 312 is configured to, if the determination module 311 determines that the duration of each segment of the audio data exceeds the specified length, perform a interception operation when the duration reaches the specified length to obtain the specific audio;

[0071] A second processing module 313 is configured to perform a padding operation based on a difference between the continuous length and the specified length to obtain the specific audio if the determination module 311 determines that the continuous length of each segment of the audio data does not exceed the specified length;

[0072] The third processing module 314 is used to splice the two specific audio segments of the first processing module 312 and / or the second processing module 313 into a target audio pair, and input the target audio pair into a preset speech feature model to obtain the audio features of the target audio pair.

[0073] Further, such as Figure 4 As shown, the device also includes:

[0074] The deployment unit 34 is used to pre-deploy multiple sub-task models and the main task model corresponding to different identification dimensions before the acquisition unit 31, and a weight allocation function that satisfies the priority condition is set between the multiple sub-task models and the main task model, and the priority condition is that the weight of the main task model in the weight allocation function is equal to the sum of the weights of the multiple sub-task models.

[0075] Further, such as Figure 4 As shown, the second processing unit 33 includes:

[0076] An acquisition module 331 is used to acquire the weight distribution function between the main task model and the plurality of subtask models;

[0077] A determination module 332, used to determine a weight coefficient corresponding to each of the subtask models according to the weight distribution function of the acquisition module 331, wherein the weight coefficient is used to characterize the contribution degree of each of the subtask models to the result of the main task model;

[0078] A first processing module 333 is used to stack each of the dimensional feature results based on the weight coefficient of the determination module 332 to obtain a multi-dimensional feature result;

[0079] The second processing module 334 is used to output the multi-dimensional feature result of the first processing module 333 to the sub-task model to obtain the comprehensive determination result.

[0080] Further, such as Figure 4 As shown, the device also includes:

[0081] A calculation unit 35, used for calculating the loss value corresponding to each of the dimensional feature results within a specified period based on the cross entropy loss function before the second processing unit 32;

[0082] A judging unit 36, configured to judge whether to update the weight distribution function according to a change characteristic of the loss value of the calculating unit 35;

[0083] The updating unit 37 is configured to update the weight allocation function according to a preset weight updating rule if the judging unit 36 ​​judges to update the weight allocation function, so as to adjust the weight coefficient corresponding to each of the subtask models.

[0084] Further, such as Figure 4 As shown, the updating unit 37 includes:

[0085] A determination module 371 is used to determine the loss gradients corresponding to the plurality of subtask models according to the change characteristics of the loss value;

[0086] A judgment module 372 is used to judge whether the gradient direction corresponding to the loss gradient of the determination module 371 is consistent with the loss direction corresponding to the subtask model;

[0087] A first processing module 373 is configured to reduce a weight coefficient corresponding to the subtask model if the judgment module 372 judges that the gradient direction corresponding to the loss gradient is inconsistent with the loss direction corresponding to the subtask model;

[0088] The second processing module 374 is used to increase the weight coefficient corresponding to the subtask model when the loss gradient is greater than the preset gradient if the judgment module 372 judges that the gradient direction corresponding to the loss gradient is consistent with the loss direction corresponding to the subtask model, and to reduce the weight coefficient corresponding to the subtask model when the loss gradient is less than or equal to the preset gradient.

[0089] Further, such as Figure 4 As shown,

[0090] The recognition dimensions include at least an intention recognition dimension, a similarity recognition dimension and an emotion recognition dimension.

[0091] Furthermore, an embodiment of the present application further provides a storage medium, wherein the storage medium is used to store a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the above Figure 1-2 The human-computer interaction determination method described in .

[0092] Furthermore, the embodiment of the present application also provides a processor, the processor is used to run a program, wherein the program executes the above Figure 1-2 The human-computer interaction determination method described in .

[0093] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0094] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, but do not represent the advantages and disadvantages of the embodiments.

[0095] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0096] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the application is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the application described herein, and the description of the specific language above is for the purpose of disclosing the best mode of implementation of the application.

[0097] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0098] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0099] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0100] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0102] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0103] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0104] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0105] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0106] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0107] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for determining human-computer interaction, characterized in that: The method comprises: Acquire audio features of a target audio pair, where the target audio pair includes two different specific audio segments of a specified length; Input the audio features into a plurality of subtask models corresponding to different recognition dimensions respectively, and obtain the dimensional feature results corresponding to each of the subtask models, wherein the recognition dimensions at least include an intention recognition dimension, a similarity recognition dimension, and an emotion recognition dimension, and a weight distribution function that satisfies a priority condition is set between the plurality of subtask models and the main task model; Stacking the plurality of dimensional feature results and inputting them into the main task model to obtain a comprehensive determination result corresponding to the main task model, wherein the comprehensive determination result is used to characterize whether the interaction scenario of the target audio pair is human-computer interaction; Each of the dimensional feature results is stacked and input into the main task model to obtain a comprehensive judgment result corresponding to the main task model, including: Obtaining the weight distribution function between the main task model and the plurality of subtask models; Determine a weight coefficient corresponding to each of the subtask models according to the weight distribution function, wherein the weight coefficient is used to characterize the contribution degree of each of the subtask models to the result of the main task model; Perform stacking processing on each of the dimensional feature results based on the weight coefficient to obtain a multi-dimensional feature result; The multi-dimensional feature result is output to the sub-task model to obtain the comprehensive judgment result.

2. The method according to claim 1, characterized in that Get the audio features of the target audio pair, including: Extracting two different audio data segments, and determining whether the duration of each audio data segment exceeds the specified length; If yes, then when the duration reaches the specified length, a capture operation is performed to obtain the specific audio; If not, performing a padding operation based on the difference between the duration length and the specified length to obtain the specific audio; The two specific audio segments are spliced ​​into a target audio pair, and the target audio pair is input into a preset speech feature model to obtain the audio features of the target audio pair.

3. The method according to claim 2, characterized in that Before obtaining the audio features of the target audio pair, the method further includes: A plurality of subtask models and the main task model corresponding to different recognition dimensions are pre-deployed, and a weight allocation function that satisfies a priority condition is arranged between the plurality of subtask models and the main task model, and the priority condition is that in the weight allocation function, the weight of the main task model is equal to the sum of the weights of the plurality of subtask models.

4. The method according to claim 1, characterized in that: Before stacking each of the dimensional feature results and inputting them into the main task model to obtain a comprehensive determination result corresponding to the main task model, the method further includes: Calculate the loss value corresponding to each of the dimensional feature results within a specified period based on the cross entropy loss function; Determining whether to update the weight distribution function according to the change characteristics of the loss value; If so, the weight allocation function is updated according to a preset weight updating rule to adjust the weight coefficient corresponding to each of the subtask models.

5. The method according to claim 4, characterized in that The weight distribution function is updated according to a preset weight update rule, including: Determining loss gradients corresponding to the plurality of subtask models according to a change characteristic of the loss value; Determine whether the gradient direction corresponding to the loss gradient is consistent with the loss direction corresponding to the subtask model; If not, then reduce the weight coefficient corresponding to the subtask model; If so, when the loss gradient is greater than the preset gradient, the weight coefficient corresponding to the subtask model is increased, and when the loss gradient is less than or equal to the preset gradient, the weight coefficient corresponding to the subtask model is reduced.

6. A human-computer interaction determination device, characterized in that: The device comprises: An acquisition unit, configured to acquire audio features of a target audio pair, wherein the target audio pair includes two different specific audio segments of a specified length; A first processing unit, configured to input the audio features of the acquisition unit into a plurality of subtask models corresponding to different recognition dimensions, respectively, to obtain dimensional feature results corresponding to each of the subtask models, wherein the recognition dimensions at least include an intention recognition dimension, a similarity recognition dimension, and an emotion recognition dimension, and a weight allocation function that satisfies a priority condition is provided between the plurality of subtask models and the main task model; A second processing unit is used to stack the multiple dimensional feature results of the first processing unit and input them into the main task model to obtain a comprehensive judgment result corresponding to the main task model, wherein the comprehensive judgment result is used to characterize whether the interaction scenario of the target audio pair is human-computer interaction; The device also includes: A deployment unit, used for pre-deploying a plurality of subtask models and the main task model corresponding to different recognition dimensions before the acquisition unit, wherein a weight allocation function satisfying a priority condition is provided between the plurality of subtask models and the main task model, wherein the priority condition is that the weight of the main task model in the weight allocation function is equal to the sum of the weights of the plurality of subtask models; The second processing unit comprises: An acquisition module, used for acquiring the weight allocation function between the main task model and the plurality of subtask models; A determination module, used to determine a weight coefficient corresponding to each of the subtask models according to the weight allocation function of the acquisition module, wherein the weight coefficient is used to characterize the contribution degree of each of the subtask models to the result of the main task model; A first processing module, configured to perform stacking processing on each of the dimensional feature results based on the weight coefficient of the determination module to obtain a multi-dimensional feature result; The second processing module is used to output the multi-dimensional feature result of the first processing module to the sub-task model to obtain the comprehensive determination result.

7. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the human-computer interaction determination method according to any one of claims 1 to 5.

8. A processor, characterized in that: The processor is used to run a program, wherein the program executes the human-computer interaction determination method according to any one of claims 1 to 5 when running.