A method, device, equipment and storage medium for generating a psychological consultation dialogue data set

By preprocessing psychological counseling data and generating case conceptualization templates, combined with pre-trained large language models, extracting and labeling dialogue labels, the problem of lack of professional knowledge in existing data sets is solved, and more logical and professional dialogues are generated. Data set, suitable for actual psychological counseling scenarios.

CN118445776BActive Publication Date: 2024-10-29PEKING UNIV +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410905247.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-29
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Existing psychological counseling dialogue data sets lack information related to professional knowledge, resulting in large language models having insufficient answering capabilities in actual psychological counseling scenarios and failing to consider individual differences.

Method used

By obtaining psychological consultation data from different data sources for pre-processing, and generating expanded dialogue prompt information based on case conceptualization templates, inputting it into the pre-trained large language model, generating initial multiple rounds of dialogue data, extracting dialogue labels and annotating them, forming a more professional A powerful conversational dataset.

Benefits of technology

The logic and effectiveness of the dialogue data are enhanced. The generated dialogue data set contains professional knowledge, which can better meet the needs of actual psychological counseling scenarios and provide more professional and personalized answers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118445776B_ABST
    Figure CN118445776B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for generating a psychological counseling dialogue data set, and relates to the technical field of data set generation. The method includes: obtaining psychological counseling data from different data sources, and performing data preprocessing on the psychological counseling data; generating extended dialogue prompt information based on a case conceptualization template; inputting the preprocessed psychological counseling data and the extended dialogue prompt information into a pre-trained large language model to obtain initial multi-round dialogue data; performing label extraction on the initial multi-round dialogue data to obtain dialogue labels for each round of dialogue; annotating the initial multi-round dialogue data according to the dialogue labels to generate a dialogue data set. The present application generates prompt information by introducing a case conceptualization template to assist the pre-trained large language model in expanding the acquired psychological counseling data, which can enhance the logic and effectiveness of the obtained multi-round dialogue data, and then obtain a dialogue data set with stronger professional relevance after being annotated by the dialogue labels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data set generation, and in particular to a method, device, equipment and storage medium for generating a psychological counseling dialogue data set. Background Art

[0002] Currently, there are some conversation datasets suitable for psychological counseling, which are publicly available datasets generated using specific technical solutions, such as the ESConv dataset and the PsyQA dataset. Although these datasets have improved the performance of large language models in assisting psychological counseling support, these datasets are mostly of a single type, that is, they only involve information related to emotional support and do not include information related to professional knowledge. Therefore, in the application of actual psychological counseling scenarios, the answers generated by large language models based on these datasets may have insufficient capabilities, such as being unable to consider individual differences and lacking professional knowledge.

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

[0004] The main purpose of this application is to provide a method, device, equipment and storage medium for generating a psychological counseling dialogue dataset, aiming to solve the technical problem that the answers given in actual psychological counseling scenarios are insufficient due to the lack of professional knowledge related information in the existing dialogue dataset.

[0005] To achieve the above purpose, the present application proposes a method for generating a psychological counseling dialogue dataset, the method comprising:

[0006] Acquiring psychological counseling data from different data sources, and performing data preprocessing on the psychological counseling data;

[0007] Generate extended dialogue prompts based on case conceptualization templates;

[0008] Inputting the preprocessed psychological counseling data and the extended dialogue prompt information into the pre-trained large language model to obtain initial multi-round dialogue data;

[0009] Extracting labels from the initial multiple rounds of dialogue data to obtain dialogue labels for each round of dialogue;

[0010] The initial multiple rounds of dialogue data are labeled according to the dialogue tags to generate a dialogue data set.

[0011] In one embodiment, the psychological counseling data includes counseling case data and a public question-and-answer data set in the field of psychology, and the step of preprocessing the psychological counseling data includes:

[0012] Convert the consulting case data into text format to obtain consulting case data in text format;

[0013] Performing data cleaning on the public question-and-answer data set in the field of psychology and the consultation case data in text format to obtain generalized psychological consultation data;

[0014] The generalized psychological counseling data is segmented into long texts, and the pre-processed psychological counseling data is obtained according to the segmentation results.

[0015] In one embodiment, the step of inputting the pre-processed psychological counseling data and the extended dialogue prompt information into the pre-trained large language model to obtain initial multi-round dialogue data includes:

[0016] Inputting the preprocessed psychological counseling data and the extended dialogue prompt information into a pre-trained large language model, wherein the pre-trained large language model includes a question definition module, a knowledge graph generation module, a hypothesis formulation module, a suggestion generation module, and a content recording module;

[0017] Extracting the problem information of each visitor in the preprocessed psychological counseling data through the problem definition module;

[0018] The knowledge graph generation module collects case information from the preprocessed psychological counseling data and generates a case information knowledge graph corresponding to each visitor;

[0019] Generate problem cause information corresponding to each visitor according to the problem information and the case information knowledge graph through the hypothesis formulation module;

[0020] Generate reference intervention measures corresponding to each visitor according to the problem information and the problem cause information by the suggestion generation module;

[0021] The content recording module generates multiple rounds of dialogue data corresponding to each visitor and determines them as initial multiple rounds of dialogue data. The multiple rounds of dialogue data corresponding to each visitor include the problem information, the case information knowledge graph, the problem cause information and the reference intervention measures.

[0022] In one embodiment, the step of extracting labels from the initial multi-round conversation data to obtain conversation labels for each round of conversation includes:

[0023] Extracting spatiotemporal information from the initial multi-round conversation data to obtain spatiotemporal labels corresponding to each visitor;

[0024] Extracting the dialogue type of each dialogue round in the initial multi-round dialogue data to obtain an activity sequence label of each dialogue round;

