Intention recognition method and device, electronic equipment and storage medium

By acquiring and screening intent skills, generating skill words and combining user feedback to determine target intent skills, the problem of low efficiency and poor user experience in existing intent recognition methods is solved, and more efficient intent recognition and user interaction are achieved.

CN118690756APending Publication Date: 2024-09-24SHENZHEN HEYTAP TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310318700.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-21
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing intent recognition methods are inefficient in the process of identifying instructions issued by users, resulting in poor user experience. Version updates need to be released manually, and the efficiency of problem discovery is low.

Method used

By obtaining intention instructions, multiple corresponding reference intention skills are obtained, candidate intention skills that meet the preset conditions are screened, and skill words corresponding to the preset candidate intention skills are generated, and the target intention skills are determined based on user feedback to achieve interaction and repair. Intent recognition problem.

Benefits of technology

It improves the user experience, improves the accuracy and efficiency of intent recognition through dynamic filtering and interaction, and reduces the need for manual publishing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690756A
    Figure CN118690756A
Patent Text Reader

Abstract

The embodiment of the invention provides an intention recognition method and device, electronic equipment and a storage medium. The intention recognition method comprises the steps of obtaining an intention instruction; obtaining a plurality of reference intention skills corresponding to the intention instruction; acquiring a plurality of candidate intention skills meeting a preset condition from the plurality of reference intention skills; if the multiple candidate intention skills include the preset candidate intention skills, generating skill verbal skills corresponding to the preset candidate intention skills; and in response to feedback information based on the skill verbal skill, determining a target intention skill from the preset candidate intention skill. Through the method, according to the intention instruction sent by the user, the intention skill meeting the condition is obtained as the preset candidate intention skill, the skill verbal skill is generated according to the obtained preset candidate intention skill, interaction with the user is carried out in combination with the skill verbal skill, and the intention recognition problem is repaired according to the feedback of the user, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and specifically relates to an intent recognition method, device, electronic device and readable storage medium. Background Art

[0002] For intent recognition problems, related technologies generally fix the problems through an iterative mode of "problem discovery + annotation confirmation + model iteration + deployment and online release". However, in this mode, problem discovery is relatively passive and the efficiency of problem discovery is low, resulting in a poor user experience. Summary of the invention

[0003] In view of the above problems, the present application proposes an intent recognition method, device, electronic device and storage medium to improve the above problems.

[0004] In the first aspect, the present application proposes an intention recognition method, which includes: obtaining an intention instruction; obtaining multiple reference intention skills corresponding to the intention instruction; obtaining multiple candidate intention skills that meet preset conditions from the multiple reference intention skills; if the multiple candidate intention skills include preset candidate intention skills, generating a skill script corresponding to the preset candidate intention skill, wherein the preset candidate intention skill is the same candidate intention skill among the multiple candidate intention skills and multiple preset intention skills; in response to feedback information based on the skill script, determining the target intention skill from the preset candidate intention skills.

[0005] In the second aspect, an embodiment of the present application proposes an intention recognition device, which includes: an intention instruction acquisition unit, a reference intention skill acquisition unit, a candidate intention skill acquisition unit, a skill speech generation unit, and a target intention skill determination unit. The intention instruction acquisition unit is used to acquire intention instructions; the reference intention skill acquisition unit is used to acquire multiple reference intention skills corresponding to the intention instruction; the candidate intention skill acquisition unit is used to acquire multiple candidate intention skills that meet preset conditions from the multiple reference intention skills; the skill speech generation unit is used to generate a skill speech corresponding to the preset candidate intention skill if the multiple candidate intention skills include a preset candidate intention skill, wherein the preset candidate intention skill is the same candidate intention skill among the multiple candidate intention skills and the multiple preset intention skills; the target intention skill determination unit is used to determine the target intention skill from the preset candidate intention skills in response to feedback information based on the skill speech.

[0006] In a third aspect, an embodiment of the present application provides an electronic device for an intent recognition method, comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the above method is executed when the program code is run.

[0008] The embodiments of the present application provide an intent recognition method, device, electronic device and storage medium. The intent recognition method includes: first obtaining the intent instruction sent by the user, determining multiple candidate intent skills according to the received intent instruction, and determining the preset candidate intent skills according to the multiple candidate intent skills and the multiple preset intent skills, and generating the skill words corresponding to the preset candidate intent skills, sending the generated skill words to the user, and the user gives feedback on the skill words, and the system determines the target intent skill in response to the feedback information of the skill words. Through the above method, according to the intent instruction sent by the user, the intent skills that meet the conditions are obtained as the preset candidate intent skills, and the skill words are generated based on the obtained preset candidate intent skills, and the skill words are combined with the skill words to interact with the user, and the intent recognition problem is repaired according to the user's feedback, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0010] Figure 1 A flowchart of an intention recognition method proposed in an embodiment of the present application is shown;

[0011] Figure 2 A flowchart of an intention recognition method proposed in another embodiment of the present application is shown;

[0012] Figure 3 A flowchart of an intention recognition method proposed in another embodiment of the present application is shown;

[0013] Figure 4 A functional module diagram of an intention recognition method proposed in another embodiment of the present application is shown;

[0014] Figure 5A flowchart of an intention recognition method proposed in another embodiment of the present application is shown;

[0015] Figure 6 A structural block diagram of an intention recognition device proposed in another embodiment of the present application is shown;

[0016] Figure 7 A structural block diagram of an intention recognition device proposed in another embodiment of the present application is shown;

[0017] Figure 8 A structural block diagram of an electronic device used to execute the intention recognition method of an embodiment of the present application in real time is shown in the present application;

[0018] Fig. 9 A storage unit in real time of the present application is shown for storing or carrying program codes for implementing the intent recognition method according to an embodiment of the present application. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, and may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0021] With the improvement and advancement of natural language processing technology, more and more users will use various smart terminal products to meet their personalized needs. Users only need to issue instructions to the smart terminal products, and the smart terminal products can recognize the intentions based on the instructions issued by the users, and then can meet the users' needs through the recognized intentions, such as playing songs, videos, and listening to novels.

