Session processing method and apparatus, computer device, and storage medium
By identifying and analyzing the intent change relationships in the conversation intent sequence, the problem of intent flow during intelligent robot conversations is solved, achieving more accurate information processing and improved user experience.
Patent Information
- Application Number
- CN202311182029.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-13
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-09-13
AI Technical Summary
Existing technologies cannot effectively identify and process the flow of intent during conversations with intelligent robots, resulting in a failure to meet user needs and the expected conversational effects in a timely manner.
By identifying the current session intent during the session and determining the session intent sequence based on historical session content, we can perform intent change analysis, identify intent flow, and optimize business processes by combining intent change relationship display and user profile updates.
It improves information processing capabilities during conversations, accurately identifies intent flow, and enhances user experience and optimizes business processes.
Smart Images

Figure CN117972028B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of big data technology, and in particular to a session processing method, session processing apparatus, computer equipment, and computer-readable storage medium. Background Technology
[0002] Intent recognition is a typical task in text classification. For example, in the dialogue process of intelligent robots, intent recognition is performed on the user's input text to provide feedback content corresponding to the intent. Intent recognition technology focuses on how to identify the intent and how to identify multiple possible intents. However, current methods that can only identify the intent of each sentence in the conversation text are no longer sufficient to meet the needs of conversation processing. Summary of the Invention
[0003] Therefore, it is necessary to provide a session processing method, a session processing apparatus, a computer device, and a computer-readable storage medium to address the aforementioned technical problems.
[0004] Firstly, this application provides a session processing method, the method comprising:
[0005] Retrieve the current session content during the session;
[0006] Identify the current session intent of the current session content;
[0007] Based on the historical session intents of the historical session content and the current session intent, a session intent sequence is determined, wherein the historical session content is the session content preceding the current session content during the session.
[0008] Perform intent change analysis on the session intent sequence to obtain the intent change relationship during the session.
[0009] Based on the session processing method provided in the embodiments of this application, after identifying the current session intent of the current session content during the session, it also determines the session intent sequence based on the historical session intent of the historical session content during the session, and then performs intent change analysis on the session intent sequence to determine the intent change relationship during the session, that is, it can identify the intent flow during the session, thereby meeting the need to identify intent flow during the session, which helps to improve the information processing needs based on the session process.
[0010] In some embodiments, the method further includes: displaying the current session intent at a first position in the session interface corresponding to the current session content.
[0011] Therefore, during the conversation, the current conversation intent of the current conversation content is displayed in the first position corresponding to the current conversation content in the conversation interface, which can help to intuitively understand the current conversation intent of the current conversation content.
[0012] In some embodiments, the method further includes: displaying the intent change relationship at a second position in the session interface corresponding to the current session content.
[0013] Therefore, during the conversation, the intention change relationship is also displayed in the second position corresponding to the current conversation content in the conversation interface, which can help to intuitively understand the intention change relationship during the conversation.
[0014] In some embodiments, displaying the intent change relationship at a second position in the conversation interface corresponding to the current conversation content includes:
[0015] In the second position corresponding to the current conversation content in the conversation interface, the intention change relationship is animated.
[0016] Therefore, when displaying the relationship of changing intentions, the flow of intentions can be vividly shown by animate, which is intuitive and can enhance the interest.
[0017] In some embodiments, performing intent change analysis on the session intent sequence to obtain the intent change relationship during the session includes:
[0018] In the preset intent change relationship database, search for intent change relationships that match the session intent sequence, and use the found intent change relationships as intent change relationships in the session process.
[0019] Therefore, when determining the intention change relationship, the corresponding intention change relationship can be obtained by directly searching the database, which is convenient and efficient.
[0020] In some embodiments, performing intent change analysis on the session intent sequence to obtain the intent change relationship during the session includes:
[0021] By using a pre-trained intent change analysis model, intent change analysis is performed on the conversation intent sequence to obtain the intent change relationship during the conversation.
[0022] Therefore, by using the pre-trained intent change analysis model, intent change analysis is performed on the conversation intent sequence to obtain the intent change relationship in the conversation process. Since the intent change analysis model is trained, processing the intent change relationship through the intent change analysis model helps to improve the accuracy of the obtained intent change relationship.
[0023] In some embodiments, the intent change analysis is implemented through an intent change analysis model, and the intent change analysis model is obtained by training it in the following ways:
[0024] Obtain a sample session intent sequence, wherein the sample session intent sequence includes multiple sample session intents;
[0025] The word vectors of each sample conversation intent are obtained by using the intent change analysis model to be trained, resulting in a sequence of sample conversation intent word vectors. Vector relationship operations are performed on each pair of word vectors in the sequence of sample conversation intent word vectors to obtain the operation results. Based on the vector calculation results, the sample intent change relationship corresponding to each pair of word vectors is determined.
[0026] Based on the sample intent change relationships and the intent change relationship labels corresponding to each pair of sample session intents, the parameters of the intent change analysis model to be trained are updated.
[0027] Therefore, in the process of training the intent change analysis model, vector operations are performed on the word vectors of the conversation intent of each sample, and the sample intent change relationship is determined by combining the operation results. The sample intent change relationship determined in this way is more accurate. On this basis, the parameters of the intent change analysis model to be trained are updated, which helps to improve the accuracy of the obtained intent change analysis model in recognizing intent change relationships.
[0028] In some embodiments, the vector relationship operation includes addition, subtraction, scalar multiplication, and dot product / cross product operations, and the operation result includes the addition result, subtraction result, scalar multiplication result, and dot product / cross product result; determining the sample intent change relationship corresponding to each pair of word vectors based on the vector calculation result includes:
[0029] The intention change relationship corresponding to the target operation result is determined as the sample intention change relationship corresponding to each pair of word vectors. The target operation result is the operation result with the highest confidence among the addition operation result, subtraction operation result, scalar multiplication operation result, and dot product / cross product operation result.
[0030] Therefore, in the process of vector operation on word vectors of conversation intent for each sample, multiple vector operations are performed, and the operation result with the highest confidence is determined to determine the corresponding relationship of sample intent change. Based on this, the operation results are combined to determine the sample intent change relationship. The sample intent change relationship determined in this way is more accurate and helps to improve the accuracy of the obtained intent change analysis model in identifying intent change relationship.
[0031] In some embodiments, the method further includes: updating the user profile in the session interface of the current session based on the intent change relationship.
[0032] Therefore, by combining the identified intention changes, updating the user profile in the current session's interface helps improve the accuracy of the obtained user profile. In the subsequent information processing based on the user profile, the accuracy of information processing can also be further improved.
[0033] In some embodiments, the intended change relationship includes: an enhancement relationship, a counteracting relationship, an annexation relationship, and a transfer relationship.
[0034] Therefore, by setting various intention change relationships, a refined division of intention change relationships can be achieved, which helps to improve the accurate expression and identification of intention change relationships.
[0035] In some embodiments, the method further includes:
[0036] Obtain the intent change relationship of related users of the target business, and sort out the business nodes and / or business processes corresponding to the superimposed session intent of the related users;
[0037] Based on the business nodes and / or business processes corresponding to the overlay session intent of the associated users, optimize the business process of the target business.
[0038] Therefore, after obtaining the intent change relationship during the session, after the session ends, based on the intent change relationship of related users of the target business, we can sort out the business nodes and / or business processes corresponding to the superimposed session intent of related users. This will enable us to sort out common business nodes and / or common business processes. Based on the common business nodes and / or common business processes, it is helpful to analyze the business issues and links that users value. On this basis, we can optimize the target business process, which will help optimize the business process.
[0039] In some embodiments, the method further includes:
[0040] Obtain the relationship between the intent changes of different services of the target user, and sort out the business nodes and / or business processes corresponding to the overlapping session intents of different services;
[0041] Based on the business nodes and / or business processes corresponding to the overlay session intents of different services, optimize the business processes of the different services.
[0042] Therefore, after obtaining the intent change relationship during the session, after the session ends, based on the intent change relationship of the target user for different services, we can sort out the business nodes and / or business processes corresponding to the superimposed session intents of different services. This allows us to sort out the common business nodes and / or common business processes of different services for the target user. Based on the common business nodes and / or common business processes, it is helpful to analyze the business issues and links that users value. On this basis, we can optimize the target business process, which is conducive to the optimization of the business process.
[0043] Secondly, this application provides a session processing apparatus, the apparatus comprising:
[0044] The session content acquisition module is used to acquire the current session content during the session process;
[0045] An intent recognition module is used to identify the current session intent of the current session content;
[0046] The intent sequence determination module is used to determine a session intent sequence based on the historical session intents of the historical session content and the current session intent, wherein the historical session content is the session content before the current session content during the session.
[0047] The intent change analysis module is used to perform intent change analysis on the session intent sequence to obtain the intent change relationship in the session process.
[0048] Thirdly, this application provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method in any of the embodiments described above.
[0049] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method in any of the embodiments described above.
[0050] Fifthly, this application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method in any of the embodiments described above.
[0051] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0052] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiments below. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0053] Figure 1 This is a schematic diagram illustrating application scenarios of some embodiments of the session processing method of this application;
[0054] Figure 2 This is a flowchart illustrating the session processing method in some embodiments of this application;
[0055] Figure 3 This is a flowchart illustrating the session processing method in some other embodiments of this application;
[0056] Figure 4 This is a flowchart illustrating the session processing method in some other embodiments of this application;
[0057] Figure 5 This is a flowchart illustrating the session processing method in some other embodiments of this application;
[0058] Figure 6 This is a flowchart illustrating the session processing method in some other embodiments of this application;
[0059] Figure 7 This is a flowchart illustrating the session processing method in some other embodiments of this application;
[0060] Figure 8 This is a flowchart illustrating the session processing method in some other embodiments of this application;
[0061] Figure 9 This is a flowchart illustrating the process of training an intent change analysis model in some embodiments of this application;
[0062] Figure 10 These are schematic diagrams of the interface during a session in some specific embodiments of this application;
[0063] Figure 11 These are schematic diagrams of the interface during a session in some specific embodiments of this application;
[0064] Figure 12 These are schematic diagrams of the interface during a session in some specific embodiments of this application;
[0065] Figure 13 This is a structural block diagram of a session processing apparatus in some embodiments of this application;
[0066] Figure 14 This is an internal structural diagram of a computer device according to some embodiments of this application. Detailed Implementation
[0067] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0068] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.
[0069] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0070] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0071] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0072] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0073] In the description of the embodiments of this application, unless otherwise expressly specified and limited, the technical term "connection" and other such terms should be interpreted broadly. For example, it can refer to a mechanical connection or an electrical connection; it can refer to a direct connection or an indirect connection through an intermediate medium; it can refer to the internal connection of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in the embodiments of this application according to the specific circumstances.
[0074] Currently, with the development of intelligent robot technology, intention recognition of user-input text during conversations has become an important aspect of intelligent robot applications. This involves providing feedback corresponding to the recognized intention. For example, customer service robots, in providing customer service, receive user-input text or text converted from speech. They then perform intention recognition on this text to determine the information to be provided or the questions to be asked. This current approach typically involves intention recognition for each individual sentence of conversation. However, in actual dialogue, intentions may shift as the conversation progresses. For instance, a previously identified intention might be strengthened, or the intention might be negated. Simply considering the intention recognition result for the current conversation content may not be sufficient to address these shifts in a timely manner, resulting in feedback that fails to meet customer needs or the desired conversational effect.
[0075] Based on this, the solution of this application embodiment, in addition to identifying the conversation intent of each conversation content during the conversation process, also identifies the change relationship of intent during the entire conversation process, so as to analyze the flow of intent during the conversation process and improve the information processing needs based on the conversation process.
[0076] refer to Figure 1 , Figure 2 As shown, during the session, the first terminal 10 obtains the session content input by the user and sends it to the second terminal 20 via the server 30. If the second terminal 20 displays a session interface, the session content can be simultaneously displayed on that interface. The second terminal 20 obtains the session content to be sent to the first terminal 10 and sends it to the first terminal 10 via the server 30. If the first terminal 10 displays a session interface, the session content can be simultaneously displayed on that interface.
[0077] The types of the first terminal 10 and the second terminal 20 are not limited. For example, both the first terminal 10 and the second terminal 20 can be user terminals, thereby realizing the recognition of intent flow during the conversation between users. As another example, the first terminal 10 can be a user terminal, and the second terminal 20 can be the terminal where a customer service agent is located, or the terminal where a customer service robot is located, thereby realizing the conversation between the user and customer service to achieve intelligent customer service. It should be understood that when the second terminal 20 is the terminal where a customer service agent is located or the terminal where a customer service robot is located, the conversation content forwarded by the server 30 to the first terminal 10 can be displayed on the conversation interface of the first terminal 10, or it can be played by voice through the first terminal 10; the specific method is not limited, as long as the user of the first terminal 10 can know the conversation content. Correspondingly, the conversation content forwarded by the server 30 to the second terminal 20 can be the text content input by the user of the first terminal 10, or it can be the text content obtained by text recognition of the voice input by the user of the first terminal 10; this embodiment does not specifically limit this.
[0078] The first terminal 10 and the second terminal 20 can be, but are not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, and smart in-vehicle devices. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices. The server 30 can be implemented using a standalone server or a server cluster consisting of multiple servers.
[0079] In the aforementioned conversation process, the conversation intent can be identified by analyzing the conversation content sent by the first terminal 10 and / or the second terminal 20, and the intent change relationships during the conversation can be identified. This conversation intent and intent change relationships are then provided to the second terminal 20 and / or the first terminal 10, so that the user of the second terminal 20 can understand the conversation intent and intent change relationships of the first terminal 10, and / or, so that the user of the first terminal 10 can understand the conversation intent and intent change relationships of the user of the second terminal 20. Taking the second terminal 20 as an example where a customer service agent or a customer service robot is located, the conversation intent and intent change relationships can also be identified only from the conversation content provided by the first terminal 10, in order to provide effective customer service to the first terminal 10. The identification of the conversation intent and intent change relationships can be performed by the server 30. After identifying the conversation intent and intent change relationships, the server 30 sends the identified conversation intent and intent change relationships along with the conversation content to the second terminal. Alternatively, the second terminal 20 can identify the conversation intent and intent change relationships itself; this embodiment does not impose specific limitations.
[0080] refer to Figure 2 As shown, this application provides a session processing method to... Figure 1 The second terminal 20 shown is used as an example for illustration. The method includes:
[0081] Step S100: Obtain the current session content during the session.
[0082] The session process refers to the information exchange between terminals, during which terminals can send information to each other. Figure 1 As shown in the example, the first terminal 10 can send session content to the second terminal 20, and the second terminal 20 can also send session content to the first terminal 10. This process can be repeated a certain number of times, thus forming a dialogue. This process can be understood as a session process.
[0083] Step S200: Identify the current session intent of the current session content.
[0084] The current session content during a conversation refers to the most recently received session content. Combined with... Figure 1 As shown in the example, the current session content can refer to the session content recently received by the second terminal 20 from the first terminal 10, and this session content can be represented in the form of session content.
[0085] Among them, the current session content during the session, combined with Figure 1 For example, the text content can be directly input by the user of the first terminal 10, or it can be the text content obtained after converting the voice input by the user of the first terminal 10 into text. The specific voice-to-text conversion method is not limited.
[0086] In the process of identifying the current session intent of the current session content, any possible session intent identification method that can identify the session content can be combined.
[0087] For example, in some embodiments, the intent recognition model obtained through training can be used to identify the intent of the current session content in order to obtain the current session intent of the current session content.
[0088] The training method for the intent recognition model is not limited. For example, after setting intent labels, sample conversation content is obtained, and intent labels corresponding to the sample conversation content are set. Then, the sample conversation content is input into the intent recognition model to be trained. The intent recognition model to be trained performs intent recognition on the sample conversation content to obtain the sample intent. The training loss is determined based on the sample intent and intent labels. The intent recognition model to be trained is updated in combination with the obtained training loss until the training termination condition is met, so as to obtain the intent recognition model.
[0089] It should be understood that in other embodiments, any existing or future methods capable of identifying session intent may also be used, and this application does not specifically limit such methods.
[0090] Step S300: Based on the historical session intent of the historical session content and the current session intent, determine the session intent sequence, wherein the historical session content is the session content before the current session content during the session.
[0091] Historical conversation content during a session refers to the conversation content preceding the current conversation content in the current session. Historical conversation intent refers to the conversation intent obtained by identifying intent from historical conversation content. Historical conversation content during a session can consist of only one conversation entry or multiple conversation entries; the specific number of conversation entries is unlimited.
[0092] In the conversation between user A and user B, a total of four conversation messages were generated in sequence: message 1, message 2, message 3, and message 4. The current conversation message is message 4, so the historical conversation messages include message 1, message 2, and message 3.
[0093] Based on historical conversation intents and the current conversation intent, a sequence of conversation intents can be determined, which can be based on the generation time of the corresponding conversation content. Taking the conversation between user A and user B, which generated a total of four conversation messages sequentially: content 1, content 2, content 3, and content 4, as an example, assuming that intent recognition of content 1, content 2, content 3, and content 4 yields intents of... Figure 1 ,meaning Figure 2 ,meaning Figure 3 Harmony Figure 4 Among them, meaning Figure 1 ,meaning Figure 2 ,meaning Figure 3 For the purpose of historical conversation, meaning Figure 4 If the current session intent is a given value, then the obtained session intent sequence can be {intent}. Figure 1 ,meaning Figure 2 ,meaning Figure 3 ,meaning Figure 4}
[0094] Step S400: Perform intent change analysis on the session intent sequence to obtain the intent change relationship in the session process.
[0095] Intent change analysis based on conversation intent sequence refers to analyzing and determining the changes in intent during a conversation based on the historical and current conversation intents that appear sequentially during the conversation, in order to identify the relationships of intent changes during the conversation.
[0096] Based on the session processing method provided in the embodiments of this application, after identifying the current session intent of the current session content during the session, it also determines the session intent sequence based on the historical session intent of the historical session content during the session, and then performs intent change analysis on the session intent sequence to determine the intent change relationship during the session, that is, it can identify the intent flow during the session, thereby meeting the need to identify intent flow during the session, which helps to improve the information processing needs based on the session process.
[0097] In some embodiments, reference Figure 3 As shown, after identifying the current session intent of the current session content in step S100 above, the method may further include:
[0098] Step S120: Display the current session intent at the first position in the session interface corresponding to the current session content.
[0099] A session interface refers to the interface displayed on a terminal during a session. This interface shows the session content sent by each party in the session. Taking one party as an example, it includes the session content sent by that party and the session content received by that party from other parties. Figure 1 Taking the second terminal 20 shown as an example, the conversation content sent by the second terminal 20 to the first terminal 10 can be displayed on the conversation interface of the second terminal 20. At the same time, the conversation content received by the second terminal 20 from the first terminal 10 can also be displayed. The display order of the conversation content can be arranged according to the sending time of each conversation content. By displaying the conversation content on the conversation interface, it helps the terminal user to understand and view the conversation content in the conversation process in a timely manner. The information display method is intuitive and convenient.
[0100] The first position in the conversation interface that corresponds to the current conversation content can be any position that is related to the current conversation content, as long as it can reflect the relationship with the current conversation content. For example, it can be after the current conversation content, below the current conversation content, or floating above the current conversation content, etc. This application embodiment does not impose specific limitations.
[0101] Therefore, during the conversation, the current conversation intent of the current conversation content is displayed in the first position corresponding to the current conversation content in the conversation interface, which can help to intuitively understand the current conversation intent of the current conversation content.
[0102] In some embodiments, reference Figure 3 As shown, after obtaining the intent change relationship in the session process in step S400 above, the following may also be included:
[0103] Step S500: Display the intent change relationship in the second position corresponding to the current session content in the session interface.
[0104] The second position in the conversation interface that corresponds to the current conversation content can be any position that is related to the current conversation content, as long as it can reflect the relationship with the current conversation content. For example, it can be behind the current conversation content, below the current conversation content, or floating above the current conversation content, etc. This application embodiment does not impose specific limitations.
[0105] It should be understood that the second position corresponding to the current conversation content in the conversation interface can be different from or the same as the first position corresponding to the current conversation content in the aforementioned conversation interface. When simultaneously displaying the current conversation intent and the intent change relationship, it is sufficient that the displayed current conversation intent and intent change relationship can be distinguished. For example, if the first and second positions are the same, their display order can differ to distinguish the current conversation intent and intent change relationship. For instance, if both the first and second positions are located after the current conversation content, the first position can be after the current conversation content, and the second position after the first position. As another example, if both the first and second positions are located below the current conversation content, the first position can be on one side below the current text, and the second position can be on the other side below the current text, as long as the current conversation intent and intent change relationship can be distinguished.
[0106] Therefore, during the conversation, the intention change relationship is also displayed in the second position corresponding to the current conversation content in the conversation interface, which can help to intuitively understand the intention change relationship during the conversation.
[0107] During the process of displaying the change of intent in the second position corresponding to the current conversation content in the conversation interface, the change of intent can be displayed in any possible way. In some embodiments, the change of intent can be animated in the second position corresponding to the current conversation content in the conversation interface.
[0108] Among them, animate display of intent change relationship means to show the evolution relationship from the change of historical conversation intent to the current conversation intent through animation. The specific animation image and evolution method are not limited and can be determined by combining the conversation intent and the logical relationship between the change of historical conversation intent and the current conversation intent.
[0109] For example, considering intention-related relationships such as enhancement, cancellation, annexation, and transfer: when animate an enhancement relationship, the intention image can be enlarged; when animate a cancellation relationship, it can be shown as two or more intentions colliding and breaking apart; when animate a annexation relationship, it can be shown as an intention surrounding the annexable intention, with the annexable intention's color gradually weakening until it disappears; when animate a transfer relationship, it can be shown as the initial intention A jumping to intention B. It should be understood that in other embodiments, animation can also be performed in other ways.
[0110] Therefore, when displaying the relationship of changing intentions, the flow of intentions can be vividly shown by animate, which is intuitive and can enhance the interest.
[0111] In step S400 above, when performing intent change analysis on the session intent sequence to obtain the intent change relationship during the session, the specific change analysis method is not limited. The following will illustrate two of these methods with examples.
[0112] In some embodiments, reference Figure 4 As shown, step S400 above, which involves performing intent change analysis on the session intent sequence to obtain the intent change relationship during the session, includes:
[0113] Step S401: In the preset intent change relationship database, search for intent change relationships that match the session intent sequence, and use the searched intent change relationships as intent change relationships in the session process.
[0114] The pre-defined intent change relationship database refers to a database of intent change relationships between any two session intents. For example, suppose there are 3 session intents: Figure 1 ,meaning Figure 2 ,meaning Figure 3 The established relationships between intentions include: Figure 1 Sincere intention Figure 2 The intention to change the relation is relation A, intention Figure 1 Sincere intention Figure 3 The intention to change the relation is relation B. Figure 2 Sincere intention Figure 1 The intention to change the relation is relation C, intention Figure 2 Sincere intention Figure 3 The intention to change the relation is relation D, intention Figure 3 Sincere intention Figure 1 The intention to change the relation is relation E, meaning Figure 3 Sincere intention Figure 2 If the intention change relationship is relation F, then the content stored in the preset intention change relationship database can include: [1,2,A], [1,3,B], [2,1,C], [2,3,D], [3,1,E], [3,2,F]. The storage method in the preset intention change relationship database is not limited; for example, it can be stored in a table or in a relational database.
[0115] The intention change relationship between any two intentions in the preset intention change relationship database can be determined in any possible way, such as by expert specification or by analysis through an intention change analysis model, and then stored in the preset intention change relationship database.
[0116] In searching for intent change relationships that match a conversation intent sequence, matching can be done by combining two adjacent conversation intents in the sequence. For example, the preset intent change relationship database described above may store [1,2,A], [1,3,B], [2,1,C], [2,3,D], [3,1,E], and [3,2,F]. Assuming the conversation intent sequence is {intent}... Figure 1 ,meaning Figure 2 ,meaning Figure 3}, then the intent change relationship obtained by the search can include {A, D}, assuming the session intent sequence is {intent}. Figure 2 ,meaning Figure 1 ,meaning Figure 3 If the intent change relationship obtained from the search can include {C, B}, then the search results can include {C, B}.
[0117] Therefore, when determining the intention change relationship, the corresponding intention change relationship can be obtained by directly searching the database, which is convenient and efficient.
[0118] In some embodiments, reference Figure 5 As shown, step S400 above, which involves performing intent change analysis on the session intent sequence to obtain the intent change relationship during the session, includes:
[0119] Step S402: Using the pre-trained intent change analysis model, perform intent change analysis on the conversation intent sequence to obtain the intent change relationship in the conversation process.
[0120] Among them, the pre-trained intent change analysis model refers to a model that can analyze the sequence of conversation intents and obtain the intent change relationship between historical conversation intents and current conversation intents.
[0121] The intent change analysis model is used to analyze the intent change sequence of a conversation and obtain the intent change relationship in the conversation process. This can be done by inputting a conversation intent sequence consisting of historical conversation intents and current conversation intents into the intent change analysis model, and then analyzing the conversation intent sequence through the intent change analysis model to obtain the intent change relationship.
[0122] For example, assuming a session intent sequence of [Is the person, promises to repay, questions repayment amount, inquires about repayment method, automatic card deduction malfunction], the output sequence of intent change relationships could include: [[Is the person, promises to repay, strengthens relationship], [Promises to repay, questions repayment amount, strengthens relationship], [Inquires about repayment method, automatic card deduction malfunction, offset]]. In actual technical implementation, intent change relationships such as strengthening and offsetting relationships can also be represented by other symbols or information, for example, using `inforce` to represent strengthening relationships and `offset` to represent offsetting relationships, and are not limited to these.
[0123] Since the intent change analysis model is trained, a large number of samples are usually used to train the model to obtain the final intent change analysis model, which reflects the commonalities of the change relationships between a large number of conversation intents. Therefore, processing the intent change relationship through the intent change analysis model helps to improve the accuracy of the obtained intent change relationship.
[0124] The method for training the intent change analysis model is not limited. In one embodiment, the method for training the intent change analysis model includes:
[0125] Obtain a sample session intent sequence, wherein the sample session intent sequence includes multiple sample session intents;
[0126] The word vectors of each sample conversation intent are obtained by using the intent change analysis model to be trained, resulting in a sequence of sample conversation intent word vectors. Vector relationship operations are performed on each pair of word vectors in the sequence of sample conversation intent word vectors to obtain the operation results. Based on the vector calculation results, the sample intent change relationship corresponding to each pair of word vectors is determined.
[0127] Based on the sample intent change relationships and the intent change relationship labels corresponding to each pair of sample session intents, the parameters of the intent change analysis model to be trained are updated.
[0128] After updating the parameters of the intent change analysis model to be trained, return to the above training process, such as obtaining word vectors of the conversation intent of each sample through the intent change analysis model to be trained, until the model training ends. Then, determine the intent change analysis model to be trained at the end of training as the intent change analysis model.
[0129] Therefore, in the process of training the intent change analysis model, vector operations are performed on the word vectors of the conversation intent of each sample, and the sample intent change relationship is determined by combining the operation results. The sample intent change relationship determined in this way is more accurate. On this basis, the parameters of the intent change analysis model to be trained are updated, which helps to improve the accuracy of the obtained intent change analysis model in recognizing intent change relationships.
[0130] In some embodiments, the vector relationship operation includes addition, subtraction, scalar multiplication, and dot product / cross product operations, and the operation result includes the addition result, subtraction result, scalar multiplication result, and dot product / cross product result; determining the sample intent change relationship corresponding to each pair of word vectors based on the vector calculation result includes:
[0131] The intention change relationship corresponding to the target operation result is determined as the sample intention change relationship corresponding to each pair of word vectors. The target operation result is the operation result with the highest confidence among the addition operation result, subtraction operation result, scalar multiplication operation result, and dot product / cross product operation result.
[0132] Therefore, in the process of vector operation on word vectors of conversation intent for each sample, multiple vector operations are performed, and the operation result with the highest confidence is determined to determine the corresponding relationship of sample intent change. Based on this, the sample intent change relationship is determined by combining the operation results. The sample intent change relationship determined in this way is more accurate and helps to improve the accuracy of the obtained intent change analysis model in identifying intent change relationship.
[0133] In some embodiments, reference Figure 6 As shown, after obtaining the intent change relationship in the session process in step S400 above, the following may also be included:
[0134] Step S600: Update the user profile based on the intent change relationship.
[0135] User profiling, or user information tagging, refers to information that reflects user attributes and is abstracted from user information. Through user profiling, user groups can be accurately located, user needs can be met in a personalized way, personalized information recommendations and feedback can be provided to users, and personalized display of information to users can be achieved.
[0136] In some specific examples, updating a user's profile can specifically refer to updating the user profile in the current session's interface.
[0137] Therefore, by combining the identified intention changes, updating the user profile of the corresponding user helps to improve the accuracy of the obtained user profile. In the subsequent information processing based on the user profile, the accuracy of information processing can also be further improved.
[0138] After updating the user profile for a corresponding user, the updated user profile can be animated. For example, when displaying the user profile, the flow of user needs can be shown through animation. When there are multiple users, the user profiles of multiple users can be displayed in a frequency-based manner, and the frequency-based display process can be paused in response to user actions to observe the differences in the flow of user intent at different points in time.
[0139] In some embodiments, reference Figure 7 As shown, after obtaining the intent change relationship in the session process in step S400 above, the following may also be included:
[0140] Step S701: Obtain the intent change relationship of the associated users of the target service, and sort out the business nodes and / or business processes corresponding to the superimposed session intent of the associated users;
[0141] Step S702: Optimize the business process of the target business based on the business node and / or business process corresponding to the overlay session intent of the associated user.
[0142] Among them, the superimposed session intent of each user refers to the session intent shared by all users, which reflects the commonality of the session intent among users.
[0143] Therefore, after obtaining the intent change relationship during the session, after the session ends, based on the intent change relationship of related users of the target business, we can sort out the business nodes and / or business processes corresponding to the superimposed session intent of related users. This will enable us to sort out common business nodes and / or common business processes. Based on the common business nodes and / or common business processes, it is helpful to analyze the business issues and links that users value. On this basis, we can optimize the target business process, which will help optimize the business process.
[0144] In some embodiments, reference Figure 8 As shown, after obtaining the intent change relationship in the session process in step S400 above, the following may also be included:
[0145] Step S801: Obtain the intent change relationship of different services of the target user, and sort out the business nodes and / or business processes corresponding to the overlapping session intents of different services;
[0146] Step S802: Optimize the business processes of different services based on the business nodes and / or business processes corresponding to the overlay session intents of different services.
[0147] Among them, the overlapping session intent of different services refers to the session intent that the target user has in the session process of different services, which reflects the commonality of session intent in different service processes.
[0148] Therefore, after obtaining the intent change relationship during the session, after the session ends, based on the intent change relationship of the target user for different services, we can sort out the business nodes and / or business processes corresponding to the superimposed session intents of different services. This will help to sort out the common business nodes and / or common business processes of different services for the target, which will help to analyze the business issues and links that users value. On this basis, we can optimize the target business process and thus help to optimize the business process.
[0149] Based on the embodiments described above, the following examples illustrate specific applications. In the following exemplary description, the example of training an intent change analysis model and identifying intent change relationships using that model is provided.
[0150] The process of training the intention change analysis model can be performed using any device, for example... Figure 1 The server 30 and the second terminal 20 mentioned above, or Figure 1 Other devices not shown in the diagram may also be used to complete the training process through interaction between the terminal and the server.
[0151] refer to Figure 9 As shown, the process of training an intention change analysis model in one embodiment may include the following steps.
[0152] Step S901: Obtain the sample session intent sequence.
[0153] The sample session intent sequence refers to the sequence obtained after identifying the intent of each session content during the sample session.
[0154] In some embodiments, the sample session intent sequence can be a sequence obtained by performing intent recognition on the session content of all parties in the sample session. For example, suppose the sequence of session content in the sample session is: Session 1, Session 2, Session 3, Session 4, Session 5, Session 6. In some embodiments, the session intents obtained by performing intent recognition on Session 1, Session 2, Session 3, Session 4, Session 5, and Session 6 are respectively... Figure 1 ,meaning Figure 2 ,meaning Figure 3 ,meaning Figure 4 ,meaning Figure 5 ,meaning Figure 6 The obtained sample session intent sequence can be [intent] Figure 1 ,meaning Figure 2 ,meaning Figure 3 ,meaning Figure 4 ,meaning Figure 5 ,meaning Figure 6 ].
[0155] In other embodiments, the sample session intent sequence can also be a sequence obtained by performing intent recognition on the session content of one or more of the participants in the sample session. For example, taking the sequence of session content in a sample session between two participants as: Session 1, Session 2, Session 3, Session 4, Session 5, Session 6, and the session content sent by the other participant as: Session 2, Session 4, Session 6, assuming that the session intents obtained by performing intent recognition on Session 2, Session 4, and Session 6 are respectively... Figure 2 ,meaning Figure 4 ,meaning Figure 6 The obtained sample session intent sequence can also be [intent]. Figure 2 ,meaning Figure 4 ,meaning Figure 6 The specific method is not limited.
[0156] Step S902: Determine the word vector of each sample conversation intent to obtain the sample conversation intent word vector sequence.
[0157] There are no restrictions on the method for obtaining word vectors of sample conversation intent. For example, the sample conversation intent can be vectorized using a pre-trained language model to obtain word vectors. The type of pre-trained language model is not limited; it can be any language model capable of vectorizing sample conversation intent, such as the RoBERTa language model.
[0158] Each sample conversation intent in the sample conversation intent sequence is vectorized, that is, each sample conversation intent in the sample conversation intent sequence is represented by a word vector, thereby obtaining a sample conversation intent word vector sequence. Taking the sample conversation intent sequence as described above as [intent] Figure 2 ,meaning Figure 4 ,meaning Figure 6 For example, the obtained sample conversation intent word vector sequence can be [intent]. Figure 2 Word vectors, meaning Figure 4 Word vectors, meaning Figure 6 Word vectors.
[0159] Step S903: Perform vector relationship operations on each pair of word vectors in the sample conversation intent word vector sequence to obtain the operation results.
[0160] The pre-trained intention change analysis model can include multiple vector operation methods to obtain multiple operation results.
[0161] For example, in some embodiments, various vector operations may include addition, subtraction, scalar multiplication, and dot / cross multiplication. Addition can determine if there is an enhancement relationship between two session intentions; subtraction can determine if there is a cancellation relationship; scalar multiplication can determine if there is an absorption relationship; and dot / cross multiplication can determine if there is a transfer relationship.
[0162] The specific operation methods for vector addition, subtraction, scalar multiplication, and dot product / cross product can be the same as existing vector operation methods, and will not be elaborated here.
[0163] Taking multiple vector operation methods, including addition, subtraction, scalar multiplication, and dot / cross multiplication, as an example, we can perform addition, subtraction, scalar multiplication, and dot / cross multiplication on each pair of word vectors in the sample conversation intent word vector sequence to obtain the addition, subtraction, scalar multiplication, and dot / cross multiplication results.
[0164] Step S904: Determine the sample intent change relationship between each pair of word vectors based on the vector calculation results.
[0165] Based on the vector operation methods described above, multiple operation results can be obtained. However, between two session intentions, there are usually not all intention change relationships; typically, only one type of intention change relationship exists. Therefore, it is necessary to select the operation result with the highest confidence from these multiple operation results and determine the intention change relationship corresponding to that operation result as the sample intention change relationship between the pairwise word vectors. For example, assuming that the addition operation result has the highest confidence, the sample intention change relationship is determined to be an enhancement relationship; assuming that the subtraction operation result has the highest confidence, the sample intention change relationship is determined to be a cancellation relationship; assuming that the scalar multiplication operation result has the highest confidence, the sample intention change relationship is determined to be an absorption relationship; and assuming that the dot product / cross product operation result has the highest confidence, the sample intention change relationship is determined to be a transfer relationship.
[0166] The method for determining the most reliable calculation result can be a combination of various possible approaches. For example, pre-defined comparison values can be set for addition, subtraction, scalar multiplication, and dot product / cross product operations. The reliability of the addition result is determined by comparing it to the comparison value; the reliability of the subtraction result is determined by comparing it to the comparison value; the reliability of the scalar multiplication result is determined by comparing it to the comparison value; and the reliability of the dot product / cross product result is determined by comparing it to the comparison value. It should be understood that in other embodiments, the most reliable calculation result can also be determined using other methods, and this application does not impose specific limitations on these methods.
[0167] Step S905: Determine whether the training termination condition is met. If not, proceed to step S906; if met, proceed to step S907.
[0168] The method for setting the training termination condition is not limited. For example, in some embodiments, the training termination condition can be determined to be met when the number of iterations for training the intent change analysis model reaches a preset number of iterations; otherwise, it is determined that the training termination condition is not met. In other embodiments, the training termination condition can be determined to be met when the training results converge after a certain number of consecutive iterations, for example, when the sample intent change relationships obtained after a certain number of consecutive iterations are consistent with the sample intent change labels corresponding to the pairwise word vectors; otherwise, it is determined that the training termination condition is not met. In other embodiments, the training termination condition can also be determined to be met when the number of iterations for training the intent change analysis model reaches a preset number of iterations, and the sample intent change relationships obtained after a certain number of consecutive iterations are consistent with the intent change relationship labels corresponding to the pairwise word vectors; otherwise, it is determined that the training termination condition is not met. Other training termination conditions can also be set in other embodiments.
[0169] Step S906: Based on the sample intent change relationship and the intent change relationship labels corresponding to each pair of sample session intents, update the intent change analysis model to be trained.
[0170] Based on the determined sample intent change relationships and corresponding intent change relationship labels, the training error can be determined, and the intent change analysis model to be trained can be updated using the training error. Specifically, the intent change analysis model to be trained can be updated by updating its model parameters. The specific method for updating the model parameters can be based on the parameter step size, which can be different for each model parameter.
[0171] Step S907: The training intention change analysis model at the end of training is determined as the intention change analysis model.
[0172] After training and obtaining the intent change analysis model, this model can be deployed on devices that require intent change analysis, such as... Figure 1 The server 30 or the second terminal 20 shown are provided for devices to perform intent change analysis based on the intent change analysis model in practical applications. When deploying the intent change analysis model, it can be done by actively deploying the model to the corresponding device, or by storing the model on a server and then actively requesting it from the server when needed. This application embodiment does not impose specific limitations.
[0173] The following example illustrates the customer service process when a customer service agent or chatbot provides customer service to a user, and the conversation is displayed through a chat interface. The example below shows a customer service agent proactively providing service to a user, such as communicating with a borrower about loan information.
[0174] refer to Figure 10 As shown, the customer service agent first sends the following message to the user: "Hello, this is ***, are you AAA?" After receiving this message, the user replies with "I don't know this person, wrong number." By performing intent recognition on this message, the current intent is identified as "I don't know the borrower." After recognizing this intent, it can be displayed immediately after the message "I don't know this person, wrong number," specifically, it can be highlighted relative to the message "I don't know this person, wrong number," for example... Figure 10 The highlighted text shown here uses different background colors. In other embodiments, it can also be highlighted, bolded, or displayed in different colored fonts, as long as it can be distinguished from the conversation content "I don't know it, I typed it wrong".
[0175] Since the message "I don't know this, I typed the wrong thing" is the user's first reply, there is no historical conversation content at this time. Therefore, there is no need to perform intent change analysis, or the intent change analysis will not yield any results.
[0176] Subsequently, reference Figure 11As shown, based on the user's reply, the customer service agent sends the message: "You said you don't know AAA, right?" After receiving this message, the user replies with "What do you want from him?" By performing intent recognition on this message, the current intent is identified as "third-party identity." Upon recognizing this intent, it can be displayed immediately after the message "What do you want from him?"
[0177] Simultaneously, by analyzing the intent shifts of "not knowing the lender" and "third-party identities," the intent shift relationships during the conversation can be obtained. It can be determined that the intent shift relationship is a transfer relationship, meaning that "third-party identities" and "not knowing the lender" are opposite. Therefore, animated content reflecting this transfer relationship can be displayed in the content corresponding to the conversation content "What do you want from him / her?" (not shown in the figure). Furthermore, since the intent shift relationship between the conversation intent "third-party identities" and the conversation intent "not knowing the lender" is a transfer relationship, while highlighting the conversation intent "third-party identities," the highlighting of the conversation intent "not knowing the lender" can be removed; for example, the conversation intent "not knowing the lender" can be displayed transparently.
[0178] Subsequently, reference Figure 12 As shown, based on the user's reply, the customer service agent sends the message: "You know AAA, right?". Upon receiving this message, the user replies with: "I am AAA, what do you want?". By performing intent recognition on this message, the current intent is identified as "I am AAA". After recognizing this intent, it can be displayed after the message "I am AAA, what do you want?".
[0179] Simultaneously, by analyzing the intention changes of "I don't know the borrower," "Third-party identity," and "I am the person," the intention change relationships during the conversation can be obtained. It can be determined that the intention change relationship of "I am the person" relative to the intention changes of "I don't know the borrower" and "Third-party identity" is a transfer relationship, that is, "I am the person" is the opposite of "I don't know the borrower" and "Third-party identity." Therefore, the animation content of the transfer relationship can be displayed in the corresponding content of the conversation content "I am the person, what do you want from me?" (not shown in the figure). In addition, since the intention change relationship of "I am the person" relative to the intention changes of "I don't know the borrower" and "Third-party identity" is a transfer relationship, while highlighting the intention change of "I am the person," the highlighting of the intention changes of "Third-party identity" and "I don't know the borrower" can be canceled, for example, the intention changes of "Third-party identity" and "I don't know the borrower" can be displayed transparently.
[0180] It should be noted that the reference Figure 12As shown, for the conversation content "I am the person in question, what do you want from me?", in addition to recognizing the conversation intent "I am the person in question", it can also recognize the conversation intent "inquiring about the caller's intent". Therefore, the conversation intents "I am the person in question" and "inquiring about the caller's intent" can be highlighted at the corresponding positions in the conversation content "I am the person in question, what do you want from me?".
[0181] It should be understood that, Figure 12 As shown, the conversation intents "Is this person?" and "Inquiry about the caller's intent" are highlighted in the same way. In actual technical implementation, the conversation intents "Is this person?" and "Inquiry about the caller's intent" can also be highlighted in different ways. For example, different colors can be used to highlight the conversation intents "Is this person?" and "Inquiry about the caller's intent" respectively, which helps to intuitively understand that two conversation intents have been identified at the same time.
[0182] Based on the embodiments of this application described above, it examines semantics at a micro level, using one or more conversations as the granularity. It vividly depicts the changing relationships of intent through animation, making the conversation process more engaging. The animation showcases phenomena such as semantic overlay, reduction, cancellation, absorption, and transfer of intents that occur during the semantic flow of the entire conversation, thus improving information processing capabilities based on the conversation process. Furthermore, by updating the user profile based on the changing relationships of intent and drawing the updated user profile, the flow of user needs can be animated, intuitively demonstrating the changes in user needs.
[0183] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0184] Based on the same inventive concept, this application also provides a session processing apparatus for implementing the session processing method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more session processing apparatus embodiments provided below can be found in the limitations of the session processing method described above, and will not be repeated here.
[0185] This application also provides a session processing apparatus, wherein, reference Figure 13 As shown, in some embodiments, the session processing apparatus includes a session content acquisition module 131, a session content acquisition module 132, an intent sequence determination module 133, and an intent change analysis module 134. Wherein:
[0186] The session content acquisition module 131 is used to acquire the current session content during the session process;
[0187] The session content acquisition module 132 is used to identify the current session intent of the current session content;
[0188] The intent sequence determination module 133 is used to determine a session intent sequence based on the historical session intents of the historical session content and the current session intent, wherein the historical session content is the session content before the current session content during the session.
[0189] The intent change analysis module 134 is used to perform intent change analysis on the session intent sequence to obtain the intent change relationship in the session process.
[0190] In some embodiments, the apparatus further includes:
[0191] The display module is used to display the intent of the current session at a first position in the session interface corresponding to the content of the current session.
[0192] In some embodiments, the apparatus further includes:
[0193] The display module is used to display the intention change relationship in a second position in the conversation interface corresponding to the current conversation content.
[0194] In some embodiments, the display module is used to animate the intention change relationship at a second position in the conversation interface corresponding to the current conversation content.
[0195] In some embodiments, the intent change analysis module 134 is used to search for intent change relationships that match the session intent sequence in a preset intent change relationship database, and to use the searched intent change relationships as intent change relationships in the session process.
[0196] In some embodiments, the intent change analysis module 134 is used to perform intent change analysis on the session intent sequence using a pre-trained intent change analysis model to obtain the intent change relationship in the session process.
[0197] In some embodiments, the apparatus further includes:
[0198] The model training module is used to acquire sample conversation intent sequences, which include multiple sample conversation intents; obtain word vectors for each of the sample conversation intents through the intent change analysis model to be trained, and obtain a sample conversation intent word vector sequence; perform vector relationship operations on each pair of word vectors in the sample conversation intent word vector sequence to obtain the operation results; determine the sample intent change relationship corresponding to each pair of word vectors based on the vector calculation results; and update the parameters of the intent change analysis model to be trained based on the sample intent change relationship and the intent change relationship labels corresponding to each pair of sample conversation intents.
[0199] In some embodiments, the vector relationship operation includes addition, subtraction, scalar multiplication, and dot product / cross product operations, and the operation result includes the addition result, subtraction result, scalar multiplication result, and dot product / cross product result; the model training module is used to determine the intention change relationship corresponding to the target operation result as the sample intention change relationship corresponding to the pairwise word vectors, and the target operation result is the operation result with the highest confidence among the addition result, subtraction result, scalar multiplication result, and dot product / cross product result.
[0200] In some embodiments, the apparatus further includes:
[0201] The profile update module is used to update the user profile in the current session's session interface based on the intent change relationship.
[0202] In some embodiments, the intended change relationship includes: an enhancement relationship, a counteracting relationship, an annexation relationship, and a transfer relationship.
[0203] Each module in the aforementioned session processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can invoke and execute the operations corresponding to each module.
[0204] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 14As shown, the computer device includes a processor, memory, communication interface, and input device connected via a system bus. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external devices, such as communicating with a server to establish a session with a user terminal. Wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. The computer program, when executed by the processor, implements a session processing method. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0205] Those skilled in the art will understand that Figure 14 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0206] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of the session processing method in any of the embodiments described above.
[0207] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the session processing method as described in any of the embodiments above.
[0208] In one embodiment, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps of the session processing method of any of the above embodiments.
[0209] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0210] 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, data stored, data displayed, 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 the relevant data must comply with relevant regulations.
[0211] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application, and they should all be covered within the scope of the claims and specification of this application. In particular, as long as there is no structural conflict, the various technical features mentioned in the embodiments can be combined in any way. This application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. A session processing method, characterized in that, The method includes: Get the current session content during the session; Identify the current session intent of the current session content; Based on the historical session intents of the historical session content and the current session intent, a session intent sequence is determined, wherein the historical session content is the session content preceding the current session content during the session. Intent change analysis is performed on the conversation intent sequence to obtain the intent change relationship in the conversation process. The intent change analysis is implemented through an intent change analysis model, which determines the intent change relationship based on the vector relationship between the word vectors of the conversation intent. Obtain the intent change relationship of different services of the target user, sort out the business nodes and / or business processes corresponding to the superimposed session intent of different services; based on the business nodes and / or business processes corresponding to the superimposed session intent of different services, optimize the business processes of the different services.
2. The method according to claim 1, characterized in that, Also includes: The intent of the current session is displayed in the first position corresponding to the content of the current session in the session interface; And / or, The intent change relationship is displayed in a second position in the conversation interface corresponding to the current conversation content.
3. The method according to claim 1, characterized in that, The step of performing intent change analysis on the session intent sequence to obtain the intent change relationship during the session includes: In the preset intent change relationship database, search for intent change relationships that match the session intent sequence, and use the found intent change relationships as intent change relationships in the session process.
4. The method according to claim 1, characterized in that, The step of performing intent change analysis on the session intent sequence to obtain the intent change relationship during the session includes: By using a pre-trained intent change analysis model, intent change analysis is performed on the conversation intent sequence to obtain the intent change relationship during the conversation.
5. The method according to claim 4, characterized in that, The intent change analysis is implemented through an intent change analysis model, and the intent change analysis model is obtained by training it in the following ways: Obtain a sample session intent sequence, wherein the sample session intent sequence includes multiple sample session intents; The word vectors of each sample conversation intent are obtained by using the intent change analysis model to be trained, resulting in a sequence of sample conversation intent word vectors. Vector relationship operations are performed on each pair of word vectors in the sequence of sample conversation intent word vectors to obtain the operation results. The sample intent change relationship corresponding to each pair of word vectors is determined based on the vector operation results. Based on the sample intent change relationships and the intent change relationship labels corresponding to each pair of sample session intents, the parameters of the intent change analysis model to be trained are updated.
6. The method according to claim 5, characterized in that, The vector relationship operations include addition, subtraction, scalar multiplication, and dot product / cross product operations, and the operation results include addition results, subtraction results, scalar multiplication results, and dot product / cross product results. The determination of the sample intent change relationship between pairwise word vectors based on vector operation results includes: The intention change relationship corresponding to the target operation result is determined as the sample intention change relationship corresponding to each pair of word vectors. The target operation result is the operation result with the highest confidence among the addition operation result, subtraction operation result, scalar multiplication operation result, and dot product / cross product operation result.
7. The method according to claim 1, characterized in that, The method further includes: Based on the stated intent change relationship, update the user profile in the current session's session interface.
8. The method according to any one of claims 1 to 7, characterized in that, The intended change relationships include: strengthening relationships, offsetting relationships, annexation relationships, and transfer relationships.
9. The method according to any one of claims 1 to 7, characterized in that, Also includes: Obtain the intent change relationship of related users of the target business, and sort out the business nodes and / or business processes corresponding to the superimposed session intent of the related users; Based on the business nodes and / or business processes corresponding to the overlay session intent of the associated users, optimize the business process of the target business.
10. A session processing apparatus, characterized in that, The device includes: The session content acquisition module is used to acquire the current session content during the session process; An intent recognition module is used to identify the current session intent of the current session content; The intent sequence determination module is used to determine a session intent sequence based on the historical session intents of the historical session content and the current session intent, wherein the historical session content is the session content before the current session content during the session. The intent change analysis module is used to perform intent change analysis on the conversation intent sequence to obtain the intent change relationship in the conversation process. The intent change analysis is implemented through an intent change analysis model, which determines the intent change relationship based on the vector relationship between the word vectors of the conversation intent. The optimization module obtains the intent change relationship of different services of the target user, sorts out the business nodes and / or business processes corresponding to the superimposed session intent of different services, and optimizes the business processes of the different services based on the business nodes and / or business processes corresponding to the superimposed session intent of different services.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Dialogue process mining method and device, computer equipment and storage medium
CN111930917A
Text processing method, device and equipment, storage medium and program product
CN112528660A
Client intention analysis method, system and equipment and storage medium
CN114416985A