[0025] Based on each visitor, a dialogue tag of each round of dialogue is determined according to the corresponding spatiotemporal tag and the activity sequence tag of each round of dialogue.

[0026] In one embodiment, before the step of extracting spatiotemporal information from the initial multi-round conversation data to obtain the spatiotemporal labels corresponding to each visitor, the step further includes:

[0027] Filtering the initial multi-round dialogue data based on preset filtering rules to obtain target multi-round dialogue data;

[0028] Accordingly, the step of extracting spatiotemporal information from the initial multi-round conversation data to obtain the spatiotemporal labels corresponding to each visitor includes:

[0029] Extracting spatiotemporal information from the target multi-round conversation data to obtain spatiotemporal labels corresponding to each visitor;

[0030] The step of extracting the dialogue type of each dialogue round in the initial multi-round dialogue data to obtain the activity sequence label of each dialogue round includes:

[0031] The dialog type of each round of dialog in the target multi-round dialog data is extracted to obtain an activity sequence label of each round of dialog.

[0032] In one embodiment, the step of extracting spatiotemporal information from the target multi-round conversation data to obtain a spatiotemporal label corresponding to each visitor includes:

[0033] Extracting spatiotemporal information from the target multi-round conversation data using regular expressions to obtain spatiotemporal labels corresponding to each visitor;

[0034] The step of extracting the dialogue type of each dialogue round in the target multi-round dialogue data to obtain the activity sequence label of each dialogue round includes:

[0035] The dialogue activity type of each round of dialogue in the target multi-round dialogue data is extracted by presetting the dialogue activity sequence classification information to obtain the activity sequence label of each round of dialogue.

[0036] In one embodiment, the step of labeling the initial multi-round dialogue data according to the dialogue tags to generate a dialogue data set includes:

[0037] Filling in a number of to-be-filled dialogue tag items corresponding to the target multi-round dialogue data according to the dialogue tag;

[0038] According to the filling results, the annotated multi-round dialogue data corresponding to each visitor is determined, and a dialogue dataset is generated.

[0039] In addition, to achieve the above purpose, the present application also proposes a psychological counseling dialogue data set generation device, the device comprising:

[0040] A data acquisition module is used to obtain psychological counseling data from different data sources and perform data preprocessing on the psychological counseling data;

[0041] A prompt generation module, used to generate extended dialogue prompt information based on the case conceptualization template;

[0042] A dialogue expansion module is used to input the pre-processed psychological counseling data and the extended dialogue prompt information into the pre-trained large language model to obtain initial multi-round dialogue data;

[0043] A label extraction module, used to extract labels from the initial multiple rounds of dialogue data to obtain dialogue labels for each round of dialogue;

[0044] The data set generation module is used to annotate the initial multi-round dialogue data according to the dialogue tags to generate a dialogue data set.

[0045] In addition, to achieve the above-mentioned purpose, the present application also proposes a psychological counseling dialogue dataset generation device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the psychological counseling dialogue dataset generation method as described above.

[0046] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the method for generating a psychological counseling dialogue dataset as described above are implemented.

[0047] The present application provides a method for generating a psychological counseling dialogue data set, which obtains psychological counseling data from different data sources and performs data preprocessing on the psychological counseling data; generates extended dialogue prompt information based on a case conceptualization template; inputs the preprocessed psychological counseling data and the extended dialogue prompt information into a pre-trained large language model to obtain initial multiple-round dialogue data; extracts labels from the initial multiple-round dialogue data to obtain dialogue labels for each round of dialogue; annotates the initial multiple-round dialogue data according to the dialogue labels to generate a dialogue data set. Since the present application can introduce a case conceptualization template to generate prompt information to assist the pre-trained large language model in expanding the acquired psychological counseling data to obtain multiple-round dialogue data, the logic and effectiveness of the dialogue data are enhanced, and then the multiple-round dialogue data are annotated with the extracted dialogue labels to generate a dialogue data set, which can obtain a dialogue data set with stronger professional relevance. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0050] Figure 1 This is a flowchart of a first embodiment of a method for generating a psychological consultation dialogue data set in this application;

[0051] Figure 2 This is a flow chart of a second embodiment of a method for generating a psychological consultation dialogue data set in this application;

[0052] Figure 3 This is a flowchart of a third embodiment of a method for generating a psychological counseling dialogue data set in this application;

[0053] Figure 4 This is a schematic diagram of the module structure of the first embodiment of a device for generating a psychological counseling dialogue data set in the present application;

[0054] Figure 5 This is a schematic diagram of the structure of a psychological counseling dialogue dataset generation device for this application.

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

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

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

[0058] This application embodiment provides a method for generating a psychological consultation dialogue dataset, referring to Figure 1 , Figure 1 This is a flowchart of a first embodiment of a method for generating a psychological consultation dialogue data set in the present application. In this embodiment, the method includes: Steps S10 to S50:

[0059] Step S10: Acquire psychological counseling data from different data sources, and perform data preprocessing on the psychological counseling data.

[0060] It should be noted that the execution subject of the method of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a mobile phone, a personal computer, a data storage device, etc., or other electronic devices that can achieve the same or similar functions. This embodiment does not limit this. Here, a psychological counseling dialogue data set generation device (referred to as "device") is used as an example to illustrate this embodiment and the following embodiments.

[0061] It is understandable that the psychological counseling data from different data sources may include counseling case data and public question-and-answer data sets in the field of psychology. The counseling case data may be collected from a professional knowledge base obtained by analyzing, reading and collating books, scales, public cases, cognitive behavioral therapy processes, counselor examination questions and other relevant materials for psychological counseling. The public question-and-answer data set in the field of psychology may be captured from a network open source data set such as a PsyQA data set, for example, 1616 annotated data and another 2000 dialogue data may be randomly selected from the PsyQA data set. The network open source data set may also be an ethical psychological counseling data set obtained from other fields, which may include but are not limited to academic research databases, data from other mental health service platforms, and strictly reviewed public case data.