[0022] The inventors discovered in their research on related intent recognition methods that the related intent recognition methods generally use "problem discovery + annotation confirmation + model iteration + online deployment" to perform intent recognition, but this solution requires manual release when performing version updates. At the same time, the accuracy of using this method to identify instructions issued by users needs to be improved, and the efficiency of discovering problems is low, resulting in a poor user experience.

[0023] Therefore, the inventors proposed the intent recognition method, device, electronic device and storage medium in the embodiments of the present application. First, an intent instruction is obtained, and then a plurality of reference intent skills corresponding to the intent instruction are obtained, and then a plurality of candidate intent skills that meet the preset conditions are obtained from the plurality of reference intent skills. If the plurality of candidate intent skills include preset candidate intent skills, a skill speech corresponding to the preset candidate intent skill is generated, wherein the preset candidate intent skill is the same candidate intent skill as the plurality of candidate intent skills and the plurality of preset intent skills, and finally, in response to feedback information based on the skill speech, the target intent skill is determined from the preset candidate intent skills. Through the above method, according to the intent instruction issued by the user, an intent skill that meets the conditions is obtained as a preset candidate intent skill, a skill speech is generated based on the obtained preset candidate intent skill, and the skill speech is combined with the skill speech to interact with the user, and the intent recognition problem is repaired according to the user's feedback, thereby improving the user experience.

[0024] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0025] See also Figure 1 , an embodiment of the present application provides an intention recognition method, the method comprising:

[0026] Step S110: Acquire the intention instruction.

[0027] In the embodiment of the present application, after the user turns on the electronic device, the user inputs the intention instruction to the electronic device, and the electronic device receives the intention instruction sent by the user. For example, after the user turns on the electronic device, the user inputs the intention instruction "play seven-mile fragrance" through the microphone set in the electronic device. Among them, the way in which the user inputs the intention instruction to the electronic device may include voice input and keyboard input, and the electronic device may include a mobile phone, a laptop computer and a tablet computer, which is not specifically limited here.

[0028] Step S120: Acquire multiple reference intention skills corresponding to the intention instruction.

[0029] In an embodiment of the present application, when an electronic device receives an intent instruction sent by a user, it obtains multiple reference intent skills corresponding to the received intent instruction, wherein one intent instruction may correspond to multiple reference intent skills, and each reference intent skill has a different corresponding probability value. Among them, the intent instruction is used to characterize the instruction sent by the user to the electronic device. The reference intent skill is a pre-set function in the electronic device. For example, the reference intent skill may be playing music, reporting weather, playing videos, etc., which are not specifically limited here. The multiple reference intent skills corresponding to different electronic devices may be different.

[0030] Step S130: Acquire multiple candidate intention skills that meet preset conditions from the multiple reference intention skills.

[0031] In an embodiment of the present application, the preset conditions satisfied by the reference intent skill may include multiple preset sub-conditions, wherein the multiple preset sub-conditions may include whether the reference intent skill is the same as the original intent skill, whether the preset probability values ​​corresponding to the multiple reference intent skills meet the preset probability threshold, and whether the preset confusion corresponding to the multiple reference intent skills meet the preset confusion threshold. After obtaining multiple reference intent skills, the reference intent skills are input into a trained intent recognition model, and the intent recognition model screens the input multiple reference intent skills. When the screening conditions of the intent recognition model are met, multiple candidate intent skills output by the intent recognition model are obtained. Among them, the multiple candidate intent skills are reference intent skills that meet the preset conditions screened out by multiple reference intent skills.

[0032] Step S140: If the multiple candidate intention skills include a preset candidate intention skill, generate a skill script corresponding to the preset candidate intention skill, wherein the preset candidate intention skill is the same candidate intention skill among the multiple candidate intention skills and the multiple preset intention skills.

[0033] As a way, the preset intent skills are used to represent multiple intent skills preset by the system, and the multiple intent skills are set by the business party performing intent recognition; the skill conversation is the conversation generated based on the preset candidate intent skills for clarifying the preset candidate intent skills. After obtaining multiple candidate intent skills, multiple preset intent skills are obtained at the same time, and it is determined whether there are the same intent skills among the multiple candidate intent skills and the multiple preset intent skills. If there are the same intent skills, the same intent skills are used as the preset candidate intent skills. At the same time, after obtaining the preset candidate intent skills, the reference skill conversations corresponding to the preset candidate intent skills are determined according to the pre-set intent skill conversation mapping table, and the skill conversations corresponding to the preset candidate intent skills are generated according to the reference skill conversations. Among them, the number of preset candidate intent skills can be zero or less than the preset quantity threshold, where the preset quantity threshold is pre-set by the business party. For example, the preset quantity threshold can be set to 3, so the maximum number of preset candidate intent skills is less than 3. Among them, one preset candidate intent skill corresponds to at least one skill conversation. Among them, the intent skill conversation mapping table stores the corresponding relationship between the intent skills and the skill conversations, and one intent skill corresponds to at least one skill conversation.

[0034] Exemplarily, the multiple candidate intent skills output by the intent recognition model are respectively A1, A2... A k (k ≤ N), and the multiple preset intent skills are respectively A l , A m ... A s (1 ≤ l < m < s ≤ N). After obtaining the multiple candidate intent skills and the multiple preset intent skills, it is determined whether there are the same intent skills between the multiple candidate intent skills and the multiple preset intent skills. If it is determined that there are the same intent skills {A i , A j} = {A1, A2... A k} ∩ {A l , A m ... A s}, then A i and A j are used as the preset candidate intent skills. Since the pre-set intent skill conversation mapping table is then the system can randomly select the reference skill conversations corresponding to each preset candidate intent skill through the preset candidate intent skills {A i , A j} and generate the skill conversations corresponding to the preset candidate intent skills. In the intent skill conversation mapping table, A i is any intent skill, is A iAny reference skill script in the corresponding, where any intention skill corresponds to at least one skill script. i The corresponding reference skill words can be A j The corresponding reference skill words can be The skill words corresponding to the preset candidate intent skill can be "Do you want to say still For example, the preset candidate intent skill is A1, and the reference skill script corresponding to the preset candidate intent skill is and Then randomly select skill words As a reference intention skill for the preset candidate intention skill A1.

