User dialogue simulation method, device and computer equipment based on multi-image constraint

By acquiring and cleaning real outbound call data from high-value business scenarios such as finance, user and business profiles are constructed. A micro-supervised, two-stage training strategy is used to train a user simulation model, which solves the problem of insufficient data and generates simulated dialogue data that is closer to real user behavior, thereby improving the training effectiveness of the model and the authenticity of virtual users.

CN123180182APending Publication Date: 2026-11-27BAIRONG FINANCIAL INFORMATION SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611397546.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In high-value business scenarios such as finance, existing technologies struggle to generate high-quality dialogue data due to factors such as data privacy protection, compliance constraints, and high costs of manual annotation. This results in insufficient training data for intent recognition models, making it difficult for the models to converge quickly, leading to decreased system performance. Furthermore, the simulation of virtual users lacks realism and is difficult to adapt to rapidly changing business needs.

Method used

By acquiring real outbound call data from target business scenarios, performing data cleaning and processing, extracting user and business profiles, and using a micro-supervised reinforcement two-stage training strategy to train a user simulation model, generating simulated dialogue data, including supervised fine-tuning and reinforcement learning stages, to optimize user role stability, language quality, and business compliance.

Benefits of technology

The generated simulated dialogue data is closer to real user behavior, which improves the training effectiveness of the intent recognition model, reduces the cost of building cold start data, and enhances the realism and stability of virtual user simulation, adapting to the rapid changes in different business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180182A_ABST
    Figure CN123180182A_ABST
Patent Text Reader

Abstract

The application relates to a user dialogue simulation method, device and computer equipment based on multi-image constraints. The method comprises the following steps: obtaining real outbound data of a target service scenario, and performing data cleaning processing on the real outbound data to obtain target outbound data; the target outbound data comprises speech statements of users and corresponding speech intention labels; a user image of each user is extracted through a user image extraction model, and a business image corresponding to each user is constructed based on the corresponding speech intention label of the speech statement of each user; an initial user simulation model is trained through a micro-supervised reinforcement two-stage training strategy based on the user image of each user, the business image of each user and the real outbound data, a user simulation model is obtained, and simulation dialogue data of each user is generated based on the user simulation model. The method can improve the simulation reality of virtual users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of dialogue system technology in natural language processing, and in particular to a user dialogue simulation method, apparatus and computer device based on multi-profile constraints. Background Technology

[0002] With the development of natural language processing technology, dialogue systems are widely used in scenarios such as intelligent customer service and online marketing. Intent recognition, as a core module, relies heavily on large-scale annotated dialogue corpora. In high-value business scenarios such as finance, obtaining high-quality dialogue corpora is difficult due to factors such as data privacy protection, compliance constraints, and the high cost of manual annotation, resulting in insufficient training data for intent recognition models. In target business scenarios, the lack of historical dialogue data makes it difficult for intent recognition models to converge quickly, and the system performance risks a significant decline. To alleviate the data scarcity problem, researchers have proposed a user simulation method. This method involves constructing virtual users to interact with the dialogue system, generating synthetic dialogue corpora to supplement training data and improve the model's generalization ability. Therefore, improving the practicality and realism of constructing virtual users is a current research focus.

[0003] Traditional techniques often generate user statements that conform to business logic by predefining user intent, dialogue flow, and response rules; or they utilize sequence-to-sequence models or Transformer models to generate user statements based on dialogue context, improving the diversity of expression; or they generate user corpora through prompting engineering or fine-tuning of large language models to achieve diverse expressions and contextual consistency. However, these methods rely on manually predefined rules or fixed agenda structures to generate user behavior, resulting in relatively standardized dialogue expressions that fail to capture the colloquial, ellipsis, and non-standard expressions characteristic of real users in financial customer service scenarios. Furthermore, these methods heavily depend on manually designed rules and dialogue flows, requiring the rule system to be rebuilt when business scenarios are expanded or new business lines are added, leading to high development and maintenance costs and difficulty in adapting to rapidly changing business needs. Consequently, the simulation of virtual users in different target business scenarios lacks realism. Summary of the Invention

[0004] Therefore, it is necessary to provide a user dialogue simulation method, apparatus, computer device, computer-readable storage medium, and computer program product based on multi-profile constraints to address the aforementioned technical problems.

[0005] Firstly, this application provides a user dialogue simulation method based on multi-profile constraints, including:

[0006] Acquire real outbound call data for the target business scenario, and perform data cleaning processing on the real outbound call data to obtain target outbound call data; the target outbound call data includes the speech statements of each user and the speech intent tags corresponding to the speech statements of each user;

[0007] Based on the statements of each user and the corresponding intent tags of each user's statements, a user profile of each user is extracted using a user profile extraction model, and a business profile of each user is constructed based on the corresponding intent tags of each user's statements.

[0008] Based on the user profiles and business profiles of each user, as well as the real outbound call data, an initial user simulation model is trained using a micro-supervised, enhanced two-stage training strategy to obtain the user simulation model. Based on the user simulation model, simulated dialogue data for each user is generated.

[0009] Optionally, the real outbound call data includes sub-real outbound call data for each user; the step of cleaning the real outbound call data to obtain the target outbound call data includes:

[0010] The user statement dimension is cleaned and processed on the sub-real outbound call data of each user to obtain the first outbound call data of each user;

[0011] The first outbound call data of each user is cleaned according to the user dialogue dimension to obtain the sub-target outbound call data of each user, and the sub-target outbound call data of all users is used as the target outbound call data.

[0012] Optionally, the step of cleaning the sub-real outbound call data of each user at the user statement dimension to obtain the first outbound call data of each user includes:

[0013] For each user, the user's sub-real outbound call data is anonymized to obtain the user's anonymized outbound call data;

[0014] Based on the user's de-identified outbound call data, the intent model is used to identify the speaking intent of each of the user's spoken statements, and the valid speaking intent among the speaking intents is used as the speaking intent tag of the spoken statement to which the valid speaking intent belongs;

[0015] Each of the aforementioned speaking intent tags and the corresponding speaking statements are used as tagged outbound call data, and the number of user speaking words in each speaking statement in the tagged outbound call data is counted.

[0016] The first statement of all users with a word count not less than the preset word count, and the valid speaking intent corresponding to the first statement, are used as the user's first outbound call data.

[0017] Optionally, the step of cleaning the first outbound call data of each user according to the user dialogue dimension to obtain the sub-target outbound call data of each user includes:

[0018] For each user, the number of statements in the first spoken statement in the user's first outbound call data is counted. If the number of statements is greater than a preset number of statements, the first outbound call data is determined to be the user's sub-target outbound call data.

[0019] Optionally, the step of extracting user profiles for each user based on their spoken statements and corresponding intent tags using a user profile extraction model includes:

[0020] Obtain target outbound call data for each historical user in other business scenarios, and based on the target outbound call data of each historical user, generate objective characteristics and subjective characteristics of each historical user through a large language model;

[0021] Based on the objective and subjective characteristics of each historical user, a historical user profile description information is generated using a large language model. Based on the historical user profile description information and the target outbound call data of each historical user, an initial user profile extraction model is trained to obtain the user profile extraction model.

[0022] Based on the outbound call data of each user's sub-targets, a user profile for each user is generated using the user profile extraction model.

[0023] Optionally, the step of constructing a business profile for each user based on the speech intent tags corresponding to their spoken statements includes:

[0024] For each user, the intent type corresponding to the user is identified based on the user's valid speaking intent tags;

[0025] Based on the user's valid speaking intent tags and the user's intent type, a business profile of the user is generated using a large language model.

[0026] Optionally, the micro-supervised reinforcement two-stage training strategy includes a supervised fine-tuning training stage and a reinforcement learning training stage. The initial user simulation model is trained using the micro-supervised reinforcement two-stage training strategy based on the user profiles of each user, the business profiles of each user, and the real outbound call data to obtain the user simulation model, including:

[0027] Obtain the background information of the target business scenario, and during the supervised fine-tuning training phase, generate a sample quintuple for each user by combining the user profile of each user, the business profile of each user, the real outbound call data, and the background information.

[0028] Based on the five-tuples of each sample, a response probability function corresponding to each user is generated by modeling.

[0029] Based on the response probability function, a negative log-likelihood loss function is constructed for the initial user simulation model. Based on each sample quintuple and the negative log-likelihood loss function, the initial user simulation model is trained to obtain the first user simulation model.

[0030] The first user simulation model is trained through the reinforcement learning training phase to obtain a user simulation model.

[0031] Optionally, the step of training the first user simulation model through the reinforcement learning training phase to obtain the user simulation model includes:

[0032] Based on the background information, the user profiles of each user, and the business profiles of each user, multiple rounds of simulated interaction processing are performed through a preset customer service model and the first user simulation model to generate user response replies corresponding to each user.

[0033] The user response responses corresponding to each user are filtered to identify the candidate user response responses for each candidate user, and a tiered reward system is constructed for each candidate user response response.

[0034] Based on the tiered rewards corresponding to each candidate user's response, a group advantage function is constructed, and based on the group advantage function, a strategy optimization objective is constructed.

[0035] Based on the strategy optimization objective, the first user simulation model is trained to obtain a user simulation model.

[0036] Secondly, this application also provides a user dialogue simulation device based on multi-profile constraints, comprising:

[0037] The acquisition module is used to acquire real outbound call data of the target business scenario and perform data cleaning processing on the real outbound call data to obtain target outbound call data; the target outbound call data includes the speech statements of each user and the speech intent tags corresponding to the speech statements of each user;

[0038] The extraction module is used to extract user profiles of each user based on their spoken statements and the corresponding speaking intent tags of each user's spoken statements, using a user profile extraction model, and to construct a business profile for each user based on the corresponding speaking intent tags of each user's spoken statements.

[0039] The generation module is used to train an initial user simulation model based on the user profiles of each user, the business profiles of each user, and the real outbound call data, through a micro-supervised reinforcement two-stage training strategy, to obtain a user simulation model, and to generate simulated dialogue data for each user based on the user simulation model.

[0040] Optionally, the real outbound call data includes sub-real outbound call data for each user; the acquisition module is specifically used for:

[0041] The user statement dimension is cleaned and processed on the sub-real outbound call data of each user to obtain the first outbound call data of each user;

[0042] The first outbound call data of each user is cleaned according to the user dialogue dimension to obtain the sub-target outbound call data of each user, and the sub-target outbound call data of all users is used as the target outbound call data.

[0043] Optionally, the acquisition module is specifically used for:

[0044] For each user, the user's sub-real outbound call data is anonymized to obtain the user's anonymized outbound call data;

[0045] Based on the user's de-identified outbound call data, the intent model is used to identify the speaking intent of each of the user's spoken statements, and the valid speaking intent among the speaking intents is used as the speaking intent tag of the spoken statement to which the valid speaking intent belongs;

[0046] Each of the aforementioned speaking intent tags and the corresponding speaking statements are used as tagged outbound call data, and the number of user speaking words in each speaking statement in the tagged outbound call data is counted.

[0047] The first statement of all users with a word count not less than the preset word count, and the valid speaking intent corresponding to the first statement, are used as the user's first outbound call data.

[0048] Optionally, the acquisition module is specifically used for:

[0049] For each user, the number of statements in the first spoken statement in the user's first outbound call data is counted. If the number of statements is greater than a preset number of statements, the first outbound call data is determined to be the user's sub-target outbound call data.

[0050] Optionally, the extraction module is specifically used for:

[0051] Obtain target outbound call data for each historical user in other business scenarios, and based on the target outbound call data of each historical user, generate objective characteristics and subjective characteristics of each historical user through a large language model;

[0052] Based on the objective and subjective characteristics of each historical user, a historical user profile description information is generated using a large language model. Based on the historical user profile description information and the target outbound call data of each historical user, an initial user profile extraction model is trained to obtain the user profile extraction model.

[0053] Based on the outbound call data of each user's sub-targets, a user profile for each user is generated using the user profile extraction model.

[0054] Optionally, the extraction module is specifically used for:

[0055] For each user, the intent type corresponding to the user is identified based on the user's valid speaking intent tags;

[0056] Based on the user's valid speaking intent tags and the user's intent type, a business profile of the user is generated using a large language model.

[0057] Optionally, the micro-supervised reinforcement two-stage training strategy includes a supervised fine-tuning training stage and a reinforcement learning training stage, and the generation module is specifically used for:

[0058] Obtain the background information of the target business scenario, and during the supervised fine-tuning training phase, generate a sample quintuple for each user by combining the user profile of each user, the business profile of each user, the real outbound call data, and the background information.

[0059] Based on the five-tuples of each sample, a response probability function corresponding to each user is generated by modeling.

[0060] Based on the response probability function, a negative log-likelihood loss function is constructed for the initial user simulation model. Based on each sample quintuple and the negative log-likelihood loss function, the initial user simulation model is trained to obtain the first user simulation model.

[0061] The first user simulation model is trained through the reinforcement learning training phase to obtain a user simulation model.

[0062] Optionally, the generation module is specifically used for:

[0063] Based on the background information, the user profiles of each user, and the business profiles of each user, multiple rounds of simulated interaction processing are performed through a preset customer service model and the first user simulation model to generate user response replies corresponding to each user.

[0064] The user response responses corresponding to each user are filtered to identify the candidate user response responses for each candidate user, and a tiered reward system is constructed for each candidate user response response.

[0065] Based on the tiered rewards corresponding to each candidate user's response, a group advantage function is constructed, and based on the group advantage function, a strategy optimization objective is constructed.

[0066] Based on the strategy optimization objective, the first user simulation model is trained to obtain a user simulation model.

[0067] Thirdly, this application provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described in any one of the first aspects.

[0068] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[0069] Fifthly, this application provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[0070] The aforementioned user dialogue simulation method, apparatus, and computer equipment based on multi-profile constraints obtain target outbound call data by acquiring real outbound call data of a target business scenario and background information of the target business scenario, and performing data cleaning processing on the real outbound call data. The target outbound call data includes the speech statements of each user and the speech intent tags corresponding to the speech statements of each user. Based on the speech statements of each user and the speech intent tags corresponding to the speech statements of each user, a user profile is extracted for each user through a user profile extraction model, and a business profile corresponding to each user is constructed based on the speech intent tags corresponding to the speech statements of each user. Based on the user profiles of each user, the business profiles of each user, the real outbound call data, and the background information, an initial user simulation model is trained through a micro-supervised reinforcement two-stage training strategy to obtain a user simulation model, and simulated dialogue data of each user is generated based on the user simulation model. This solution employs a data cleaning process on real outbound call data from the target business scenario. This results in generated target outbound call data that more closely resembles real user behavior, improving the effectiveness of downstream intent recognition model training. Secondly, by constructing user and business profiles and employing a micro-supervised reinforcement two-stage training strategy, the solution trains an initial user simulation model. This initial model can quickly adapt to different business scenarios by adjusting prompt word templates. Even in the absence of labeled data, it can generate user corpora that meet the requirements of the target business scenario without retraining, thereby reducing data construction costs during the cold start phase and improving deployment efficiency. The micro-supervised reinforcement two-stage training strategy includes a supervised fine-tuning training stage and a reinforcement learning training stage. Through these two stages, the model can simultaneously optimize user role stability, language quality, business compliance, and expression diversity in multi-round practice, thus improving the stability, consistency, and realism of multi-round user simulations. Finally, the user simulation model trained in this way is used to construct simulated dialogue data for each user, effectively improving the realism of virtual user simulations for the target business scenario. Attached Figure Description

[0071] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0072] Figure 1 This is a flowchart illustrating a user dialogue simulation method based on multi-profile constraints in one embodiment.

[0073] Figure 2 This is a flowchart illustrating a user dialogue simulation example based on multiple profile constraints in one embodiment.