[0062] It is understandable that, since the cases in the book and the questions and answers in the PsyQA dataset are different from the multi-round dialogues in the actual scenario, the psychological counseling data can be preprocessed. Specifically, the step of preprocessing the psychological counseling data includes steps S101 to S103:

[0063] Step S101: convert the consulting case data into a text format to obtain consulting case data in a text format.

[0064] It should be understood that since the counseling case data includes cognitive behavioral therapy cases for guiding counselors, it can be converted into a text format.

[0065] Step S102: performing data cleaning on the public question-and-answer data set in the field of psychology and the consultation case data in text format to obtain generalized psychological consultation data.

[0066] It is understandable that for privacy protection considerations, a rule-based approach can be used to filter the identity privacy information in the above-mentioned public question-and-answer dataset in the field of psychology and the above-mentioned consultation case data in text format, such as removing the names and nicknames of the visitors and counselors. This data cleaning process not only protects the identity privacy of the characters in the case, but also helps to enhance the generalization ability of the model in subsequent processing.

[0067] Step S103: performing long text segmentation on the generalized psychological counseling data, and obtaining pre-processed psychological counseling data according to the segmentation results.

[0068] It should be understood that the large language model of the psychological counseling data input has a limit on the length of the input text, for example, the maximum text length that can be processed is 5000 tokens. Therefore, the above generalized psychological counseling data can be used for long text recognition, and the recognized long text (long case) can be divided into multiple counseling segments, and the corresponding word order and measures of each counseling segment can be modified.

[0069] Step S20: Generate extended dialogue prompt information based on the case conceptualization template.

[0070] It is understandable that case conceptualization is a concept in psychological counseling. In actual psychological counseling scenarios, counselors can understand and explain the client's problems and guide the counseling process based on the idea of ​​case conceptualization. In order to make the subsequent dialogue data generated by the large language model more logical and authentic, extended dialogue prompt information can be generated based on the process of case conceptualization to assist the output of the large language model.

[0071] It should be understood that a template created based on the idea of ​​case conceptualization can be obtained, and the case conceptualization template can include: question information that needs to be obtained from the visitor, the inquiry model that guides the visitor to answer, feedback on intervention measures for the visitor, etc.

[0072] It can be understood that the extended dialogue prompt information (Promt) is a prompt sentence used to guide the large language model to generate the required text. The specific extended dialogue prompt information can be shown in the following example:

[0073] “Play the role of a professional psychologist to rewrite the text and follow the following requirements:

[0074] 1. Every sentence must begin with "client" or "counselor".

[0075] 2. In a multi-round conversation, the conversation must start with the visitor asking a question.

[0076] 3. Based on the scenario provided, create a dialogue with at least 10 rounds of back-and-forth dialogue, showing detailed exchanges between the client and the counselor.

[0077] 4. Generate answers and knowledge that include the client’s questions, and be sure to include a description of the condition, diagnosis, treatment recommendations, and emotional support, paying special attention to the impact of spatial and temporal information on the conversation.

[0078] 5. The information provided should be insightful and helpfully interpreted. In multiple rounds of conversation, the client needs to be guided step by step, talk in a gentle tone, control the length of each round of conversation, give positive encouragement, and pay special attention to maintaining the client's self-esteem. ".

[0079] Step S30: input the pre-processed psychological counseling data and the extended dialogue prompt information into the pre-trained large language model to obtain initial multi-round dialogue data.

[0080] It is understandable that the preprocessed psychological counseling data can also serve as the knowledge base of the pre-trained large language model. The pre-trained large language model can generate and expand the input psychological counseling data in combination with the knowledge base to obtain multi-round dialogue data based on different visitors.

[0081] It should be understood that the pre-trained large language model can adopt the large language model already available in the network, such as Wenxinyiyan, GPT-4, BERT, T5 and other large speech models that can realize dialogue generation and expansion.

[0082] It is understandable that the steps for the pre-trained large language model to rewrite the input psychological counseling data into multi-round dialogue data can be: first define the client's distress in the case and obtain the client's first question, then collect information and generate a knowledge graph, then formulate hypotheses and diagnostic questions and answers, and finally provide intervention measures and suggestions.

[0083] It should be understood that the counseling case data included in the pre-processed psychological counseling data, such as cases in books, usually only include key information about the counseling problem between the client and the counselor, but lack context. Therefore, by pre-training the large language model, the background information of the client can be generated first, and then integrated into the multi-round dialogue data generated based on such data.

[0084] It is understandable that the data in the public question-and-answer datasets in the psychological field included in the pre-processed psychological counseling data, such as the PsyQA dataset, mainly involves emotional support and lacks professional knowledge support. Therefore, the relevant professional knowledge in the above-mentioned counseling case data can be integrated into the multi-round dialogue data generated based on such data by pre-training the large language model.

[0085] Step S40: extracting labels from the initial multiple rounds of dialogue data to obtain dialogue labels for each round of dialogue.

[0086] It should be understood that first, a label system can be defined, which can include different types of dialogues, such as dialogue type labels such as statements, questions, and small talk. General labels for distinguishing different cases (based on different visitors) can also be defined.

[0087] In the specific implementation, the label of the conversation type can be extracted for each round of conversation in the initial multi-round conversation data output by the model to clarify the conversation type of each round of conversation; the total label can also be extracted for the multi-round conversation data corresponding to different visitors based on different visitors to obtain the total case label that reflects the visitor's consultation problem and reference intervention measures.

