Intention recognition method and device, terminal equipment, storage medium and computer program product

Through the intention card slot management technology, user questions are analyzed and matching and filling verification are performed, which solves the problem of low accuracy of intention recognition in intelligent customer service and improves the recognition accuracy and domain adaptability of multi-intent statements.

CN118568231APending Publication Date: 2024-08-30CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410711897.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The accuracy of intent recognition in existing intelligent customer service is low, mainly due to ambiguity, contextual effects and data scarcity issues, especially when there is insufficient data in emerging fields, resulting in inaccurate recognition of multi-intent statements.

Method used

Intent card slot management technology is used to receive user questions, analyze and obtain key information, and perform matching and filling verification based on pre-built intention card slots. It combines confidence calculation to determine the intent recognition result, solving the accuracy problem of intent recognition.

Benefits of technology

It improves the recognition accuracy of intelligent customer service for multi-intent sentences, adapts to languages ​​and terminology in different fields, and enhances the system's domain adaptability and user satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568231A
    Figure CN118568231A
Patent Text Reader

Abstract

The invention discloses an intention recognition method and device, terminal equipment, a storage medium and a computer program product, and relates to the technical field of intelligent customer service and natural language processing. Analyzing the user question to obtain key information, and matching a pre-constructed intention card slot based on the key information to obtain a matched card slot; and performing intention confirmation on the user question according to the matched card slot to obtain an intention recognition result. Therefore, the received user question is analyzed to obtain the key information in the user question, then the key information is matched through the previously constructed intention card slot to obtain the matched card slot, and finally the intention of the user question is determined according to the matched card slot to obtain the intention recognition result. The problem that the current intelligent customer service cannot accurately recognize the multi-intention statement is solved, and the intention recognition accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent customer service and natural language processing, and in particular to an intent recognition method, apparatus, terminal device, storage medium and computer program product. Background Art

[0002] In the existing intelligent customer service of IoT business, user intent recognition is a very important issue. User intent recognition refers to identifying the user's intention by analyzing the user's language and behavior, so as to provide corresponding services and support. At present, intent recognition in intelligent customer service mainly relies on natural language processing technology and machine learning algorithms. These technologies can analyze and understand the user's language to identify the user's intention.

[0003] However, due to the limitations of natural language processing technology and machine learning algorithms, the accuracy of intent recognition needs to be improved. One is the problem of ambiguity. The same sentence may have multiple different meanings, multiple optional intent recognition paths, and multiple intention directions of the selected paths. This will lead to a decrease in the accuracy of intent recognition. Another is the context problem. The user's intention may be affected by the context. If the context is not considered, the accuracy of intent recognition will also drop significantly. Finally, there is the problem of data scarcity. Accurate intent recognition requires massive amounts of data for training. However, in some special fields, such as the emerging Internet of Things, data accumulation time is short and data may be scarce, which will also affect the accuracy of intent recognition.

[0004] Currently, online intelligent customer service also encounters difficulties in domain adaptability. Since different fields have different languages ​​and terminology, proper nouns, hot words, etc., if the intent recognition model does not perform domain-specific adaptive learning and training, the accuracy will also decrease.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide an intent recognition method, apparatus, device, storage medium and computer program product, aiming to solve the technical problem of inaccurate recognition of multi-intent sentences by current intelligent customer service.

[0007] To achieve the above objectives, the present application proposes an intention recognition method, the method comprising:

[0008] Receive user questions;

[0009] Analyze the user's question to obtain key information, and match the pre-built intent slot based on the key information to obtain a matching slot;

[0010] The intention of the user's question is confirmed according to the matching card slot to obtain an intention recognition result.

[0011] In one embodiment, before the step of matching the pre-built intended card slot based on the key information to obtain the matching card slot, the step further includes:

[0012] Based on the intelligent customer service system, data is collected to obtain user input information, and keyword analysis is performed on the user input information to obtain question and answer keywords;

[0013] Extracting information from the question and answer keywords to obtain card slot information, and constructing a number of initial card slots through the card slot information, wherein the card slot information includes a card slot name, a card slot type, and a value range;

[0014] Performing a correlation analysis on the plurality of initial card slots according to the value interval to obtain a card slot correlation relationship of the plurality of initial card slots;

[0015] The intended card slot is obtained by constructing the plurality of initial card slots and the card slot association relationship.

[0016] In one embodiment, the step of obtaining the intended card slot by constructing the plurality of initial card slots and the card slot association relationship comprises:

[0017] Classifying the plurality of initial card slots according to a preset classification standard to obtain a first classification result;