[0074] Figure 3 This is a structural block diagram of a user dialogue simulation device based on multi-profile constraints in one embodiment.

[0075] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0076] 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.

[0077] The user dialogue simulation method based on multi-profile constraints provided in this application can be applied to a user dialogue simulation system based on multi-profile constraints. This system can be applied to a terminal, which can be, but is not limited to, various personal computers, laptops, mid-range computers, etc. Specifically, the terminal performs data cleaning on real outbound call data from the target business scenario, thereby making the generated target outbound call data more closely resemble real user behavior dialogue data, which is beneficial to improving the effectiveness of downstream intent recognition model training. Secondly, this solution constructs user profiles and business profiles, and trains an initial user simulation model through a micro-supervision-enhanced two-stage training strategy. This allows the initial user simulation model to quickly adapt to different business scenarios by adjusting prompt word templates. Even in the absence of labeled data, it can generate user corpus that meets the requirements of the target business scenario without retraining the model, thereby reducing the data construction cost in the cold start phase and improving deployment efficiency. The micro-supervised reinforcement two-stage training strategy includes a supervised fine-tuning training stage and a reinforcement learning training stage. Through the above two-stage training strategy, the model can simultaneously optimize user role stability, language quality, business compliance, and expression diversity in multi-round practice, thereby improving the stability, consistency, and realism of multi-round user simulation. Finally, the user simulation model trained in this way can construct simulated dialogue data for each user, which can effectively improve the realism of virtual user simulation for the target business scenario.

[0078] The user data, data acquisition, and / or use involved in the embodiments of this application strictly comply with the laws, regulations, and industry standards of relevant countries and regions. The collection and acquisition of data involved in the embodiments of this application are all done in advance by actively prompting or prominently displaying information to inform users and obtaining authorization, or by obtaining full authorization from all parties. The processing, forwarding, and use of data involved in the embodiments of this application are all carried out on the premise that the user or relevant party is fully informed and authorized. In implementing the various embodiments of this application, the types of data or information, scope of use, and usage scenarios that may be involved are informed to users or relevant parties and authorization is obtained through appropriate means. The specific methods of notification and authorization may vary according to the actual situation, and this application is not limited in this regard. The processing of personal information involved in the embodiments of this application is carried out under the premise of having a legal basis (such as obtaining the consent of the personal information subject or being necessary for the performance of a contract), and is only processed within the prescribed or agreed scope. Sensitive personal information such as biometric information, medical and health information, financial account information, and precise location information involved in the embodiments of this application are all processed under the premise of having a specific purpose and sufficient necessity, and with the separate authorization and consent of the user or relevant party. In some embodiments of this application, if the user or related party refuses to process personal information other than the information necessary for the basic functions, it will not affect the use of the basic functions of the embodiments of this application.

[0079] This disclosure utilizes a dedicated text generation model—a user profile extraction model—obtained through supervised fine-tuning (SFT) of the qwen3-14B base large language model to extract user profiles, and a conditional text generation model—a user simulation model—obtained through two-stage training based on a user simulation large language model to generate simulated dialogue data for each user in the target business scenario. This satisfies the basic logical relationship between data extraction and data generation, which conforms to the inherent correlation of natural laws. This addresses the technical problem of poor realism in virtual user simulations for different target business scenarios and effectively improves the realism of simulated dialogue data generated by simulating user dialogue processes under different business scenario conditions, such as high-value business scenarios and new business scenarios.

[0080] In one exemplary embodiment, such as Figure 1 As shown, a user dialogue simulation method based on multi-profile constraints is provided. Taking the application of this method to a terminal as an example, the method includes the following steps S101 to S103. Wherein:

[0081] Step S101: Obtain the actual outbound call data of the target business scenario, and perform data cleaning processing on the actual outbound call data to obtain the target outbound call data.

[0082] The target outbound call data includes each user's spoken statements and the corresponding speaking intent tags for each user's spoken statements.

[0083] In this embodiment, the terminal responds to the staff's upload operation by acquiring real outbound call data for the target business scenario that requires user simulation statement generation. This target business scenario can be, but is not limited to, high-value business scenarios such as finance, transactions, and policy formulation (e.g., financial customer service scenarios), and new business scenarios (e.g., business scenarios when expanding business scenarios or adding new business lines). This real outbound call data consists of actual dialogue data collected between different users and customer service representatives within the target scenario. Examples of such dialogue data include:

[0084] Customer Service: Hello Mr. Zhang Ming, I am Xiaohua Bank's AI customer service. As you are a valued customer of our bank, we have prepared an exclusive event for you. After participating, you will have the opportunity to receive benefits and rewards for several consecutive months. May I give you a brief introduction?

[0085] User: Where are you from?

[0086] Customer Service: We are from Xiaohua Bank. You should have handled related business with our bank before. I don't know if you remember.

[0087] User: Uh...

[0088] Customer Service: I'm calling to introduce a customer appreciation program. Let me briefly explain. During the program, after participating in designated services, you can receive corresponding rewards every month for a period of time. The specific details will vary depending on your participation. Would you like me to continue?

[0089] User: Hello, go ahead and say it.

[0090] Customer Service: Here's the thing. After you participate in the designated products or services during the event, you will continue to receive some customer benefits and event rewards. The specific participation methods and benefits will be explained in detail later. Let me tell you how to participate.

[0091] User: Did you buy that Little Flower Bank account from WeChat?

[0092] Customer Service: Yes, you can participate in this event online. I'll send you a text message later. You can also contact your account manager for more details about the event, and participate if you think it's suitable.

[0093] User: Okay, send it to me then. I'll take a look later, okay? I have something to do now, so please send it to me first, alright?

[0094] Customer Service: Okay, I'll send you a text message shortly. You can learn more about the event from the message.

[0095] User: Okay, sure, then.

[0096] Customer service: Okay, then we won't bother you any longer. If you didn't receive the text message in time, you can also check your SMS blocking settings. Have a nice day, goodbye.

[0097] Then, the terminal performs data cleaning on the actual outbound call data to obtain the target outbound call data. This data cleaning process includes sentence-level cleaning and dialogue-level cleaning. The aggregate cleaning is used to desensitize, filter intent, and perform single-sentence filtering on each user's spoken statements. The dialogue-level cleaning cleans all of a user's spoken statements based on the number of valid pre-extracted user statements. The specific cleaning process will be explained in detail later.

[0098] Step S102: Based on each user's speech statements and the corresponding speech intent tags, extract each user's user profile using a user profile extraction model, and construct a business profile for each user based on the corresponding speech intent tags.

[0099] In this embodiment, the terminal extracts user profiles for each user based on their spoken statements and corresponding intent tags, using a user profile extraction model. Based on these intent tags, a corresponding business profile is constructed for each user. This user profile extraction model is a dedicated text generation model obtained through supervised fine-tuning (SFT) of the qwen3-14B base large language model. The terminal trains this user profile extraction model using target outbound call data from other business scenarios, containing data from different users, before executing step S102. The extracted user profiles include objective features, subjective features, and descriptive information generated by combining objective and subjective features. The corresponding business profiles for each user are generated using a large model based on intent tags, using standardized business profile sentences, such as: "You may be interested in... and will... confirm in this way," or "You may... and therefore tend to...". These business profile sentences have a consistent style, are concise, and do not contain specific user dialogue statements or business examples. The specific methods for extracting user profiles and business profiles will be explained in detail later.

[0100] Step S103: Based on the user profiles, business profiles, and real outbound call data of each user, an initial user simulation model is trained using a micro-supervised, enhanced two-stage training strategy to obtain the user simulation model. Based on the user simulation model, simulated dialogue data of each user is generated.