[0035] As another way, if it is determined that there is no same intent skill between the multiple preset intent skills and the multiple candidate intent skills, the electronic device continues to execute the original intent skill. The original intent skill is the intent skill determined when the electronic device initially receives the intent instruction sent by the user.

[0036] Step S150: In response to feedback information based on the skill script, determine a target intent skill from the preset candidate intent skills.

[0037] As a method, after the electronic device sends a skill script corresponding to multiple preset candidate intent skills to the user, the user receives the skill script sent by the electronic device and provides feedback based on the skill script. After the electronic device receives the feedback information, in response to the feedback information, if it is determined that the feedback information sent by the user is positive feedback, the target intent skill is determined from the preset candidate intents. Positive feedback is used to indicate that the user has selected any preset candidate intent skill from the multiple preset candidate intent skills corresponding to the skill script in the skill script.

[0038] For example, the system determines that the preset candidate intent skills are music and video, and determines that the reference skill words corresponding to music and video are {"video": ["play video"], "music": ["listen to music", "play song"]}, then the system generates skill words based on the reference skill words corresponding to music and video, which can be "Do you want to listen to music or play video?" If the user selects music or video, the system determines that the user's feedback information is positive feedback, and determines the target intent skill from the preset candidate intent skills. For example, if the user selects to listen to music, music is used as the target intent skill.

[0039] As another way, if it is determined that the feedback information sent by the user is negative feedback, it is determined that there is no target intent skill among the multiple preset candidate intent skills, and the system asks the user what intent skill he needs, and determines the target intent skill based on the information fed back by the user. For example, the skill script generated by the system is "Do you want to listen to music or play a video?", and the user determines that neither music nor video is needed. Then the system receives the negative feedback sent by the user, and the system guides the user and asks the user what he needs. If the user feedback is that he needs a novel, the novel is used as the target intent skill. Negative feedback is used to characterize that the user has not selected any of the multiple preset candidate intent skills corresponding to the skill script in the skill script.

[0040] The present application provides an intent recognition method, which first obtains an intent instruction, then obtains multiple reference intent skills corresponding to the intent instruction, and then obtains multiple candidate intent skills that meet preset conditions from the multiple reference intent skills. If the multiple candidate intent skills include preset candidate intent skills, a skill speech corresponding to the preset candidate intent skill is generated, wherein the preset candidate intent skill is the same candidate intent skill among the multiple candidate intent skills and the multiple preset intent skills. Finally, in response to feedback information based on the skill speech, the target intent skill is determined from the preset candidate intent skills. Through the above method, according to the intent instruction issued by the user, the intent skill that meets the conditions is obtained as the preset candidate intent skill, the skill speech is generated based on the obtained preset candidate intent skill, and the skill speech is combined with the skill speech to interact with the user, and the intent recognition problem is repaired according to the user's feedback, thereby improving the user experience.

[0041] See also Figure 2 , an embodiment of the present application provides an intention recognition method, the method comprising:

[0042] Step S210: Acquire the intention instruction.

[0043] For details of step S210, reference may be made to the detailed explanation in the above embodiment, so it will not be described in detail in this embodiment.

[0044] Step S220: Acquire multiple intention skills corresponding to the intention instruction.

[0045] In an embodiment of the present application, after the system obtains an intention instruction, it obtains multiple intention skills corresponding to the intention instruction.

[0046] As a method, the electronic device involves N intention skills, which may include A1, A2...A N , the confidence corresponding to each intention skill can be C1, C2...C N .

[0047] Step S230: Obtain the confidence corresponding to each of the multiple intention skills to obtain multiple confidences.

[0048] In the embodiment of the present application, the confidence level is used to characterize the probability value of the intended skill that may correspond when the user inputs the intended instruction, wherein the confidence level corresponding to each of the multiple intended skills is preset by the system. After obtaining each intended skill corresponding to the intended instruction, the confidence level corresponding to each of the multiple intended skills is determined by the system.

[0049] Step S240: taking the intention skill corresponding to the maximum confidence among the multiple intention skills as the original intention skill.

[0050] In the embodiment of the present application, the original intent skill is used to represent the intent skill generated when the system receives the user's instruction for the first time. After obtaining the confidences corresponding to multiple intent skills, the confidences corresponding to the multiple intent skills are sorted according to the numerical values ​​to determine the intent skill corresponding to the maximum confidence, and the intent skill with the maximum confidence is used as the original intent skill.

[0051] Step S250: If the original intention skill is not the target intention skill, then the step of obtaining multiple reference intention skills corresponding to the intention instruction is executed.

[0052] As a method, after the target intention skill is determined, the operation corresponding to the intention instruction is executed through the target intention skill. After the user receives the result output by the electronic device, a feedback message is sent to the electronic device. If the feedback message received by the electronic device is negative feedback, it is determined that the original intention skill is not the target intention skill, and then multiple reference intention skills corresponding to the intention instruction are executed.

[0053] As another way, if the feedback message received by the electronic device is positive feedback, the original intention skill is determined to be the target intention skill, and the multiple reference intention skills corresponding to the acquisition intention instruction are not executed.

[0054] Step S260: Acquire multiple reference intention skills corresponding to the intention instruction.

[0055] Step S270: Acquire multiple candidate intention skills that meet preset conditions from the multiple reference intention skills.

[0056] Step S280: If the multiple candidate intention skills include a preset candidate intention skill, generate a skill script corresponding to the preset candidate intention skill, wherein the preset candidate intention skill is the same candidate intention skill among the multiple candidate intention skills and the multiple preset intention skills.

[0057] Step S290: In response to feedback information based on the skill script, determine the target intent skill from the preset candidate intent skills.

[0058] For details of steps S260 to S290, please refer to the detailed explanation in the above embodiment, so they will not be described in detail in this embodiment.