[0018] Determine the data structure of the plurality of initial card slots according to the first classification result and the card slot name, and obtain an initial intended card slot;

[0019] A filling rule is set for the initial intent slot based on the data structure of the initial intent slot, and the initial intent slot with the filling rule set is output as an intent slot.

[0020] In one embodiment, the step of analyzing the user's question to obtain key information, and matching the pre-built intent slot based on the key information to obtain the matching slot includes:

[0021] Preprocessing the user questions to obtain preprocessed user questions, and traversing the preprocessed user questions to obtain key information;

[0022] Matching the intended card slot with the key information to obtain a first matching card slot, and filling the key information into the first matching card slot based on the filling rule to obtain a second matching card slot;

[0023] Performing filling verification on the second matching card slot to obtain a filling verification result;

[0024] When the filling verification result is passed, the second matching card slot is output as a matching card slot.

[0025] In one embodiment, the step of confirming the intention of the user's question according to the matching card slot to obtain the intention recognition result includes:

[0026] Performing intent analysis through the matching card slot to obtain several user intentions;

[0027] Calculating the confidence of the plurality of user intentions to obtain confidence scores of the plurality of user intentions;

[0028] According to the confidence scores of the plurality of user intentions, the intention is determined by using a preset confidence threshold to obtain an intention recognition result.

[0029] In one embodiment, the step of determining the intentions of the plurality of users according to the confidence scores of the plurality of user intentions by using a preset confidence threshold to obtain the intention recognition result includes:

[0030] According to the confidence scores of the plurality of user intentions, the plurality of user intentions are classified by the confidence threshold to obtain a second classification result, wherein the second classification result includes one or more of the plurality of first user intentions whose confidence scores are greater than the confidence threshold and the plurality of second user intentions whose confidence scores are less than the confidence threshold;

[0031] If there are several first user intentions in the second classification result, outputting the user intention with the highest confidence score among the several first user intentions as the intention recognition result;

[0032] If the second classification result does not contain the first user intentions, the second user intentions are sent to a preset employee determination terminal for determination to obtain a determination result, and the determination result is output as an intention recognition result.

[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes an intention recognition device, the intention recognition device comprising:

[0034] A receiving module, used for receiving questions from users;

[0035] A matching module, used to analyze the user's question to obtain key information, and match the pre-built intent slot based on the key information to obtain a matching slot;

[0036] The determination module is used to confirm the intention of the user's question according to the matching card slot to obtain an intention recognition result.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes an intent recognition device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the intent recognition method described above.

[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the intent recognition method described above are implemented.

[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the intent recognition method described above.

[0040] One or more technical solutions proposed in this application have at least the following technical effects:

[0041] The embodiment of the present application proposes an intent recognition method, device, equipment, storage medium and computer program product, which receives user questions; analyzes the user questions to obtain key information, and matches the pre-constructed intent slots based on the key information to obtain matching slots; confirms the intent of the user questions according to the matching slots to obtain intent recognition results. Thus, the received user questions are analyzed to obtain key information in the user questions, and then the key information is matched with the previously constructed intent slots to obtain matching slots, and finally the intent of the user questions is determined according to the matching slots to obtain intent recognition results, which solves the problem of inaccurate recognition of multi-intent statements by current intelligent customer service and improves the accuracy of intent recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0044] Figure 1 A flowchart of the first embodiment of the method for identifying intent of the present application is provided;

[0045] Figure 2This is a schematic diagram of intent recognition when the intent recognition method of this application is related to the smart client system without using card slot management;

[0046] Figure 3 This is a schematic diagram of the card slot involved in the identification method of the present application;

[0047] Figure 4 This is a schematic diagram of the intention identification method of the present application involving card slots based on the card slot association relationship and the initial card slot;

[0048] Figure 5 A brief flowchart of the intent recognition method provided in Example 2 of the present application;

[0049] Figure 6 A schematic diagram of the card slot filling involved in the intended identification method of this application;

[0050] Figure 7 This is a schematic diagram of the module structure of the intention recognition device according to an embodiment of the present application;

[0051] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the intent recognition method in the embodiment of the present application.

[0052] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0054] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0055] The main solution of the embodiment of the present application is: based on the intelligent customer service system, data collection is performed to obtain user input information, and keyword analysis is performed on the user input information to obtain question and answer keywords; information extraction is performed on the question and answer keywords to obtain slot information, and several initial slots are constructed through the slot information, wherein the slot information includes slot name, slot type and value range; according to the value range, the several initial slots are analyzed for correlation to obtain the slot correlation relationship of the several initial slots; the intended slots are constructed through the several initial slots and the slot correlation relationship. The several initial slots are classified according to the preset classification standard to obtain the first classification result; according to the first classification result and the slot name, the data structure of the several initial slots is determined to obtain the initial intended slot; the initial intended slot is filled with rules based on the data structure of the initial intended slot, and the initial intended slot with the filled rules set is output as the intended slot. Preprocess the user questions to obtain preprocessed user questions, and traverse the preprocessed user questions to obtain key information; match the intent slots with the key information to obtain a first matching slot, and fill the key information into the first matching slot based on the filling rule to obtain a second matching slot; perform filling verification on the second matching slot to obtain a filling verification result; when the filling verification result is passed, output the second matching slot as a matching slot. Perform intent analysis on the matching slots to obtain several user intentions; perform confidence calculation on the several user intentions to obtain confidence scores of the several user intentions; determine the intent based on the confidence scores of the several user intentions through a preset confidence threshold to obtain an intent recognition result. According to the confidence scores of the several user intentions, the several user intentions are classified by the confidence threshold to obtain a second classification result, wherein the second classification result includes one or more of several first user intentions with confidence scores greater than the confidence threshold and several second user intentions with confidence scores less than the confidence threshold; if there are several first user intentions in the second classification result, the user intention with the highest confidence score among the several first user intentions is output as the intention recognition result; if there are no several first user intentions in the second classification result, the several second user intentions are sent to the preset employee determination terminal for determination, a determination result is obtained, and the determination result is output as the intention recognition result. This solves the problem of inaccurate recognition of multi-intent statements by current intelligent customer service, realizes the recognition of intent, and improves the accuracy of intent.Based on the solution of the present invention, based on the reality that the current online intelligent customer service encounters difficulties in domain adaptability, because different fields have different languages ​​and terminology, proper nouns, hot words, etc., if the intent recognition model does not perform specific domain adaptive learning and training, it is impossible to guarantee whether the recognition result is accurate, thus the problem of low accuracy, an intent recognition method is designed, and the effectiveness of the intent recognition method of the present invention is verified when identifying user intentions. Finally, the accuracy of intent recognition performed by the method of the present invention is significantly improved.