[0088] Step S50: labeling the initial multi-round dialogue data according to the dialogue tags to generate a dialogue data set.

[0089] It should be understood that the multi-round dialogue data is divided based on different cases, and the multi-round dialogue data of each case obtained by the division can be labeled by the above-mentioned case total label, and then each round of dialogue data can be labeled by the dialogue type label.

[0090] It is understandable that a data annotation template in a conversation data set can also be predefined to standardize the storage method of the annotated initial multi-round conversation data. The data standard template can be "origin=[initial multi-round conversation data]; sum=[total case labels]; step=[conversation type to which the first round of conversation belongs, conversation type to which the second round of conversation belongs, ..., conversation type to which the Nth round of conversation belongs]". This embodiment does not limit the setting method of the data standard template.

[0091] This embodiment obtains psychological counseling data from different data sources and performs data preprocessing on the psychological counseling data; generates extended dialogue prompt information based on a case conceptualization template; inputs the preprocessed psychological counseling data and the extended dialogue prompt information into a pre-trained large language model to obtain initial multiple-round dialogue data; extracts labels from the initial multiple-round dialogue data to obtain dialogue labels for each round of dialogue; annotates the initial multiple-round dialogue data according to the dialogue labels to generate a dialogue data set. Since this embodiment can introduce a case conceptualization template to generate prompt information to assist the pre-trained large language model in expanding the acquired psychological counseling data to obtain multiple-round dialogue data, the logic and effectiveness of the dialogue data are enhanced, and then the extracted dialogue labels are used to annotate the multiple-round dialogue data to generate a dialogue data set, which can obtain a dialogue data set with stronger professional relevance.

[0092] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 This is a flow chart of a second embodiment of a method for generating a psychological counseling dialogue dataset in the present application.

[0093] In this embodiment, step S30 includes steps S301 to S306:

[0094] Step S301: input the preprocessed psychological counseling data and the extended dialogue prompt information into a pre-trained large language model, wherein the pre-trained large language model includes a question definition module, a knowledge graph generation module, a hypothesis formulation module, a suggestion generation module and a content recording module.

[0095] It should be understood that, since the steps of rewriting the input psychological counseling data into multi-round dialogue data can be divided into: defining the client's distress in the case and obtaining the client's first question, collecting information and generating a knowledge graph, formulating hypotheses and diagnostic questions and answers, and providing intervention measures and suggestions based on the above dialogue prompt information, the preset large language module can be divided into corresponding modules: problem definition module, knowledge graph generation module, hypothesis formulation module, suggestion generation module, and content recording module.

[0096] Step S302: extracting the problem information of each visitor in the preprocessed psychological counseling data through the problem definition module.

[0097] It should be understood that the problem information of each visitor can be the problem that the visitor consults the counselor. In the problem definition module, the problems or challenges faced by the visitor in different cases of the input psychological counseling data can be first clarified. The identification of this part of the counseling problem can be determined based on matching case-related data in the knowledge base of the pre-trained large language model or consulting relevant literature.

[0098] It is understandable that after the question definition module identifies the visitor's consulting question, it can use the consulting question as the starting point for subsequent analysis and generate subsequent multi-round dialogue data based on the consulting question.

[0099] Step S303: Collect case information of the preprocessed psychological counseling data through the knowledge graph generation module, and generate a case information knowledge graph corresponding to each visitor.

[0100] It is understandable that the knowledge graph can be used to organize and display relevant information of each case from the psychological counseling data. The knowledge graph generation module can extract and collect all information related to a case from the psychological counseling data, add it to the case information knowledge graph, and annotate and explain the collected information so that the subsequent model can better understand and use this part of the information for multi-round dialogue data generation.

[0101] Step S304: Generate problem cause information corresponding to each visitor according to the problem information and the case information knowledge graph through the hypothesis formulation module.

[0102] It should be understood that based on the consulting questions of each visitor collected as above and the case information knowledge graph corresponding to each case, hypotheses for each case can be formulated separately, and these hypotheses can be initial speculations on possible causes or solutions to the consulting problems.

[0103] Understandably, the hypothesis formulation module can also conduct a diagnostic question-and-answer process to verify and correct hypotheses by asking and answering questions related to the case. This process helps to gradually deepen the understanding of each case and is conducive to improving the rationality of subsequent intervention measures and suggestions.

[0104] Step S305: Generate reference intervention measures corresponding to each visitor according to the problem information and the problem cause information through the suggestion generation module.

[0105] It should be understood that after deepening the understanding of the case through the above process, specific interventions and suggestions can be planned. These interventions and suggestions can target the core issues of each case, namely the client's consulting problems, and take into account the client's emotional factors and needs and expectations.

[0106] It is understandable that the reference intervention measures obtained through the suggestion generation module must be feasible, effective and sustainable so that they can achieve the expected results when provided to visitors in actual applications.

[0107] Step S306: Generate multi-round dialogue data corresponding to each visitor through the content recording module and determine it as the initial multi-round dialogue data, wherein the multi-round dialogue data corresponding to each visitor includes the problem information, the case information knowledge graph, the problem cause information and the reference intervention measures.

[0108] It can be understood that the above steps can be regarded as the application process of case conceptualization in the pre-trained large language model. After completing the above steps, the entire process can be presented in text form, for example, it can be recorded in the form of a detailed report or document, and then the multi-round dialogue data corresponding to each case (visitor) is obtained, that is, the initial multi-round dialogue data. The initial multi-round dialogue data can include all the information content generated in the above steps, such as the background, consulting questions, hypotheses, diagnoses, intervention measures and suggestions of each case.