[0059] The present application provides an intention recognition method, which first obtains an intention instruction, then obtains multiple intention skills corresponding to the intention instruction, and then obtains the confidences corresponding to each of the multiple intention skills to obtain multiple confidences, and then uses the intention skill corresponding to the maximum confidence among the multiple intention skills as the original intention skill. If the original intention skill is not the target intention skill, the method of obtaining multiple reference intention skills corresponding to the intention instruction is executed, and then multiple reference intention skills corresponding to the intention instruction are obtained. From the multiple reference intention skills, multiple candidate intention skills that meet preset conditions are obtained. If the multiple candidate intention skills include preset candidate intention skills, a skill script corresponding to the preset candidate intention skill is generated, wherein the preset candidate intention skill is the same candidate intention skill among the multiple candidate intention skills and the multiple preset intention skills. Finally, in response to feedback information based on the skill script, the target intention skill is determined from the preset candidate intention skills. Through the above method, according to the intention instruction issued by the user, the intention skills that meet the conditions are obtained as the preset candidate intention skills, and the skill scripts are generated based on the obtained preset candidate intention skills. The skill scripts are combined with the user to interact, and the intention recognition problems are repaired according to the user's feedback, thereby improving the user experience.

[0060] See also Figure 3 , an embodiment of the present application provides an intention recognition method, the method comprising:

[0061] Step S301: Acquire the intention instruction.

[0062] Step S302: Acquire multiple intention skills corresponding to the intention instruction.

[0063] Step S303: Obtain the confidence corresponding to each of the multiple intention skills to obtain multiple confidences.

[0064] Step S304: taking the intention skill corresponding to the maximum confidence among the multiple intention skills as the original intention skill.

[0065] Step S305: If the original intention skill is not the target intention skill, the step of obtaining multiple reference intention skills corresponding to the intention instruction is executed.

[0066] For details of steps S301 to S305 , reference may be made to the detailed explanation in the above embodiment, and thus they will not be described in detail in this embodiment.

[0067] Step S306: input the multiple reference intention skills into a pre-trained intention recognition model, and obtain multiple candidate intention skills that meet the preset conditions and are output by the intention recognition model.

[0068] In an embodiment of the present application, after obtaining multiple reference intent skills, the obtained multiple reference intent skills are input into a pre-trained intent recognition model, and the first intent recognition submodule, the second intent recognition submodule, and the third intent recognition submodule in the intent recognition model process the multiple reference intent skills. When the multiple reference intent skills meet the preset conditions corresponding to the first intent submodule, the second intent submodule, and the third intent submodule, the third intent recognition submodule outputs multiple candidate intent skills. Among them, the multiple candidate intent skills belong to the multiple reference intent skills.

[0069] In an embodiment of the present application, the training process of the intent recognition model includes:

[0070] Step S3061: Acquire a training data set, where the training data set includes positive sample data and negative sample data, where the positive sample data is data related to the target training skill, and the negative sample data is data related to other skills except the target training skill.

[0071] In the embodiment of the present application, the data in the training data set are all data related to the intended skill, wherein the positive sample data are data related to the target training skill, and the negative sample data are data related to other skills except the target training skill. For example, if the intended skill to be trained is music, then the target training skill is determined to be music, and then the positive sample data are determined to be data related to music, and the negative sample data are data related to skills other than music.

[0072] Step S3062: input the positive sample data into the model to be trained, and obtain the prediction data corresponding to the positive sample data output by the model to be trained.

[0073] In the embodiment of the present application, the acquired positive sample data is input into the model to be trained, and the model to be trained processes the positive sample data through multiple algorithms to obtain the prediction data corresponding to the positive sample data. Among them, the multiple algorithms in the model to be trained may include text classification, text matching, machine learning, perplexity detection and other methods.

[0074] Step S3063: input the negative sample data into the model to be trained, and obtain prediction data corresponding to the negative sample data output by the model to be trained.

[0075] In an embodiment of the present application, the acquired negative sample data is input into the model to be trained, and the model to be trained processes the negative sample data through multiple algorithms to obtain prediction data corresponding to the negative sample data.

[0076] Step S3064: Obtain a loss function value based on a preset loss function, the predicted data corresponding to the positive sample data, and the predicted data corresponding to the negative sample data.

[0077] In an embodiment of the present application, the system obtains prediction data corresponding to each of the positive sample data and the negative sample data, and determines a loss function value according to a preset loss function.

[0078] Step S3065: Iteratively train the model to be trained according to the loss function value until a preset number of training times is met, thereby obtaining the intent recognition model.

[0079] As a method, during the iterative training of the model to be trained, the end condition of the model training can be set to end the model training when a preset number of training times is reached. For example, the preset number of times for ending the training of the model to be trained is set to 10 times, that is, the model training can be judged to be ended after the model to be trained is iteratively trained 10 times.

[0080] As another way, during the iterative training of the training model, the loss function value will gradually decrease. When the loss function value decreases to a certain level, the model training is judged to be completed and the classification model is obtained. For example, when the loss function value decreases to 0.05, the model training is judged to be completed and the intent recognition model is obtained.