[0056] In this embodiment, for ease of description, the following description is made with the intention recognition device as the execution subject.

[0057] Due to the limitations of natural language processing technology and machine learning algorithms in the existing technology, the accuracy of intent recognition needs to be improved. One of them is the problem of ambiguity. The same sentence may have multiple different meanings, multiple optional intent recognition paths, and multiple intention directions of the selected paths. This will lead to a decrease in the accuracy of intent recognition. Another is the context problem. When the user's intention may be affected by the context, if the context is not considered, the accuracy of intent recognition will also drop significantly. Then there is the problem of data scarcity. Accurate intent recognition requires massive data for training, but in some special fields, such as the emerging Internet of Things field, the data accumulation time is short and the data may be scarce, which will also affect the accuracy of intent recognition. Therefore, in the current online intelligent customer service, there are also difficulties in domain adaptability. Since different fields have different languages ​​and terms, proper nouns, hot words, etc., if the intent recognition model does not perform adaptive learning and training for specific fields, the accuracy will also drop.

[0058] This application provides a solution that uses intent slot management technology in an intelligent customer service system to help the system better understand user needs, improve customer service efficiency and user satisfaction. At the same time, intent slot management technology can also continuously improve the accuracy and intelligence of the system through continuous learning and optimization, providing users with better quality services.

[0059] From the above embodiments, it can be seen that the present application receives user questions; analyzes the user questions to obtain key information, and matches the pre-built intent slots based on the key information to obtain matching slots; confirms the intent of the user questions according to the matching slots to obtain intent recognition results. Thus, the received user questions are analyzed to obtain key information in the user questions, and then the key information is matched with the previously built intent slots to obtain matching slots, and finally the intent of the user questions is determined according to the matching slots to obtain intent recognition results, which solves the problem of inaccurate recognition of multi-intent statements by current intelligent customer service and improves the accuracy of intent recognition.

[0060] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, an intention device device, etc. that can realize the above functions. The following takes the intention recognition device as an example to illustrate this embodiment and the following embodiments.

[0061] Based on this, the present application embodiment provides an intention recognition method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the intention recognition method of the present application.

[0062] In this embodiment, the intention recognition method includes steps S01 to S07:

[0063] Step S01, receiving a user's question;