[0101] In this embodiment, the terminal trains an initial user simulation model based on user profiles, business profiles, and real outbound call data using a micro-supervised reinforcement two-stage training strategy. This results in a user simulation model, which then generates simulated dialogue data for each user. The supervised reinforcement two-stage training strategy includes a supervised fine-tuning stage and a reinforcement learning stage. The user simulation model is a conditional text generation model obtained through two-stage training based on a user simulation large language model. The supervised fine-tuning stage reduces the deviation between the simulated dialogue data generated by the user simulation model and real user responses, improving the realism of the simulated dialogue data generated by the user simulation model in the target business scenario. The reinforcement learning stage optimizes the user simulation model using the GRPO (Group Relative Policy Optimization) reinforcement learning algorithm. Through intra-group relative comparisons, it improves behavioral consistency and language quality in multi-turn dialogues, making the generated responses more coherent, natural, and consistent with user role characteristics. The specific training process will be explained in detail later. During the generation phase, the terminal combines the background information, user profile, and business profile of the business scenario into an instruction component, and uses historical dialogue content as input. These are then fed into the user simulation model, which generates user response statements that conform to the user profile style, business profile constraints, and dialogue context. The background information refers to the product or organization description within the target business scenario, providing contextual information for that scenario.

[0102] When adapting to different scenarios, the terminal can adapt to different business scenarios by modifying the background information description in the prompt word template, without retraining the user simulation model. For example, the terminal can change the background information from "retail financial marketing outbound call scenario of local commercial banks" to "auto insurance renewal outbound call scenario of insurance companies" and adjust the corresponding business profile intent space at the same time to generate user corpus that meets the requirements of the new business scenario, thereby realizing low-cost cross-scenario user corpus generation and cold start data construction.

[0103] Based on the above solution, by cleaning and processing real outbound call data from the target business scenario, the generated target outbound call data can more closely resemble the dialogue data of real user behavior, which is beneficial to improving the effectiveness of downstream intent recognition model training. Secondly, this solution constructs user profiles and business profiles, and trains the initial user simulation model through a micro-supervised reinforcement two-stage training strategy. This initial user simulation model can quickly adapt to different business scenarios by adjusting the prompt word template. Even in the absence of labeled data, it can generate user corpora that meet the requirements of the target business scenario without retraining the model, thereby reducing the data construction cost in the cold start phase and improving deployment efficiency. The micro-supervised reinforcement two-stage training strategy includes a supervised fine-tuning training stage and a reinforcement learning training stage. Through these two stages of training, the model can simultaneously optimize user role stability, language quality, business compliance, and expression diversity in multi-round practice, thereby improving the stability, consistency, and realism of multi-round user simulation. Finally, the user simulation model trained in this way constructs simulated dialogue data for each user, which can effectively improve the realism of virtual user simulation for the target business scenario.

[0104] Optionally, the real outbound call data includes the sub-real outbound call data of each user; the real outbound call data is cleaned to obtain the target outbound call data, including: cleaning the sub-real outbound call data of each user at the user statement dimension to obtain the first outbound call data of each user; cleaning the first outbound call data of each user at the user dialogue dimension to obtain the sub-target outbound call data of each user, and using the sub-target outbound call data of all users as the target outbound call data.

[0105] In this embodiment, the terminal performs user-statement-level cleaning processing on the sub-real outbound call data of each user to obtain the first outbound call data of each user. This user-statement-level cleaning processing corresponds to the sentence-level cleaning process described above.

[0106] The terminal performs user dialogue-level cleaning processing on the first outbound call data of each user to obtain sub-target outbound call data for each user, and uses all users' sub-target outbound call data as the target outbound call data. This user dialogue-level cleaning processing corresponds to the dialogue-level cleaning process described above. The specific execution methods of the two cleaning processes will be explained in detail later.

[0107] Based on the above scheme, by using sentence-level cleaning and dialogue-level cleaning, we can ensure the comprehensiveness of the representation of user profile features, user behavior features and user intent by real outbound call data, while also avoiding the leakage of user privacy and the influence of available sentences with non-real intent on the subsequent model training.

[0108] Optionally, the sub-real outbound call data of each user is cleaned at the user statement dimension to obtain the first outbound call data of each user. This includes: for each user, the sub-real outbound call data of the user is anonymized to obtain the user's anonymized outbound call data; based on the user's anonymized outbound call data, the intention of each user's statement is identified through an intent model, and the valid intentions in each statement are used as the intention tags of the statements to which the valid intentions belong; each intention tag and the statement corresponding to each intention tag are used as labeled outbound call data, and the number of user statements in each statement in the labeled outbound call data is counted; the first statement of all users with a number of statements not less than a preset number of statements, and the valid intentions corresponding to the first statement, are used as the user's first outbound call data.

[0109] In this embodiment, the terminal performs desensitization processing on the user's sub-real outbound call data for each user to obtain the user's desensitized outbound call data. Specifically, the desensitization processing method is to uniformly replace information such as the user's name and mobile phone number in each of the user's statements with fake data. For example, the name "Zhang Ming" is replaced with "Li Hua", and the mobile phone number "12345678901" is replaced with "11111111111".

[0110] Based on anonymized outbound call data, an intent model is used to identify the intent behind each user's speech, and the valid intents within each speech intent are used as the speech intent labels for the speech statements to which they belong. This intent recognition model can be any model among large language model-based classification heads, BERT-like encoders and classification layers, or traditional classifiers. Then, the terminal uses each speech intent label and the corresponding speech statement as labeled outbound call data, and counts the number of words spoken by the user in each speech statement within the labeled outbound call data. For example, the labeling method for speech intent is as follows: "Where are you?" is labeled as "Inquiring about company name," "Uh, oh, uh." is labeled as invalid interjections, "Hello, ah, go ahead and say it." is labeled as "Hello, please speak," "Did you buy that Little Flower Bank from WeChat?" is labeled as "Inquiring about purchase channel," "Okay, send it to me, I'll take a look later, okay? I have something to do now, send it to me first, okay?" is labeled as "Requesting a text message," and "Okay, sure, okay." is labeled as "Confirmed." Delete user comments with invalid intent tags such as "Uh oh uh." For genuine behavioral characteristics tags like "teasing AI" and "customer swearing," retain them as part of the user profile, but not as samples for user simulation training.

[0111] The first message from any user with a character count at or above a preset character count, along with the corresponding valid message intent, is considered the user's first outbound call data. This preset character count can be 4 characters. However, if the number of characters in a message is less than 4, it is difficult to extract sufficient user behavior features. Therefore, messages with a character count below the preset character count are directly deleted.

[0112] Based on the above scheme, by using methods such as desensitization, intent filtering, and single-sentence filtering, we can ensure that each statement can represent the user's behavioral characteristics, effectively improving the accuracy of extracting user behavioral characteristics.

[0113] Optionally, the first outbound call data of each user is cleaned according to the user dialogue dimension to obtain the sub-target outbound call data of each user, including: for each user, counting the number of the first spoken statements in the user's first outbound call data, and if the number of statements is greater than the preset number of statements, the first outbound call data is determined as the user's sub-target outbound call data.

[0114] In this embodiment, the terminal counts the number of statements in the first spoken statement in the user's first outbound call data for each user. If the number of statements is greater than a preset number, the first outbound call data is determined to be the user's sub-target outbound call data. The preset number of statements can be three. Since a small number of statements cannot support the extraction of stable objective and subjective features by the user profile extraction model, ensuring a sufficient number of statements ensures the robustness of user feature extraction based on the user's sub-target outbound call data.

[0115] Based on the above scheme, by pre-setting the number of statements, the first outbound call data of each user is filtered, thereby selecting the first outbound call data that can stably represent the user characteristics as the sub-target outbound call data, which effectively improves the feature representation robustness of the sub-target outbound call data.

[0116] Optionally, based on each user's spoken statements and the corresponding speaking intent tags, a user profile extraction model is used to extract user profiles for each user. This includes: acquiring target outbound call data for each historical user in other business scenarios, and generating objective and subjective characteristics for each historical user using a large language model based on the target outbound call data; generating historical user profile description information for each historical user using a large language model based on the objective and subjective characteristics; training an initial user profile extraction model based on the historical user profile description information and the target outbound call data for each historical user to obtain the user profile extraction model; and generating user profiles for each user using the user profile extraction model based on the sub-target outbound call data for each user.