[0081] For the intent recognition model, steps S3061, S3062, S3063, S3064 and S3065 can be as follows: Figure 4As shown, the intent recognition model includes three intent recognition submodules, namely the first intent recognition submodule, the second intent recognition submodule and the third intent recognition submodule. The first intent recognition submodule includes a mining module and an active learning module, wherein the mining module includes a text classification model, a pinyin matching model, a text matching model and a rule / prefix / suffix model; the second intent recognition module includes a business learning module and a machine learning module, wherein the business learning module includes a high-frequency word model and a rule / prefix / suffix model, and the machine learning model includes a binary classification model and a feature engineering model; the third intent recognition module includes a confusion detection model and an audio matrix recognition model. During model training, the data to be trained is input into the intent recognition model for training. After the training is completed, the reference intent skill is input into the intent recognition model after data cleaning and skill candidate. Among them, data cleaning is to remove dirty data, delete duplicate information, correct existing errors, and provide data consistency. After the reference intention skill is input into the first intention recognition submodule, the mining module in the first intention recognition submodule processes the reference intention skill, and the mining module determines the reference intention skill that is different from the original intention skill among the multiple reference intention skills, and the first intention recognition submodule outputs the multiple reference intention skills that are different from the original intention skills as multiple first intention skills, and removes the reference intention skills that are the same as the original intention skills among the multiple reference intention skills. At the same time, the active learning module copies and backs up the multiple first intention skills, and adds the copied and backed up multiple first intention skills to the training data set for the next model training for training. The first intention skill is input into the second intention recognition submodule, and the business learning module and machine learning module in the second intention recognition submodule process the first intention skill. The second intention recognition submodule predicts the probability value of the multiple first intention skills, obtains the predicted probability value corresponding to each of the multiple first intention skills, and sorts the predicted probability values ​​corresponding to each of the multiple first intention skills according to size, thereby determining the probability that the multiple first intention skills are different from the original intention skills. The second intention recognition submodule outputs multiple first intention skills with predicted probability values ​​greater than the preset probability threshold as multiple second intention skills, and removes the first intention skills with predicted probability values ​​less than or equal to the preset probability threshold. The multiple second intention skills are then input into the third intention recognition submodule, and the confusion detection model and audio matrix recognition model in the third intention recognition submodule process the multiple second intention skills. The audio matrix recognition model performs multimodal confusion detection on the second intention skills regarding text and audio. The confusion detection model and audio matrix recognition model in the third intention recognition submodule perform comprehensive confusion detection on the multiple second intention skills, thereby obtaining the confusion corresponding to each of the multiple intention skills.The third intention recognition submodule outputs multiple second intention skills with a perplexity greater than a preset perplexity threshold as multiple third intention skills, and removes multiple second intention skills with a perplexity less than or equal to the preset perplexity threshold. Since some business parties have pre-set blacklists and whitelists, the candidate intention skills in the third intention skills that are the same as the intention skills included in the blacklist are removed; the candidate intention skills in the third intention skills that are the same as the intention skills included in the whitelist are retained and input into the intention recognition QS library as candidate intention skills. Among them, there are four areas in the intention recognition QS library, namely, the miscall area between skill groups, the uncalled area between skill groups, the miscall area within the skill group, and the uncalled area within the skill group. Among them, the miscall area between skill groups and the miscall area within the skill group include information related to the original intention skills. The system can query the original intention skills and candidate intention skills through the miscall area between skill groups and the miscall area within the skill group; and the candidate intention skills can be queried through the uncalled area between skill groups and the uncalled area within the skill group. According to the business groups to which the candidate intention skills and the original intention skills belong, the candidate intention skills are stored in different libraries. Among them, the business group may include a pan-entertainment group, a life service group, a knowledge and culture group, etc. For example, if the original intent skill is poetry, and multiple candidate intent skills are music and video, then the original intent skill belongs to the knowledge and culture group, and multiple candidate intent skills belong to the pan-entertainment group. This situation is a miscall of poetry to music and video, and also an uncall of music and video. Then multiple candidate intent skills are stored in the miscall area between skill groups and the uncall area between skill groups. For example, the miscall area between skill groups is represented as "poetry: music, video", and the uncall area between skill groups is represented as "music, video". The system can find out that the original intent skill is poetry and that multiple candidate intent skills are music and video through the miscall area between skill groups and the uncall area between skill groups.

[0082] Step S307: Acquire multiple preset intention skills corresponding to the intention instruction.

[0083] In an embodiment of the present application, a plurality of preset intent skills are acquired, wherein the preset intent skills are intent skills pre-set by the business party.

[0084] Step S308: From the multiple candidate intention skills, obtain the candidate intention skills that are the same as the multiple preset intention skills as the preset candidate intention skills.

[0085] In an embodiment of the present application, after obtaining multiple candidate intention skills and multiple preset intention skills, the multiple candidate intention skills are compared with the multiple preset intention skills to determine whether there are the same intention skills among the multiple candidate intention skills and the multiple preset intention skills. If it is determined that the same intention skills exist, the same intention skills are used as the preset candidate intention skills.

[0086] Step S309: Obtain a skill script table corresponding to the preset candidate intent skills, wherein the skill script table includes a plurality of reference skill scripts corresponding to each of the preset candidate intent skills.

[0087] In an embodiment of the present application, after the preset candidate intent skills are obtained, multiple reference skill scripts corresponding to each of the preset candidate intent skills are queried in the intent-skill script mapping table, and the queried multiple reference skill scripts are combined into a skill script table, and the skill script table is obtained by the system.

[0088] For example, the pre-set intent-skill-speech mapping table is: If the preset candidate intent skill is determined to be {A i ,A j}, then we can determine A i The corresponding reference skill words are: A j The corresponding reference skill words are: And {A i ,A j} to combine the corresponding reference skill scripts to obtain the skill script table corresponding to the preset candidate intent skills

[0089] Step S310: Obtain the reference skill scripts corresponding to each of the preset candidate intent skills from the multiple reference skill scripts corresponding to each of the preset candidate intent skills.

[0090] In an embodiment of the present application, after the preset candidate intent skills are obtained, the reference skill speech corresponding to each of the preset candidate intent skills is obtained in the intent-skill speech mapping table.

[0091] Step S311: Based on the reference skill scripts corresponding to each of the preset candidate intent skills, generate the skill scripts corresponding to the preset candidate intent skills.

[0092] In an embodiment of the present application, after obtaining the reference skill dialogues corresponding to each of the preset candidate intent skills, the skill dialogues corresponding to the preset candidate intent skills are generated.

[0093] Step S312: Obtain feedback information based on the skill script.

[0094] In an embodiment of the present application, when the system sends the skill script corresponding to the generated preset candidate intent skill to the user, the user provides feedback based on the received skill script, so that the system obtains feedback information on the skill script.

[0095] Step S313: Query the reference skill words corresponding to the feedback information in the skill words table, and take the preset candidate intention skill corresponding to the reference skill words among the preset candidate intention skills as the target intention skill.

[0096] In an embodiment of the present application, when the system receives feedback information from the user, it searches the skill script table for the reference skill script corresponding to the received feedback information, thereby determining the preset candidate intention skill corresponding to the reference skill script, and using the preset candidate intention skill as the target intention skill.

[0097] As a method, after acquiring the target intention skill, the target intention skill is marked. When the user issues the same intention instruction again, the system can use the intention skill corresponding to the marked intention skill as the target intention skill corresponding to the intention instruction.