[0109] In this embodiment, the pre-processed psychological counseling data and the extended dialogue prompt information are input into a pre-trained large language model, and the pre-trained large language model includes a problem definition module, a knowledge graph generation module, a hypothesis formulation module, a suggestion generation module and a content recording module; the problem information of each visitor in the pre-processed psychological counseling data is extracted through the problem definition module; the case information of the pre-processed psychological counseling data is collected through the knowledge graph generation module, and a case information knowledge graph corresponding to each visitor is generated; the problem cause information corresponding to each visitor is generated according to the problem information and the case information knowledge graph through the hypothesis formulation module; the reference intervention measures corresponding to each visitor are generated according to the problem information and the problem cause information through the suggestion generation module; and the multi-round dialogue data corresponding to each visitor is generated through the content recording module and determined as the initial multi-round dialogue data, and the multi-round dialogue data corresponding to each visitor includes the problem information, the case information knowledge graph, the problem cause information and the reference intervention measures. Since this embodiment uses a large language model to simulate the performance of human behavior in psychological counseling and introduces the idea of ​​case conceptualization in psychological counseling to guide data generation, it can incorporate more professional knowledge into the generated data, making the multi-round dialogue data output by the large language model more logical and authentic.

[0110] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those of the first and second embodiments can be referred to the above description, and will not be described in detail later. Figure 3 , Figure 3 This is a flowchart of a third embodiment of a method for generating a psychological counseling dialogue dataset in the present application.

[0111] In this embodiment, in order to obtain a higher quality dialogue data set, step S40 includes steps S401 to S403:

[0112] Step S401: extracting spatiotemporal information from the initial multi-round conversation data to obtain spatiotemporal labels corresponding to each visitor.

[0113] Step S402: extracting the dialogue type of each dialogue round in the initial multi-round dialogue data, and obtaining the activity sequence label of each dialogue round.

[0114] It should be understood that after obtaining the initial multi-round dialogue data output by the large language model, dialogue screening can also be performed to filter out data with lower quality. Therefore, before step S401, step S400 is also included.

[0115] Step S400: Filter the initial multi-round dialogue data based on preset filtering rules to obtain target multi-round dialogue data.

[0116] It should be understood that the preset screening rules can be ethical rules set based on historical psychological counseling data, or can be rules for checking dialogue integrity. By screening the multi-round dialogue data output by the model based on the preset screening rules, high-quality case data, i.e., target multi-round dialogue data, can be selected and retained.

[0117] Accordingly, step S401 includes:

[0118] Step S4010: extracting spatiotemporal information from the target multi-round dialogue data to obtain spatiotemporal labels corresponding to each visitor.

[0119] It is understandable that the conversation data set generated by the present embodiment can be applied to online psychological counseling. Compared with face-to-face psychological counseling, online psychological counseling involves less interaction between clients and counselors, i.e., less information is collected. In addition, online psychological counseling is mostly conducted in a double-blind format. Therefore, in order to improve the accuracy and practicality of online psychological counseling, attention can be paid to spatiotemporal information.

[0120] It should be understood that since spatiotemporal information is non-sensitive information, and historical psychological counseling data shows that the emotional states of clients at different times are different, for example: in the morning: clients are usually more awake and energetic, and some methods that require focused counseling can be recommended; in the afternoon: clients' emotional states may be affected by the day's activities, such as after work or after school, they need to deal with work and school pressures, so they need more emotional support and relaxation techniques; in the evening: clients may be more tired at night, and their response and processing ability to the counseling content will be affected; late at night: clients are more emotional, more fragile and sensitive at night, and they need more empathy and a sense of security. Therefore, spatiotemporal labels can be annotated for different cases in the dialogue dataset.

[0121] Specifically, the spatiotemporal information of the target multi-round dialogue data may be extracted through regular expressions to obtain the spatiotemporal labels corresponding to each visitor.

[0122] And, step S402 includes:

[0123] Step S4020: extracting the dialogue type of each dialogue round in the target multi-round dialogue data, and obtaining the activity sequence label of each dialogue round.

[0124] It should be understood that from historical psychological counseling data, the conversations in each case in psychological counseling can follow a similar sequence of conversation activity processes, such as the process of diagnosis, emotional comfort, and advice provision. Therefore, the following labels can be used to extract the conversation type for each round of conversation under each case, such as: "explanation", "self-disclosure", "questioning", "reflection", "restatement", "direct guidance", "information provision", etc. Different conversation types can be further subdivided, such as "direct guidance" can also be subdivided into recommended locations, relaxation methods, lifestyles, therapies, and music. For example, the "Direct Guidance: Recommended Location" activity is designed to guide users to choose a private and safe place for consultation outdoors or in a crowded environment.

[0125] Step S403: Based on each visitor, determine the dialogue tag of each dialogue round according to the corresponding spatiotemporal tag and the activity sequence tag of each dialogue round.

[0126] It should be understood that the spatiotemporal label can correspond to multiple rounds of dialogue data under a certain case, and the dialogue label can be used to mark each round of dialogue data under a certain case. Therefore, it can be divided based on each visitor (case), and the dialogue label of each round of dialogue is determined according to the corresponding spatiotemporal label and the activity sequence label of each round of dialogue. The spatiotemporal label in the dialogue label of each round of dialogue data belonging to the same case is the same.

[0127] Further, after obtaining the dialogue tags, the target multi-round dialogue data may be annotated manually to obtain a final dialogue data set. An annotation template may be pre-set, and the device may perform annotation based on the annotation template. Therefore, step S50 includes steps S501 to S502:

[0128] Step S501: filling in a number of to-be-filled dialogue tag items corresponding to the target multi-round dialogue data according to the dialogue tag.

[0129] It should be understood that a labeling template may be pre-set, and the labeling template may include a number of dialogue tag items to be filled in corresponding to the above-mentioned dialogue tags, for example: time-space information items to be filled in, and dialogue type combination information items to be filled in. Each case includes a time-space information item to be filled in and the same number of dialogue type combination information items to be filled in as the number of dialogue turns.

