Personalized intention dynamic identification method and device and related equipment
Through the combination of deep reinforcement learning models and personalized weight information, the problem of traditional intention recognition methods being unable to identify users' personalized intentions is solved, more accurate and personalized intention recognition is achieved, and service efficiency is improved.
Patent Information
- Application Number
- CN202410773527.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional intent recognition methods cannot meet the user's personalized needs and cannot accurately identify the user's intent.
By obtaining the historical conversation data between the user and the customer service, the experience tuple data of the deep reinforcement learning model is constructed, and the user's personalized weight information is used to update the model until a personalized intention recognition model that meets the preset conditions is obtained to identify the user's personality. intention.
It achieves accurate identification of user intentions, provides more personalized and efficient services, and meets users' personalized needs.
Smart Images

Figure CN118733727A_ABST
Abstract
Description
Background Art
[0002] With the rapid advancement of science and technology and the continuous development of artificial intelligence, enterprises are also constantly pursuing more efficient and better services in order to provide users with a better user experience. In the field of artificial intelligence, natural language processing technology has made significant progress, and machines can better understand human language, thereby achieving smarter and more efficient services. In practical applications, intent recognition is an important task in natural language processing, which aims to determine the user's intention or purpose in a conversation or text. Intent recognition technology is often used to build chatbots, intelligent customer service systems, virtual assistants, etc. By analyzing the natural language input by users, understanding users' intentions and needs, so as to provide more accurate and targeted answers or services. However, traditional methods have limitations in understanding user intentions and cannot meet users' personalized needs. Therefore, how to propose a new intent recognition method to be able to identify user intentions in a personalized way is a technical problem that needs to be solved urgently.
[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0004] The present disclosure provides a personalized intention dynamic recognition method, apparatus and related equipment, which at least to a certain extent overcome the problem that the related art cannot recognize user intention in a personalized manner.
[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0006] According to one aspect of the present disclosure, a method for dynamic identification of personalized intent is provided, comprising: obtaining historical conversation data between at least one user and customer service;
[0007] Based on the historical dialogue data, construct the experience tuple data for training the deep reinforcement learning model, where the deep reinforcement learning model is used to predict the value of the agent from a state to an action. The experience tuple data includes the agent's current state, action, reward value, and next state.
[0008] Obtain personalized weight information for each user, and in the process of the intelligent agent using experience tuple data to train the deep reinforcement learning model, use the personalized weight information for each user to update the predicted value of the deep reinforcement learning model until a personalized intent recognition model that meets preset conditions is obtained, wherein the personalized intent recognition model is used to identify the personalized intentions of each user.
[0009] In some embodiments, the customer service is an intelligent agent, and based on the historical conversation data, the experience tuple data for training the deep reinforcement learning model is constructed, including:
[0010] Use historical dialogue data as the current state of the agent;
[0011] Determine the agent’s actions based on the current state;
[0012] The agent's reward value is calculated based on the user's feedback based on the agent's actions and the pre-designed reward function, and the agent's next state is obtained.
[0013] In some embodiments, the reward value of the agent is calculated based on the user's feedback based on the agent's actions and a pre-designed reward function, including:
[0014] Obtain user feedback information, including completion degree information and satisfaction degree information;
[0015] The agent's reward value is calculated based on the completion degree information and satisfaction degree information.
[0016] In some embodiments, obtaining personalized weight information of each user includes:
[0017] Obtain user feature information;
[0018] Calculate the user's personalized weight based on the user's characteristic information.
[0019] In some embodiments, after obtaining historical conversation data between at least one user and customer service, the method further includes:
[0020] Perform data preprocessing on historical conversation data;
[0021] Keyword information is extracted from historical conversation data after data preprocessing, and the keywords are used to construct experience tuple data for training deep reinforcement learning models.
[0022] In some embodiments, the customer service is a conversational robot, which is obtained by training a semantic conversational model based on pre-collected operational service domain knowledge.
[0023] According to another aspect of the present disclosure, there is also provided a personalized intention dynamic identification, including: a historical conversation data acquisition module, used to acquire historical conversation data between at least one user and customer service;
[0024] An experience tuple data construction module is used to construct experience tuple data for training a deep reinforcement learning model based on historical conversation data. The deep reinforcement learning model is used to predict the value of an agent from a state to an action. The experience tuple data includes the agent's current state, action, reward value, and next state.
[0025] The personalized intention recognition model training module is used to obtain the personalized weight information of each user, and in the process of the intelligent agent using the experience tuple data to train the deep reinforcement learning model, use the personalized weight information of each user to update the prediction value of the deep reinforcement learning model until a personalized intention recognition model that meets the preset conditions is obtained, wherein the personalized intention recognition model is used to identify the personalized intention of each user.
[0026] According to another aspect of the present disclosure, an electronic device is also provided, which includes: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned personalized intent dynamic identification methods by executing the executable instructions.
[0027] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for dynamic identification of personalized intentions described in any one of the above is implemented.
[0028] According to another aspect of the present disclosure, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the computer program implements any one of the above-mentioned personalized intention dynamic recognition methods.
[0029] The personalized intention dynamic recognition method, device and related equipment provided in the embodiments of the present disclosure obtain historical conversation data between users and customer service, use deep reinforcement learning technology, construct experience tuple data, and obtain personalized weight information of each user. In the process of training the personalized intention dynamic recognition model, the prediction value of the deep reinforcement learning model is updated using the personalized weight information until a personalized intention recognition model that meets the preset conditions is obtained. The personalized intention recognition model of the embodiment of the present disclosure can accurately identify the personalized intentions of each user, provide users with more personalized and efficient services, and meet the personalized needs of users.
[0030] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0032] Figure 1A schematic diagram showing an exemplary application system architecture of a method for dynamically identifying personalized application intent in an embodiment of the present disclosure;
[0033] Figure 2 A flowchart of a method for dynamic identification of personalized intent in an embodiment of the present disclosure is shown;
[0034] Figure 3 A flow chart of another personalized intention dynamic recognition method in an embodiment of the present disclosure is shown;
[0035] Figure 4 A flow chart of another personalized intention dynamic recognition method in an embodiment of the present disclosure is shown;
[0036] Figure 5 A flowchart of a specific personalized intention recognition method in an embodiment of the present disclosure is shown;
[0037] Figure 6 A personalized intention dynamic recognition system using a personalized intention recognition method in an embodiment of the present disclosure is shown;
[0038] Figure 7 A schematic diagram of a personalized intention dynamic recognition device in an embodiment of the present disclosure is shown;
[0039] Figure 8 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0040] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0041] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0042] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0043] Figure 1FIG. 1 shows an exemplary application system architecture diagram to which the personalized intention dynamic recognition method in the embodiment of the present disclosure can be applied. Figure 1 As shown, the system architecture may include a terminal device 101 , a network 102 and a server 103 .
[0044] The network 102 is a medium for providing a communication link between the terminal device 101 and the server 103, and can be a wired network or a wireless network.
[0045] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, the data exchanged through the network is represented by technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPSec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.
[0046] The terminal device 101 can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, smart speakers, smart watches, wearable devices, augmented reality devices, virtual reality devices, etc.
[0047] Optionally, the client of the application installed in different terminal devices 101 is the same, or the client of the same type of application based on different operating systems. Based on the different terminal platforms, the specific form of the client of the application can also be different, for example, the application client can be a mobile client, a PC client, etc.
[0048] The server 103 may be a server that provides various services, such as a background management server that provides support for the device operated by the user using the terminal device 101. The background management server may analyze and process the received request and other data, and feed back the processing results to the terminal device.
[0049] Optionally, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0050] Those skilled in the art will know that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration, and any number of terminal devices, networks and servers may be provided according to actual needs, and the embodiments of the present disclosure do not limit this.
[0051] Under the above system architecture, a method for dynamic identification of personalized intentions is provided in an embodiment of the present disclosure, and the method can be executed by any electronic device with computing and processing capabilities.
[0052] In some embodiments, the personalized intention dynamic recognition method provided in the embodiments of the present disclosure can be executed by the terminal device of the above-mentioned system architecture; in other embodiments, the personalized intention dynamic recognition method provided in the embodiments of the present disclosure can be executed by the server in the above-mentioned system architecture; in other embodiments, the personalized intention dynamic recognition method provided in the embodiments of the present disclosure can be implemented by the terminal device and the server in the above-mentioned system architecture through interaction.
[0053] Figure 2 A flowchart of a personalized intention dynamic recognition method in an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the personalized intention dynamic recognition method provided in the embodiment of the present disclosure includes the following steps:
[0054] S202, obtaining historical conversation data between at least one user and customer service.
[0055] It should be noted that the customer service in the embodiment of the present disclosure can be any customer service that can communicate with the user in dialogue, including but not limited to manual customer service, robot customer service, etc. In the embodiment of the present disclosure, the customer service can communicate with the user in an effective dialogue and collect historical dialogue data for subsequent training, learning and optimization of the deep reinforcement learning model.
[0056] Obtain historical conversation data between at least one user and customer service, and specifically extract the historical conversation data from the customer service system. The historical conversation data can be any kind of conversation data stored in text, voice or video format. The historical conversation data records the interaction content between the user and the customer service when seeking help, asking questions or expressing needs, including some substantial content about product inquiries, technical support, reservation services, complaint handling, and the user himself.
[0057] By obtaining these historical conversation data, we can train the deep reinforcement learning model. The deep reinforcement learning model will use these historical conversation data to learn how to identify the user's true intentions from the user's new input utterances and provide appropriate responses or suggestions based on these intentions. As the amount of data increases, the predictive ability of the personalized intent recognition model will also increase accordingly, so that more personalized and accurate services can be provided.
[0058] S204, constructing experience tuple data for training a deep reinforcement learning model based on historical dialogue data, wherein the deep reinforcement learning model is used to predict the value of an agent from a state to an action, and the experience tuple data includes the agent's current state, action, reward value, and next state.
[0059] It should be noted that in deep reinforcement learning, experience tuple data is a data unit used to train an agent. Each experience tuple usually contains four elements: the current state of the agent, action, reward value, and next state. The experience tuple data defines the interaction process of the agent in the environment. In the embodiment of the present disclosure, the agent is a robot customer service, and the process of dialogue and communication with the user is the interaction process of the agent in the environment.
[0060] In addition, in deep reinforcement learning, value refers to the long-term reward that an agent can expect to obtain by taking an action in a specific state. The goal of a deep reinforcement learning model is to learn a value function that can predict a value for each state-action pair, that is, the cumulative reward that the agent can expect to obtain after taking the action. Taking the Deep Q-Network (DQN) model as an example, value refers to the Q value.
[0061] In the disclosed embodiment, the agent acts as a robot customer service, and the process of its dialogue and communication with the user is its interaction process in the environment. Each dialogue round of the agent can be regarded as an experience tuple, which specifically includes the following steps:
[0062] 1. Use historical dialogue data as the current state of the agent.
[0063] 2. Determine the agent’s actions based on the current state.
[0064] 3. Calculate the agent’s reward value based on the user’s feedback based on the agent’s actions and the pre-designed reward function, and obtain the agent’s next state.
[0065] It should be noted that the historical conversation data is used as the current state of the agent. In the personalized intention dynamic recognition method, the agent is a robot customer service, and its current state can include the questions or requests entered by the user in the historical conversation data and the context of the conversation. The questions and requests entered by the user are the latest content entered by the user, which can be inquiries, complaints, suggestions or content that needs help for a product or service. The context of the conversation includes the historical information of the current conversation, such as the user's previous questions and the agent's responses. Context is very important for understanding the user's intentions and maintaining the consistency of the conversation.
[0066] After determining the current state of the agent, the agent selects an action given the current state based on its internal strategy. In the customer service scenario, the agent's actions may include:
[0067] Respond to user questions: Provide direct and relevant answers.
[0068] Requesting more information: When more detailed information is needed to understand the user’s intent, the agent may ask further questions.
[0069] Steer the conversation: The agent may steer the conversation toward a more specific topic or sub-question.
[0070] Providing suggestions or solutions: For some user requests, the agent may provide a series of suggestions or solutions for the user to choose from.
[0071] The goal of the agent is to maximize the expected long-term reward by taking appropriate actions. During training, the agent tries different actions and learns which actions lead to the largest cumulative reward in a specific state. In this way, the agent is able to gradually optimize its strategy to reach its goal more effectively in future interactions.
[0072] The agent's reward value is calculated based on the user's feedback based on the agent's actions and the pre-designed reward function. After the agent takes an action, the user's feedback is an immediate evaluation of the action, which can be expressed as the user's satisfaction with the agent's action. This feedback is combined with the pre-designed reward function to calculate the agent's reward value. The design of the reward function should be consistent with the goal that the agent wants to optimize, for example, improving user satisfaction.
[0073] The actions of the agent will affect the environment, resulting in a new state. In the customer service system, the next state is the next round of reactions or questions from the user to the agent's response.
[0074] In this way, the agent continuously learns from the interaction with the user and optimizes its strategy so that it can take more appropriate actions when encountering similar situations in the future. The method of the disclosed embodiment can adapt to the personalized needs of different users and provide more customized services. As the agent receives more training data, the performance of the agent will gradually improve, and it will be able to more accurately identify and respond to the user's intentions.
[0075] Based on the current state, action, reward value, and next state obtained from the historical dialogue data, the experience tuple data can be constructed, and the experience tuple data is used to train the deep reinforcement learning model. The intelligent agent gradually improves its strategy in continuous trial and learning, improves its ability to evaluate future states and select actions, and can better adapt to complex dialogue environments and provide more personalized and effective services. With the increase of training data, the performance of the intelligent agent will be further improved, and it will be able to more accurately identify and respond to user intentions.
[0076] S206, obtaining personalized weight information of each user, and in the process of the intelligent agent using the experience tuple data to train the deep reinforcement learning model, using the personalized weight information of each user to update the prediction value of the deep reinforcement learning model until a personalized intention recognition model that meets preset conditions is obtained, wherein the personalized intention recognition model is used to identify the personalized intention of each user.
[0077] Obtaining personalized weight information can help the personalized intent recognition model better understand the user's needs and preferences. Personalized weight information can include the user's purchase history, preference settings, behavior patterns, interaction history, etc. Through personalized weight information, a personalized weight can be assigned to each user to reflect their unique behavior and needs.
[0078] During the training process of the deep reinforcement learning model, the personalized intent recognition model learns to predict the value of the action based on the experience tuple data (current state, action, reward value, and next state). By introducing personalized weight information, the model can adjust its predictions to better suit the personalized needs of each user. After multiple rounds of training, the personalized intent recognition model can recognize and understand the personalized intentions of different users. The personalized intent recognition model of the disclosed embodiment can more accurately predict user needs and provide more personalized services by learning the personalized weight information of each user.
[0079] The disclosed embodiments use deep reinforcement learning technology, combined with the user's historical conversation data and personalized weight information, to improve the accuracy of intent recognition and achieve personalized services. As the model receives more training data, its performance will gradually improve, and it will be able to more accurately recognize and respond to the user's intent, achieving the ability to dynamically recognize the user's personalized intent.
[0080] It should be noted that the acquisition, storage, use, and processing of data in the technical solution disclosed in this disclosure are in compliance with the relevant provisions of national laws and regulations, and various types of data such as personal identity data, operation data, behavioral data, etc. related to individuals, customers, and groups obtained in the embodiments of this disclosure have all been authorized.
[0081] In some embodiments of the present disclosure, Figure 3 As shown, the reward value of the agent is calculated based on the user's feedback based on the agent's actions and the pre-designed reward function, and the following steps are also included:
[0082] S302, obtaining user feedback information, the feedback information including completion degree information and satisfaction degree information;
[0083] S304, calculating the reward value of the agent according to the completion degree information and the satisfaction degree information.
[0084] It should be noted that the agent's reward value is calculated based on the user's feedback on the agent's actions and the pre-designed reward function. This reward value reflects the effect of the agent's actions and is used to guide the agent's behavior choices in subsequent conversations. Specifically, feedback information is obtained from the user. Feedback information includes completion information and satisfaction information.
[0085] The completion information refers to whether the agent has completed an action completely; the satisfaction information refers to the user's satisfaction with the agent's action in the next input information.
[0086] Based on the acquired completion and satisfaction information, a pre-designed reward function is used to calculate the agent's reward value. This reward function converts the completion and satisfaction information into a reward value, reflecting the effect of the agent's action. The agent adjusts its strategy based on the calculated reward value to take more effective actions in future conversations. The positive and negative value and size of the reward value directly affect the agent's learning process, prompting the agent to take actions that can bring higher rewards.
[0087] In the disclosed embodiment, the agent can continuously optimize its behavior based on user feedback, thereby providing more accurate and satisfactory answers, and can adjust the agent's behavior in real time based on user feedback to make it more adaptable to the user's personalized needs. As the training progresses, the agent's behavior will be more in line with the user's expectations, thereby improving user experience and satisfaction.
[0088] In some embodiments of the present disclosure, Figure 4 As shown, obtaining personalized weight information of each user also includes the following steps:
[0089] S402, obtaining user characteristic information;
[0090] S404: Calculate the user's personalized weight according to the user's characteristic information.
[0091] It should be noted that the purpose of obtaining personalized weight information for each user is to better understand the user's unique needs and preferences, so as to provide users with more personalized services. Specifically, it is necessary to collect feature information related to the user. User feature information may include but is not limited to the user's purchase history, preference settings, behavior patterns, interaction history, etc. With this information, the system can better understand the user's behavior and needs. Based on the acquired user feature information, the system will use an algorithm or model to calculate the personalized weight of each user. The personalized weight reflects the user's unique needs and preferences and is used to guide the behavior choices of the agent in the conversation.
[0092] The disclosed embodiment can provide personalized services for each user. During the conversation, the agent will adjust its behavior according to the personalized weight information of each user to better adapt to the needs and preferences of the user.
[0093] In some embodiments of the present disclosure, after obtaining historical conversation data between at least one user and customer service, the following steps are further included:
[0094] Perform data preprocessing on historical conversation data;
[0095] Keyword information is extracted from historical conversation data after data preprocessing, and the keywords are used to construct experience tuple data for training deep reinforcement learning models.
[0096] Data preprocessing is to clean and format the collected historical conversation data for subsequent analysis and processing. Data preprocessing may include steps such as removing noise, standardizing text, extracting key information, and classifying conversations.
[0097] Extract keyword information from the historical conversation data after data preprocessing. These keywords are a key part of the experience tuple data used to build and train deep reinforcement learning models. The selection and extraction of keywords help the personalized intent recognition model to better understand the content of the conversation and learn the user's intentions and behavior patterns from it. Since the agent in the disclosed embodiment acts as a robot customer service, the current state, action, next state, and reward value are all based on the conversation data between the user and the customer, so it is crucial to extract keywords from the conversation data to identify the keywords to complete the definition of the current state, action, next state, and reward value of the agent. Keywords can help identify the current state of the agent, that is, the current content of the conversation, the user's intention, and the context of the conversation. The action of the agent is selected based on the current state, and the keywords of the agent's reply can define the action selected by the agent. The user's response or feedback will form a new conversation content, and the keywords in these contents will define the next state of the agent. The reward value is calculated based on the user's feedback on the agent's action and the pre-designed reward function. The keywords in the user's feedback can help evaluate the effect of the agent's action, thereby determining the positive and negative and size of the reward value. In some embodiments of the present disclosure, keywords can be extracted based on the BERT (Bidirectional Encoder Representations from Transformers) model. The BERT model is a powerful pre-trained language representation model that can understand the complexity of language, including vocabulary, grammar, and semantics. The BERT model can be used for a variety of natural language processing tasks such as text classification, named entity recognition, and sentiment analysis. In terms of extracting keywords, the BERT model can provide very valuable help.
[0098] The disclosed embodiments can provide high-quality data input for the deep reinforcement learning model, thereby improving the training effect and performance of the model. By extracting keywords from the conversation data, the intelligent agent can better understand the content of the conversation and the user's intention, thereby making more accurate decisions.
[0099] In some embodiments of the present disclosure, the customer service is a dialogue robot, and the dialogue robot is obtained by training a semantic dialogue model based on pre-collected operational service domain knowledge. Before training the dialogue robot, it is necessary to collect extensive knowledge related to the operational service. Operational service domain knowledge may include product information, service processes, FAQs, laws and regulations, etc. The dialogue robot uses these pre-collected operational service domain knowledge to train a semantic dialogue model. In this way, when the customer service talks with the user, it is convenient to understand and generate dialogue content related to the operational service, including answering the user's questions, providing help and suggestions, etc. In this way, the dialogue robot can generate appropriate answers based on the user's questions or requests using its trained semantic dialogue model. The embodiments of the present disclosure can provide more accurate and relevant answers, thereby improving user experience and service quality.
[0100] In some embodiments of the present disclosure, taking the telecommunications application service field as an example, a specific telecommunications personalized intention dynamic recognition system is applied, such as Figure 5-Figure 6 As shown, a specific example of the method for dynamic identification of personalized intent in an embodiment of the present disclosure is presented.
[0101] Figure 5 A flowchart of a specific personalized intention recognition method in an embodiment of the present disclosure is shown. Figure 5 Application Figure 6 In the personalized intention dynamic recognition system shown, Figure 5 As shown, the method includes:
[0102] S502, user-customer service dialogue: collect multiple rounds of dialogue data between operator users and manual customer service or robot customer service in the system.
[0103] S504, data cleaning: desensitizing and cleaning the conversation data of the mobile phone.
[0104] S506, keyword extraction: Based on the conversation with the user, first extract at least 2 keywords based on the BERT model as the current state and next state of the agent. Then randomly select an action, and calculate the reward value based on the set reward function to construct the data required for training the deep Q network. The data pattern is composed of: (current state s, action a, reward value, next state), which means that the agent takes action a and enters the next state from the current state, and will get a reward r.
[0105] S508, user characteristic data: collect the user's basic information, social relationships, product purchase records, etc., and perform desensitization processing.
[0106] S510, personalized weight extraction: Use the collected user information to build a social network model, where users are nodes and relationships between users are edges. Calculate the personalized weight of users based on the similarity between users, social relationships, and historical behaviors of users.
[0107] S512, user personalized intention recognition: training a personalized intention dynamic recognition model, specifically training a personalized deep Q network PDQN. During training, the process of continuous interaction between the agent and the environment is simulated. The agent continuously observes the user status, selects actions, receives rewards, and combines the personalized weights of each user to update the predicted value of the Q function.
[0108] S514, functional operation: After training DQN, the agent can select the action with the largest Q value according to the user status, thereby realizing dynamic identification of the user's personalized intention. The personalized intention dynamic identification system jumps to the corresponding functional module according to the identified user intention to realize the subsequent user's required operation. The corresponding functional modules are the actions taken by the personalized intention dynamic identification system, that is, the candidate set of user intention, which are product recommendation, business handling, knowledge question and answer, traffic query, product after-sales and transfer to manual service.
[0109] More specifically, the disclosed embodiment uses deep reinforcement learning to realize dynamic personalized recognition of user intentions, and regards the personalized intention dynamic recognition system as an intelligent agent, which is responsible for inferring the user's intentions from the input data and making corresponding decisions. Each round of dialogue between the user and the intelligent customer service is regarded as a time step, and the keywords of the input dialogue are used as the state of the intelligent agent, which contains information about the current environment and the previous behavior and observation history of the intelligent agent. Actions represent the behaviors that the intelligent agent can take in a certain state. In the intention recognition task, actions are defined as a set of possible intention categories of the user. We set a total of 6 possible actions that the system may take, namely, the candidate set of user intentions, namely product recommendation, business processing, knowledge question and answer, traffic query, product after-sales and transfer to manual. Reward is a feedback signal in reinforcement learning, which is used to guide the decision-making of the intelligent agent. In the personalized intention dynamic recognition task, positive rewards can be given according to the correct recognition of the user's intention by the system, and negative rewards can be given for incorrect recognition. In the disclosed embodiment, the reward function is calculated according to the following formula (1).
[0110] R=R f +R s (1)
[0111] Among them, R f is a reward based on task completion, R sIt is a reward based on user satisfaction. The task completion reward is the prediction accuracy of the next action, and the action prediction accuracy is used as the reward score. If the prediction is wrong, the reward score is negative. The user satisfaction reward is based on the user's feedback score. In DQN, the agent predicts the user's next action based on the user's input, and obtains the user's next state and immediate reward. These states, actions, and rewards are used to construct experience tuples and stored in the experience replay buffer. These experience tuples are randomly sampled and used to train the neural network. The weights of the neural network are updated by minimizing the difference between the predicted Q value and the target Q value, thereby improving training efficiency and stability.
[0112] Traditional DQN does not take into account the personalized intention of users. The embodiment of the present disclosure designs a personalized deep Q network (Personalized DQN, PDQN) to realize dynamic recognition of user intention. Specifically, we use a convolutional layer and multiple fully connected layers to build DQN, and the last fully connected layer is used to predict the Q value. The predicted value Q' and the loss function are calculated according to the following formulas (2) and (3).
[0113]
[0114] Where p is the personalized weight extracted from user data, Q(s,a;θ) is the predicted Q value of the prediction network for state s and action a, r is the actual reward, s' is the next state after executing action a, γ is the discount factor, is the maximum Q value of the target Q network for the next state s', where θ - are the parameters of the target Q network. The optimizer gradually improves the performance of the Q network by adjusting the network parameters θ to minimize the loss function. This allows the network to more accurately estimate the long-term reward of performing each action in each state.
[0115] In actual conversations, the personalized intention dynamic recognition system uses a deep Q network to make online decisions based on the current state and selects the action with the highest Q value to achieve dynamic user intention recognition. In this way, the personalized intention dynamic recognition system can adjust its strategy in real time during the conversation and dynamically recognize the user's intention based on the user's input.
[0116] like Figure 6 As shown in the figure, the dialogue management module is embedded with a large model-based natural language processing module, which can parse user input, generate output text, and maintain contextual dialogue, ensuring that the system can record and understand the user's multi-round dialogue context and provide coherent and effective responses.
[0117] The keyword extraction module uses the BERT model to extract keywords input by users based on the dialogue input by users, and obtains the representation of the corresponding word vector based on the pre-trained model for subsequent use.
[0118] The user feature module is used to store and manage basic user information, build user social graphs, process user portraits, and calculate personalized weight factors to provide personalized service support.
[0119] The intention recognition module includes the personalized intention dynamic recognition method based on DQN of the embodiment of the present disclosure. Based on the extracted keywords and corresponding representations, the action with the highest Q value is predicted as the user intention. According to the records stored in the dialogue management module and the historical interaction information of the user context, and the user preference features obtained in the user feature module, the weighted response is performed, so that the user intention can be recognized more accurately.
[0120] The function operation module provides interfaces for various operations, and after identifying the user's intention, provides function operation applications corresponding to each intention.
[0121] The personalized intention dynamic recognition method provided by the embodiment of the present disclosure is a personalized intention recognition method for telecommunications operations and services based on large models and deep reinforcement learning. It utilizes the user's social relationships to learn personalized features, and identifies user interests, preferences, and needs by analyzing the relationship network between users, thereby providing personalized services and suggestions for each user. The trained personalized intention dynamic recognition model is combined with the user's personalized features to enhance the ability to recognize intent. In addition, the embodiment of the present disclosure also uses a large model to enhance the personalized intention dynamic recognition system's understanding of knowledge in the field of telecommunications operations and services. In summary, the embodiment of the present disclosure provides users with a better user experience by improving the accuracy of the intention recognition method and the personalized service capabilities.
[0122] Based on the same inventive concept, the present disclosure also provides a personalized intention dynamic recognition device, as described in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0123] Figure 7 A schematic diagram of a personalized intention dynamic recognition device in an embodiment of the present disclosure is shown. Figure 7 As shown, the device comprises:
[0124] A historical conversation data acquisition module 701 is used to acquire historical conversation data between at least one user and customer service;
[0125] An experience tuple data construction module 702 is used to construct experience tuple data for training a deep reinforcement learning model based on historical dialogue data, wherein the deep reinforcement learning model is used to predict the value of an agent from a state to an action, and the experience tuple data includes the current state, action, reward value and next state of the agent;
[0126] The personalized intention recognition model training module 703 is used to obtain the personalized weight information of each user, and in the process of the intelligent agent using the experience tuple data to train the deep reinforcement learning model, use the personalized weight information of each user to update the prediction value of the deep reinforcement learning model until a personalized intention recognition model that meets the preset conditions is obtained, wherein the personalized intention recognition model is used to identify the personalized intention of each user.
[0127] In some embodiments of the present disclosure, the above-mentioned experience tuple data construction module 702 is also used to use historical dialogue data as the current state of the agent; determine the action of the agent based on the current state; calculate the reward value of the agent based on the user's feedback based on the agent's action and a pre-designed reward function, and obtain the next state of the agent.
[0128] In some embodiments of the present disclosure, the above-mentioned experience tuple data construction module 702 is also used to obtain user feedback information, which includes completion degree information and satisfaction degree information; and calculate the reward value of the agent based on the completion degree information and satisfaction degree information.
[0129] In some embodiments of the present disclosure, the personalized intent recognition model training module 703 is further used to obtain user feature information; and calculate the user's personalized weight based on the user feature information.
[0130] In some embodiments of the present disclosure, the above-mentioned historical conversation data acquisition module 701 is also used to perform data preprocessing on the historical conversation data; extract keyword information from the historical conversation data after data preprocessing, and the keywords are used to construct experience tuple data for training the deep reinforcement learning model.
[0131] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above method embodiments. It should be noted that the above modules as part of the device can be executed in a computer system such as a set of computer executable instructions.
[0132] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0133] Refer to the following Figure 8 The electronic device 800 according to this embodiment of the present disclosure is described. Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0134] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include but are not limited to: at least one processing unit 810, at least one storage unit 820, and a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810).
[0135] Among them, the storage unit stores a program code, and the program code can be executed by the processing unit 810, so that the processing unit 810 executes the steps described in the above "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 810 can execute the following steps of the above method embodiment: obtaining historical conversation data between at least one user and customer service; constructing experience tuple data for training a deep reinforcement learning model based on the historical conversation data, wherein the deep reinforcement learning model is used to predict the value of an intelligent agent from a state to an action, and the experience tuple data includes the current state, action, reward value and next state of the intelligent agent; obtaining personalized weight information for each user, and in the process of the intelligent agent using the experience tuple data to train the deep reinforcement learning model, using the personalized weight information of each user to update the predicted value of the deep reinforcement learning model until a personalized intention recognition model that meets the preset conditions is obtained, wherein the personalized intention recognition model is used to recognize the personalized intentions of each user.
[0136] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 8201 and / or a cache memory unit 8202 , and may further include a read-only memory unit (ROM) 8203 .
[0137] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0138] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0139] The electronic device 800 may also communicate with one or more external devices 840 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 860. As shown, the network adapter 860 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0140] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0141] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer program product, which includes: a computer program, which implements the method in the above embodiment when executed by a processor.
[0142] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. A program product capable of implementing the above method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0143] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, 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), 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 foregoing.
[0144] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0145] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0146] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0147] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0148] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0149] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0150] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A personalized intention dynamic recognition method, characterized in that: include: Obtain historical conversation data between at least one user and customer service; Constructing experience tuple data for training a deep reinforcement learning model based on the historical dialogue data, wherein the deep reinforcement learning model is used to predict the value of an agent from a state to an action, and the experience tuple data includes the agent's current state, action, reward value, and next state; Obtain personalized weight information for each user, and in the process of the intelligent agent using the experience tuple data to train the deep reinforcement learning model, use the personalized weight information for each user to update the predicted value of the deep reinforcement learning model until a personalized intention recognition model that meets preset conditions is obtained, wherein the personalized intention recognition model is used to identify the personalized intention of each user.
2. The personalized intention dynamic recognition method according to claim 1 is characterized in that: The customer service is an intelligent agent, and based on the historical conversation data, the experience tuple data for training the deep reinforcement learning model is constructed, including: Using the historical dialogue data as the current state of the agent; Determine an action of the agent according to the current state; The agent's reward value is calculated based on the user's feedback based on the agent's actions and the pre-designed reward function, and the agent's next state is obtained.
3. The personalized intention dynamic recognition method according to claim 2 is characterized in that: The agent's reward value is calculated based on the user's feedback based on the agent's actions and the pre-designed reward function, including: Obtaining user feedback information, wherein the feedback information includes completion degree information and satisfaction degree information; The reward value of the agent is calculated according to the completion degree information and the satisfaction degree information.
4. The personalized intention dynamic recognition method according to claim 1, characterized in that: Get personalized weight information for each user, including: Obtain user feature information; The user's personalized weight is calculated according to the user characteristic information.
5. The personalized intention dynamic recognition method according to claim 1, characterized in that: After obtaining historical conversation data between at least one user and customer service, the method further includes: Performing data preprocessing on the historical conversation data; Keyword information is extracted from the historical conversation data after data preprocessing, and the keywords are used to construct experience tuple data for training deep reinforcement learning models.
6. The personalized intention dynamic recognition method according to claim 1, characterized in that: The customer service is a dialogue robot, which is obtained by training a semantic dialogue model based on pre-collected operational service domain knowledge.
7. A personalized intention dynamic recognition device, characterized in that: include: A historical conversation data acquisition module, used to acquire historical conversation data between at least one user and customer service; An experience tuple data construction module, used to construct experience tuple data for training a deep reinforcement learning model based on the historical dialogue data, wherein the deep reinforcement learning model is used to predict the value of an intelligent agent from a state to an action, and the experience tuple data includes the current state, action, reward value and next state of the intelligent agent; A personalized intention recognition model training module is used to obtain personalized weight information of each user, and in the process of the intelligent agent using the experience tuple data to train the deep reinforcement learning model, use the personalized weight information of each user to update the prediction value of the deep reinforcement learning model until a personalized intention recognition model that meets preset conditions is obtained, wherein the personalized intention recognition model is used to identify the personalized intention of each user.
8. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the personalized intention dynamic recognition method described in any one of claims 1 to 6 by executing the executable instructions.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the personalized intention dynamic recognition method described in any one of claims 1 to 6 is implemented.
10. A computer program product comprising: A computer program or instruction, characterized in that when the computer program or instruction is executed by a processor, it implements the personalized intention dynamic recognition method described in any one of claims 1 to 6.
Citation Information
Patent Citations
Task type interaction method and system based on deep reinforcement learning
CN110390108A
Dialogue recommendation method for guiding knowledge graph path reasoning based on expert path
CN114238774A
Task-oriented dialogue strategy learning method for user personality perception
CN114611527A
Multi-table joint query method under low-code platform
CN117235119A
Ship fuel supply system and method performing thereof
KR102392826B1
Cited By
Task processing method and device of vehicle-mounted system, electronic equipment, medium and product
CN119336419A
Power supply service command system decision recommendation method and system based on intelligent agent
CN119721750A
Archive information question and answer method and system
CN120216728A
5G message card pushing method based on reinforcement learning optimization framework and large model
CN120258082A
Personalized dynamic intent recognition method and apparatus, and related device
WO2025256070A1