[0064] Intention recognition in this embodiment is aimed at scenarios where users ask questions, such as phone calls, text messages, or real-time network calls. In this embodiment, intention recognition is applied to the intelligent customer service system, mainly for users using communication devices such as mobile phones, tablets, and computers to conduct business consultation, business processing, and event inquiries;

[0065] Therefore, in the intelligent customer service system of this embodiment, user questions are first received, wherein the user questions mentioned here include the various business situations mentioned above, specifically "How much is my current business package fee", "What time is the earliest flight tomorrow", and "Please help me make a reservation at a restaurant at 3 pm", etc.

[0066] Step S06, analyzing the user's question to obtain key information, and matching the pre-built intention slot based on the key information to obtain a matching slot;

[0067] After receiving the user's question, it is necessary to perform a specific analysis to obtain key information. The key information here is not used directly to identify the user's intention, but is used to match with the pre-built intention slot to obtain a matching slot. The intention slot and matching slot mentioned here can be understood as a data structure for storing key information in the user's question, such as time, place, person, etc. Therefore, by determining the slot, the general direction of the user's intention can be known. Just like the three business situations mentioned above, it can be determined that "how much is my current business package" is the key information "current" and "business package", and the key information in "what time is the earliest flight tomorrow" is "tomorrow", "earliest", "plane" and "what time", and in "help me make a reservation for a restaurant at 3 pm", it can be determined that the key information is "reservation", "3 pm" and "restaurant", which can be matched with the pre-built intention slot to obtain a matched slot (i.e., a matching slot).

[0068] Step S07, confirming the intention of the user's question according to the matching card slot to obtain an intention recognition result.

[0069] In actual user questions, there may be multiple ways of understanding one expression. If the corresponding determination is not performed at this time, the intent recognition result may be inaccurate. Therefore, in this embodiment, the card slot management method has been used to obtain the corresponding matching card slot, but the matching card slot may also have multiple intentions. At this time, the confidence calculation and manual intervention method can be used to determine the final user intention and obtain the final user intention recognition result.

[0070] like Figure 2 As shown, Figure 2 The intent recognition method of this application relates to a schematic diagram of intent recognition when card slot management is not used in a smart client system.

[0071] The specific process of identifying user intent without using card slot management is as follows:

[0072] First, receive the questions sent by the user and perform corresponding preprocessing on the user's questions, such as word segmentation;

[0073] Then, after the word segmentation is completed, a specific conceptual sentence is obtained, such as "What is the business process of neb", and this sentence is input into the pre-built intent recognition model for intent recognition to obtain a matching result;

[0074] Then, when the matching result is a match, the corresponding user intent ID is obtained, and semantic understanding and command operations are performed based on the user intent ID, and finally the result of the operation is fed back to the user;

[0075] Finally, if the matching result is not a match, it will be sent to the AI ​​classification model that has been pre-trained with sample data for semantic prediction. When the accuracy probability of the prediction result exceeds 50%, the prediction result is output as the intent ID, and the corresponding semantic understanding and command operation are performed. If it cannot be identified or predicted, the user will be asked a supplementary statement, or the user will be directly informed that it cannot be identified.

[0076] It can be seen from the above scheme that in the process of intent recognition, there is no way to recognize the user's multiple intentions without adding a card slot, which will lead to deviations in the user's intent recognition results. However, the effect obtained by the above scheme when dealing with simpler intent recognition tasks also meets the relative business needs. Therefore, in this embodiment, the above scheme will be used simultaneously for intent recognition, which can be used for simpler business scenarios, the construction of intent card slots, and for subsequent card slot management methods to further judge the intent, that is, the two results are determined before the corresponding operations are performed.

[0077] In a feasible implementation manner, step S06, matching the pre-built intended card slot based on the key information, and obtaining the matching card slot may include steps S02 to S05 before the step:

[0078] Step S02, collecting data based on the intelligent customer service system, obtaining user input information, and performing keyword analysis on the user input information to obtain question and answer keywords;

[0079] Step S03, extracting information from the question and answer keywords to obtain card slot information, and constructing a number of initial card slots through the card slot information, wherein the card slot information includes a card slot name, a card slot type, and a value range;

[0080] Step S04, performing correlation analysis on the plurality of initial card slots according to the value interval to obtain a card slot correlation relationship of the plurality of initial card slots;

[0081] Step S05, obtaining the intended card slot by constructing the plurality of initial card slots and the card slot association relationship.

[0082] The intent recognition method in this embodiment is implemented based on the form of card slot management, and the design of card slot management is particularly important. In this embodiment, a corresponding intent card slot construction method is also provided, which can be specifically:

[0083] Based on the intention recognition of the intelligent customer service system, the user input information is analyzed and extracted, and the question and answer keywords are obtained based on the analysis of the user input information, and stored in the corresponding card slot for subsequent processing and answering of the user's questions;

[0084] In the design, it is necessary to consider the input form of customer service, the recognition of intent, and how to convert intent into a form that can be understood by the machine. It should be understood that the core of the card slot design is the definition and classification of the card slot. The card slot refers to the data structure used to store user input information. It can be a variable, an array, or an object. In the card slot design, each card slot needs to be defined, including the name, type, value range, etc. of the card slot. The classification of card slots can be divided according to different needs, such as classification according to information type, information source, information importance, etc.

[0085] It should be clear that the card slot is designed based on the card slot information, and the card slot information specifically includes the card slot name, card slot type and value range, etc. The name of the card slot can clearly express the information stored in it, such as "signing scenario" and "card opening scenario", etc. The type of the card slot should correspond to the type of information stored, such as string, number, date, etc., and the value range of the card slot should be defined according to actual needs. For example, "departure place" can be a city name, and the value range can be a list of cities across the country;

[0086] After the specific card slot information is allocated, its corresponding association relationship needs to be considered. There may be an association relationship between card slots. For example, there is an association relationship between "signing scene" and "card opening scene", which needs to be defined in the card slot design, such as Figure 3 As shown in the figure, in the acceptance of contract signing scenarios in the IoT business, according to the technical control and restriction requirements adopted in different contract signing scenarios, when designing the card slot, the 'card slot name' is designed as "smart home contract signing scenario", and the 'card slot value range' is designed with specific technical control terms such as "regional restriction", "machine card binding", and "limit control", so as to facilitate more accurate answers to customer questions in the future.

[0087] Specifically, the above step S05, the step of obtaining the intended card slot by constructing the plurality of initial card slots and the card slot association relationship includes:

[0088] Step S051, classifying the plurality of initial card slots according to a preset classification standard to obtain a first classification result;

[0089] Step S052, determining the data structure of the plurality of initial card slots according to the first classification result and the card slot name, and obtaining an initial intended card slot;

[0090] Step S053, setting a filling rule for the initial intent slot based on the data structure of the initial intent slot, and outputting the initial intent slot with the filling rule set as an intent slot.

[0091] After obtaining the initial card slot information, the extraction of key information card slots has been completed. That is, from the existing IoT intelligent customer service system, after data export, several keywords are extracted according to the frequency of customer concerns, namely: order, change, unsubscribe, etc. There are many key information based on these high-frequency words, and the acquisition of card slots is completed;

[0092] In the process of designing the card slot, Figure 4 As shown in the figure, it is clearly defined, including the card slot name, type (string, value, enumeration value, etc.), and the reasonable value range of the card slot is determined;

[0093] After analysis, it is also found that some slots have certain correlations. For example, the value of the 'Unsubscribe' slot must be the value of the 'Subscribe' slot and must be within the value range of the 'Subscribe' slot. Therefore, there is a correlation between the slots;

[0094] In view of the large number of issues that customers are concerned about and the fact that high-frequency keywords are also quite complex, in order to facilitate card slot management, the card slots are classified. After analyzing the card slots, the common classification standards are as follows:

[0095] (1) Classification based on information attributes, such as personal information, product information, etc.;

[0096] (2) Classification based on information source, such as user input and backend system return;

[0097] (3) Classify information according to its importance, such as required items, non-required items, etc.;

[0098] Meanwhile, in the design of the data structure of the card slot, the data structure of a card slot can be a variable, an object or an array. Different types of card slots use corresponding appropriate data structures.

[0099] Finally, in order to ensure the rationality of the slot filling values, the slot filling rules are designed. For example, the user input information is mapped to the specified slot. The slot can be understood as a data structure used to store key information in the user's question, such as time, place, person and other types. When filling the slot, the time slot can only be filled with time type data, the location slot can be filled according to the geographical range, and the person slot can be filled with reference to the role classification.

[0100] Furthermore, after the card slot is designed according to the above process, the designed card slot can be put online in the version of intelligent customer service. After multiple iterations and tests with real online data, it is verified whether the card slot design meets the business needs. At the same time, according to the output analysis of the test results, it is continuously revised and improved, so as to gradually optimize the card slot design and improve the accuracy of customer intent recognition.