[0130] It should be noted that other dialogue label items to be filled in may also be set, such as: chief complaint label items, cause of disease and treatment suggestion label items, etc., for more comprehensive labeling of the target multi-round dialogue data.

[0131] It should be understood that the following is an introduction to the corresponding dialog label items to be filled in a certain case:

[0132] The spatiotemporal information items to be filled in: the spatiotemporal labels corresponding to the visitors in this case, marked as period and environment;

[0133] Chief complaint label item: The client's consulting problem in this case, labeled as diagnosis;

[0134] Cause and treatment recommendation label items: information about the cause of the client's problem in this case and reference intervention measures, marked as therapy (cause, therapy);

[0135] The dialogue type combination information item to be filled in: mark the dialogue sequence for each sentence of the visitor and the counselor in each round of dialogue. For example: visitor = ["statement of condition", "question", "small talk", "acceptance (the visitor cannot actively mention the content of the subsequent dialogue)", "thank you", "goodbye", "give examples", "avoid answering", "answering questions", "refusing suggestions"]; counselor = ["diagnosis", "recommendation: treatment", "recommendation: lifestyle", "recommendation: relaxation method", "recommendation: responding to patients' questions", "recommendation: music", "emotional comfort", "goodbye", "introduction of condition", "small talk guidance", "responding to questions", "further questioning"].

[0136] Step S502: Determine the annotated multi-round dialogue data corresponding to each visitor according to the filling result, and generate a dialogue data set.

[0137] It should be understood that the annotated multi-round dialogue data can be stored based on a predefined data annotation template, and the data standard template can include the above-mentioned dialogue tag items to be filled in and the corresponding annotation content. Taking the multi-round dialogue data of a case (visitor) as an example, the corresponding annotated multi-round dialogue data can be stored in the following form:

[0138] {“conversation”: [“I can’t sleep at night recently, and I can’t wake up during the day. I have to stay up late every day to study and do homework, and I will make up for the sleep during the daytime classes. I know this is not good, but I am really sleepy.”, “I understand your troubles. Some students do have the problem of insufficient sleep. This will not only affect your physical health, but also your mental health and learning efficiency.”, “Really? I thought I was the only one with such a problem.”, “No, many students have similar troubles. But you have to know that sleep is a regulator of negative emotions, and good sleep quality can alleviate the negative impact of academic studies on your mental health. You can try some methods to improve your sleep quality.”, “What are some ways to improve sleep quality?”, “First, you can maintain a regular sleep schedule and try to go to bed and get up at the same time every day. Secondly, you can create a comfortable sleeping environment and adjust the light and temperature. You can also establish some relaxing bedtime habits, such as deep breathing, meditation, or listening to some soft music.”, “Okay, I’ll try. But what if I still can’t sleep?”, "If you still can't fall asleep, don't force yourself to stay in bed. You can get up and do some relaxing activities, such as reading some relaxing books or drinking a glass of warm milk. Wait until you feel sleepy before going back to bed to rest.", "OK, thank you for your advice. I will try to adjust my schedule.", "You're welcome. I'm glad to help you. If you have any other questions or need further advice, you can always come to me."], "goal": ["Client-Statement of Condition", "Counselor-Introduction of Condition", "Client-Statement of Condition", "Counselor-Recommendation: Treatment", "Client-Ask", "Counselor-Respond to Questions", "Client-Ask", "Counselor-Respond to Questions", "Client-Acceptance (Client cannot actively mention the content of subsequent conversations)", "Counselor-Goodbye"], "knowledge": {"diagnosis":"Sleep disorder", "therapy": ["cause: Study pressure leads to insufficient sleep time.", "therapy: Maintain a regular sleep time, establish a relaxing bedtime habit, and don't force yourself to stay in bed.", "Other categories: knowledge", "Maintain a good sleeping environment, adjust the light and temperature."], keywords: ""}, "period": "night", "environment": "school", "id": 1}

[0139] It should be understood that in the dialogue data set, the multi-round dialogue data under each case can be stored in the above form, or stored using a data annotation template, and this embodiment does not limit this. In addition, the dialogue label items to be filled in different data annotation templates can have multiple alternative forms, for example, the types of visitor and counselor dialogue sequence labels can be appropriately changed, and the annotation of spatiotemporal information can also be adjusted according to actual needs, for example, the annotation dimension can be expanded to include more detailed time nodes, environmental descriptions, etc., to better adapt to different application scenarios.

[0140] In this embodiment, the initial multi-round dialogue data is screened based on preset screening rules to obtain target multi-round dialogue data; the spatiotemporal information of the target multi-round dialogue data is extracted through regular expressions to obtain the spatiotemporal labels corresponding to each visitor; the dialogue activity type of each round of dialogue in the target multi-round dialogue data is extracted through preset dialogue activity sequence classification information to obtain the activity sequence label of each round of dialogue. The multi-round dialogue data generated by the large language model can be annotated and stored in combination with spatiotemporal information and dialogue activity sequence information, which enhances the diversity and professionalism of the dialogue data set and is conducive to the auxiliary application of the dialogue data set in different psychological counseling scenarios.

[0141] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the method for generating a psychological counseling dialogue dataset of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0142] The present application also provides a method for generating a psychological consultation dialogue data set. Figure 4 , Figure 4 This is a schematic diagram of the module structure of the first embodiment of a device for generating a psychological consultation dialogue data set in this application, the device comprising:

[0143] The data collection module 401 is used to obtain psychological counseling data from different data sources and perform data preprocessing on the psychological counseling data;

[0144] A prompt generation module 402, for generating extended dialogue prompt information based on the case conceptualization template;