[0098] The present application provides an intention recognition method, after obtaining an intention instruction, obtaining multiple intention skills corresponding to the intention instruction, and determining the original intention skill according to the confidence corresponding to each of the multiple intention skills, and judging whether the obtained original intention skill is the target intention skill, if not, obtaining multiple reference intention skills corresponding to the intention instruction. The obtained multiple reference intention skills are input into a pre-trained intention recognition model, and when the multiple reference intention skills meet the preset conditions, the intention recognition model outputs multiple candidate intention skills, and obtains multiple preset intention skills at the same time, and then obtains the same intention skills in the multiple candidate intention skills and the multiple preset intention skills as the preset candidate intention skills, and generates skill words according to the reference skill words corresponding to each of the multiple preset candidate intention skills. After the skill words are fed back to the user, the user's feedback information is received, and the target intention skill is determined according to the reference skill words corresponding to the received feedback information. Through the above method, according to the intention instruction issued by the user, the intention skill that meets the conditions is obtained as the preset candidate intention skill, the skill words are generated based on the preset candidate intention skill obtained, and the skill words are combined with the skill words to interact with the user, and the intention recognition problem is repaired according to the user's feedback, thereby improving the user experience.

[0099] See also Figure 5 , the present application embodiment provides an intention recognition method, the method comprising

[0100] Step S401: Obtain the intention instruction.

[0101] Step S402: Acquire multiple intention skills corresponding to the intention instruction.

[0102] Step S403: Obtain the confidence corresponding to each of the multiple intention skills to obtain multiple confidences.

[0103] Step S404: taking the intention skill corresponding to the maximum confidence among the multiple intention skills as the original intention skill.

[0104] Step S405: If the original intention skill is not the target intention skill, the step of obtaining multiple reference intention skills corresponding to the intention instruction is executed.

[0105] For details of steps S401 to S405, reference may be made to the detailed explanation in the above embodiment, and thus they will not be described in detail in this embodiment.

[0106] Step S406: Input the multiple reference intention skills into the first intention recognition submodule, and obtain multiple first intention skills output by the first intention recognition submodule, where the multiple first intention skills are reference intention skills among the multiple reference intention skills that are different from the original intention skills.

[0107] In the embodiment of the present application, after obtaining multiple reference intention skills, the multiple reference intention skills are input into the first intention recognition submodule in the intention recognition model, and the first intention recognition submodule processes the input multiple reference intention skills. The first intention recognition submodule removes the reference intention skills that are the same as the original intention skills from the multiple reference intention skills, retains the reference intention skills that are different from the original intention skills from the multiple reference intention skills as the first intention skills, and outputs the multiple first intention skills.

[0108] Step S407: Input the multiple first intention skills into the second intention recognition submodule, and obtain the multiple second intention skills output by the second intention recognition submodule, where the multiple second intention skills are the first intention skills whose predicted probability values ​​are greater than a preset probability threshold among the multiple first intention skills.

[0109] In an embodiment of the present application, the multiple first intention skills output by the first intention recognition submodule are input into the second intention recognition submodule, and the multiple first intention skills are processed by the second intention recognition submodule. The second intention recognition submodule predicts the probability values ​​of the multiple first intention skills, obtains the predicted probability values ​​corresponding to each of the multiple first intention skills, and sorts the predicted probability values ​​corresponding to each of the multiple first intention skills according to size, thereby determining the probability of the multiple first intention skills being different from the original intention skills. The first intention skills whose predicted probability values ​​are less than or equal to the preset probability threshold are removed, and the first intention skills whose predicted probability values ​​are greater than the preset probability threshold are retained as second intention skills, and the multiple second intention skills are output.

[0110] Step S408: Input the multiple second intention skills into the third intention recognition submodule, obtain at least one third intention skill output by the third intention recognition submodule, and use the at least one third intention skill as the candidate intention skill, wherein the at least one third intention skill is a second intention skill among the multiple second intention skills whose perplexity is less than a preset perplexity threshold.

[0111] As a method, multiple second intention skills output by the second intention recognition submodule are input into the third intention recognition submodule, and the third intention recognition submodule processes the multiple second intention skills. The third intention recognition submodule performs perplexity detection on the multiple second intention skills, and sorts the perplexities corresponding to the multiple second intention skills according to the size, excludes the second intention skills with perplexity greater than or equal to the preset perplexity threshold, retains the second intention skills with perplexity less than the preset perplexity as the third intention skills, and compares the third intention skills with the preset black and white lists, removes the third intention skills that are the same as the intention skills in the black list, and retains the third intention skills that are the same as the intention skills in the white list, and uses the third intention skills as candidate intention skills.

[0112] As another approach, some business parties may not set up a blacklist or whitelist, so the third intent skill can be used as a candidate intent skill.

[0113] As a way, in language recognition models, perplexity is used to characterize the coherence and structure of sentences. Low perplexity means that the model generates coherent and well-structured sentences, while high perplexity means that the model generates incoherent and confusing sentences.

[0114] Step S409: Acquire multiple preset intention skills corresponding to the intention instruction.

[0115] Step S410: From the multiple candidate intention skills, obtain the candidate intention skills that are the same as the multiple preset intention skills as the preset candidate intention skills.

[0116] Step S411: Obtain a skill script table corresponding to the preset candidate intention skills, wherein the skill script table includes a plurality of reference skill scripts corresponding to each of the preset candidate intention skills.

[0117] Step S412: Obtain the reference skill scripts corresponding to each of the preset candidate intent skills from the multiple reference skill scripts corresponding to each of the preset candidate intent skills.

[0118] Step S413: Based on the reference skill scripts corresponding to each of the preset candidate intent skills, generate the skill scripts corresponding to the preset candidate intent skills.

[0119] Step S414: Obtain feedback information based on the skill script.

[0120] Step S415: Query the reference skill words corresponding to the feedback information in the skill words table, and take the preset candidate intention skill corresponding to the reference skill words among the preset candidate intention skills as the target intention skill.

[0121] For details of steps S409 to S415, reference may be made to the detailed explanation in the above embodiment, and thus they will not be described in detail in this embodiment.