[0101] During the iterative optimization process, a question library function can also be provided to support on-site personnel to track and enter common problems in a timely manner, so as to share the card slot design results with product / business managers and continuously perform maintenance and upgrade improvements.

[0102] This embodiment adopts the above scheme, specifically by receiving user questions; analyzing the user questions to obtain key information, and matching the pre-built intent slots based on the key information to obtain matching slots; confirming the intent of the user questions according to the matching slots to obtain intent recognition results. Thus, the received user questions are analyzed to obtain key information in the user questions, and then the key information is matched with the previously built intent slots to obtain matching slots, and finally the intent of the user questions is determined according to the matching slots to obtain intent recognition results, which solves the problem of inaccurate recognition of multi-intent statements by current intelligent customer service and improves the accuracy of intent recognition.

[0103] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 5 , step S06, analyzing the user's question to obtain key information, and matching the pre-built intention slot based on the key information, the step of obtaining the matching slot also includes steps S061 to S064:

[0104] Step S061, preprocessing the user questions to obtain preprocessed user questions, and traversing the preprocessed user questions to obtain key information;

[0105] Step S062, matching the intended card slot with the key information to obtain a first matching card slot, and filling the key information into the first matching card slot based on the filling rule to obtain a second matching card slot;

[0106] Step S063, performing filling verification on the second matching card slot to obtain a filling verification result;

[0107] Step S064: when the filling verification result is passed, outputting that the second matching card slot is a matching card slot.

[0108] The design of the card slot has been described in the first embodiment above, so the intention card slot can now be used to identify the user's intention;

[0109] After receiving the user's question, it is first pre-processed accordingly, including but not limited to word segmentation, part-of-speech tagging and other operations, so as to facilitate subsequent processing;

[0110] Traverse each word in the preprocessed user question and match it with the previously constructed intent slot to obtain the first matching slot information. In actual business scenarios, the traversal process can be to identify entities in the user question through named entities, such as time, place, person, etc., for specific slot matching, and the matching can be based on keyword matching, part of speech matching, etc. If a matching slot is found, fill the word into the corresponding slot. At this time, several corresponding slots after the word filling are obtained, that is, the first matching slot;

[0111] In the first matching card slot, the information obtained by simply filling the words into the card slot may be semantically incoherent or abrupt. Therefore, the first matching card slot can be filled based on the filling rules set in the above embodiment. For example, if there are multiple words in the user's question that match the same card slot, the card slot can be completed according to the context information. The specific description can be: the user enters "go to Beijing at 3 pm tomorrow", "tomorrow" can be filled into the date card slot, "3 pm" can be filled into the time card slot, and "Beijing" can be filled into the location card slot, and the specific card slot filling is completed;

[0112] Finally, the filled slot is verified to ensure that the filled information meets expectations. For example, for a date slot, it can be checked whether the filled date is legal. If the verification result is passed, the filled slot is output as a matching slot.

[0113] The above slot filling is as follows Figure 6 As shown, Figure 6 This is a schematic diagram of the card slot filling involved in the intended identification method of this application:

[0114] When users book a hotel, they can express their needs to book a hotel to the intelligent customer service system through voice or text. The system extracts the user's check-in time, location, room type and other information through card slot filling technology, and makes a hotel reservation based on this information;

[0115] When users make flight inquiries, they can query the intelligent customer service system for flight information. The system extracts the user's departure place, destination, date and other information through card slot filling technology, and returns the corresponding flight information;

[0116] When recommending package products to users, users can consult the IoT intelligent customer service system for product recommendations. The system extracts user needs, budget and other information through card slot filling technology, and gives corresponding package product recommendations.

[0117] Specifically, in the above-mentioned embodiment 1, the step S07, confirming the intention of the user's question according to the matching card slot, and obtaining the intention recognition result also includes steps S071 to S073:

[0118] Step S071, performing intent analysis through the matching card slot to obtain several user intentions;

[0119] Step S072, calculating the confidence of the plurality of user intentions to obtain confidence scores of the plurality of user intentions;

[0120] Step S073, according to the confidence scores of the plurality of user intentions, the intention is determined by using a preset confidence threshold to obtain an intention recognition result.

[0121] It should be clear that in the intelligent customer service dialogue system, the user's input may be ambiguous or incomplete, so it is necessary to confirm the intention to ensure that the user's intention is correctly understood. In the matching card slot, due to the incompleteness of the user's input or the diversity of semantics, there may be multiple intentions that need to be confirmed;