[0145] The dialogue expansion module 403 is used to input the pre-processed psychological consultation data and the extended dialogue prompt information into the pre-trained large language model to obtain initial multi-round dialogue data;

[0146] The label extraction module 404 is used to extract labels from the initial multi-round dialogue data to obtain dialogue labels for each round of dialogue;

[0147] The data set generation module 405 is used to annotate the multiple rounds of dialogue data according to the dialogue tags to generate a dialogue data set.

[0148] Furthermore, the psychological counseling data includes counseling case data and a public question-and-answer data set in the field of psychology. The data acquisition module 401 is also used to convert the counseling case data into text format to obtain counseling case data in text format; perform data cleaning on the public question-and-answer data set in the field of psychology and the counseling case data in text format to obtain generalized psychological counseling data; perform long text segmentation on the generalized psychological counseling data, and obtain pre-processed psychological counseling data according to the segmentation results.

[0149] Furthermore, the dialogue expansion module 403 is also used to input the preprocessed psychological counseling data and the extended dialogue prompt information into a pre-trained large language model, and the pre-trained large language model includes a problem definition module, a knowledge graph generation module, a hypothesis formulation module, a suggestion generation module and a content recording module; the problem information of each visitor in the preprocessed psychological counseling data is extracted through the problem definition module; the case information of the preprocessed psychological counseling data is collected through the knowledge graph generation module, and a case information knowledge graph corresponding to each visitor is generated; the problem cause information corresponding to each visitor is generated according to the problem information and the case information knowledge graph through the hypothesis formulation module; the reference intervention measures corresponding to each visitor are generated according to the problem information and the problem cause information through the suggestion generation module; and the multi-round dialogue data corresponding to each visitor is generated through the content recording module and determined as the initial multi-round dialogue data, and the multi-round dialogue data corresponding to each visitor includes the problem information, the case information knowledge graph, the problem cause information and the reference intervention measures.

[0150] Furthermore, the label extraction module 404 is also used to extract spatiotemporal information from the initial multiple-round conversation data to obtain the spatiotemporal label corresponding to each visitor; extract the conversation type for each round of conversation in the initial multiple-round conversation data to obtain the activity sequence label of each round of conversation; based on each visitor, determine the conversation label of each round of conversation according to the corresponding spatiotemporal label and the activity sequence label of each round of conversation.

[0151] Furthermore, the label extraction module 404 is also used to filter the initial multi-round dialogue data based on preset filtering rules to obtain target multi-round dialogue data; extract spatiotemporal information from the target multi-round dialogue data to obtain the spatiotemporal label corresponding to each visitor; extract spatiotemporal information from the target multi-round dialogue data to obtain the spatiotemporal label corresponding to each visitor.

[0152] Furthermore, the label extraction module 404 is further used to extract spatiotemporal information from the target multi-round dialogue data by using regular expressions to obtain spatiotemporal labels corresponding to each visitor; extract the dialogue activity type of each dialogue round in the target multi-round dialogue data by using preset dialogue activity sequence classification information to obtain the activity sequence label of each dialogue round.

[0153] Furthermore, the data set generation module 405 is also used to fill in a number of to-be-filled dialogue tag items corresponding to the target multi-round dialogue data according to the dialogue tags; determine the annotated multi-round dialogue data corresponding to each visitor according to the filling results, and generate a dialogue data set.

[0154] This embodiment obtains psychological counseling data from different data sources and performs data preprocessing on the psychological counseling data; generates extended dialogue prompt information based on a case conceptualization template; inputs the preprocessed psychological counseling data and the extended dialogue prompt information into a pre-trained large language model to obtain initial multiple-round dialogue data; extracts labels from the initial multiple-round dialogue data to obtain dialogue labels for each round of dialogue; annotates the initial multiple-round dialogue data according to the dialogue labels to generate a dialogue data set. Since this embodiment can introduce a case conceptualization template to generate prompt information to assist the pre-trained large language model in expanding the acquired psychological counseling data to obtain multiple-round dialogue data, the logic and effectiveness of the dialogue data are enhanced, and then the extracted dialogue labels are used to annotate the multiple-round dialogue data to generate a dialogue data set, which can obtain a dialogue data set with stronger professional relevance.

[0155] The present application also provides a psychological counseling dialogue dataset generation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the psychological counseling dialogue dataset generation method in the above-mentioned embodiment one.

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

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

[0158] The present application also provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the method for generating a psychological counseling dialogue dataset in the above-mentioned embodiment.

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

Claims

1. A method for generating a psychological counseling dialogue dataset. It is characterized in that The method comprises: Acquiring psychological counseling data from different data sources, and performing data preprocessing on the psychological counseling data; Generate extended dialogue prompts based on case conceptualization templates; Inputting the preprocessed psychological counseling data and the extended dialogue prompt information into the pre-trained large language model to obtain initial multi-round dialogue data; Extracting labels from the initial multiple rounds of dialogue data to obtain dialogue labels for each round of dialogue; Annotating the initial multi-round dialogue data according to the dialogue tags to generate a dialogue data set; The step of inputting the pre-processed psychological counseling data and the extended dialogue prompt information into the pre-trained large language model to obtain initial multi-round dialogue data includes: Inputting the preprocessed psychological counseling data and the extended dialogue prompt information into a pre-trained large language model, wherein the pre-trained large language model includes a question definition module, a knowledge graph generation module, a hypothesis formulation module, a suggestion generation module, and a content recording module; Extracting the problem information of each visitor in the preprocessed psychological counseling data through the problem definition module; The knowledge graph generation module collects case information from the preprocessed psychological counseling data and generates a case information knowledge graph corresponding to each visitor; Generate problem cause information corresponding to each visitor according to the problem information and the case information knowledge graph through the hypothesis formulation module; Generate reference intervention measures corresponding to each visitor according to the problem information and the problem cause information by the suggestion generation module; The content recording module generates multiple rounds of dialogue data corresponding to each visitor and determines them as initial multiple rounds of dialogue data. The multiple rounds of dialogue data corresponding to each visitor include the problem information, the case information knowledge graph, the problem cause information and the reference intervention measures.