[0117] In this embodiment, the terminal acquires target outbound call data for each historical user in other business scenarios, and based on this data, generates objective and subjective characteristics for each historical user using a large language model. The "other business scenarios" can be business scenarios that do not include the target scenario, or they can include both the target scenario and other business scenarios. The target outbound call data for each historical user in other business scenarios is the outbound call data obtained after cleaning the actual outbound call data of each historical user according to the aforementioned cleaning method.

[0118] The objective characteristics include basic information such as gender, age, and occupation, which are inferred from clues in the historical statements of users. For example, if a user mentions "I just retired this year," their age is inferred to be over 60; if they mention "I work at a company," their occupation is inferred to be a corporate employee. The subjective characteristics are based on the five personality dimensions (extraversion, agreeableness, conscientiousness, stability, and openness), assessed by judging the emotion and tone of the historical statements of users, ultimately generating high, medium, and low scores. For example, if a user frequently uses short responses and a calm tone, their agreeableness is rated high and their extraversion low; if a user exhibits significant emotional fluctuations in the conversation, their stability is rated low.

[0119] Based on the objective and subjective characteristics of each historical user, the terminal generates historical user profile descriptions using a large language model. Based on these descriptions and target outbound call data, an initial user profile extraction model is trained, resulting in the final user profile extraction model. Prior to training, the terminal constructs a training set by supervising and fine-tuning the data format based on the historical user profile descriptions and target outbound call data. In this training set, the instruction and input are concatenated and used as the model input, while the output serves as the model's generation target. A specific format is shown below.

[0120] Instructions: For experts skilled in creating user personas based on dialogue analysis. Analyze the provided user statements and tags to obtain comprehensive and descriptive user personas (i.e., historical user A persona description information).

[0121] Input: [{"User's message":"Where are you?","Tag":"Inquiring about company name"},{"User's message":"Hello, oh, go ahead.","Tag":"Hello, please speak"},{"User's message":"Your Little Flower Bank, did you buy it from WeChat back then?","Tag":"Inquiring about purchase channel"},{"User's message":"Okay, send it to me, I'll take a look later, okay? I have something to do now, send it to me first, okay?","Tag":"Requesting SMS"},{"User's message":"Okay, sure.","Tag":"Definitely"}] (i.e., historical sub-target outbound call data).

[0122] Output: Throughout your communication, you maintain a consistently gentle and humble demeanor, speaking concisely and naturally, often expressing agreement with brief responses. Your expression is relaxed and fluent, without excessive elaboration, yet conveys your goodwill and respect. The overall communication process is clear and stable, giving an impression of reliability and trustworthiness. You value organization and confirmation, preferring to respond only after fully understanding the information, demonstrating an accurate grasp of the data and a responsible attitude. Your personality is introverted and stable; you are not hasty in expressing yourself, nor are you swayed by emotions. You prefer to listen and understand rather than seize the initiative, and this composure makes others feel at ease in your presence. Friendliness and affability permeate your communication; you skillfully maintain harmony in the conversation with appropriate tone and know when to respond at the right time.

[0123] The terminal uses the qwen3-14B as the training base model. By learning the mapping relationship between (instruction + input) and output, it gradually acquires the ability to extract user profiles. After training, a user profile extraction model is obtained.

[0124] Finally, based on the sub-target outbound call data of each user in the target business scenario, the terminal extracts user profiles for each user using a pre-trained user profile extraction model. These user profiles include objective features, subjective features, and user profile description information.

[0125] Based on the above scheme, by training an independent user profile extraction model, descriptive user profiles containing objective features and subjective features of the five personality dimensions are extracted from user speech and intent tags. The user profiles are used as conditional constraints in the user simulation model generation process, enabling the model to generate user responses with differentiated tone styles, expression habits and interaction methods according to different user characteristics. This can improve the diversity and distribution coverage of the generated corpus, which is conducive to improving the generalization performance of the intent recognition model.

[0126] Optionally, based on the speech intent tags corresponding to each user's speech statements, a business profile for each user is constructed, including: for each user, identifying the user's corresponding intent type based on the user's valid speech intent tags; and generating the user's business profile through a large language model based on the user's valid speech intent tags and the user's intent type.

[0127] In this embodiment, the terminal identifies the user's intent type based on the user's valid speech intent tag for each user. The intent type is the tag type corresponding to the valid speech intent tag, and this tag type includes, but is not limited to, asking for the company name, "hello, please speak," requesting a text message, affirmation, asking for a purchase channel, etc. Then, based on the user's valid speech intent tag and the user's intent type, the terminal generates a user business profile using a large language model. The generated business profile is a standardized business profile sentence structure that is not a specific statement or business instance. For example, the business profile sentences generated for different intent types are as follows:

[0128] When asked about the type of company name: You may be concerned about the authenticity of the service provider and the background of the organization, and tend to confirm the company or platform information before continuing communication.

[0129] Hello, please speak type: You may be open to communication, and will give a brief response first and wait for the other party to explain the specific content.

[0130] Requested text message type: You may prefer to receive information via text, so you would request that the relevant content be sent before you learn more.

[0131] Affirmative type: You are likely to give a concise and direct confirmation after understanding what the other person is saying, and the overall communication and cooperation level is high.

[0132] Inquire about the type of purchase channel: You may be interested in the source of the product or service and therefore tend to confirm the specific purchase or processing channel.

[0133] Based on the above scheme, by generating standardized business profile sentences based on intent tags, the user simulation model can be explicitly constrained in terms of each user's focus and behavioral tendencies in the target business scenario when training the model.

[0134] Optionally, the micro-supervised reinforcement two-stage training strategy includes a supervised fine-tuning training stage and a reinforcement learning training stage. Based on the user profiles, business profiles, and real outbound call data of each user, the initial user simulation model is trained through the micro-supervised reinforcement two-stage training strategy to obtain the user simulation model. This includes: acquiring background information of the target business scenario, and during the supervised fine-tuning training stage, generating sample quintuples for each user from the user profiles, business profiles, real outbound call data, and background information; modeling and generating response probability functions for each user based on each sample quintuple; constructing a negative log-likelihood loss function for the initial user simulation model based on the response probability function, and training the initial user simulation model based on each sample quintuple and the negative log-likelihood loss function to obtain the first user simulation model; and training the first user simulation model through the reinforcement learning training stage to obtain the final user simulation model.

[0135] In this embodiment, during the supervised fine-tuning training phase, the terminal generates a sample quintuple for each user based on their user profile, business profile, actual outbound call data, and background information. Then, based on these sample quintuples, it models and generates a response probability function for each user. The background information includes a description of the product or organization within the target business scenario, providing contextual information for that scenario. The sample quintuple is constructed from a single user's user profile, business profile, actual outbound call data, and background information, and is characterized as follows: , For background information, User speech information from real outbound call data, Create a user profile for this user. Create a business profile for the user. This represents user responses from real outbound call data. Each sample quintuple includes background information, user profile, business profile, user message information, and user response. For example:

[0136] Background Information: This is a retail financial marketing outbound call scenario from a local commercial bank, promoting new customer reward programs and short-term wealth management products to new and potentially active customers. The bank aims to increase user acquisition rates, activation rates, and the usage rate of wealth management products through outbound calls.

[0137] User Profile: Generated by a trained user profile extraction model, it includes both objective and subjective characteristics of the user, helping the model understand the user's behavior and personality. In this embodiment, the user profile is as follows: You maintain a consistently gentle and humble attitude in communication, using concise and natural language, often expressing agreement with brief responses. Your expression is relaxed and fluent, without excessive elaboration, yet conveys your goodwill and respect. The overall communication process is clear and stable, giving an impression of reliability and trustworthiness. You value organization and confirmation, tending to respond only after full understanding, demonstrating an accurate grasp of information and a responsible attitude. Your personality is introverted and stable; you are not in a hurry to express yourself, nor are you swayed by emotions. You prefer to listen and understand rather than seize the floor, this composure making others feel at ease in your presence. Friendliness and affability permeate your communication; you are adept at maintaining harmony in dialogue with appropriate tone and know when to respond at the right time.