[0122] Therefore, the intent analysis is first performed on the matching card slot to obtain several user intents, and then the corresponding confidence calculation is performed on the several user intents. Among them, the confidence is the evaluation method used to determine the matching intent. The potential matching items are scored according to the "intent confidence score" (also called "confidence score"), and the value range is from 0.0 (completely uncertain) to 1.0 (completely certain). After the confidence calculation, the confidence scores of several user intents can be obtained;

[0123] Finally, based on the confidence analysis of multiple user intentions, the user intention is determined through a pre-set confidence threshold to obtain the intention recognition result.

[0124] More specifically, in the above step S073, according to the confidence scores of the plurality of user intentions, the step of determining the plurality of user intentions by a preset confidence threshold to obtain the intention recognition result includes:

[0125] Step S0731, classifying the plurality of user intentions by the confidence threshold according to the confidence scores of the plurality of user intentions to obtain a second classification result, wherein the second classification result includes one or more of the plurality of first user intentions whose confidence scores are greater than the confidence threshold and the plurality of second user intentions whose confidence scores are less than the confidence threshold;

[0126] Step S0732: if there are several first user intentions in the second classification result, outputting the user intention with the highest confidence score among the several first user intentions as the intention recognition result;

[0127] Step S0733: if the second classification result does not contain the first user intentions, the second user intentions are sent to a preset employee determination terminal for determination, a determination result is obtained, and the determination result is output as an intention recognition result.

[0128] Once intent is scored without considering other factors, three outcomes can occur:

[0129] 1) If the confidence score of the top-scoring intent is greater than or equal to the confidence threshold, the system returns it as a match;

[0130] 2) If no intent meets the threshold, the system matches the fallback intent;

[0131] 3) If no intent meets the threshold and no fallback intent is defined, the system will not match the intent;

[0132] In the confidence intention confirmation of the card slot management, the matching items returned by the first system are used as the confirmation basis, and the most matching intention is confirmed and saved, thereby completing the intention reconfirmation of the card slot management;

[0133] At this point, it can be known that when a user intention exceeding the confidence threshold appears in the second classification result, the user intention with the highest confidence score is selected as the intention recognition result;

[0134] However, when the second classification result does not contain user intent exceeding the confidence threshold, it can also be sent to the employee determination end for intent determination to obtain the user's intent recognition result, which can be specifically as follows: In some cases, intent confirmation may not be fully automated and requires manual intervention for confirmation. This can be done by displaying the uncertain intent to manual customer service for judgment, or by setting a threshold to decide whether manual intervention is required. Manual intervention can improve the accuracy of intent confirmation, but it also increases labor costs and response time.

[0135] This embodiment adopts the above scheme, specifically preprocessing the user questions to obtain preprocessed user questions, and traversing the preprocessed user questions to obtain key information; matching the intent card slot with the key information to obtain a first matching card slot, and filling the key information into the first matching card slot based on the filling rule to obtain a second matching card slot; performing filling verification on the second matching card slot to obtain a filling verification result; when the filling verification result is passed, outputting the second matching card slot as a matching card slot. In this way, the recognition of user intent is realized, the problem of inaccurate recognition of multi-intent statements by current intelligent customer service is solved, and the accuracy of intent recognition is improved.

[0136] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the intended identification method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0137] This application also provides an intention recognition device, please refer to Figure 7 , the intention recognition device comprises:

[0138] A receiving module, used for receiving questions from users;

[0139] A matching module, used to analyze the user's question to obtain key information, and match the pre-built intent slot based on the key information to obtain a matching slot;

[0140] The determination module is used to confirm the intention of the user's question according to the matching card slot to obtain an intention recognition result.

[0141] The intention recognition device provided by the present application adopts the intention recognition method in the above embodiment, which can solve the technical problem of intention recognition. Compared with the prior art, the beneficial effects of the intention recognition device provided by the present application are the same as the beneficial effects of the intention recognition method provided by the above embodiment, and the other technical features in the intention recognition device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0142] The present application provides an intent recognition device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the intent recognition method in the above-mentioned embodiment one.

[0143] Reference below Figure 8 , which shows a schematic diagram of the structure of an intention recognition device suitable for implementing the embodiment of the present application. The intention recognition device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The intention recognition device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0144] like Figure 8As shown, the intention recognition device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the intention recognition device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the intention recognition device to communicate wirelessly or wired with other devices to exchange data. Although the intention recognition device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0145] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0146] The intent recognition device provided by this application adopts the intent recognition method in the above embodiment, which can solve the technical problem of inaccurate recognition of multi-intent sentences by current intelligent customer service. Compared with the prior art, the beneficial effects of the intent recognition device provided by this application are the same as the beneficial effects of the intent recognition method provided by the above embodiment, and the other technical features in the intent recognition device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0147] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0148] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0149] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the intention recognition method in the above-mentioned embodiment.