[0122] The present application provides an intention recognition method, which sets a first intention recognition submodule, a second intention recognition submodule and a third intention recognition submodule in an intention recognition model, and inputs multiple reference intention skills obtained into a pre-trained intention recognition model. The first intention recognition module in the intention recognition model outputs multiple reference intention skills that are different from the original intention skills as first intention skills, and inputs the first intention skills into the second intention recognition submodule. The second intention recognition submodule outputs multiple first intention skills whose predicted probability values ​​corresponding to each of the multiple first intention skills are greater than a preset probability threshold as second intention skills, and inputs the second intention skills into the third intention recognition submodule. The third intention recognition submodule obtains the perplexity corresponding to each of the multiple second intention skills, outputs the second intention skill whose perplexity is less than the preset perplexity threshold as the third intention skill, and uses the third intention skill as a candidate intention skill, so that the intention recognition model can more accurately recognize the reference intention skills.

[0123] See also Figure 6 , an embodiment of the present application provides an intention recognition device 500, the device 500 comprising:

[0124] The intention instruction acquisition unit 510 is used to acquire the intention instruction.

[0125] The reference intention skill acquisition unit 520 is used to acquire multiple reference intention skills corresponding to the intention instruction.

[0126] As a method, the reference intention skill acquisition unit 520 is also used to acquire multiple intention skills corresponding to the intention instruction; acquire the confidence corresponding to each of the multiple intention skills to obtain multiple confidences; take the intention skill corresponding to the maximum confidence among the multiple intention skills as the original intention skill; if the original intention skill is not the target intention skill, execute the acquisition of multiple reference intention skills corresponding to the intention instruction.

[0127] The candidate intention skill acquisition unit 530 is used to acquire a plurality of candidate intention skills that meet preset conditions from the plurality of reference intention skills.

[0128] As a method, the candidate intention skill acquisition unit 530 is also used to input the multiple reference intention skills into a pre-trained intention recognition model to obtain multiple candidate intention skills that meet the preset conditions and are output by the intention recognition model.

[0129] Optionally, the candidate intention skill acquisition unit 530 is also used to input the multiple reference intention skills into the first intention recognition submodule, obtain the multiple first intention skills output by the first intention recognition submodule, and the multiple first intention skills are reference intention skills in the multiple reference intention skills that are different from the original intention skills; input the multiple first intention skills into the second intention recognition submodule, obtain the multiple second intention skills output by the second intention recognition submodule, and the multiple second intention skills are the first intention skills in the multiple first intention skills whose predicted probability values ​​are greater than a preset probability threshold; input the multiple second intention skills into the third intention recognition submodule, obtain at least one third intention skill output by the third intention recognition submodule, and use the at least one third intention skill as the candidate intention skill, and the at least one third intention skill is the second intention skill in the multiple second intention skills whose perplexity is less than a preset perplexity.

[0130] The skill speech generation unit 540 is used to generate skill speech corresponding to the preset candidate intention skill if the multiple candidate intention skills include a preset candidate intention skill, wherein the preset candidate intention skill is the same candidate intention skill among the multiple candidate intention skills and the multiple preset intention skills.

[0131] As a method, the skill speech generation unit 540 is also used to obtain multiple preset intention skills corresponding to the intention instruction; from the multiple candidate intention skills, obtain the candidate intention skills that are the same as the multiple preset intention skills as the preset candidate intention skills; obtain a skill speech table corresponding to the preset candidate intention skills, the skill speech table includes multiple reference skill speech corresponding to each of the preset candidate intention skills; from the multiple reference skill speech corresponding to each of the preset candidate intention skills, obtain the reference skill speech corresponding to each of the preset candidate intention skills; based on the reference skill speech corresponding to each of the preset candidate intention skills, generate the skill speech corresponding to the preset candidate intention skill.

[0132] The target intention skill determination unit 550 is used to respond to the feedback information based on the skill script and determine the target intention skill from the preset candidate intention skills.

[0133] As a method, the target intention skill determination unit 550 is also used to obtain feedback information based on the skill script; query the reference skill script corresponding to the feedback information in the skill script table, and take the preset candidate intention skill corresponding to the reference skill script among the preset candidate intention skills as the target intention skill.

[0134] See also Figure 7 , the device 500 further includes:

[0135] The model training unit 560 is used to obtain a training data set, wherein the training data set includes positive sample data and negative sample data, the positive sample data is data related to the target training skill, and the negative sample data is data related to other skills except the target training skill; the positive sample data is input into the model to be trained to obtain the predicted data corresponding to the positive sample data output by the model to be trained; the negative sample data is input into the model to be trained to obtain the predicted data corresponding to the negative sample data output by the model to be trained; based on a preset loss function, the predicted data corresponding to the positive sample data and the predicted data corresponding to the negative sample data, a loss function value is obtained; and the model to be trained is iteratively trained according to the loss function value until a preset number of training times is met, thereby obtaining the intention recognition model.

[0136] It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.

[0137] The following will be combined Figure 7 An electronic device provided by the present application is described.

[0138] See also Figure 8 Based on the above-mentioned intention recognition method and device, the embodiment of the present application also provides another electronic device 600 that can perform the above-mentioned intention recognition. The electronic device 600 includes one or more (only one is shown in the figure) processors 602, a memory 604 and a network module 606 that are coupled to each other. Among them, the memory 604 stores a program that can execute the content of the above-mentioned embodiment, and the processor 602 can execute the program stored in the memory 604.

[0139] Among them, the processor 602 may include one or more processing cores. The processor 602 uses various interfaces and lines to connect various parts of the entire electronic device 600, and executes various functions and processes data of the server 600 by running or executing instructions, programs, code sets or instruction sets stored in the memory 604, and calling data stored in the memory 604. Optionally, the processor 602 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 602 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 602, but may be implemented separately through a communication chip.

[0140] The memory 604 may include a random access memory (RAM) or a read-only memory (ROM). The memory 604 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 604 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 600 during use.

[0141] The network module 606 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as communicating with an audio playback device. The network module 606 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 606 may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. For example, the network module 606 may exchange information with a base station.

[0142] Please refer to Fig. 9 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 700 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0143] The computer readable storage medium 700 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 700 includes a non-transitory computer-readable storage medium. The computer readable storage medium 700 has storage space for program code 710 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 710 can be compressed, for example, in an appropriate form.