[0138] Business Profile: This section displays business topics that users might be interested in, guiding the model on how to generate relevant business-related content. In this example, the business profile is: You might be concerned about the authenticity and organizational background of the service provider, and tend to confirm company or platform information before continuing communication.

[0139] User message: [{"role": "assistant", "content": "Hello Mr. Li Hua, I am Xiaohua Bank's intelligent customer service representative. As you are a VIP customer of our bank, we are pleased to bring you an exclusive promotion. For every 10,000 yuan you deposit, you can receive WeChat discounts, phone credit coupons, and other rewards for 10 consecutive months. Would you like me to explain it to you in detail?"}]

[0140] User reply: Where are you from?

[0141] Based on the five-tuples of each sample, the terminal constructs a response probability function through conditional probability modeling. This response probability function is used to calculate the user response generated by the user simulation model. The probability of the response is given by the following formula:

[0142]

[0143] Then, based on the response probability function, the terminal constructs a negative log-likelihood loss function for the initial user simulation model, and trains the initial user simulation model based on the five-tuples of each sample and the negative log-likelihood loss function to obtain the first user simulation model. When constructing the negative log-likelihood loss function, the terminal uses a standard autoregressive cross-entropy form based on the response probability function to maximize user responses on the training samples. The conditional log-likelihood is used as the optimization objective to construct a negative log-likelihood loss function, where the optimization objective is used to reduce the user responses simulated by the user simulation model and the user responses... The deviation between them. The formula for calculating the negative log-likelihood loss function is:

[0144]

[0145] Finally, the terminal trains the first user simulation model through a reinforcement learning training phase to obtain the user simulation model.

[0146] Based on the above approach, a multi-condition jointly driven generation framework is constructed by using background information, user profiles, business profiles, and dialogue history as unified input conditions. Then, the user simulation model is optimized and trained using the negative log-likelihood loss function as the optimization objective. This allows the model to quickly adapt to different business scenarios by adjusting the prompt word templates. Even in the absence of labeled data, the model can generate user corpora that meet the requirements of new business scenarios without retraining, thereby reducing the data construction cost in the cold start phase and improving deployment efficiency.

[0147] Optionally, through a reinforcement learning training phase, the first user simulation model is trained to obtain a user simulation model, including: based on background information, user profiles of each user, and business profiles of each user, multiple rounds of simulated interaction are performed using a preset customer service model and the first user simulation model to generate user response replies for each user; the user response replies for each user are used to filter candidate user response replies for each candidate user, and a tiered reward is constructed for each candidate user response reply; based on the tiered reward for each candidate user response reply, a group dominance function is constructed, and based on the group dominance function, a strategy optimization objective is constructed; based on the strategy optimization objective, the first user simulation model is trained to obtain the user simulation model.

[0148] In this embodiment, the terminal, based on background information, user profiles of each user, and business profiles of each user, performs multiple rounds of simulated interaction processing using a preset customer service model and a first user simulation model to generate corresponding user response replies for each user. These user response replies are the training data constructed in this solution. This training data is dynamically constructed through multiple rounds of training between the user simulation model and the customer service model. To ensure the diversity of the training data, the terminal can also select user profile data from different users obtained under the same background information but different business scenarios to construct the data. Specifically, the construction method of the user response replies is as follows: First, fixed global condition information is initialized for each round of dialogue, including: background information and the user profile of the user applied in this round of dialogue. The above two parts of information remain consistent throughout the entire dialogue process to ensure the consistency of user behavior and the stability of the user role.

[0149] Secondly, the terminal further introduces business profiles as dynamic conditions at the round level. Business profiles can be the business profiles of the users used in the current round of dialogue, or they can be generated through a business intent transition probability matrix pre-built by the terminal. This is used to describe the business topics and potential behavioral tendencies that users may pay attention to in the current round, thereby explicitly constraining the business direction of the user's response.

[0150] The business intent transition probability matrix records the transition probability between different intent types, such as the probability of transitioning from "asking for company name" to "hello, please say" or from "asking for purchase channel" to "requesting SMS". The terminal can use this matrix to sample the intent tags of the previous round to obtain the intent tags of the current round, and then generate the business profile corresponding to the user.

[0151] Furthermore, the terminal uses background information, user profile, current business profile, and historical dialogues as input conditions. The first user simulation model and the customer service model of the converged business standard operating procedure (SOP) are trained in multiple rounds. The customer service model is used to generate customer service replies, and the first user simulation model is used to generate the user response corresponding to the customer reply.

[0152] As the dialogue progresses, the terminal continuously accumulates historical dialogue information and uses it as contextual input in subsequent rounds. This enhances the contextual consistency, behavioral continuity, and naturalness of the user simulation across multiple rounds of interaction, resulting in reinforcement learning training data that more closely resembles real-world business scenarios. This data then serves as the user's corresponding response. The terminal uses this initial user simulation model and the iterative model of the customer model as the policy model.

[0153] The terminal randomly selects a preset number of user response responses from the user responses corresponding to each user, as candidate user response responses for each candidate user, and constructs a tiered reward system for each candidate user response response; the random selection method is as follows: the terminal selects from the strategy model... The generated user response replies for each user Sample G candidate user responses:

[0154]

[0155] Where G is the number of candidate groups, which includes the responses from each candidate user; for example, G=8.

[0156] Secondly, the terminal calculates the tiered reward for each candidate user's response, which includes dialogue-level rewards and sentence-level rewards.

[0157] The dialogue-level reward is defined as follows:

[0158]

[0159] in The user profile consistency score is obtained by calculating the cosine similarity between the current dialogue user profile obtained through the user profile extraction model and the target user profile.

[0160] Sentence-level reward is defined as:

[0161]

[0162] in, For generated user replies Dialogue with History The semantic consistency score between them is given by the large model on a scale of 0 to 5; for Language naturalness score, used to reduce user responses The AI-generated feel is scored from 0 to 5 by a large model; A consistency score is assigned to the business profile, with the larger model providing a score of 0 or 1. for The non-repetition score is calculated by comparing the cosine similarity between the current user's reply and the replies of adjacent historical users. If the similarity exceeds 0.8, it is considered a duplicate expression and assigned a value of 0; otherwise, it is assigned a value of 1.

[0163] The tiered reward is the sum of the dialogue-level reward and the sentence-level reward.

[0164] Next, the terminal constructs an intra-group advantage function based on the tiered rewards corresponding to each candidate user's response. Specifically, this intra-group advantage function is implemented by the terminal calculating a reward set for each candidate response:

[0165]

[0166] Where G is the number of candidate groups. The corresponding tiered reward is given to the i-th candidate user for their reply.

[0167] Calculate the within-group mean and standard deviation:

[0168]

[0169]

[0170] in, For the mean, This represents the labeled difference. The formula for calculating the intra-group dominance function is:

[0171]

[0172] Among them, the A small constant used for numerical stability. In this embodiment... The standardized dominance function reflects the relative merit of each candidate response within the group; a positive value indicates that the candidate response is better than the group average, while a negative value indicates that it is worse than the group average. The terminal uses this standardized dominance function as the group dominance function.

[0173] The terminal constructs a policy optimization objective based on the intra-group advantage function; specifically, the terminal uses the Group Relative Policy Optimization (GRPO) policy gradient optimization objective function.

[0174]

[0175] The above formula calculates the negative log-likelihood loss of each candidate user's response under the policy model. Then, the terminal modifies the logarithmic probability with the corresponding standardized dominance function. The expected value of all candidate responses in the same group is multiplied, and the negative value is taken as the policy loss. The terminal calculates the gradient of the policy model parameters through backpropagation and updates the model parameters using a preset optimizer to obtain the policy optimization objective. After the update, the policy model will tend to generate responses with a positive advantage function (i.e., relatively better within the group) and reduce the probability of generating responses with a negative advantage function (i.e., relatively worse within the group).