[0150] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0151] The computer-readable storage medium may be included in the intent recognition device; or may exist independently without being assembled into the intent recognition device.

[0152] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the intent recognition device, the intent recognition device can: recognize intent.

[0153] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0154] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0155] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0156] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned intent recognition method, and can solve the technical problem of inaccurate recognition of multi-intent statements by current intelligent customer service. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the intent recognition method provided in the above-mentioned embodiment, and will not be elaborated here.

[0157] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned intention recognition method when executed by a processor.

[0158] The computer program product provided by this application can solve the technical problem of inaccurate recognition of multi-intent statements by current intelligent customer service. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as those of the intent recognition method provided by the above embodiment, which will not be elaborated here.

[0159] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for intention recognition, characterized in that: The intention recognition method is applied to an intelligent customer service system, and the intention recognition method includes: Receive user questions; Analyze the user's question to obtain key information, and match the pre-built intent slot based on the key information to obtain a matching slot; The intention of the user's question is confirmed according to the matching card slot to obtain an intention recognition result.

2. The method according to claim 1, characterized in that Before the step of matching the pre-built intention slot based on the key information to obtain the matching slot, the step further includes: Based on the intelligent customer service system, data is collected to obtain user input information, and keyword analysis is performed on the user input information to obtain question and answer keywords; Extracting information from the question and answer keywords to obtain card slot information, and constructing a number of initial card slots through the card slot information, wherein the card slot information includes a card slot name, a card slot type, and a value range; Performing a correlation analysis on the plurality of initial card slots according to the value interval to obtain a card slot correlation relationship of the plurality of initial card slots; The intended card slot is obtained by constructing the plurality of initial card slots and the card slot association relationship.

3. The method according to claim 2, characterized in that The step of obtaining the intended card slot by constructing the plurality of initial card slots and the card slot association relationship comprises: Classifying the plurality of initial card slots according to a preset classification standard to obtain a first classification result; Determine the data structure of the plurality of initial card slots according to the first classification result and the card slot name, and obtain an initial intended card slot; A filling rule is set for the initial intent slot based on the data structure of the initial intent slot, and the initial intent slot with the filling rule set is output as an intent slot.

4. The method according to claim 3, characterized in that The step of analyzing the user's question to obtain key information, and matching the pre-built intent slot based on the key information to obtain the matching slot includes: Preprocessing the user questions to obtain preprocessed user questions, and traversing the preprocessed user questions to obtain key information; Matching the intended card slot with the key information to obtain a first matching card slot, and filling the key information into the first matching card slot based on the filling rule to obtain a second matching card slot; Performing filling verification on the second matching card slot to obtain a filling verification result; When the filling verification result is passed, the second matching card slot is output as a matching card slot.

5. The method according to claim 1, characterized in that The step of confirming the intention of the user's question according to the matching card slot to obtain the intention recognition result includes: Performing intent analysis through the matching card slot to obtain several user intentions; Calculating the confidence of the plurality of user intentions to obtain confidence scores of the plurality of user intentions; According to the confidence scores of the plurality of user intentions, the intention is determined by using a preset confidence threshold to obtain an intention recognition result.

6. The method according to claim 5, characterized in that The step of determining the intentions of the plurality of users according to the confidence scores of the plurality of user intentions by using a preset confidence threshold to obtain an intention recognition result comprises: According to the confidence scores of the plurality of user intentions, the plurality of user intentions are classified by the confidence threshold to obtain a second classification result, wherein the second classification result includes one or more of the plurality of first user intentions whose confidence scores are greater than the confidence threshold and the plurality of second user intentions whose confidence scores are less than the confidence threshold; If there are several first user intentions in the second classification result, outputting the user intention with the highest confidence score among the several first user intentions as the intention recognition result; If the second classification result does not contain the first user intentions, the second user intentions are sent to a preset employee determination terminal for determination to obtain a determination result, and the determination result is output as an intention recognition result.

7. An intention recognition device, characterized in that: The device comprises: A receiving module, used for receiving questions from users; A matching module, used to analyze the user's question to obtain key information, and match the pre-built intent slot based on the key information to obtain a matching slot; The determination module is used to confirm the intention of the user's question according to the matching card slot to obtain an intention recognition result.

8. An intention recognition device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the intention recognition method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the intention recognition method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the intention recognition method according to any one of claims 1 to 6 are implemented.