Intention recognition method and device, computer equipment, readable storage medium and program product
By combining multiple intent recognition methods and intent recognition models, and integrating different intent recognition results, the problem of inaccurate intent recognition in the existing technology is solved, more comprehensive and accurate intent recognition is achieved, and business processing efficiency and user experience are improved.
Patent Information
- Application Number
- CN202410584036.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-09-03
AI Technical Summary
Existing intent recognition technology is difficult to fully and accurately identify customer intentions under complex business requirements. Especially in the field of intelligent customer service, traditional methods are difficult to adapt to diverse and continuous user needs.
By obtaining business scenario interaction data and multiple preset business scenario labels, combining multiple intent recognition methods and trained intent recognition models, integrating different intent recognition results, improving the generalization ability and accuracy of the model, and being suitable for complex intents Identify needs.
It achieves more comprehensive and accurate intent recognition results, improves business processing efficiency and user experience, and adapts to the diverse intent recognition needs in different business scenarios.
Smart Images

Figure CN118586397A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to an intent recognition method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art
[0002] Intent recognition is a natural language processing technology that aims to understand the real needs or purposes expressed by users when interacting with computer systems, applications or smart devices. Specifically, the computer device identifies the user's intent category from the user's input information (such as text, voice commands, etc.), so that the system can provide more accurate responses or services that meet the user's expectations. With the increasing richness of business scenarios and the gradual popularization of big data, user needs often show characteristics such as diversity and continuity, which makes the need for in-depth mining of user intentions more obvious and also puts higher requirements on the comprehensive capabilities of customer service staff.
[0003] In the field of intelligent customer service, traditional intent recognition solutions usually involve computer equipment using natural language processing technology to understand the semantics of text or voice information input by customers, thereby determining customer intent, or training intent recognition models to identify customer intent online through intent recognition models, and continuously optimizing and improving the models through user feedback and real-time data. However, the above intent recognition methods still have the problem of difficulty in fully and accurately identifying customer intent for complex business needs. Summary of the invention
[0004] Based on this, it is necessary to provide a more comprehensive and accurate intent recognition method, device, computer equipment, computer-readable storage medium and computer program product to address the above technical issues.
[0005] In a first aspect, the present application provides an intent recognition method, comprising:
[0006] Obtain business scenario interaction data;
[0007] Obtain a plurality of preset business scenario tags, and based on the intent recognition configuration data corresponding to different intent recognition methods under each business scenario tag, respectively perform intent recognition on the business scenario interaction data to obtain a first intent recognition result, wherein the first intent recognition result includes intent recognition results corresponding to different intent recognition methods;
[0008] Performing intent recognition on the business scenario interaction data through a trained intent recognition model to obtain a second intent recognition result, wherein the intent recognition model is trained based on text interaction corpus carrying intent labels determined through different intent recognition methods;
[0009] The first intent recognition result and the second intent recognition result are integrated to obtain a target intent recognition result.
[0010] In an exemplary embodiment, the intent recognition configuration data includes a regular expression for matching an intent tag; the intent recognition configuration data corresponding to different intent recognition modes under each business scenario tag respectively performs intent recognition on the business scenario interaction data, including:
[0011] For each business scenario tag, matching the regular expression under the business scenario tag with the business scenario interaction data;
[0012] In a case where the business scenario interaction data matches at least one regular expression, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
[0013] In an exemplary embodiment, the intent recognition configuration data includes a business message code, and the intent recognition configuration data corresponding to different intent recognition modes under each business scenario tag respectively performs intent recognition on the business scenario interaction data, including:
[0014] For each business scenario tag, matching the business message code under the business scenario tag with the business scenario interaction data;
[0015] In a case where the business scenario interaction data includes at least one of the business message codes, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
[0016] In an exemplary embodiment, the intent recognition configuration data includes a business interaction code, and the intent recognition configuration data corresponding to different intent recognition modes under each business scenario tag respectively performs intent recognition on the business scenario interaction data, including:
[0017] For each business scenario tag, matching the business interaction code under the business scenario tag with the business scenario interaction data;
[0018] In a case where the business scenario interaction data includes the at least one business interaction code, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
[0019] In an exemplary embodiment, the method further comprises:
[0020] Different prefixes are added to the intent tags identified by different intent identification methods to update the target intent identification result, wherein the prefix is used to characterize the intent identification method.
[0021] In an exemplary embodiment, the intent recognition model is trained based on the following method:
[0022] Obtain text interaction corpora in different business scenarios with intent labels determined by different intent recognition methods;
[0023] Preprocessing the text interaction corpus;
[0024] Convert the preprocessed text interaction corpus into feature vector data to obtain a model training set;
[0025] The constructed initial intent recognition model is trained by using the model training set until the accuracy of the initial intent recognition model meets the preset accuracy requirement, thereby obtaining the intent recognition model.
[0026] In an exemplary embodiment, the integrating the first intent recognition result and the second intent recognition result to obtain a target intent recognition result includes:
[0027] The first intent recognition result and the second intent recognition result are combined to obtain a target intent recognition result.
[0028] In an exemplary embodiment, after obtaining the target intention recognition result, the method further includes:
[0029] Performing statistical analysis on the target intention recognition results to determine the accuracy of different intention recognition methods;
[0030] When the accuracy rate is less than a preset accuracy rate threshold, an optimization adjustment prompt message is pushed. In a second aspect, the present application also provides an intent recognition device, comprising:
[0031] Data acquisition module, used to obtain business scenario interaction data;
[0032] A first intent recognition module is used to obtain a plurality of preset business scenario tags, and based on the intent recognition configuration data corresponding to different intent recognition methods under each business scenario tag, respectively perform intent recognition on the business scenario interaction data to obtain a first intent recognition result, wherein the first intent recognition result includes intent recognition results corresponding to different intent recognition methods;
[0033] A second intent recognition module, configured to perform intent recognition on the business scenario interaction data by using a trained intent recognition model to obtain a second intent recognition result, wherein the intent recognition model is trained based on text interaction corpus carrying intent labels determined by different intent recognition methods;
[0034] A data integration module is used to integrate the first intent recognition result and the second intent recognition result to obtain a target intent recognition result.
[0035] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in any of the above-mentioned intent recognition method embodiments when executing the computer program.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in any of the above-mentioned intent recognition method embodiments.
[0037] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps in any of the above-mentioned intent recognition method embodiments.
[0038] The above-mentioned intent recognition method, device, computer equipment, computer-readable storage medium and computer program product introduce multiple intent recognition methods and business scenario labels, and pre-configure intent recognition configuration data corresponding to different intent recognition methods for each business scenario label to cover multiple intent recognition requirements in multiple business scenarios. The intent recognition model is trained by carrying a richer text interaction corpus with intent labels determined by different intent recognition methods to improve the generalization ability and accuracy of the model. In the actual intent recognition process, the integrated model recognition and the preset multiple intent recognition methods are used to perform intent recognition on the business scenario interaction data respectively through the intent recognition configuration data corresponding to the different intent recognition methods under each business scenario label, which can be applied to complex intent recognition needs and obtain more comprehensive and accurate first intent recognition results corresponding to different intent recognition methods. Then, the intent recognition of the business scenario interaction data is performed through the trained intent recognition model, which can efficiently and accurately predict the intent and obtain a more accurate second intent recognition result. Finally, by integrating the first intent recognition result and the second intent recognition result, a comprehensive, accurate and highly reliable intent recognition result can be obtained. In summary, the above solution, by combining multiple intent recognition methods, intent recognition models, and rich training data, can make the intent recognition solution adapt to the complex intent recognition needs in different business scenarios, realize accurate recognition of diverse intents, and obtain more comprehensive and accurate intent recognition results. Furthermore, in actual business applications, it can effectively improve business processing efficiency and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] FIG1 is a diagram of an application environment of an intention recognition method according to an embodiment;
[0041] Figure 2 is a flowchart of an intention recognition method in one embodiment;
[0042] Figure 3 A flowchart of an intent recognition model training step in one embodiment;
[0043] Figure 4 is a flowchart of an intention recognition method in another embodiment;
[0044] Figure 5 is a flowchart of an intention recognition method in yet another embodiment;
[0045] Figure 6 A schematic diagram of a flow chart of an intention recognition method in yet another embodiment;
[0046] Figure 7 is a detailed flowchart of an intention recognition method in an embodiment;
[0047] Figure 8 is a structural block diagram of an intention recognition device in one embodiment;
[0048] Fig. 9 is a structural block diagram of an intention recognition device in another embodiment;
[0049] FIG. 10 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. It should be noted that in the embodiments of the present application, certain software, groups, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0051] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations. The acquisition, transmission, storage, use, and processing of data in the technical solution of this application are in compliance with relevant provisions of national laws and regulations.
[0052] The intent recognition method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process, including multiple business scenario tags, and the business scenario tags maintain intent recognition configuration data and label definition data corresponding to different intent recognition methods. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 is deployed with an intent recognition model trained by text interaction corpus carrying intent labels determined by different intent recognition methods.
[0053] Specifically, the customer service personnel may conduct business interaction with the user through the terminal 102. The terminal 102 sends the generated business scenario data to the server 104 in real time during the interaction. Moreover, within a period of time after the interaction, such as within 5 minutes, if the terminal 102 detects that business scenario interaction data is generated, the server 104 also sends the business scenario interaction data to the server 104. The server 104 obtains the business scenario interaction data, and then obtains a plurality of preset business scenario tags. Based on the intent recognition configuration data corresponding to different intent recognition methods under each business scenario tag, the business scenario interaction data is respectively subjected to intent recognition to obtain a first intent recognition result. The first intent recognition result includes intent recognition results corresponding to different intent recognition methods. In addition, the business scenario interaction data is subjected to intent recognition through a trained intent recognition model to obtain a second intent recognition result. Finally, the first intent recognition result and the second intent recognition result are integrated to obtain a final target intent recognition result.
[0054] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0055] In an exemplary embodiment, Figure 2 As shown, a method for intention recognition is provided, and the method is applied to the server 104 in FIG. 1 as an example for description, including the following steps 200 to 800. Among them:
[0056] S200, obtaining business scenario interaction data.
[0057] Business scenario interaction data (hereinafter referred to as interaction data) refers to the data generated when users interact with the system in a specific business scenario. Specifically, it includes but is not limited to interactive dialogue data, user input data, user behavior data, user feedback data, business indicator data, and log data. Among them, interactive dialogue data includes but is not limited to text data, image data, and voice data. If there is voice data, text recognition can also be performed on the voice data to translate the voice data into text data.
[0058] In actual applications, when customer service is interacting with users through the operation terminal and for a period of time after the interaction ends, the operation terminal can send the recorded business scenario interaction data to the server in real time so that the server can perform online intent recognition in a timely manner.
[0059] S400, obtain multiple preset business scenario tags, and based on the intent recognition configuration data corresponding to the different intent recognition methods under each business scenario tag, perform intent recognition on the business scenario interaction data respectively to obtain a first intent recognition result, which includes the intent recognition results corresponding to different intent recognition methods.
[0060] Intent recognition configuration data refers to various parameters, rules, templates, and related settings used to guide intent recognition. Intent recognition results include but are not limited to intent labels, intent types, and corresponding confidence levels.
[0061] Business scenario labels are pre-defined labels for each business scenario, which are used to reflect the characteristic attributes contained in different business scenarios. In essence, business scenario labels can also be understood as intent labels. Usually, a business scenario will reflect at least one interaction intent. Therefore, the business scenario can be abstracted into an intent label, so that intent identification can be formalized as a process of "labeling intent" for each piece of interaction data. All business scenarios can be sorted out, and corresponding business scenario labels are defined for each business scenario. Then, the business scenario labels under all business scenarios are aggregated to obtain a list of scenario labels.
[0062] Specifically, business scenario tags may include the following definitions: tag code, tag name, tag type, creator, creation time, updater, update time, tag rules, tag description, business message code, and business interaction code. Among them, the tag code, as the unique identifier of the tag, determines a tag system. In this embodiment, the tag code has a total of 9 digits, which can be referred to the industry classification, and classified into four levels according to categories, major categories, medium categories, and minor categories, and compiled in association with scenario demands. The tag code has a total of 9 digits, exemplarily:
[0063] The first digit is the category, which is written with the letters A or B and is divided into private business and corporate business according to the type of customer.
[0064] The combination of the 1st and 2nd digits represents a major category, where the 2nd digit is represented by the number 1, 2 or 3, and is divided into "media and credentials", "channels and platforms", and "products and services" according to business dimensions.
[0065] The combination of the 1st to 4th digits is the middle category, where the 3rd and 4th digits are represented by numbers 01-99, which are aggregated into different business types according to similar businesses. Taking financial services as an example, they can be aggregated into bank cards, personal deposits, installment services and other types.
[0066] The combination of 1st to 6th digits is a sub-category, and the 5th to 6th digits are represented by numbers 01-99 to distinguish the specific business name. The combination of all 9 digits represents the business scenario, and the 7th to 9th digits are represented by numbers 001-999 to distinguish the actual scenario demands of customer service.
[0067] The label coding defined in the above structure has a clear hierarchical relationship, which can scientifically and comprehensively reflect the business demands involved in the customer service process, thereby reflecting the customer's interaction intention. Through scene configuration, the business scene label system can be added, deleted, modified and maintained to achieve customization of business scenes.
[0068] In this embodiment, multiple intent recognition methods and corresponding intent recognition configuration data are maintained under each business scenario label. Specifically, the intent recognition methods include intent recognition based on multiple rules, intent recognition based on machine learning models, intent recognition based on deep learning models, etc.
[0069] In the specific implementation, the intention recognition configuration data is taken as rule-based configuration data for explanation. It can be to obtain a list of scenario tags, and based on the rule-based configuration data corresponding to the intent recognition method maintained under each business scenario tag in the list, perform intent recognition on the same business scenario interaction data, and determine whether the business scenario interaction data matches the interaction intent corresponding to the business scenario tag. If it matches, the intent recognition is determined to be successful, and the intent tag corresponding to the business scenario tag is determined as the identified intent tag, and the corresponding intent tag is added to the business scenario interaction data. It can be understood that since the user may put forward multiple business requirements during the business interaction process, a piece of interaction data can be added with multiple intent tags. After the intent recognition process is completed, the server records and aggregates the intent recognition results obtained by each intent recognition method to obtain the first intent recognition result.
[0070] S600, performing intent recognition on business scenario interaction data through a trained intent recognition model to obtain a second intent recognition result, wherein the intent recognition model is trained based on text interaction corpus carrying intent labels determined by different intent recognition methods.
[0071] In addition to the rule-based intent recognition method in the previous step, in this embodiment, intent recognition is also performed on business scenario interaction data by calling a trained intent recognition model. Among them, the intent recognition model can be to collect multiple segments of interactive text data between customer service and users, and perform intent recognition on the interactive text data respectively through different intent recognition methods, determine the corresponding intent labels, and then add the intent labels to the interactive text data to obtain the text interaction corpus for training the model. Then, an initial intent recognition model is constructed based on machine learning or deep learning, and the initial intent recognition model is trained with the above text interaction corpus to obtain the intent recognition model.
[0072] Specifically, the business scenario interaction data may be input into a trained intent recognition model for intent prediction, the model determines the prediction probability of each type of business scenario, and then, by comparison, the business scenarios with the highest prediction probability or the top N are screened out, and then the user's interaction intent is determined based on the screened business scenarios, thereby obtaining the second intent recognition result. It is understandable that the second intent recognition result may include one or more intent tags.
[0073] like Figure 3As shown, in an exemplary embodiment, the intent recognition model is trained based on the following method:
[0074] S320, obtaining text interaction corpora carrying intent labels determined by different intent recognition methods in different business scenarios.
[0075] S340, preprocessing the text interaction corpus.
[0076] S360, converting the preprocessed text interaction corpus into feature vector data to obtain a model training set.
[0077] S380, training the constructed initial intent recognition model through the model training set until the accuracy of the initial intent recognition model meets the preset accuracy requirement, thereby obtaining the intent recognition model.
[0078] The text interaction corpus includes scenario interaction text data covering different business scenarios. The text interaction corpus specifically includes conversation data between users and customer service, user instructions, and correct intent labels determined by different intent recognition methods such as regular matching, message code recognition, and business interaction code recognition.
[0079] The intent recognition model can be trained in the following way: First, according to the task requirements, an initial intent recognition model is constructed based on deep learning or machine learning. In this embodiment, the intent recognition model can be a model built based on an LSTM (Long Short Term Memory) network. Then, the text interaction corpus carrying intent labels determined by different intent recognition methods in different business scenarios is obtained, and then the text interaction corpus is preprocessed, including but not limited to data cleaning, word segmentation, removal of low-frequency words, removal of stop words, stemming of English text, word form restoration of Chinese text, data expansion based on synonym dictionaries and synonym dictionaries, and vectorization processing, etc., to improve the diversity and quality of the text interaction corpus.
[0080] After preprocessing the text interaction corpus to obtain the preprocessed text interaction corpus, the text interaction corpus can be converted into a feature vector sequence through a sequence-based model such as an LSTM network to retain the order information of the words.
[0081] Then, the feature vector sequence is divided into a training set, a validation set, and a test set. The constructed initial intent recognition model is trained with the training set, and the model performance is evaluated by indicators such as accuracy, recall, and F1 score. If the model performance does not meet the preset accuracy requirements, it is optimized by regularization, adjusting the network structure, increasing the amount of data, or using integrated learning strategies until the model performance is stable and meets the preset accuracy requirements. The trained intent recognition model can perform intent-side on the scene interaction text data, output the predicted probability of each type of business scenario, and determine the user's intention by screening out the categories with the highest predicted probability or the top N. It is understandable that in other embodiments, the intent recognition model can also be based on other deep learning algorithms, such as a GRU model (GateRecurrent Unit) built on an RNN (Recurrent Neural Network), or a model built on a Transformer variant, etc.
[0082] In this embodiment, model training is performed through text interaction corpora in different business scenarios that carry intent labels determined by different intent recognition methods, which can enrich the diversity of training data and improve the robustness and generalization ability of the model.
[0083] S800, integrating the first intent recognition result and the second intent recognition result to obtain a target intent recognition result.
[0084] Ideally, the intent recognition results obtained by performing intent recognition on the same interactive data through different intent recognition methods should be the same. However, since there are multiple intent recognition methods and the accuracy of each intent recognition method may be different, it is easy for method A with high intent recognition accuracy to determine the specific intent label for the same interactive data, while method B with lower accuracy cannot determine the corresponding intent label, or the determined intent labels are inconsistent. Therefore, after obtaining the first intent recognition result and the second intent recognition result, the first intent recognition result and the second intent recognition result can be integrated, including unifying the format of the data, eliminating conflicting data, and merging data, to obtain the final target intent recognition result. If the intent recognition results obtained by intent recognition methods A and B both contain slot information and the intent category is the same, the slots that appear in both results and have the same value can be retained to ensure the consistency of the information, or the slot information of a certain result can be selected based on factors such as the recognition method and confidence, or other methods can be used.
[0085] In some other embodiments, integrating the first intent recognition result and the second intent recognition result may be: merging the first intent recognition result and the second intent recognition result into a set, that is, retaining all slots and their values appearing in all intent recognition results, that is, the target intent recognition result is the union of the first intent recognition result and the second intent recognition result. In this way, it is ensured that no information is omitted for subsequent analysis and optimization.
[0086] In the above-mentioned intent recognition method, multiple intent recognition methods and business scenario labels are introduced, and intent recognition configuration data corresponding to different intent recognition methods are pre-configured for each business scenario label to cover multiple intent recognition requirements in multiple business scenarios. The intent recognition model is trained by carrying a richer text interaction corpus with intent labels determined by different intent recognition methods to improve the generalization ability and accuracy of the model. In the actual intent recognition process, the integrated model recognition and the preset multiple intent recognition methods are used to perform intent recognition on the business scenario interaction data respectively through the intent recognition configuration data corresponding to the different intent recognition methods under each business scenario label, which can be applied to complex intent recognition needs and obtain more comprehensive and accurate first intent recognition results corresponding to different intent recognition methods. Then, the intent recognition of the business scenario interaction data is performed through the trained intent recognition model, which can efficiently and accurately predict the intent and obtain a more accurate second intent recognition result. Finally, by integrating the first intent recognition result and the second intent recognition result, a comprehensive, accurate and highly reliable intent recognition result can be obtained. In summary, the above solution, by combining multiple intent recognition methods, intent recognition models, and rich training data, can make the intent recognition solution adapt to the complex intent recognition needs in different business scenarios, realize accurate recognition of diverse intents, and obtain more comprehensive and accurate intent recognition results. Furthermore, in actual business applications, it can effectively improve business processing efficiency and user experience.
[0087] like Figure 4 As shown, in an exemplary embodiment, the intent recognition configuration data includes a regular expression for matching intent tags;
[0088] S400, including: S420, for each business scenario tag, matching the regular expression under the business scenario tag with the business scenario interaction data, and when the business scenario interaction data matches at least one regular expression, determining the intent tag corresponding to the business scenario tag as the identified intent tag.
[0089] In this embodiment, the regular expression is called a text expression, which is an abstract expression of the meaning of the business scenario. It realizes the retrieval of text content through the inclusion relationship of keywords and rich matching strategies, and mines user intentions according to the business scenario customization. One or more regular expressions can be maintained under a business scenario tag. Specifically, the regular expression is shown in Table 1 below:
[0090] Table 1 Regular expression rules
[0091]
[0092] Among them, "input form" is a rule expression form that is easy for users to understand. Users determine the specific text expression with "input form" and maintain it under the corresponding label. Before intent recognition, the server will automatically parse the "input form" entered by the user into an expression form supported by the programming language, and then search and match the interactive text data according to the preset matching strategy. Among them, the identification items are based on keywords, and the matching strategy supports a wider range of matching text content by combining "and", "or", "non", "interval" and their random combinations. Business personnel can add, delete, and modify the rules maintained under the business scenario label. At the same time, the server will perform integrity verification, legality verification, and regular expression analysis on the maintained rules.
[0093] For example, taking the "quota query" business scenario as an example, the regular expression can be shown in Table 2:
[0094] Table 2 Regular expression examples
[0095]
[0096] In specific implementation, the server may obtain business scenario interaction data in real time, extract interaction text data from the business scenario interaction data, and then obtain all business scenario tags in the scenario tag list, wherein the rules under the business scenario tags are parsed rules. For the rules under each business scenario tag, the current interaction text data is matched by the rules parsed under the current tag. Since the identification of each tag is independent of each other, the server can identify batch tags for a single piece of interaction text data, and can also identify batch tags for batch interaction text data at the same time. When the business interaction text data matches at least one regular expression, it is determined that the intent recognition is successful, and the intent tag corresponding to the business scenario tag is determined as the identified intent tag, and the interaction text data is marked with the corresponding intent tag. It can be understood that a piece of interaction text data can be marked with multiple intent tags (i.e., business scenario tags).
[0097] In this embodiment, intent recognition is performed through regular expressions, which can accurately capture specific vocabulary, phrases, sentence structures or formats related to the scenario in the interaction data, thereby achieving highly accurate recognition of user intent. In addition, regular expressions support customized recognition of different business scenarios. When business needs change, you only need to adjust or add corresponding regular expressions to quickly adapt, which has high flexibility and customization capabilities.
[0098] like Figure 5 As shown, in an exemplary embodiment, the intent recognition configuration data includes a business message code, S400, including: S440, for each business scenario tag, matching the business message code under the business scenario tag with the business scenario interaction data, and when the business scenario interaction data contains at least one business message code in the business message code, determining the intent tag corresponding to the business scenario tag as the identified intent tag.
[0099] A business message code is a code used to uniquely identify a type of business or event. As part of a message, this code helps the recipient quickly identify the type of business, its meaning, and how to handle it. Each business message code is unique and is used to distinguish it from other different types of business. In addition, business message codes usually follow a set of pre-defined standards or specifications to ensure that all parties have a consistent understanding of the code.
[0100] Business message codes may include, but are not limited to, SMS codes (codes representing business types sent via SMS), instant message codes (codes representing business types discovered through instant messaging systems), and session codes. For example, taking the SMS code as an example, the SMS code is a unified identifier. Each SMS code represents an SMS template, which reflects the content of the interactive SMS record sent by the customer service to the customer. The interactive SMS record is time-sensitive and can provide feedback on the customer's needs for a certain service over a period of time. For example, after a customer inquires about the "negotiated repayment" service, the customer service will often send a text message with the SMS code "001" containing the "negotiated repayment" operation process to notify the customer. Business personnel can add, delete, and modify the SMS code of the business scenario to establish a mapping relationship between the business scenario label and the SMS code. The SMS code of each label can be empty, or multiple SMS codes can be maintained.
[0101] Continuing from the previous embodiment, the service message code is taken as an example for explanation. After the intent recognition of the scene interaction data is performed by regular matching, the server can also obtain the SMS record from the beginning of the interaction between the customer service and the customer to the end of the interaction, such as within 5 minutes, to obtain the business scene interaction data. Then, traverse the scene tag list, compare the pre-configured SMS code under each business scene tag in the list with the SMS record, and determine whether the SMS record contains the pre-configured SMS code. If the SMS record contains any one or at least one of the SMS codes, it is considered that the SMS record in the current business scene may include the intent tag corresponding to the business scene tag, that is, the match is successful, and the intent tag corresponding to the business scene tag is determined as the identified intent tag. The SMS record is marked with the successfully matched intent tag, and the identification source is recorded as "SMS code". An interactive text can be marked with multiple intent tags by the "SMS code recognition" channel.
[0102] In this embodiment, by directly associating the business scenario tag with the business message code under it, the received interaction data can be understood and classified more accurately. When at least one matching business message code appears in the interaction data, the user's intention or the business context of the request can be quickly determined, reducing misunderstandings and misjudgments and improving user experience.
[0103] like Figure 6 As shown, in an exemplary embodiment, the intent recognition configuration data includes a business interaction code, S400, including: S460, for each business scenario tag, matching the business interaction code under the business scenario tag with the business scenario interaction data, and when the business scenario interaction data contains at least one business interaction code, determining the intent tag corresponding to the business scenario tag as the identified intent tag.
[0104] The business interaction code refers to the code used to identify different business operations. It is associated with some specific business operations performed by customer service for customers, and to a certain extent reflects the business content that customers want to handle. Specifically, business interaction codes include transaction codes, query codes, and service request codes. Among them, transaction codes are used to represent transaction operation records triggered by users themselves or by customer service for users. Query codes are used to represent information query requests initiated by customers or internal systems, such as account balance inquiries, transaction history inquiries, product information inquiries, etc. Service request codes involve requests for service applications or changes, such as card opening applications, account upgrades, service package changes, etc. Take the business interaction code as an example for explanation. Business personnel add, delete, and modify the transaction code of the business scenario to establish a mapping relationship between the business scenario label and the transaction code. The transaction code of each label can be empty or multiple transaction codes can be maintained.
[0105] Continuing from the previous embodiment, after the current interaction ends, the server can also obtain the transaction service records triggered by the customer service for the customer or the customer himself within a period of time from the beginning to the end of the interaction through customer identity authentication association, and use this as the accompanying data of the interaction text (recorded and transmitted together with the interaction text). Then, traverse the scene tag list, compare the pre-configured transaction code under each business scene tag with the transaction code record in the scene interaction data, and determine whether the transaction code record contains the pre-configured transaction code. If the transaction code record contains any one or at least one of the pre-configured transaction codes, it is determined that the current scene interaction data may include the intent corresponding to the business scene tag, that is, the match is successful, and the intent tag corresponding to the business scene tag is determined as the identified intent tag, and the scene interaction data is marked with the successfully matched intent tag, and the identification source is recorded as "transaction code". An interaction text can be marked with multiple intent tags through the "transaction code" channel.
[0106] In this embodiment, by providing a unified and easily identifiable code for different business operations, it is convenient to identify and process various business requests within the system or across systems. When at least one matching transaction code appears in the interaction data, the user's intention or the business background of the request can be quickly determined. In addition, through standardized interaction codes, the interaction process between the user and the system can be simplified, the user experience can be improved, and the problem location and resolution speed can be accelerated.
[0107] In an exemplary embodiment, the method further includes: adding different prefixes to the intent tags identified by different intent recognition methods to update the target intent recognition result, wherein the prefix is used to characterize the intent recognition method.
[0108] Continuing from the above embodiment, intent recognition is performed on scene interaction data through regular matching, SMS code recognition, transaction code recognition and model recognition. After the intent recognition results corresponding to various intent recognition methods are obtained, in order to facilitate business personnel to intuitively view the intent recognition results of different intent recognition methods, after obtaining the corresponding intent label through each intent recognition method, an N-bit prefix is added to the identified intent label, and each bit uses 0 or 1 to indicate the predicted source of the label to distinguish the intent recognition methods.
[0109] For example, for the same scene interaction data such as conversation data, the intent tags obtained by regular expression recognition are as follows:
[0110] Intent tag "quota query", tag code value A10101001;
[0111] The intent tag is "credit card repayment negotiation", and the tag code value is A10203001.
[0112] The intent label obtained through transaction code recognition is "credit limit inquiry", and no intent label is identified through the SMS code. The intent labels "credit limit inquiry" and "account risk abnormality" (A10301001) obtained through the intent recognition model are:
[0113] Then the final output result is the union of the recognition results obtained by the four intent recognition methods, namely "Credit limit query" (1101A10101001), "Credit card negotiation repayment" (1000A10203001) and "Account risk abnormality" (0001A10301001). By adding a 4-digit identifier before the label code, such as "1101" before "Credit limit query", it can be made clear that the source of the label is the regular expression (the first digit is 1), the transaction code (the second digit is 1), the SMS code did not recognize this label (the third digit is 0), and the intent recognition model (the fourth digit is 1).
[0114] In this embodiment, by adding a prefix to the label code of the intent label to identify the intent recognition method, and integrating the results based on the label code with the prefix, relevant personnel can understand the identification source of each intent label, and adaptive adjustments can be made during statistical analysis.
[0115] In an exemplary embodiment, the method further includes: S900, performing statistical analysis on the target intent recognition results, determining the accuracy of different intent recognition methods, and pushing an optimization adjustment prompt message when the accuracy is less than a preset accuracy threshold.
[0116] In practical applications, the accuracy of intent recognition results obtained by different methods may be different, and if the accuracy of some intent recognition methods is too low, optimization and adjustment are required to ensure the accuracy of the intent recognition results.
[0117] Continuing from the previous embodiment, after the target intent recognition results are obtained through different intent recognition methods, the target intent recognition results of a large amount of scene interaction data can be collected, and the accuracy of intent recognition of each intent recognition method can be determined by statistical analysis. When the accuracy is less than the preset accuracy threshold, for example, the accuracy is less than or equal to 90%, it is determined that the intent recognition method needs to be adjusted, and the server pushes an optimization adjustment prompt message so that the business personnel can check and adjust the intent label in time, and adjust the rules and intent recognition models maintained under the business scenario label. If the accuracy of the regular matching method, the message code recognition method, or the business interaction code recognition method is low, the regular expression, message code configuration data, and business interaction code configuration data under the business scenario label are adjusted accordingly. If the accuracy of the intent recognition model is low, the text interaction corpus containing the correct intent label in the actual interaction scenario is obtained, and the intent recognition model is optimized and adjusted through the text interaction corpus, and the model parameters are updated until the accuracy of the model meets the preset requirements.
[0118] In other embodiments, it is also possible to compare the intent recognition results obtained by different intent recognition methods for the same intent label, and then determine the intent recognition method that needs to be adjusted. For example, for the same intent label A, if in many cases, the intent label A is recognized by regular expressions, but is not recognized by the intent recognition model, it is determined that the intent recognition model needs to be optimized. The optimization process of the model can be that the server obtains the adjusted scene interaction data carrying the correct intent label fed back by the business personnel, inputs the adjusted data into the intent recognition model, continues to train the intent recognition model, and updates the model parameters of the intent recognition model to improve the accuracy of the model.
[0119] In this embodiment, the accuracy of the intent recognition results can be further improved by statistically analyzing the intent recognition results of different intent recognition methods and then adjusting and optimizing the different intent recognition methods.
[0120] In order to make a clearer description of the intention recognition method provided by the present application, the following is a specific embodiment and the attached Figure 7 To illustrate, this specific embodiment includes the following steps:
[0121] S200, obtaining business scenario interaction data.
[0122] S402, obtain multiple preset business scenario tags, and for each business scenario tag, match the regular expression under the business scenario tag with the business scenario interaction data. When the business scenario interaction data matches at least one regular expression, determine the intent tag corresponding to the business scenario tag as the identified intent tag, and add a prefix to the identified intent tag to identify the intent identification method.
[0123] S404, for each business scenario tag, match the SMS message code under the business scenario tag with the business scenario interaction data. When the business scenario interaction data contains at least one of the SMS message codes, determine the intent tag corresponding to the business scenario tag as the identified intent tag, and add a prefix to the identified intent tag to identify the intent identification method.
[0124] S406, for each business scenario tag, match the transaction code under the business scenario tag with the business scenario interaction data. When the business scenario interaction data contains at least one of the transaction codes, determine the intent tag corresponding to the business scenario tag as the identified intent tag, and add a prefix to the identified intent tag to identify the intent identification method.
[0125] S408, for each business scenario tag, match the business interaction code under the business scenario tag with the business scenario interaction data. When the business scenario interaction data contains at least one business interaction code, determine the intent tag corresponding to the business scenario tag as the identified intent tag, and add a prefix to the identified intent tag to identify the intent identification method.
[0126] S600, performing intent recognition on business scenario interaction data through a trained intent recognition model to obtain a second intent recognition result, wherein the intent recognition model is trained based on text interaction corpus carrying intent labels determined by different intent recognition methods.
[0127] S820: Determine the union of the first intent recognition result and the second intent recognition result as the target intent recognition result.
[0128] S900, statistically analyzing the target intent recognition results to determine the accuracy of different intent recognition methods, and when the accuracy is less than a preset accuracy threshold, pushing an optimization adjustment prompt message.
[0129] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0130] Based on the same inventive concept, the embodiment of the present application also provides an intention recognition device for implementing the intention recognition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the intention recognition device provided below can refer to the limitations of the intention recognition method above, and will not be repeated here.
[0131] In an exemplary embodiment, Figure 8 As shown, an intention recognition device is provided, including: a data acquisition module 810, a first intention recognition module 820, a second intention recognition module 830 and a data integration module 840, wherein:
[0132] The data acquisition module 810 is used to acquire business scenario interaction data;
[0133] A first intent recognition module 820 is used to obtain a plurality of preset business scenario tags, and based on the intent recognition configuration data corresponding to different intent recognition methods under each business scenario tag, respectively perform intent recognition on the business scenario interaction data to obtain a first intent recognition result, wherein the first intent recognition result includes intent recognition results corresponding to different intent recognition methods;
[0134] A second intent recognition module 830, configured to perform intent recognition on the business scenario interaction data by using a trained intent recognition model to obtain a second intent recognition result, wherein the intent recognition model is trained based on text interaction corpus carrying intent labels determined by different intent recognition methods;
[0135] The data integration module 840 is used to integrate the first intent recognition result and the second intent recognition result to obtain a target intent recognition result.
[0136] like Fig. 9 As shown, in an exemplary embodiment, the intent recognition configuration data includes a regular expression for matching the intent tag; the first intent recognition module 820 includes a regular matching unit 822, and the regular matching unit 822 is used to match the regular expression under the business scenario tag with the business scenario interaction data for each business scenario tag, and when the business scenario interaction data matches at least one regular expression, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
[0137] In an exemplary embodiment, the intent recognition configuration data includes a business message code, and the first intent recognition module 820 also includes a business message code recognition unit 824, which is used to match the business message code under the business scenario tag with the business scenario interaction data for each business scenario tag, and when the business scenario interaction data contains at least one business message code in the business message code, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
[0138] In an exemplary embodiment, the intent recognition configuration data includes a business interaction code, and the first intent recognition module 820 also includes a business interaction code recognition unit 826, which is used to match the business interaction code under the business scenario tag with the business scenario interaction data for each business scenario tag, and when the business scenario interaction data contains at least one business interaction code, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
[0139] like Fig. 9 As shown, in an exemplary embodiment, the device also includes a prefix adding module 850 for adding different prefixes to the intent tags identified by different intent recognition methods to update the target intent recognition result, and the prefix is used to characterize the intent recognition method.
[0140] In an exemplary embodiment, the device also includes a model training module 812, which is used to obtain text interaction corpora carrying intent labels determined by different intent recognition methods in different business scenarios, preprocess the text interaction corpora, convert the preprocessed text interaction corpora into feature vector data, obtain a model training set, and train the constructed initial intent recognition model through the model training set until the accuracy of the initial intent recognition model meets the preset accuracy requirement, thereby obtaining an intent recognition model.
[0141] In an exemplary embodiment, the data integration module 840 is used to determine the union of the first intent recognition result and the second intent recognition result as the target intent recognition result.
[0142] like Fig. 9 As shown, in an exemplary embodiment, the device also includes a data optimization module 860, which is used to perform statistical analysis on the target intent recognition results, determine the accuracy of different intent recognition methods, and push optimization adjustment prompt messages when the accuracy is less than a preset accuracy threshold.
[0143] Each module in the above-mentioned intention recognition device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0144] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG10. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as text interaction corpus, scene interaction data and business scene labels. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an intention recognition method is implemented.
[0145] Those skilled in the art will understand that the structure shown in FIG. 10 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0146] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps in any of the above-mentioned intent recognition method embodiments are implemented.
[0147] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in any of the above-mentioned intent recognition method embodiments are implemented:
[0148] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above-mentioned intent recognition method embodiment when executed by a processor.
[0149] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0150] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0151] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for intention recognition, characterized in that: The method comprises: Obtain business scenario interaction data; Obtain a plurality of preset business scenario tags, and based on the intent recognition configuration data corresponding to different intent recognition methods under each business scenario tag, respectively perform intent recognition on the business scenario interaction data to obtain a first intent recognition result, wherein the first intent recognition result includes intent recognition results corresponding to different intent recognition methods; Performing intent recognition on the business scenario interaction data through a trained intent recognition model to obtain a second intent recognition result, wherein the intent recognition model is trained based on text interaction corpus carrying intent labels determined through different intent recognition methods; The first intent recognition result and the second intent recognition result are integrated to obtain a target intent recognition result.
2. The method according to claim 1, characterized in that The intent recognition configuration data includes a regular expression for matching intent tags; the intent recognition configuration data corresponding to different intent recognition methods under each business scenario tag respectively performs intent recognition on the business scenario interaction data, including: For each business scenario tag, matching the regular expression under the business scenario tag with the business scenario interaction data; In a case where the business scenario interaction data matches at least one of the regular expressions, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
3. The method according to claim 2, characterized in that The intention recognition configuration data includes a business message code, and the intention recognition configuration data corresponding to different intention recognition modes under each business scenario tag respectively performs intention recognition on the business scenario interaction data, including: For each business scenario tag, matching the business message code under the business scenario tag with the business scenario interaction data; In the case where the business scenario interaction data includes at least one of the business message codes, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
4. The method according to claim 3, characterized in that The intention recognition configuration data includes a business interaction code, and the intention recognition configuration data corresponding to different intention recognition modes under each business scenario tag respectively performs intent recognition on the business scenario interaction data, including: For each business scenario tag, matching the business interaction code under the business scenario tag with the business scenario interaction data; In a case where the business scenario interaction data includes the at least one business interaction code, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
5. The method according to any one of claims 1 to 4, characterized in that: After obtaining the target intention recognition result, the method further includes: Different prefixes are added to the intent tags identified by different intent identification methods to update the target intent identification result, wherein the prefix is used to characterize the intent identification method.
6. The method according to any one of claims 1 to 4, characterized in that: The intent recognition model is trained based on the following method: Obtain text interaction corpora in different business scenarios with intent labels determined by different intent recognition methods; Preprocessing the text interaction corpus; Convert the preprocessed text interaction corpus into feature vector data to obtain a model training set; The constructed initial intent recognition model is trained by using the model training set until the accuracy of the initial intent recognition model meets the preset accuracy requirement, thereby obtaining the intent recognition model.
7. The method according to any one of claims 1 to 4, characterized in that: The integrating the first intent recognition result and the second intent recognition result to obtain a target intent recognition result includes: The union of the first intent recognition result and the second intent recognition result is determined as a target intent recognition result.
8. The method according to any one of claims 1 to 4, characterized in that: After obtaining the target intention recognition result, the method further includes: Performing statistical analysis on the target intention recognition results to determine the accuracy of different intention recognition methods; When the accuracy is lower than the preset accuracy threshold, an optimization adjustment prompt message is pushed.
9. An intention recognition device, characterized in that: The device comprises: Data acquisition module, used to obtain business scenario interaction data; A first intent recognition module is used to obtain a plurality of preset business scenario tags, and based on the intent recognition configuration data corresponding to different intent recognition methods under each business scenario tag, respectively perform intent recognition on the business scenario interaction data to obtain a first intent recognition result, wherein the first intent recognition result includes intent recognition results corresponding to different intent recognition methods; A second intent recognition module, configured to perform intent recognition on the business scenario interaction data by using a trained intent recognition model to obtain a second intent recognition result, wherein the intent recognition model is trained based on text interaction corpus carrying intent labels determined by different intent recognition methods; A data integration module is used to integrate the first intent recognition result and the second intent recognition result to obtain a target intent recognition result.
10. The device according to claim 9, characterized in that The intent recognition configuration data includes a regular expression for matching intent tags; the first intent recognition module includes a regular matching unit, which is used to match the regular expression under the business scenario tag with the business scenario interaction data for each business scenario tag, and when the business scenario interaction data matches at least one regular expression, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
11. The device according to claim 10, characterized in that The intention identification configuration data includes a business message code, and the first intention identification module also includes a business message code identification unit. The business message code identification unit is used to match the business message code under the business scenario tag with the business scenario interaction data for each business scenario tag. When the business scenario interaction data contains at least one of the business message codes, the intention tag corresponding to the business scenario tag is determined as the identified intention tag.
12. The device according to claim 11, characterized in that The intention recognition configuration data includes a business interaction code, and the first intention recognition module also includes a business interaction code recognition unit, which is used to match the business interaction code under the business scenario tag with the business scenario interaction data for each business scenario tag, and when the business scenario interaction data contains at least one business interaction code, the intent tag corresponding to the business scenario tag is determined as the identified intent tag.
13. The device according to any one of claims 9 to 12, characterized in that The device also includes a prefix adding module, which is used to add different prefixes to the intent tags identified by different intent recognition methods to update the target intent recognition result, and the prefix is used to characterize the intent recognition method.
14. The device according to any one of claims 9 to 12, characterized in that The device also includes a model training module, which is used to obtain text interaction corpora carrying intent labels determined by different intent recognition methods in different business scenarios, preprocess the text interaction corpora, convert the preprocessed text interaction corpora into feature vector data, obtain a model training set, and train the constructed initial intent recognition model through the model training set until the accuracy of the initial intent recognition model meets the preset accuracy requirement, thereby obtaining the intent recognition model.
15. The device according to any one of claims 9 to 12, characterized in that The data integration module is used to determine the union of the first intent recognition result and the second intent recognition result as a target intent recognition result.
16. The device according to any one of claims 9 to 12, characterized in that The device also includes a data optimization module for performing statistical analysis on the target intent recognition results, determining the accuracy of different intent recognition methods, and pushing an optimization adjustment prompt message when the accuracy is less than a preset accuracy threshold.
17. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
19. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Dialogue intention recognition method, compound dialogue system and storage medium
CN119179767A
Vehicle operation method and device, electronic equipment and storage medium
CN119428764A
Interaction processing method and apparatus in the field of intelligent manufacturing, computer device, storage medium, and computer program product
WO2026061076A1