[0176] After adjusting the first user simulation model based on the strategy optimization goal, the terminal replaces the first user simulation model with the adjusted first user simulation model and returns to execute multiple rounds of simulated interaction processing based on background information, user profiles of each user, and business profiles of each user, respectively, through the preset customer service model and the first user simulation model, to generate user response steps for each user. When the preset number of iterations is met, the terminal stops the iteration process and uses the adjusted first user simulation model obtained from the last iteration as the user simulation model.

[0177] Based on the above scheme, by using business profiles as round-level dynamic conditions generated by the business intent transition probability matrix during the reinforcement learning phase, explicit constraints are imposed on the intent and behavior in user dialogue, ensuring that the generated content conforms to the preset business intent distribution and avoids deviation from business logic. This improves the usability and reliability of the generated data in actual business scenarios. Secondly, by constructing a hierarchical reward function combining dialogue-level and sentence-level approaches during the reinforcement learning phase, dialogue-level rewards calculate the cosine similarity between the current dialogue profile and the target user profile through the user profile extraction model, achieving a closed-loop evaluation of user role consistency. Sentence-level rewards simultaneously cover four dimensions: semantic consistency, language naturalness, business profile consistency, and non-repetitiveness. This allows the model to simultaneously optimize user role stability, language quality, business compliance, and expression diversity in multi-round practice, thereby improving the stability, consistency, and realism of multi-round user simulations.

[0178] This application also provides an example of user dialogue simulation based on multi-profile constraints, such as... Figure 2 As shown, the specific processing procedure includes the following steps:

[0179] Step S201: Obtain real outbound call data for the target business scenario.

[0180] Step S202: For each user, the user's sub-real outbound call data is anonymized to obtain the user's anonymized outbound call data.

[0181] Step S203: Based on the user's de-identified outbound call data, the intent model is used to identify the speaking intent of each user's speech statement, and the valid speaking intent among each speaking intent is used as the speaking intent label of the speech statement to which the valid speaking intent belongs.

[0182] Step S204: Take each speaking intent tag and the speaking statement corresponding to each speaking intent tag as the marked outbound call data, and count the number of user speaking words in each speaking statement in the marked outbound call data.

[0183] Step S205: Take the first speech statement of all users with a word count not less than the preset word count, and the valid speech intent corresponding to the first speech statement as the user's first outbound call data.

[0184] Step S206: For each user, count the number of statements in the first spoken statement in the user's first outbound call data, and if the number of statements is greater than the preset number of statements, determine the first outbound call data as the user's sub-target outbound call data.

[0185] Step S207: Obtain the target outbound call data of each historical user in other business scenarios, and based on the target outbound call data of each historical user, generate the objective characteristics and subjective characteristics of each historical user through a large language model.

[0186] Step S208: Based on the objective and subjective characteristics of each historical user, a historical user profile description information is generated through a large language model. Based on the historical user profile description information and the target outbound call data of each historical user, an initial user profile extraction model is trained to obtain the user profile extraction model.

[0187] Step S209: Based on the outbound call data of each user's sub-targets, generate user profiles for each user through the user profile extraction model.

[0188] Step S210: For each user, identify the user's corresponding intent type based on the user's valid speaking intent label.

[0189] Step S211: Based on the user's valid speaking intent tags and the user's intent type, generate the user's business profile through a large language model.

[0190] Step S212: Obtain background information of the target business scenario, and during the supervised fine-tuning training phase, generate a sample quintuple for each user by combining the user profile, business profile, real outbound call data, and background information.

[0191] Step S213: Based on each sample quintuple, model and generate the response probability function corresponding to each user.

[0192] Step S214: Based on the response probability function, construct the negative log-likelihood loss function of the initial user simulation model, and train the initial user simulation model based on each sample quintuple and the negative log-likelihood loss function to obtain the first user simulation model.

[0193] Step S215: Through the reinforcement learning training phase, the first user simulation model is trained to obtain the user simulation model.

[0194] Step S216: Based on background information, user profiles of each user, and business profiles of each user, multiple rounds of simulated interaction processing are performed using a preset customer service model and a first user simulation model to generate user response replies for each user.

[0195] Step S217: Filter the user response responses for each user, select the candidate user response responses for each candidate user, and construct a tiered reward system for each candidate user response response.

[0196] Step S218: Based on the hierarchical reward corresponding to the response of each candidate user, construct the intra-group advantage function, and based on the intra-group advantage function, construct the strategy optimization objective.

[0197] Step S219: Based on the policy optimization objective, train the first user simulation model to obtain the user simulation model.

[0198] 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.

[0199] Based on the same inventive concept, this application also provides a user dialogue simulation device based on multiple user profile constraints for implementing the aforementioned user dialogue simulation method based on multiple user profile constraints. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more user dialogue simulation device embodiments based on multiple user profile constraints provided below can be found in the limitations of the user dialogue simulation method based on multiple user profile constraints described above, and will not be repeated here.

[0200] In one exemplary embodiment, such as Figure 3 As shown, a user dialogue simulation device based on multi-profile constraints is provided, including: an acquisition module 310, an extraction module 320, and a generation module 330, wherein:

[0201] The acquisition module 310 is used to acquire real outbound call data of the target business scenario and perform data cleaning processing on the real outbound call data to obtain target outbound call data; the target outbound call data includes the speech statements of each user and the speech intent tags corresponding to the speech statements of each user.

[0202] The extraction module 320 is used to extract user profiles of each user based on the speech statements of each user and the speech intent tags corresponding to the speech statements of each user, and to construct business profiles corresponding to each user based on the speech intent tags corresponding to the speech statements of each user.

[0203] The generation module 330 is used to train an initial user simulation model based on the user profiles of each user, the business profiles of each user, and the real outbound call data, through a micro-supervised reinforcement two-stage training strategy, to obtain a user simulation model, and to generate simulated dialogue data for each user based on the user simulation model.

[0204] Optionally, the real outbound call data includes sub-real outbound call data for each user; the acquisition module 310 is specifically used for:

[0205] The user statement dimension is cleaned and processed on the sub-real outbound call data of each user to obtain the first outbound call data of each user;

[0206] The first outbound call data of each user is cleaned according to the user dialogue dimension to obtain the sub-target outbound call data of each user, and the sub-target outbound call data of all users is used as the target outbound call data.

[0207] Optionally, the acquisition module is specifically used for:

[0208] For each user, the user's sub-real outbound call data is anonymized to obtain the user's anonymized outbound call data;

[0209] Based on the user's de-identified outbound call data, the intent model is used to identify the speaking intent of each of the user's spoken statements, and the valid speaking intent among the speaking intents is used as the speaking intent tag of the spoken statement to which the valid speaking intent belongs;

[0210] Each of the aforementioned speaking intent tags and the corresponding speaking statements are used as tagged outbound call data, and the number of user speaking words in each speaking statement in the tagged outbound call data is counted.

[0211] The first statement of all users with a word count not less than the preset word count, and the valid speaking intent corresponding to the first statement, are used as the user's first outbound call data.

[0212] Optionally, the acquisition module 310 is specifically used for:

[0213] For each user, the number of statements in the first spoken statement in the user's first outbound call data is counted. If the number of statements is greater than a preset number of statements, the first outbound call data is determined to be the user's sub-target outbound call data.

[0214] Optionally, the extraction module 320 is specifically used for:

[0215] Obtain target outbound call data for each historical user in other business scenarios, and based on the target outbound call data of each historical user, generate objective characteristics and subjective characteristics of each historical user through a large language model;

[0216] Based on the objective and subjective characteristics of each historical user, a historical user profile description information is generated using a large language model. Based on the historical user profile description information and the target outbound call data of each historical user, an initial user profile extraction model is trained to obtain the user profile extraction model.

[0217] Based on the outbound call data of each user's sub-targets, a user profile for each user is generated using the user profile extraction model.

[0218] Optionally, the extraction module 320 is specifically used for:

[0219] For each user, the intent type corresponding to the user is identified based on the user's valid speaking intent tags;

[0220] Based on the user's valid speaking intent tags and the user's intent type, a business profile of the user is generated using a large language model.

[0221] Optionally, the micro-supervised reinforcement two-stage training strategy includes a supervised fine-tuning training stage and a reinforcement learning training stage, and the generation module 330 is specifically used for:

[0222] Obtain the background information of the target business scenario, and during the supervised fine-tuning training phase, generate a sample quintuple for each user by combining the user profile of each user, the business profile of each user, the real outbound call data, and the background information.

[0223] Based on the five-tuples of each sample, a response probability function corresponding to each user is generated by modeling.

[0224] Based on the response probability function, a negative log-likelihood loss function is constructed for the initial user simulation model. Based on each sample quintuple and the negative log-likelihood loss function, the initial user simulation model is trained to obtain the first user simulation model.

[0225] The first user simulation model is trained through the reinforcement learning training phase to obtain a user simulation model.

[0226] Optionally, the generation module 330 is specifically used for:

[0227] Based on the background information, the user profiles of each user, and the business profiles of each user, multiple rounds of simulated interaction processing are performed through a preset customer service model and the first user simulation model to generate user response replies corresponding to each user.

[0228] The user response responses corresponding to each user are filtered to identify the candidate user response responses for each candidate user, and a tiered reward system is constructed for each candidate user response response.

[0229] Based on the tiered rewards corresponding to each candidate user's response, a group advantage function is constructed, and based on the group advantage function, a strategy optimization objective is constructed.

[0230] Based on the strategy optimization objective, the first user simulation model is trained to obtain a user simulation model.

[0231] The modules in the aforementioned user dialogue simulation device based on multi-profile constraints 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 call and execute the corresponding operations of each module.

[0232] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. 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 input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a user dialogue simulation method based on multi-image constraints. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0233] Those skilled in the art will understand that Figure 4 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.

[0234] In one exemplary 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 a user dialogue simulation method based on multi-profile constraints.

[0235] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program being executed by a processor to implement the steps of a user dialogue simulation method based on multi-profile constraints.

[0236] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of a user dialogue simulation method based on multi-profile constraints.

[0237] 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.

[0238] 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 described above. Any references to memory, 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, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0239] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0240] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A user dialogue simulation method based on multi-profile constraints, characterized in that, The method includes: Acquire real outbound call data for the target business scenario, and perform data cleaning processing on the real outbound call data to obtain target outbound call data; the target outbound call data includes the speech statements of each user and the speech intent tags corresponding to the speech statements of each user; Based on the statements of each user and the corresponding intent tags of each user's statements, a user profile of each user is extracted using a user profile extraction model, and a business profile of each user is constructed based on the corresponding intent tags of each user's statements. Based on the user profiles and business profiles of each user, as well as the real outbound call data, an initial user simulation model is trained using a micro-supervised reinforcement two-stage training strategy to obtain a user simulation model, and simulated dialogue data for each user is generated based on the user simulation model.

2. The method according to claim 1, characterized in that, The real outbound call data includes sub-real outbound call data for each user; the data cleaning process performed on the real outbound call data to obtain the target outbound call data includes: The user statement dimension is cleaned and processed on the sub-real outbound call data of each user to obtain the first outbound call data of each user; The first outbound call data of each user is cleaned according to the user dialogue dimension to obtain the sub-target outbound call data of each user, and the sub-target outbound call data of all users is used as the target outbound call data.

3. The method according to claim 2, characterized in that, The step of cleaning the sub-real outbound call data of each user at the user statement dimension to obtain the first outbound call data of each user includes: For each user, the user's sub-real outbound call data is anonymized to obtain the user's anonymized outbound call data; Based on the user's de-identified outbound call data, the intent model is used to identify the speaking intent of each of the user's spoken statements, and the valid speaking intent among the speaking intents is used as the speaking intent tag of the spoken statement to which the valid speaking intent belongs; Each of the aforementioned speaking intent tags and the corresponding speaking statements are used as tagged outbound call data, and the number of user speaking words in each speaking statement in the tagged outbound call data is counted. The first statement of all users with a word count not less than the preset word count, and the valid speaking intent corresponding to the first statement, are used as the user's first outbound call data.

4. The method according to claim 3, characterized in that, The step of cleaning the first outbound call data of each user at the user dialogue dimension to obtain the sub-target outbound call data of each user includes: For each user, the number of statements in the first spoken statement in the user's first outbound call data is counted. If the number of statements is greater than a preset number of statements, the first outbound call data is determined to be the user's sub-target outbound call data.

5. The method according to claim 2, characterized in that, The step of extracting user profiles for each user based on their spoken statements and corresponding intent tags using a user profile extraction model includes: Obtain target outbound call data for each historical user in other business scenarios, and based on the target outbound call data of each historical user, generate objective characteristics and subjective characteristics of each historical user through a large language model; Based on the objective and subjective characteristics of each historical user, a historical user profile description information is generated using a large language model. Based on the historical user profile description information and the target outbound call data of each historical user, an initial user profile extraction model is trained to obtain the user profile extraction model. Based on the outbound call data of each user's sub-targets, a user profile for each user is generated using the user profile extraction model.

6. The method according to claim 1, characterized in that, The step of constructing a business profile for each user based on the speaking intent tags corresponding to their spoken statements includes: For each user, the intent type corresponding to the user is identified based on the user's valid speaking intent tags; Based on the user's valid speaking intent tags and the user's intent type, a business profile of the user is generated using a large language model.

7. The method according to claim 1, characterized in that, The micro-supervised reinforcement two-stage training strategy includes a supervised fine-tuning training stage and a reinforcement learning training stage. Based on the user profiles, business profiles, and real outbound call data of each user, the initial user simulation model is trained using the micro-supervised reinforcement two-stage training strategy to obtain the user simulation model, including: Obtain the background information of the target business scenario, and during the supervised fine-tuning training phase, generate a sample quintuple for each user by combining the user profile of each user, the business profile of each user, the real outbound call data, and the background information. Based on the five-tuples of each sample, a response probability function corresponding to each user is generated by modeling. Based on the response probability function, a negative log-likelihood loss function is constructed for the initial user simulation model. Based on each sample quintuple and the negative log-likelihood loss function, the initial user simulation model is trained to obtain the first user simulation model. The first user simulation model is trained through the reinforcement learning training phase to obtain a user simulation model.

8. The method according to claim 7, characterized in that, The step of training the first user simulation model through the reinforcement learning training phase to obtain a user simulation model includes: Based on the background information, the user profiles of each user, and the business profiles of each user, multiple rounds of simulated interaction processing are performed through a preset customer service model and the first user simulation model to generate user response replies corresponding to each user. The user response responses corresponding to each user are filtered to identify the candidate user response responses for each candidate user, and a tiered reward system is constructed for each candidate user response response. Based on the tiered rewards corresponding to each candidate user's response, a group advantage function is constructed, and based on the group advantage function, a strategy optimization objective is constructed. Based on the strategy optimization objective, the first user simulation model is trained to obtain a user simulation model.

9. A user dialogue simulation device based on multi-profile constraints, characterized in that, The device includes: The acquisition module is used to acquire real outbound call data of the target business scenario and perform data cleaning processing on the real outbound call data to obtain target outbound call data; the target outbound call data includes the speech statements of each user and the speech intent tags corresponding to the speech statements of each user; The extraction module is used to extract user profiles of each user based on their spoken statements and the corresponding speaking intent tags of each user's spoken statements, using a user profile extraction model, and to construct a business profile for each user based on the corresponding speaking intent tags of each user's spoken statements. The generation module is used to train an initial user simulation model based on the user profiles of each user, the business profiles of each user, and the real outbound call data, through a micro-supervised reinforcement two-stage training strategy, to obtain a user simulation model, and to generate simulated dialogue data for each user based on the user simulation model.

10. 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 8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.

12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 8.