2. The method according to claim 1, It is characterized in that The psychological counseling data includes counseling case data and a public question-and-answer data set in the field of psychology. The step of preprocessing the psychological counseling data includes: Convert the consulting case data into text format to obtain consulting case data in text format; Performing data cleaning on the public question-and-answer data set in the field of psychology and the consultation case data in text format to obtain generalized psychological consultation data; The generalized psychological counseling data is segmented into long texts, and the pre-processed psychological counseling data is obtained according to the segmentation results.

3. The method according to claim 1, It is characterized in that The step of extracting labels from the initial multiple rounds of dialogue data to obtain dialogue labels for each round of dialogue includes: Extracting spatiotemporal information from the initial multi-round conversation data to obtain spatiotemporal labels corresponding to each visitor; Extracting the dialogue type of each dialogue round in the initial multi-round dialogue data to obtain an activity sequence label of each dialogue round; Based on each visitor, a dialogue tag of each round of dialogue is determined according to the corresponding spatiotemporal tag and the activity sequence tag of each round of dialogue.

4. The method according to claim 3, It is characterized in that Before the step of extracting spatiotemporal information from the initial multi-round conversation data to obtain the spatiotemporal labels corresponding to each visitor, the method further includes: Filtering the initial multi-round dialogue data based on preset filtering rules to obtain target multi-round dialogue data; Accordingly, the step of extracting spatiotemporal information from the initial multi-round conversation data to obtain the spatiotemporal labels corresponding to each visitor includes: Extracting spatiotemporal information from the target multi-round conversation data to obtain spatiotemporal labels corresponding to each visitor; The step of extracting the dialogue type of each dialogue round in the initial multi-round dialogue data to obtain the activity sequence label of each dialogue round includes: The dialog type of each round of dialog in the target multi-round dialog data is extracted to obtain an activity sequence label of each round of dialog.

5. The method according to claim 4, It is characterized in that The step of extracting spatiotemporal information from the target multi-round conversation data to obtain spatiotemporal labels corresponding to each visitor includes: Extracting spatiotemporal information from the target multi-round conversation data using regular expressions to obtain spatiotemporal labels corresponding to each visitor; The step of extracting the dialogue type of each dialogue round in the target multi-round dialogue data to obtain the activity sequence label of each dialogue round includes: The dialogue activity type of each round of dialogue in the target multi-round dialogue data is extracted by presetting the dialogue activity sequence classification information to obtain the activity sequence label of each round of dialogue.

6. The method according to claim 5, It is characterized in that The step of labeling the initial multi-round dialogue data according to the dialogue tags to generate a dialogue data set includes: Filling in a number of to-be-filled dialogue tag items corresponding to the target multi-round dialogue data according to the dialogue tag; According to the filling results, the annotated multi-round dialogue data corresponding to each visitor is determined, and a dialogue dataset is generated.

7. A device for generating a psychological consultation dialogue data set, It is characterized in that The device comprises: A data acquisition module is used to obtain psychological counseling data from different data sources and perform data preprocessing on the psychological counseling data; A prompt generation module, used to generate extended dialogue prompt information based on the case conceptualization template; A dialogue expansion module is used to input the pre-processed psychological counseling data and the extended dialogue prompt information into the pre-trained large language model to obtain initial multi-round dialogue data; A label extraction module, used to extract labels from the initial multiple rounds of dialogue data to obtain dialogue labels for each round of dialogue; A data set generation module, used to annotate the initial multi-round dialogue data according to the dialogue tags to generate a dialogue data set; The dialogue expansion module is also used to input the preprocessed psychological counseling data and the extended dialogue prompt information into the pre-trained large language model, which includes a problem definition module, a knowledge graph generation module, a hypothesis formulation module, a suggestion generation module and a content recording module; the problem information of each visitor in the preprocessed psychological counseling data is extracted through the problem definition module; the case information of the preprocessed psychological counseling data is collected through the knowledge graph generation module, and a case information knowledge graph corresponding to each visitor is generated; the problem cause information corresponding to each visitor is generated according to the problem information and the case information knowledge graph through the hypothesis formulation module; the reference intervention measures corresponding to each visitor are generated according to the problem information and the problem cause information through the suggestion generation module; and the multi-round dialogue data corresponding to each visitor is generated and determined as the initial multi-round dialogue data through the content recording module, and the multi-round dialogue data corresponding to each visitor includes the problem information, the case information knowledge graph, the problem cause information and the reference intervention measures.

8. A device for generating psychological counseling dialogue datasets, It is characterized in that The device includes: a memory, a processor, and a psychological counseling dialogue dataset generation program stored in the memory and executable on the processor, wherein the psychological counseling dialogue dataset generation program is configured to implement the steps of the psychological counseling dialogue dataset generation method as described in any one of claims 1 to 6.

9. A storage medium, It is characterized in that The storage medium stores a psychological counseling dialogue data set generation program, and when the psychological counseling dialogue data set generation program is executed by the processor, the steps of the psychological counseling dialogue data set generation method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Task type intelligent multi-round dialogue method based on RASA and related equipment

    CN115392264A

  • Psychological counseling model training and psychological counseling processing method and device and electronic equipment

    CN117438047A

  • Medical term standardization auxiliary diagnosis method based on large language model

    CN118296121A