[0144] The embodiments of the present application provide an intent recognition method, device, electronic device and storage medium. The intent recognition method includes: obtaining an intent instruction; obtaining multiple reference intent skills corresponding to the intent instruction; obtaining multiple candidate intent skills that meet preset conditions from the multiple reference intent skills; if the multiple candidate intent skills include preset candidate intent skills, generating skill words corresponding to the preset candidate intent skills, wherein the preset candidate intent skills are the same candidate intent skills as the multiple candidate intent skills and the multiple preset intent skills; in response to feedback information based on the skill words, determining the target intent skill from the preset candidate intent skills. Through the above method, according to the intent instruction issued by the user, the intent skill that meets the conditions is obtained as the preset candidate intent skill, the skill words are generated based on the obtained preset candidate intent skills, and the skill words are combined with the skill words to interact with the user, and the intent recognition problem is repaired according to the user's feedback, thereby improving the user experience.

[0145] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, all of which are protected by the present invention.

Claims

1. A method for intention recognition, characterized in that: The method comprises: Get the intent command; Acquire multiple reference intention skills corresponding to the intention instruction; Acquire a plurality of candidate intention skills that meet preset conditions from the plurality of reference intention skills; If the multiple candidate intent skills include a preset candidate intent skill, generate a skill script corresponding to the preset candidate intent skill, wherein the preset candidate intent skill is the same candidate intent skill among the multiple candidate intent skills and the multiple preset intent skills; In response to feedback information based on the skill script, a target intent skill is determined from the preset candidate intent skills.

2. The method according to claim 1, characterized in that Before acquiring a plurality of reference intention skills corresponding to the intention instruction, the method further includes: Acquire multiple intention skills corresponding to the intention instruction; Obtaining confidences corresponding to each of the plurality of intention skills to obtain a plurality of confidences; The intention skill corresponding to the maximum confidence among the multiple intention skills is used as the original intention skill; If the original intention skill is not the target intention skill, the step of obtaining multiple reference intention skills corresponding to the intention instruction is executed.

3. The method according to claim 1, characterized in that: The step of acquiring a plurality of candidate intention skills that meet a preset condition from the plurality of reference intention skills includes: The multiple reference intent skills are input into a pre-trained intent recognition model to obtain multiple candidate intent skills that meet the preset conditions and are output by the intent recognition model.

4. The method according to claim 3, characterized in that The intention recognition model includes a plurality of intention recognition submodules, and the plurality of intention recognition submodules are connected in sequence. In adjacent intention recognition submodules, the output of the preceding intention recognition submodule is the input of the following intention recognition submodule; The step of inputting the plurality of reference intent skills into an intent recognition model and obtaining a plurality of candidate intent skills output by the intent recognition model that meet the preset conditions includes: Inputting the multiple reference intention skills into a first intention recognition submodule, obtaining multiple first intention skills output by the first intention recognition submodule, wherein the multiple first intention skills are reference intention skills among the multiple reference intention skills that are different from the original intention skills; Inputting the multiple first intention skills into the second intention recognition submodule, obtaining multiple second intention skills output by the second intention recognition submodule, wherein the multiple second intention skills are first intention skills whose predicted probability values ​​are greater than a preset probability threshold among the multiple first intention skills; The multiple second intention skills are input into a third intention recognition submodule, at least one third intention skill output by the third intention recognition submodule is obtained, and the at least one third intention skill is used as the candidate intention skill, wherein the at least one third intention skill is a second intention skill among the multiple second intention skills whose perplexity is less than a preset perplexity threshold.

5. The method according to claim 1, characterized in that If the plurality of candidate intent skills include a preset candidate intent skill, generating a skill script corresponding to the preset candidate intent skill includes: Acquire multiple preset intention skills corresponding to the intention instruction; From the plurality of candidate intention skills, obtaining a candidate intention skill that is the same as one of the plurality of preset intention skills as a preset candidate intention skill; Obtain a skill script table corresponding to the preset candidate intent skill, wherein the skill script table includes a plurality of reference skill scripts corresponding to each of the preset candidate intent skills; Obtaining, from a plurality of reference skill scripts corresponding to each of the preset candidate intent skills, a reference skill script corresponding to each of the preset candidate intent skills; Based on the reference skill scripts corresponding to each of the preset candidate intent skills, the skill scripts corresponding to the preset candidate intent skills are generated.

6. The method according to claim 1, characterized in that The response is based on the feedback information of the skill script, and determines the target intention skill from the preset candidate intention skills, including: Obtaining feedback information based on the skill script; The reference skill words corresponding to the feedback information are searched in the skill words table, and the preset candidate intention skill corresponding to the reference skill words among the preset candidate intention skills is taken as the target intention skill.

7. A method for training an intent recognition model, characterized in that: The model includes: Acquire a training data set, wherein the training data set includes positive sample data and negative sample data, wherein the positive sample data is data related to a target training skill, and the negative sample data is data related to other skills except the target training skill; Inputting the positive sample data into the model to be trained, and obtaining prediction data corresponding to the positive sample data output by the model to be trained; Inputting the negative sample data into the model to be trained, and obtaining prediction data corresponding to the negative sample data output by the model to be trained; Obtaining a loss function value based on a preset loss function, the predicted data corresponding to the positive sample data, and the predicted data corresponding to the negative sample data; The model to be trained is iteratively trained according to the loss function value until a preset number of training times is met, thereby obtaining the intent recognition model.

8. An intention recognition device, characterized in that: The device shown comprises: An intention instruction acquisition unit, used for acquiring an intention instruction; A reference intention skill acquisition unit, used to acquire a plurality of reference intention skills corresponding to the intention instruction; A candidate intention skill acquisition unit, used to acquire a plurality of candidate intention skills that meet preset conditions from the plurality of reference intention skills; A skill speech generating unit, configured to generate a skill speech corresponding to a preset candidate intention skill if the plurality of candidate intention skills include a preset candidate intention skill, wherein the preset candidate intention skill is the same candidate intention skill among the plurality of candidate intention skills and the plurality of preset intention skills; The target intention skill determination unit is used to respond to feedback information based on the skill script and determine the target intention skill from the preset candidate intention skills.

9. An electronic device, characterized in that: The method comprises one or more processors and a memory, wherein one or more programs are stored in the memory and configured to be executed by the one or more processors to execute any one of the methods of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, wherein the program codes include instructions for executing the method according to any one of claims 1 to 7.