Questionnaire survey, model training methods, devices, equipment, media and products

By applying dialogue analysis and process control models trained by large-scale language models in questionnaire surveys, the problem of low validity of answers caused by fixed questions is solved, and the efficiency and effectiveness of questionnaire surveys are improved.

CN117312530BActive Publication Date: 2024-09-03BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311501940.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2024-09-03
Estimated Expiration
2043-11-10

AI Technical Summary

Technical Problem

In the existing questionnaire survey method, the questions are fixed and filled in at will, resulting in low validity of answers and unable to effectively improve the efficiency and effectiveness of the survey.

Method used

A large language model is used to train the dialogue analysis model and dialogue flow control model. The dialogue analysis model is used to analyze the question and answer process. The dialogue flow control model is used to realize automatic decision-making in the dialogue, select the next question, and ensure the continuity and effectiveness of the question and answer.

Benefits of technology

Through automatic decision-making and dialogue analysis, the efficiency and effectiveness of the questionnaire are improved, and the respondent's willingness to respond and the quality of the answers are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117312530B
    Figure CN117312530B
Patent Text Reader

Abstract

The present disclosure provides questionnaire surveys, model training methods, devices, equipment, media and products, which are related to the field of artificial intelligence, especially to technical fields such as cloud computing, NLP, voice technology, and deep learning. The specific implementation scheme is: determine the target question in the target questionnaire that is in an activated state and the target answer corresponding to the target question, and determine the target question and the target answer as a target question-answer pair; according to the dialogue analysis model obtained through training, perform dialogue analysis on the target question-answer pair to obtain a dialogue analysis result; if the dialogue analysis result indicates that the question and answer of the target question are over, then select the next question from the remaining questions of the target questionnaire through the dialogue flow control model obtained through training, and the remaining questions refer to the unfinished questions in the target questionnaire; output the next question.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to technical fields such as cloud computing, NLP, voice technology, deep learning, etc. in the field of artificial intelligence, and in particular to a questionnaire survey, model training method, device, equipment, medium and product. Background Art

[0002] A questionnaire survey is a method of collecting answers from respondents to obtain opinion survey results. A questionnaire survey can include multiple questions, multiple questions arranged in sequence, and multiple questionnaires arranged in sequence. After that, the questionnaires can be distributed to the respondents. After the respondents fill in the answers, the completed questionnaires are fed back to the survey party.

[0003] However, in the above-mentioned questionnaire survey method, each question is fixed, and the respondents are relatively casual when filling in the answers, resulting in low effectiveness of the questionnaire survey answers. Summary of the invention

[0004] The present invention provides a questionnaire survey, a model training method, an apparatus, a device, a medium and a product for a questionnaire survey.

[0005] According to a first aspect of the present disclosure, a questionnaire survey method is provided, comprising:

[0006] Determine a target question in an activated state in a target questionnaire and a target answer corresponding to the target question, and determine the target question and the target answer as a target question-answer pair;

[0007] According to the conversation analysis model obtained through training, conversation analysis is performed on the target question-answer pair to obtain a conversation analysis result;

[0008] If the dialogue analysis result indicates that the question and answer of the target question is finished, then the dialogue flow control model obtained through training selects the next question from the remaining questions of the target questionnaire, where the remaining questions refer to the unfinished questions in the target questionnaire;

[0009] Output the next question.

[0010] According to a second aspect of the present disclosure, a model training method is provided for training a conversation analysis model, the method comprising:

[0011] Determine a conversation analysis data set, the conversation analysis data set including a plurality of conversation analysis samples, the conversation analysis samples including: training question-answer pairs and conversation analysis result labels of the training question-answer pairs;

[0012] Get a large pre-trained language model;

[0013] Using the conversation analysis dataset, performing supervised fine-tuning training on the large language model until a preset analysis termination condition is met;

[0014] The conversation analysis model is determined based on the large language model obtained when the preset analysis termination condition is met.

[0015] According to a third aspect of the present disclosure, a model training method is provided for training a dialogue flow control model, the method comprising:

[0016] Determine a process control data set, wherein the process control data set includes a plurality of process control samples, and the process control samples include: a training question-answer pair and a question label of a next question corresponding to the training question-answer pair;

[0017] Get a large pre-trained language model;

[0018] Using the process control data set, the large language model is fine-tuned in a supervised manner until a preset process termination condition is met;

[0019] The dialogue process control model is determined based on the large language model obtained when the preset process termination condition is met.

[0020] According to a fourth aspect of the present disclosure, a questionnaire survey device is provided, comprising:

[0021] A determination unit, used to determine a target question in an activated state in a target questionnaire and a target answer corresponding to the target question, and determine the target question and the target answer as a target question-answer pair;

[0022] An analysis unit, configured to perform a conversation analysis on the target question-answer pair according to the conversation analysis model obtained through training, and obtain a conversation analysis result;

[0023] A selection unit, configured to select a next question from the remaining questions of the target questionnaire through the trained dialogue flow control model if the dialogue analysis result indicates that the question and answer of the target question have been completed, wherein the remaining questions refer to the questions in the target questionnaire that have not been completed;

[0024] An output unit is used to output the next question.

[0025] According to a fifth aspect of the present disclosure, a model training device is provided for training a conversation analysis model, the device comprising:

[0026] A first determining unit is used to determine a conversation analysis data set, wherein the conversation analysis data set includes a plurality of conversation analysis samples, and the conversation analysis samples include: training question-answer pairs and conversation analysis result labels of the training question-answer pairs;

[0027] A first acquisition unit is used to acquire a large language model obtained through pre-training;

[0028] A first training unit is used to perform supervised fine-tuning training on the large language model using the conversation analysis dataset until a preset analysis termination condition is met;

[0029] The dialogue determination unit is used to determine the dialogue analysis model based on the large language model obtained when the preset analysis termination condition is met.

[0030] According to a sixth aspect of the present disclosure, a model training device is provided for training a dialogue flow control model, the device comprising:

[0031] A second determination unit is used to determine a process control data set, wherein the process control data set includes a plurality of process control samples, and the process control samples include: a training question-answer pair and a question label of a next question corresponding to the training question-answer pair;

[0032] A second acquisition unit is used to acquire a large language model obtained through pre-training;

[0033] A second training unit is used to perform supervised fine-tuning training on the large language model using the process control data set until a preset process termination condition is met;

[0034] The process determination unit is used to determine the dialogue process control model based on the large language model obtained when the preset process termination condition is met.

[0035] According to a seventh aspect of the present disclosure, there is provided an electronic device, including:

[0036] at least one processor; and

[0037] a memory communicatively connected to at least one processor; wherein,

[0038] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to perform the method of the first aspect, the second aspect, or the third aspect.

[0039] According to an eighth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method according to the first aspect, the second aspect or the third aspect.

[0040] According to the ninth aspect of the present disclosure, a computer program product is provided, the computer program product comprising: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the method of the first aspect, the second aspect or the third aspect.

[0041] According to the technical solution disclosed in the present invention, the target question in the target questionnaire and the target answer corresponding to the target question in the activated state can be determined, and the target question and the target answer can be determined as a target question-answer pair, and the target question-answer pair can analyze the target question and the target answer as a whole. Afterwards, the dialogue analysis model obtained through training can be used to perform dialogue analysis on the target question-answer pair to obtain a dialogue analysis result. The dialogue analysis result can be used to detect whether the target question is finished. If it is finished, then on this basis, the next question can be selected from the remaining questions of the target questionnaire through the dialogue process control model obtained through training, and the remaining questions can refer to the questions that have not been completed in the target questionnaire. After the next question is output, the question-answering can continue. Through the above process, the question-answering end detection and automatic decision-making of the questions in the target questionnaire can be realized, and the overall control of the questionnaire process can be achieved, which effectively improves the survey efficiency and effectiveness of the questionnaire.

[0042] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0044] Figure 1 is an application schematic diagram of a questionnaire survey system provided according to an embodiment of the present disclosure;

[0045] Figure 2 is a schematic diagram according to a first embodiment of the present disclosure;

[0046] Figure 3 is an example diagram of an answer input provided according to an embodiment of the present disclosure;

[0047] Figure 4 is an example diagram of answer selection provided according to an embodiment of the present disclosure;

[0048] Figure 5 is a flowchart of a questionnaire survey method provided according to an embodiment of the present disclosure;

[0049] Figure 6is a schematic diagram according to a second embodiment of the present disclosure;

[0050] Figure 7 is a schematic diagram of a conversation analysis model training provided according to an embodiment of the present disclosure;

[0051] Figure 8 is a schematic diagram according to a third embodiment of the present disclosure;

[0052] Fig. 9 is a schematic diagram of a dialogue flow control model training provided according to an embodiment of the present disclosure;

[0053] Fig.10 is a schematic diagram according to a fourth embodiment of the present disclosure;

[0054] Fig.11 is a schematic diagram according to a fifth embodiment of the present disclosure;

[0055] Fig.12 is a schematic diagram according to a sixth embodiment of the present disclosure;

[0056] Fig.13 is a block diagram of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0057] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0058] The present invention discloses a questionnaire survey method, apparatus, equipment, medium and product, which are applied to cloud computing, NLP (Natural Language Processing), speech technology, deep learning and other technical fields in the field of artificial intelligence to achieve the goal of improving the efficiency and effectiveness of questionnaire surveys.

[0059] In the related art, a questionnaire survey may include multiple questions, and the multiple questions may be arranged in sequence, and the questions arranged in sequence may be displayed to the user. Each question requires a response from the respondent, such as selecting a target result from the candidate results or directly collecting the target result input by the respondent. For another example, a questionnaire may be distributed to the respondent. After the respondent fills in the answer, the completed questionnaire is fed back to the survey party. However, in the above-mentioned questionnaire collection method, after each question is displayed to the respondent, the respondent fills in the answer in a relatively casual manner, resulting in low effectiveness of the questionnaire survey answers.

[0060] In order to solve the above problems, the present disclosure considers applying a large model to the questionnaire survey scenario. The dialogue analysis model and the dialogue flow control model are trained by the large model. The question-answering process is analyzed by the object analysis model to obtain a higher quality dialogue, and the dialogue flow control model can realize automatic decision-making of the dialogue, improve the willingness of the survey subjects to respond, and then provide more effective responses, improve the effectiveness of the questionnaire, and finally achieve the goal of improving the efficiency and effectiveness of the questionnaire survey.

[0061] In the technical solution disclosed in the present invention, the target question in the target questionnaire and the target answer corresponding to the target question in the activated state can be determined, and the target question and the target answer can be determined as a target question-answer pair, and the target question-answer pair can analyze the target question and the target answer as a whole. Afterwards, the dialogue analysis model obtained through training can be used to perform dialogue analysis on the target question-answer pair to obtain a dialogue analysis result. The dialogue analysis result can be used to detect whether the target question has been completed. If it has been completed, then on this basis, the next question can be selected from the remaining questions of the target questionnaire through the dialogue process control model obtained through training, and the remaining questions can refer to the questions that have not been completed in the target questionnaire. After the next question is output, the question-answering can continue. Through the above process, the question-answering end detection and automatic decision-making of the questions in the target questionnaire can be realized, and the overall control of the questionnaire process can be achieved, which effectively improves the survey efficiency and effectiveness of the questionnaire.

[0062] The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0063] Figure 1 A schematic diagram of an application of a questionnaire survey system provided by an embodiment of the present disclosure is shown. Figure 1 The questionnaire survey system shown may include: an electronic device 11 , a model training device 12 , a model training device 13 and a user terminal 14 .

[0064] The model training device 12 can be used to train the dialogue analysis model 10. The model training device 13 can be used to train the dialogue flow control model 20.

[0065] After obtaining the dialogue analysis model 10 and the dialogue flow control model 20 , the dialogue analysis model 10 and the dialogue flow control model 20 may be configured on the electronic device 11 .

[0066] The electronic device 11 can be configured with the questionnaire survey method disclosed in the present invention. The questionnaire survey method can determine the target question in the target questionnaire that is in an activated state and the target answer corresponding to the target question, and determine the target question and the target answer as a target question-answer pair; according to the dialogue analysis model 10 obtained through training, the target question-answer pair is subjected to dialogue analysis to obtain a dialogue analysis result; if the dialogue analysis result indicates that the question-answer of the target question is over, the next question is selected from the remaining questions of the target questionnaire through the dialogue flow control model 20 obtained through training, and the remaining questions refer to the questions that have not been completed in the target questionnaire; and the next question is output. By continuously obtaining the target question and selecting the next question according to the target question, the questionnaire survey can be continuously conducted and the efficiency of the questionnaire survey can be improved.

[0067] Figure 2 is a schematic diagram of the first embodiment of the present disclosure, referring to Figure 2 The questionnaire survey method shown may include the following steps:

[0068] 201. Determine the target questions that are activated in the target questionnaire and the target answers corresponding to the target questions, and determine the target questions and the target answers as target question-answer pairs.

[0069] The target questionnaire may be a questionnaire in a questionnaire library. A target questionnaire that meets the questionnaire requirements may be selected from the questionnaire library. Specifically, the questionnaire requirements may refer to the requirements information input by the questionnaire survey party. The questionnaire information corresponding to the multiple questionnaires in the questionnaire library may be matched with the requirements information to obtain the requirements matching degrees corresponding to the multiple questionnaires, and the questionnaire with the highest requirements matching degree may be determined as the target questionnaire. The questionnaire information may refer to one or more information such as the questionnaire title, questionnaire keywords, key sentences, etc.

[0070] Optionally, the active state may refer to a question that is in a state where an answer needs to be collected. The state opposite to the active state is the sleep state. The sleep state may refer to a question that has already collected an answer or that is waiting for the question to start collecting an answer.

[0071] The target answer corresponding to the target question may refer to the answer provided by the survey subject to the target question. For example, the target answer may refer to the answer selected by the survey subject from multiple candidate answers, or the target answer may refer to the answer input by the survey subject to the target question.

[0072] In a possible design, the target question may be the first question in the target questionnaire or the next question decided from the remaining questions in the target questionnaire by the dialogue flow control model.

[0073] 202. Perform a dialogue analysis on the target question-answer pair according to the dialogue analysis model obtained through training to obtain a dialogue analysis result.

[0074] Optionally, the conversation analysis model can be used to perform conversation analysis on input question-answer pairs and output conversation analysis results.

[0075] The conversation analysis model can be obtained by training a large language model. The training process of the conversation analysis model can be referred to the description of the following embodiment, which will not be repeated here.

[0076] The results of the conversation analysis can be expressed according to the conversation output structure to unify the expression of the conversation analysis results and facilitate the management of the conversation analysis results.

[0077] 203. If the dialogue analysis result indicates that the target question has been answered, the dialogue flow control model obtained through training selects the next question from the remaining questions in the target questionnaire, where the remaining questions refer to the questions that have not been answered in the target questionnaire.

[0078] Optionally, the dialogue flow control model may select a next question from the remaining questions of the target questionnaire according to the input target question-answer pair.

[0079] The dialogue flow control model can be obtained by training a large language model. The training process of the dialogue flow control model can be referred to the description of the following embodiment, which will not be repeated here.

[0080] Optionally, selecting the next question from the remaining questions of the target questionnaire through the dialogue flow control model obtained through training may include: using the target question to select the next question from the remaining questions of the target questionnaire through the dialogue flow control model obtained through training.

[0081] Furthermore, the dialogue flow control model obtained through training selects the next question related to the target question from the remaining questions of the target questionnaire.

[0082] Among them, selecting the next question related to the target question may refer to identifying the question intention of the target question through the dialogue flow control model to obtain the question intention of the target question. According to the question intention of the target question, the dialogue flow control model may select the question with the highest correlation with the question intention of the target question from the remaining questions, and determine the question as the next question.

[0083] Furthermore, the dialogue flow control model may include a large language model, which can identify the question intention of the target question.

[0084] Optionally, the dialog analysis result indicating that the question and answer of the target question is finished may also include: if the target question in the dialog analysis result is the last unanswered question, then determining that the question and answer of the target question is finished.

[0085] 204. Output the next question.

[0086] Optionally, step 204 may include: switching the next question to an active state, switching the target question to a sleep state, and outputting the next question as a new target question.

[0087] The next question to be outputted is the latest target question. The target answers provided by the respondents to the target question are collected.

[0088] As an optional implementation, the output method of the question may include multiple methods, such as instant messaging, short-term conversation, voice output, etc., and the output method of the question is not too limited in this embodiment. Accordingly, the collection method of the answer to each question can be the same as the output method of the question. For example, when the question is output in voice output, the answer to the question can be collected in voice collection.

[0089] In the technical solution disclosed in the present invention, the target question in the target questionnaire and the target answer corresponding to the target question in the activated state can be determined, and the target question and the target answer can be determined as a target question-answer pair, and the target question-answer pair can analyze the target question and the target answer as a whole. Afterwards, the dialogue analysis model obtained through training can be used to perform dialogue analysis on the target question-answer pair to obtain a dialogue analysis result. The dialogue analysis result can be used to detect whether the target question has been completed. If it has been completed, then on this basis, the next question can be selected from the remaining questions of the target questionnaire through the dialogue process control model obtained through training, and the remaining questions can refer to the questions that have not been completed in the target questionnaire. After the next question is output, the question-answering can continue. Through the above process, the question-answering end detection and automatic decision-making of the questions in the target questionnaire can be realized, and the overall control of the questionnaire process can be achieved, which effectively improves the survey efficiency and effectiveness of the questionnaire.

[0090] In order to enable readers to more deeply understand the implementation principle of the present disclosure, the following Figure 3-Figure 5 right Figure 2 The illustrated embodiment is further refined.

[0091] In order to make the conversation analysis more accurate, further, based on any of the above embodiments, the conversation analysis model obtained through training is used to perform conversation analysis on the target question-answer pair to obtain conversation analysis results, including:

[0092] Obtaining historical question-answer pairs of the target questionnaire, the historical question-answer pairs including historical questions and historical answers corresponding to the historical questions, the historical questions being questions that have been answered in the target questionnaire;

[0093] The target question-answer pair and the historical question-answer pair are input into the dialogue analysis model to obtain the dialogue analysis results output by the dialogue analysis model.

[0094] Optionally, obtaining historical question-answer pairs of the target questionnaire may include: obtaining the timestamp of the target answer as the target collection time, and querying historical question-answer pairs whose timestamps are between the target collection time according to the target collection time. Furthermore, historical question-answer pairs whose timestamps are before the target collection time and are associated with the same survey subject may be queried.

[0095] Optionally, obtaining historical question-answer pairs of the target questionnaire may also include: obtaining historical questions to which the respondents have responded, and historical answers corresponding to each historical question, and determining the historical questions and the historical answers corresponding to the historical questions as historical question-answer pairs.

[0096] After the target question-answer pair and the historical question-answer pair are input into the dialogue analysis model, the dialogue analysis model can analyze the target question-answer pair based on the historical question-answer pair to obtain the dialogue analysis result output by the dialogue analysis model. The historical question-answer pair can be used as reference information for the dialogue analysis process of the target question-answer pair, which can make the dialogue analysis result of the target question-answer pair more accurate.

[0097] In the technical solution disclosed in the present invention, by obtaining the historical question-answer pairs of the target questionnaire, and inputting the target question-answer pairs and the historical question-answer pairs into the dialogue analysis model, the dialogue analysis model can extract the features of both the target question-answer pairs and the historical question-answer pairs. Involving the historical question-answer pairs in the analysis process of the target question-answer pairs can ensure that the analysis of the target question-answer pairs is not isolated, but uses the historical question-answer pairs of completed questions and answers as analysis references, which can make the analysis content of the target question-answer pairs more complete, the analysis process more comprehensive, and the dialogue analysis results obtained more accurate. Furthermore, by using more accurate and comprehensive dialogue analysis results to participate in subsequent question decisions, the correspondence between question decisions and the user's historical questions and answers can be higher, the user's enthusiasm for answering can be increased, and the effectiveness and reliability of responses can be further improved.

[0098] In order to facilitate the unified management of the dialogue analysis results, as an embodiment, according to the dialogue analysis model obtained through training, dialogue analysis is performed on the target question-answer pair to obtain the dialogue analysis results, including:

[0099] According to the dialogue analysis model obtained through training, dialogue analysis is performed on the target question-answer pair to obtain dialogue analysis results output by the dialogue analysis model according to a preset dialogue output structure, where the dialogue output structure includes an end marker parameter.

[0100] The method also includes:

[0101] According to the parameter value of the identification end parameter, it is detected whether the dialogue analysis result indicates that the question and answer of the target question is finished.

[0102] Optionally, the conversation analysis structure may refer to a structural parameter pre-set for conversation analysis and used to store conversation analysis results. The conversation analysis structure may use (key, value) to store conversation analysis results. Specifically, key may be a set parameter, and value may be a parameter value corresponding to the parameter.

[0103] Exemplarily, the parameters in the conversation analysis structure may include: current question parameter, thinking process parameter, end mark parameter, and question answer parameter.

[0104] Among them, the parameter value of the current question parameter is the target question. The parameter value of the thinking process parameter is the output thinking process. The parameter value of the identification end parameter is yes or no. The question answer parameter is the target answer.

[0105] The dialogue analysis results output by the above dialogue analysis structure may be, for example:

[0106] {

[0107] "Current question parameters": "<Current question of the questionnaire>",

[0108] "Thinking process parameters:":"<Output thinking process>",

[0109] "Identify end parameter":"<Yes / No>",

[0110] "Question answer parameter": "<question answer>"

[0111] }

[0112] In the technical solution disclosed in the present invention, a dialogue output structure can be set in the dialogue analysis model, so that the results output by the dialogue analysis model can be output using a unified dialogue output result, thereby eliminating the structural differences between different questions and answers. And according to the fact that the dialogue output structure can include an end identification parameter, by identifying the parameter value of the end parameter, it is possible to quickly detect whether the dialogue analysis result is the end of the question and answer. The detection efficiency of the end of the question and answer is improved, and the parameter value can clearly identify whether it is over, which can avoid the phenomenon of wrong end judgment, which is conducive to improving the detection accuracy of whether the question and answer are over. The improvement of the efficiency and accuracy of the end of the question and answer detection can further improve the speed of the entire questionnaire survey.

[0113] The dialog analysis result may include an end identification parameter, which may be used to determine whether the question and answer session is over. Further, based on the parameter value of the end identification parameter, detecting whether the dialog analysis result indicates that the question and answer session of the target question is over includes:

[0114] If the parameter value of the end parameter is the preset target parameter value, it is determined that the dialogue analysis result indicates that the question and answer of the target question is over;

[0115] If the parameter value of the end parameter is not the target parameter value, it is determined that the dialog analysis result indicates that the question and answer of the target question has not ended.

[0116] Optionally, the target parameter value may be yes. That is, if the parameter value of the identification parameter value is yes, it can be determined that the dialogue analysis result indicates that the question and answer of the target question is over. If the parameter value of the identification parameter value is no, it can be determined that the dialogue analysis result indicates that the question and answer of the target question is not over.

[0117] In the technical solution disclosed in the present invention, when the question and answer of the target question ends, the parameter value of the end parameter is directly compared with the preset target parameter value. If the comparison is successful, it can be determined that the question and answer is over. If the comparison is unsuccessful, it is determined that the question and answer is not over. The setting of the target parameter value can make the detection of the end of the conversation more efficient and accurate.

[0118] Furthermore, based on any of the above embodiments, the method further includes:

[0119] If the dialogue analysis results indicate that the target question has not been answered, a follow-up question corresponding to the target question is generated;

[0120] Output follow-up questions and obtain the follow-up answers corresponding to the follow-up questions;

[0121] Based on the answer to the follow-up question, the target answer to the target question is updated.

[0122] Optionally, if the target question is not finished, a follow-up question can be generated based on the target question and the target answer. The follow-up question can refer to a question related to the target question. For example, assuming the target question is "What is the weather like today?" and the target answer is "Not very good." The follow-up question can be "What does not very good look like specifically?"

[0123] By asking follow-up questions, you can follow up on the target question, thereby making the answer to the target question more complete and obtaining a more effective target answer.

[0124] Optionally, after updating the target answer to the target question based on the answer to the follow-up question, the process may return to at least step 201 to determine the target question and the target answer as a target question-answer pair and continue to execute until the question-answering of the target question is completed.

[0125] Of course, in actual applications, if the dialogue analysis results indicate that the number of times the target question is not completed exceeds the preset threshold, the questionnaire survey will be terminated.

[0126] In the technical solution disclosed in the present invention, when the result of the dialogue analysis indicates that the question and answer of the target question has not been completed, a corresponding follow-up question is generated for the target question, and the follow-up answer to the follow-up question is obtained, and the target answer to the target question is updated through the follow-up answer to the follow-up question. The target question can be made richer by asking follow-up questions, and more answers can be obtained, thereby achieving more effective answer collection. In addition, when the question and answer do not meet the needs, when asking again, setting follow-up questions can achieve multiple collection of target answers, avoiding the phenomenon that the target answer does not meet the needs due to inaccurate user responses, and further improving the efficiency and effectiveness of the questionnaire survey.

[0127] In order to achieve more accurate dialogue flow control, as an embodiment, the dialogue flow control model obtained through training selects the next question from the remaining questions of the target questionnaire, including:

[0128] Get historical question-answer pairs of the target questionnaire.

[0129] The target question-answer pair and the historical question-answer pair are input into the trained dialogue flow control model to obtain the next question output by the dialogue flow control model. The next question refers to the question selected by the dialogue flow control model from the remaining questions in the target questionnaire.

[0130] Optionally, historical question-answer pairs and target question-answer pairs can be used as input data for the dialogue process control model, so that the dialogue process control model makes process decisions on the target question-answer pair and its related historical question-answer pairs, selects the next question, and realizes automatic selection of the next question.

[0131] Optionally, in addition to the method for obtaining historical question-answer pairs involved in the above embodiment, obtaining historical question-answer pairs of the target questionnaire may also include: obtaining historical question-answer pairs associated with the survey object according to a preset number of question-answer pairs, so that the number of historical question-answer pairs is equal to the preset number of question-answer pairs. For example, the first 10 historical question-answer pairs may be obtained to participate in the dialogue process control and dialogue analysis.

[0132] In the technical solution disclosed in the present invention, when using the dialogue process control model to decide the next question, the target question and answer pair and the historical question and answer pair can be input into the trained dialogue process control model, so that the dialogue process control model can learn the historical questions before the target question and have richer knowledge of the relevant processes of the questions. Therefore, it provides a more accurate question decision reference, improves the relationship between the selection of the next question and the target question pair and the historical question pair, and improves the effectiveness of the selection of the next question.

[0133] Further, based on any of the above embodiments, determining the target questions in the target questionnaire that are in an activated state and the target answers corresponding to the target questions includes:

[0134] Displays active target questions in the target questionnaire.

[0135] In response to an answer generation operation triggered by the survey subject for a target question, a target answer corresponding to the target question is obtained.

[0136] Optionally, displaying the target questions in the target questionnaire in an activated state may refer to displaying the target questions in the target questionnaire in an activated state through a display screen of a user terminal. Specifically, the target questions in the target questionnaire in an activated state may generate a question display page, and the question display page is displayed on the display screen of the user terminal.

[0137] Optionally, any question can be associated with at least one candidate answer and the question can be collected directly.

[0138] Furthermore, the answer generation operation may include: an answer input operation performed after the survey subject triggers an input operation in the answer input area.

[0139] For ease of understanding, Figure 3 An example diagram showing an answer input is shown in FIG. Figure 3 The question answering page 300 shown may include a question display area 301 and an answer input area 302. The question display area 301 may be used to display the target question in an activated state. For example, the question display area 301 displays "Please answer the following questions: 1. Question 1" where Question 1 is the target question. The answer input area 302 is used to display the input answer. Figure 3 The soft keyboard 303 in the figure can be used to respond to the input operation of the survey subject and obtain the answer input by the survey subject.

[0140] Furthermore, the answer generation operation may also include: an answer selection operation performed by the survey subject with respect to a plurality of candidate answers associated with the target question.

[0141] Figure 4 An example diagram showing one answer choice. Figure 4 The answer selection page 400 shown may include a question prompt area 401 and an answer prompt area 402. The answer prompt area 402 displays multiple candidate answers for "question 2", which are four candidate answers, namely A, answer 1, B, answer 2, C, answer 3, and D, answer 4. By detecting the click operation performed by the survey subject on any candidate answer, it can be determined that the answer clicked by the survey subject is the target answer.

[0142] Of course, the output methods of the above questions are merely exemplary and do not constitute a specific limitation on the output methods.

[0143] In the technical solution disclosed in the present invention, when obtaining the target answer corresponding to the target question, the target question in the target questionnaire in an activated state can be displayed first, and the display of the target question can instruct the survey subject to answer. Then, in response to the answer generation operation triggered by the survey subject for the target question, the target answer corresponding to the target question can be obtained, and the user input of the target answer can be realized. Through interaction with the user, the target answer corresponding to the target question can be collected in real time, and then the questionnaire survey method can be used in time to perform dialogue analysis, next dialogue decision and other processing on the target question and the target answer, which can improve the timeliness of the entire questionnaire survey method and further improve the efficiency of the questionnaire survey.

[0144] Further, based on any of the above embodiments, before determining the target questions in the target questionnaire that are activated and the target answers corresponding to the target questions, the method further includes:

[0145] Display multiple questionnaires in the questionnaire library;

[0146] In response to a questionnaire selection operation performed by a questionnaire survey party on a plurality of questionnaires, a target questionnaire is obtained;

[0147] Identify the first question in the target questionnaire as the active target question.

[0148] Further, based on any of the above embodiments, the next question is output, including:

[0149] Switch the target question to sleep state and switch the next question to active state;

[0150] According to the preset voice questioning rules, the next question is converted into the latest target voice and the latest target voice is output.

[0151] Optionally, the voice questioning rules may include rules such as question tone, question intonation, question volume, sound playback type, etc. The voice questioning rules can be used to convert the next question into a target voice so that the target voice is played in accordance with the voice questioning rules.

[0152] In the technical solution disclosed in the present invention, multiple questionnaires in the questionnaire survey library can be displayed, and then the target questionnaire can be obtained in response to the questionnaire selection operation performed by the questionnaire survey party on the multiple questionnaires. Through the display and selection of the questionnaire, the questionnaire survey party can make decisions on the entire questionnaire survey process, and can make the target questionnaire participating in the survey more compatible with the actual needs of the questionnaire survey party. When the survey is started, the first question in the target questionnaire can be determined as the target question in the activated state, and the preliminary determination of the target question can be achieved, and then the two key steps of collecting the subsequent target answers and deciding the next question can be executed. The cycle realizes the continuous survey of the target questionnaire and effectively improves the efficiency of the questionnaire survey. In addition, according to the preset voice questioning rules, the next question is converted into the latest target voice, and the latest target voice is output, so that when the next question is output, the voice output is more personalized, the output efficiency is higher, and the enthusiasm of the survey subjects to participate in the survey is improved, and the quality of the answers is improved.

[0153] Figure 5 A flowchart of a questionnaire survey method provided by an embodiment of the present disclosure is shown. Figure 5 , for multiple questionnaires in the questionnaire library, a target questionnaire can be selected from them. Then the target question in the target questionnaire can be output to the survey object. The target question can be the next question decided by the dialogue process control model or the first question in the target questionnaire. After outputting the target question, a dialogue can be conducted with the survey object to obtain the target answer corresponding to the target question, and then determine the target question and target answer pair corresponding to the target question. After that, the dialogue analysis model can be used to perform dialogue analysis on the target question and answer pair to obtain the dialogue analysis result; if the dialogue analysis result indicates that the question and answer of the target question has ended, the dialogue process control model obtained through training is used to select the next question from the remaining questions of the target questionnaire; the next question is output, thereby realizing a cycle from question to process decision until the questionnaire survey ends.

[0154] Figure 6 A schematic diagram showing a second embodiment of the present disclosure is shown. Figure 6 The model training method shown is used to train the conversation analysis model involved in any of the above embodiments. The model training method may include the following steps:

[0155] 601. Determine a conversation analysis data set, where the conversation analysis data set includes multiple conversation analysis samples, and the conversation analysis samples include: training question-answer pairs and conversation analysis result labels of the training question-answer pairs.

[0156] Optionally, the training question-answer pair may refer to the question-answer pair participating in the training and the historical question-answer pair associated with the question-answer pair. The question-answer pair participating in the training may be equivalent to the target question-answer pair in the above embodiment. In a possible design, the target question-answer pair may be involved in the optimization of the conversation analysis model.

[0157] The conversation analysis result label may be a real conversation analysis result corresponding to the training question-answer pair.

[0158] 602. Obtain a large language model obtained through pre-training.

[0159] Optionally, a large language model (LLM) may refer to a large model obtained through pre-training, which may be used for various types of language processing such as natural language understanding and natural language recognition. The large language model may be any existing large model.

[0160] Wherein, obtaining the large language model obtained through pre-training may include: loading the large language model from a model storage file of the large language model.

[0161] 603. Use the conversation analysis dataset to perform supervised fine-tuning training on the large language model until the preset analysis termination conditions are met.

[0162] Among them, supervised fine-tuning training may refer to model training corresponding to a supervised fine-tuning algorithm. The supervised fine-tuning algorithm may be, for example, a Lora (Low-Rank Adaptation of Large Language Models) algorithm, and the specific algorithm type of the supervised fine-tuning algorithm is not excessively limited in the present disclosure.

[0163] Optionally, the preset analysis termination condition may refer to the large language model reaching a convergence condition.

[0164] 604. Determine a conversation analysis model based on the large language model obtained when a preset analysis termination condition is met.

[0165] In the technical solution disclosed in the present invention, after determining the conversation analysis data set, the conversation analysis data set can be used to perform supervised fine-tuning training on the large language model until the preset analysis termination condition is met, and then the conversation analysis model is determined based on the large language model obtained when the preset analysis termination condition is met. Performing supervised fine-tuning training on the basis of the trained large language model can reduce the training difficulty of the conversation analysis model, effectively improve the training efficiency of the conversation model, and reduce the training difficulty of the conversation analysis model.

[0166] Further, based on any of the above embodiments, supervised fine-tuning training is performed on the large language model using the conversation analysis dataset until the large language analysis model meets the preset analysis termination condition, including:

[0167] Based on the large language model, the first weight matrix is ​​constructed.

[0168] The model parameters of the large language model are fixed, and the first weight matrix is ​​iteratively trained using the conversation analysis data set until the conversation prediction results output by the large language model and the first weight matrix meet the preset analysis termination condition.

[0169] Based on the large language model obtained when the preset analysis termination condition is met, a conversation analysis model is determined, including:

[0170] The large language model and the first weight matrix that satisfy the analysis termination condition are determined as the conversation analysis model.

[0171] Constructing the first weight matrix may specifically refer to constructing the first weight matrix in parallel with the large language model.

[0172] Optionally, assuming that the model parameter of the large language model is W0, the matrix parameter of the first weight matrix is ​​ΔW1, and the model input is x, the model output formula is: h=W0x+ΔW1x. When the large language model W0 is fixed, ΔW1 is iteratively trained to obtain the final ΔW1. Then, the first weight matrix corresponding to ΔW1 and the large language model corresponding to W0 are determined as the dialogue analysis model.

[0173] like Figure 7 As shown, a schematic diagram of conversation analysis model training is shown, in which a large language model 701 is fixed, and a first weight matrix 702 parallel to the large language model 701 is iteratively trained. After the output of the large language model 701 and the output of the first weight matrix 702 are weighted, a conversation prediction result can be obtained. The conversation prediction result and the conversation analysis result label are subjected to loss calculation to obtain the analysis loss. If the detection analysis loss is less than a preset analysis threshold, it is determined that the preset analysis termination condition is met.

[0174] In the technical solution disclosed in the present invention, a first weight matrix can be constructed on the basis of a large language model, so that the first weight matrix is ​​parallel to the large language model. Then, the model parameters of the large language model are fixed, and the first weight matrix is ​​iteratively trained using a conversation analysis data set until the conversation prediction results output by the large language model and the first weight matrix meet the preset analysis termination condition, and then the large language model and the first weight matrix when the analysis termination condition is met can be determined as a conversation analysis model. Supervised fine-tuning training can refer to adding training of the first weight matrix on the basis of the pre-trained large language model, and the iterative training can be completed by adjusting the parameters of the first weight matrix. Compared with the number of parameters of the large model, the number of parameters of the first weight matrix is ​​relatively small, and the training of a conversation analysis model with a conversation analysis function can be realized with less parameter adjustment, thereby improving the training efficiency of the conversation analysis model and reducing the training difficulty of the conversation analysis model.

[0175] In order to obtain more training samples, in one possible design, a conversation analysis dataset is determined, including:

[0176] In response to a sample input operation triggered by a user according to a conversation analysis mode, obtaining an initial conversation analysis sample;

[0177] Based on the initial conversation analysis sample, the conversation analysis model is expanded to obtain an expanded conversation analysis sample;

[0178] The initial conversation analysis sample and the expanded conversation analysis sample are identified as the conversation analysis dataset.

[0179] Optionally, based on the initial conversation analysis sample, the sample required by the conversation analysis model is expanded to obtain an expanded conversation analysis sample, including: determining an expanded question from a questionnaire in a questionnaire library; using a large language model obtained through pre-training to generate an expanded answer corresponding to the expanded question, and determining the expanded question and the expanded answer as an expanded question-answer pair; taking the conversation analysis result label in the initial conversation analysis sample as the output target, generating a conversation analysis result label corresponding to the expanded question-answer pair through the large language model; and determining the expanded question-answer pair and the conversation analysis result label corresponding to the expanded question-answer pair as the expanded conversation analysis sample.

[0180] In the technical solution disclosed in the present invention, an initial conversation analysis sample can be obtained based on the user's sample input operation, and then based on the initial conversation analysis sample, a sample expansion is performed to obtain an expanded conversation analysis sample, and a conversation analysis data set corresponding to the initial conversation analysis sample and the expanded conversation analysis sample is obtained. Sample expansion can be achieved based on the manually provided sample, and the number of samples is increased, making the samples of the conversation analysis data set richer. Therefore, the conversation analysis model can be trained more accurately using the conversation analysis data set, thereby improving the model accuracy of the conversation analysis model.

[0181] Figure 8 A schematic diagram showing a third embodiment of the present disclosure is shown. Figure 8 The model training method shown can be used to train the dialogue flow control model involved in any of the above embodiments. The model training method may include the following steps:

[0182] 801. Determine a process control data set, where the process control data set includes multiple process control samples, and the process control samples include: a training question-answer pair and a question label of the next question corresponding to the training question-answer pair.

[0183] Optionally, the training question-answer pair may refer to the question-answer pair participating in the training and the historical question-answer pair associated with the question-answer pair. The question-answer pair participating in the training may be equivalent to the target question-answer pair in the above embodiment. In a possible design, the target question-answer pair may be involved in the optimization of the conversation analysis model.

[0184] The question label of the next question may refer to the actual next question corresponding to the training question-answer pair.

[0185] 802. Obtain a large language model obtained through pre-training.

[0186] Some steps in this embodiment are the same as those in the above-mentioned embodiments, and will not be described again.

[0187] 803. Use the process control dataset to perform supervised fine-tuning training on the large language model until the preset process termination conditions are met;

[0188] 804. Determine a dialogue process control model based on the large language model obtained when a preset process termination condition is met.

[0189] In the technical solution disclosed in the present invention, after determining the process control data set, the process control data set can be used to perform supervised fine-tuning training on the large language model until the preset analysis termination condition is met, and then the dialogue process control model is determined based on the large language model obtained when the preset analysis termination condition is met. Based on the trained large language model, the dialogue process control training can be performed so that the dialogue process control model is implemented on the basis of the existing large language model, which can effectively improve the training efficiency of the dialogue process control model and reduce the training difficulty of the dialogue process control model.

[0190] Further, based on any of the above embodiments, supervised fine-tuning training is performed on the large language model using the process control data set until a preset process termination condition is met, including:

[0191] Based on the large language model, a second weight matrix is ​​constructed;

[0192] The model parameters of the large language model are fixed, and the second weight matrix is ​​iteratively trained using the process control data set until the next question predicted by the large language model and the second weight matrix meets the preset process termination condition;

[0193] Based on the large language model obtained when the preset process termination conditions are met, the dialogue process control model is determined, including:

[0194] The second weight matrix and the large language model obtained when the preset process termination condition is met are determined as the dialogue process control model.

[0195] Constructing the second weight matrix may specifically refer to constructing the second weight matrix in parallel with the large language model.

[0196] Optionally, assuming that the model parameter of the large language model is W0, the matrix parameter of the second weight matrix is ​​ΔW2, and the model input is x, the model output formula is: h=W0x+ΔW2x. When the large language model W0 is fixed, ΔW2 is iteratively trained to obtain the final ΔW2. Then, the second weight matrix corresponding to ΔW2 and the large language model corresponding to W0 are determined as the dialogue flow control model.

[0197] like Fig. 9 As shown, a schematic diagram of a dialogue process control model training is shown, the large language model 901 is fixed, and the second weight matrix 902 parallel to the large language model 901 is iteratively trained. After the output of the large language model 901 and the output of the second weight matrix 902 are weighted, the dialogue prediction result can be obtained. The dialogue prediction result and the dialogue analysis result label are subjected to loss calculation to obtain the process control loss. If the detected process control loss is less than the preset process control threshold, it is determined that the preset process termination condition is met.

[0198] In the technical solution disclosed in the present invention, a second weight matrix can be constructed on the basis of a large language model, so that the second weight matrix is ​​parallel to the large language model. Then, the model parameters of the large language model are fixed, and the second weight matrix is ​​iteratively trained using the dialogue analysis data set until the next question predicted by the large language model and the second weight matrix meets the preset process termination condition, and then the large language model and the second weight matrix when the process termination condition is met can be determined as the dialogue process control model. Supervised fine-tuning training can refer to adding training of the second weight matrix on the basis of the pre-trained large language model, and the iterative training can be completed by adjusting the parameters of the second weight matrix. Compared with the number of parameters of the large model, the number of parameters of the second weight matrix is ​​relatively small, and the training of the dialogue process control model with the function of predicting the next question can be realized with less parameter adjustment, thereby improving the training efficiency of the dialogue process control model and reducing the training difficulty of the dialogue process control model.

[0199] In order to obtain more training samples, in a possible design, a process control data set is determined, including:

[0200] In response to a sample input operation triggered by a user according to a process control mode, obtaining an initial process control sample;

[0201] Based on the initial process control sample, the process control model is sample expanded to obtain an expanded process control sample;

[0202] The initial process control sample and the expanded process control sample are determined as the process control data set.

[0203] Optionally, based on the initial process control sample, the process control pattern is sample expanded to obtain an expanded process control sample, including: determining an expanded question from a questionnaire in a questionnaire library; using a large language model obtained by pre-training to generate an expanded answer corresponding to the expanded question, and determining the expanded question and the expanded answer as an expanded question-answer pair; taking the question label of the next question in the initial process control sample as the output target, generating the question label of the next question corresponding to the expanded question-answer pair through the large language model; and determining the expanded question-answer pair and the question label of the next question corresponding to the expanded question-answer pair as the expanded process control sample.

[0204] In the technical solution disclosed in the present invention, an initial process control sample can be obtained based on the sample input operation performed by the user, and then based on the initial process control sample, a sample expansion is performed to obtain an expanded process control sample, and a process control data set corresponding to the initial process control sample and the expanded process control sample is obtained. Sample expansion can be achieved based on the samples provided manually, and the number of samples is increased, making the samples of the process control data set richer. Therefore, the process control data set can be used to train the dialogue process control model more accurately, thereby improving the model accuracy of the dialogue process control model.

[0205] Fig.10 A schematic diagram showing a fourth embodiment of the present disclosure is shown. Fig. 9 The questionnaire survey device 1000 shown may include: a determination unit 1001 , an analysis unit 1002 , a selection unit 1003 and an output unit 1004 .

[0206] Among them, the determination unit 1001 is used to determine the target question and the target answer corresponding to the target question in the target questionnaire that are in an activated state, and determine the target question and the target answer as a target question and answer pair; the analysis unit 1002 is used to perform a dialogue analysis on the target question and answer pair according to the dialogue analysis model obtained through training to obtain a dialogue analysis result; the selection unit 1003 is used to select the next question from the remaining questions in the target questionnaire through the dialogue process control model obtained through training if the dialogue analysis result indicates that the question and answer of the target question is over, and the remaining questions refer to the questions that have not been completed in the target questionnaire; the output unit 1004 is used to output the next question.

[0207] Further, based on any of the above embodiments, the analysis unit includes:

[0208] A history acquisition module is used to acquire historical question-answer pairs of a target questionnaire, wherein the historical question-answer pairs include historical questions and historical answers corresponding to the historical questions, and the historical questions are questions that have been answered in the target questionnaire;

[0209] The question-answer analysis module is used to input the target question-answer pairs and the historical question-answer pairs into the dialogue analysis model to obtain the dialogue analysis results output by the dialogue analysis model.

[0210] Further, based on any of the above embodiments, the analysis unit includes:

[0211] A structure analysis module, used to perform a dialogue analysis on a target question-answer pair according to the dialogue analysis model obtained through training, and obtain a dialogue analysis result output by the dialogue analysis model according to a preset dialogue output structure, wherein the dialogue output structure includes an end marker parameter;

[0212] The device also includes:

[0213] The state detection unit is used to detect whether the dialogue analysis result indicates that the question and answer of the target question is finished according to the parameter value of the identification end parameter.

[0214] Further, based on any of the above embodiments, the state detection unit includes:

[0215] A first detection module, configured to determine, if the parameter value of the end parameter is a preset target parameter value, that the dialogue analysis result indicates that the question and answer of the target question is over;

[0216] The second detection module is used to determine that the dialogue analysis result indicates that the question and answer of the target question has not ended if the parameter value of the end parameter is not the target parameter value.

[0217] Furthermore, based on any of the above embodiments, the method further includes:

[0218] A question-asking unit, for generating a follow-up question corresponding to the target question if the dialogue analysis result indicates that the question-asking of the target question has not been concluded;

[0219] A follow-up question collection unit, used to output follow-up questions and obtain follow-up question answers corresponding to the follow-up questions;

[0220] The answer updating unit is used to update the target answer of the target question based on the follow-up question answer.

[0221] Further, based on any of the above embodiments, the selection unit includes:

[0222] A history acquisition module, used to obtain historical question-answer pairs of the target questionnaire;

[0223] The first input module is used to input the target question-answer pair and the historical question-answer pair into the trained dialogue flow control model to obtain the next question output by the dialogue flow control model, where the next question refers to the question selected by the dialogue flow control model from the remaining questions in the target questionnaire.

[0224] Further, based on any of the above embodiments, the determining unit includes:

[0225] A question display module is used to display the target questions in the target questionnaire that are activated;

[0226] The answer input module is used to obtain a target answer corresponding to the target question in response to an answer generation operation triggered by the survey subject for the target question.

[0227] Furthermore, based on any of the above embodiments, the method further includes:

[0228] A questionnaire display unit, used to display multiple questionnaires in the questionnaire library;

[0229] A questionnaire output unit, configured to obtain a target questionnaire in response to a questionnaire selection operation performed by a questionnaire survey party on a plurality of questionnaires;

[0230] The target determination unit is used to determine the first question in the target questionnaire as the target question in an activated state.

[0231] Further, based on any of the above embodiments, the output unit includes:

[0232] a second switching unit, used to switch the target question to a sleep state and switch the next question to an active state;

[0233] The second output unit is used to convert the next question into the latest target voice according to the preset voice questioning rules, and output the latest target voice.

[0234] Fig.11 A schematic diagram showing a fifth embodiment of the present disclosure is shown. Fig.11 The model training device 1100 shown may include: a first determination unit 1101 , a first acquisition unit 1102 , a first training unit 1103 , and a dialogue determination unit 1104 .

[0235] The first determination unit 1101 is used to determine a conversation analysis data set, where the conversation analysis data set includes multiple conversation analysis samples, and the conversation analysis samples include: training question-answer pairs and conversation analysis result labels of the training question-answer pairs; the first acquisition unit 1102 is used to acquire a large language model obtained by pre-training; the first training unit 1103 is used to perform supervised fine-tuning training on the large language model using the conversation analysis data set until a preset analysis termination condition is met; the conversation determination unit 1104 is used to determine a conversation analysis model based on the large language model obtained when the preset analysis termination condition is met.

[0236] Further, based on any of the above embodiments, the first training unit includes:

[0237] A first building module, used to build a first weight matrix based on the large language model;

[0238] A first training module is used to fix the model parameters of the large language model and iteratively train the first weight matrix using the conversation analysis data set until the conversation prediction results output by the large language model and the first weight matrix meet a preset analysis termination condition;

[0239] The dialogue determination unit comprises:

[0240] The dialogue determination module is used to determine the large language model and the first weight matrix as the dialogue analysis model when the analysis termination condition is met.

[0241] Further, based on any of the above embodiments, the first determining unit includes:

[0242] A first acquisition module, configured to obtain an initial conversation analysis sample in response to a sample input operation triggered by a user according to a conversation analysis mode;

[0243] A first expansion module is used to expand the sample of the conversation analysis model based on the initial conversation analysis sample to obtain an expanded conversation analysis sample;

[0244] The first determination module is used to determine the initial conversation analysis sample and the expanded conversation analysis sample as a conversation analysis data set.

[0245] Fig.12 A schematic diagram showing a sixth embodiment of the present disclosure is shown, referring to Fig.12 The model training device 1200 shown is used to train a dialogue flow control model as in any of the above embodiments. The model training device 1200 includes: a second determination unit 1201, a second acquisition unit 1202, a second training unit 1203 and a flow determination unit 1204.

[0246] The second determination unit 1201 is used to determine a process control data set, which includes multiple process control samples, and the process control samples include: a training question-answer pair and a question label of the next question corresponding to the training question-answer pair; the second acquisition unit 1202 is used to obtain a large language model obtained by pre-training; the second training unit 1203 is used to use the process control data set to perform supervised fine-tuning training on the large language model until a preset process termination condition is met; the process determination unit 1204 is used to determine the dialogue process control model based on the large language model obtained when the preset process termination condition is met.

[0247] Further, based on any of the above embodiments, the second training unit includes:

[0248] A second building module is used to build a second weight matrix based on the large language model;

[0249] A second training module is used to fix the model parameters of the large language model and iteratively train the second weight matrix using the process control data set until the next question predicted by the large language model and the second weight matrix meets a preset process termination condition;

[0250] Process determination unit, including:

[0251] The process determination module is used to determine the second weight matrix and the large language model obtained when the preset process termination condition is met as the dialogue process control model.

[0252] Further, based on any of the above embodiments, the second determining unit includes:

[0253] A second acquisition module, configured to obtain an initial process control sample in response to a sample input operation triggered by a user according to a process control mode;

[0254] A second expansion module is used to expand the process control model sample based on the initial process control sample to obtain an expanded process control sample;

[0255] The second determination module is used to determine the initial process control samples and the expanded process control samples as a process control data set.

[0256] It should be noted that the head model in this embodiment is not a head model for a specific user and cannot reflect the personal information of a specific user. It should be noted that the two-dimensional face image in this embodiment comes from a public data set.

[0257] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0258] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0259] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, which includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

[0260] Fig.13 A schematic block diagram of an example electronic device 1300 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0261] like Fig.13As shown, the device 1300 includes a computing unit 1301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1302 or a computer program loaded from a storage unit 1308 into a random access memory (RAM) 1303. In the RAM 1303, various programs and data required for the operation of the device 1300 can also be stored. The computing unit 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0262] A number of components in the device 1300 are connected to the I / O interface 1305, including: an input unit 1306, such as a keyboard, a mouse, etc.; an output unit 1307, such as various types of displays, speakers, etc.; a storage unit 1308, such as a disk, an optical disk, etc.; and a communication unit 1309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1309 allows the device 1300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0263] The computing unit 1301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1301 performs the various methods and processes described above, such as questionnaire survey methods and model training methods. For example, in some embodiments, the questionnaire survey method and the model training method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1308. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1300 via the ROM 1302 and / or the communication unit 1309. When the computer program is loaded into the RAM 1303 and executed by the computing unit 1301, one or more steps of the questionnaire survey method and the model training method described above may be executed. Alternatively, in other embodiments, the computing unit 1301 may be configured to execute a questionnaire survey method or a model training method in any other appropriate manner (eg, by means of firmware).

[0264] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0265] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0266] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0267] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0268] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0269] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0270] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0271] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A questionnaire survey method, comprising: Determine a target question in an activated state in a target questionnaire and a target answer corresponding to the target question, and determine the target question and the target answer as a target question-answer pair; According to the conversation analysis model obtained through training, conversation analysis is performed on the target question-answer pair to obtain a conversation analysis result; If the dialogue analysis result indicates that the question and answer of the target question is finished, then the dialogue flow control model obtained through training selects the next question from the remaining questions of the target questionnaire, where the remaining questions refer to the unfinished questions in the target questionnaire; Outputting the next question; If the dialogue analysis result indicates that the question and answer of the target question has not been concluded, generating a follow-up question corresponding to the target question; Outputting the follow-up questions and collecting answers to the follow-up questions; Based on the answer to the follow-up question, updating the target answer to the target question; The dialog analysis model obtained through training performs dialog analysis on the target question-answer pair to obtain a dialog analysis result, including: According to the conversation analysis model obtained through training, a conversation analysis is performed on the target question-answer pair to obtain a conversation analysis result output by the conversation analysis model according to a preset conversation output structure, wherein the conversation output structure includes a parameter indicating the end of the conversation; If the parameter value of the end identification parameter is the preset target parameter value, it is determined that the dialogue analysis result indicates that the question and answer of the target question is over; if the parameter value of the end identification parameter is not the target parameter value, it is determined that the dialogue analysis result indicates that the question and answer of the target question is not over.

2. The method according to claim 1, wherein: The dialog analysis model obtained through training performs dialog analysis on the target question-answer pair to obtain a dialog analysis result, including: Acquire historical question-answer pairs of the target questionnaire, wherein the historical question-answer pairs include historical questions and historical answers corresponding to the historical questions, and the historical questions are questions that have been answered in the target questionnaire; The target question-answer pair and the historical question-answer pair are input into the conversation analysis model to obtain the conversation analysis result output by the conversation analysis model.

3. The method according to claim 1 or 2, wherein: The dialogue flow control model obtained through training selects the next question from the remaining questions of the target questionnaire, including: Obtaining historical question-answer pairs of the target questionnaire; The target question-answer pair and the historical question-answer pair are input into the dialogue flow control model obtained through training to obtain the next question output by the dialogue flow control model, where the next question is selected by the dialogue flow control model from the remaining questions in the target questionnaire.

4. The method according to claim 1 or 2, wherein: The step of determining the target questions in the target questionnaire that are activated and the target answers corresponding to the target questions includes: Displaying the target questions in the target questionnaire that are active; In response to an answer generation operation triggered by the survey subject for the target question, a target answer corresponding to the target question is obtained.

5. The method according to claim 1 or 2, wherein: Before determining the target questions in the target questionnaire that are activated and the target answers corresponding to the target questions, the method further includes: Display multiple questionnaires in the questionnaire library; In response to a questionnaire selection operation performed by the questionnaire survey party on the plurality of questionnaires, obtaining the target questionnaire; The first question in the target questionnaire is determined as the target question in an activated state.

6. The method according to claim 1 or 2, wherein: The outputting of the next question includes: Switching the target question to a sleep state and switching the next question to an active state; According to the preset voice questioning rules, the next question is converted into the latest target voice, and the latest target voice is output.

7. A model training method for training the conversation analysis model according to any one of claims 1 to 6, the method comprising: Determine a conversation analysis data set, the conversation analysis data set including a plurality of conversation analysis samples, the conversation analysis samples including: training question-answer pairs and conversation analysis result labels of the training question-answer pairs; Get a large pre-trained language model; Using the conversation analysis dataset, performing supervised fine-tuning training on the large language model until a preset analysis termination condition is met; The conversation analysis model is determined based on the large language model obtained when the preset analysis termination condition is met.

8. The method according to claim 7, wherein: The using the conversation analysis dataset to perform supervised fine-tuning training on the large language model until the large language model meets a preset analysis termination condition includes: Based on the large language model, construct a first weight matrix; Fixing the model parameters of the large language model, and using the conversation analysis data set to iteratively train the first weight matrix until the conversation prediction results output by the large language model and the first weight matrix meet a preset analysis termination condition; The determining the conversation analysis model based on the large language model obtained when the preset analysis termination condition is met includes: The large language model and the first weight matrix that satisfy the preset analysis termination condition are determined as the conversation analysis model.

9. The method according to claim 7 or 8, wherein: The determining of the conversation analysis data set includes: In response to a sample input operation triggered by a user according to a conversation analysis mode, obtaining an initial conversation analysis sample; Based on the initial conversation analysis sample, performing sample expansion on the conversation analysis model to obtain an expanded conversation analysis sample; The initial conversation analysis sample and the expanded conversation analysis sample are determined as the conversation analysis data set.

10. A model training method for training the dialog flow control model according to any one of claims 1 to 6, the method comprising: Determine a process control data set, wherein the process control data set includes a plurality of process control samples, and the process control samples include: a training question-answer pair and a question label of a next question corresponding to the training question-answer pair; Get a large pre-trained language model; Using the process control data set, the large language model is fine-tuned in a supervised manner until a preset process termination condition is met; The dialogue process control model is determined based on the large language model obtained when the preset process termination condition is met.

11. The method according to claim 10, wherein: The process control data set is used to perform supervised fine-tuning training on the large language model until a preset process termination condition is met, including: Based on the large language model, construct a second weight matrix; Fixing the model parameters of the large language model, and using the process control data set to iteratively train the second weight matrix until the next question predicted by the large language model and the second weight matrix meets a preset process termination condition; The determining of the dialogue process control model based on the large language model obtained when the preset process termination condition is met includes: The second weight matrix obtained when the preset process termination condition is met and the large language model are determined as the dialogue process control model.

12. The method according to claim 10 or 11, wherein: The determining of the process control data set includes: In response to a sample input operation triggered by a user according to a process control mode, obtaining an initial process control sample; Based on the initial process control sample, the process control mode is sample expanded to obtain an expanded process control sample; The initial process control sample and the expanded process control sample are determined as the process control data set.

13. A questionnaire survey device, comprising: A determination unit, used to determine a target question in an activated state in a target questionnaire and a target answer corresponding to the target question, and determine the target question and the target answer as a target question-answer pair; An analysis unit, configured to perform a conversation analysis on the target question-answer pair according to the conversation analysis model obtained through training, and obtain a conversation analysis result; A selection unit, configured to select a next question from the remaining questions of the target questionnaire through the trained dialogue flow control model if the dialogue analysis result indicates that the question and answer of the target question have been completed, wherein the remaining questions refer to the questions in the target questionnaire that have not been completed; An output unit, used for outputting the next question; A question-asking unit, configured to generate a follow-up question corresponding to the target question if the dialogue analysis result indicates that the question-asking of the target question has not been concluded; A follow-up question collection unit, used for outputting the follow-up question and collecting the follow-up question answer; An answer updating unit, configured to update a target answer to the target question based on the follow-up question answer; Wherein, the analysis unit comprises: A structure analysis module, configured to perform a dialogue analysis on the target question-answer pair according to the dialogue analysis model obtained through training, and obtain a dialogue analysis result output by the dialogue analysis model according to a preset dialogue output structure, wherein the dialogue output structure includes a parameter indicating the end of the dialogue; The device also includes: A state detection unit, configured to detect, based on a parameter value of the end identification parameter, whether the dialogue analysis result indicates that the question and answer of the target question is over; Wherein, the state detection unit includes: A first detection module, configured to determine, if the parameter value of the end parameter indicating the end of the target question is a preset target parameter value, that the conversation analysis result indicates that the question and answer of the target question is over; The second detection module is used to determine that the dialogue analysis result indicates that the question and answer of the target question has not been completed if the parameter value of the end parameter is not the target parameter value.

14. The device according to claim 13, wherein: The analysis unit comprises: A history acquisition module, used to acquire historical question-answer pairs of the target questionnaire, wherein the historical question-answer pairs include historical questions and historical answers corresponding to the historical questions, and the historical questions are questions that have been answered in the target questionnaire; The question-answer analysis module is used to input the target question-answer pair and the historical question-answer pair into the conversation analysis model to obtain the conversation analysis result output by the conversation analysis model.

15. The device according to claim 13 or 14, wherein: The selection unit comprises: A history acquisition module, used to acquire historical question-answer pairs of the target questionnaire; The first input module is used to input the target question-answer pair and the historical question-answer pair into the trained dialogue flow control model to obtain the next question output by the dialogue flow control model, where the next question is selected by the dialogue flow control model from the remaining questions in the target questionnaire.

16. The device according to claim 13 or 14, wherein: The determining unit comprises: A question display module, used for displaying the target questions in the target questionnaire that are in an activated state; The answer input module is used to obtain a target answer corresponding to the target question in response to an answer generation operation triggered by the survey subject for the target question.

17. The device according to claim 13 or 14, wherein: Also includes: A questionnaire display unit, used to display multiple questionnaires in the questionnaire library; A questionnaire output unit, configured to obtain the target questionnaire in response to a questionnaire selection operation performed by the questionnaire survey party on the plurality of questionnaires; The target determination unit is used to determine the first question in the target questionnaire as the target question in an activated state.

18. The device according to claim 13 or 14, wherein: The output unit comprises: A second switching unit, used to switch the target question to a sleep state and switch the next question to an active state; The second output unit is used to convert the next question into the latest target voice according to the preset voice questioning rule, and output the latest target voice.

19. A model training device for training the conversation analysis model according to any one of claims 1 to 6, the device comprising: A first determining unit is used to determine a conversation analysis data set, wherein the conversation analysis data set includes a plurality of conversation analysis samples, and the conversation analysis samples include: training question-answer pairs and conversation analysis result labels of the training question-answer pairs; A first acquisition unit is used to acquire a large language model obtained through pre-training; A first training unit is used to perform supervised fine-tuning training on the large language model using the conversation analysis dataset until a preset analysis termination condition is met; The dialogue determination unit is used to determine the dialogue analysis model based on the large language model obtained when the preset analysis termination condition is met.

20. The device according to claim 19, wherein The first training unit comprises: A first construction module is used to construct a first weight matrix based on the large language model; A first training module, used to fix the model parameters of the large language model, and iteratively train the first weight matrix using the conversation analysis data set until the conversation prediction results output by the large language model and the first weight matrix meet a preset analysis termination condition; The dialogue determination unit comprises: The dialogue determination module is used to determine the large language model and the first weight matrix when the preset analysis termination condition is met as the dialogue analysis model.

21. The device according to claim 19 or 20, wherein: The first determining unit includes: A first acquisition module, configured to obtain an initial conversation analysis sample in response to a sample input operation triggered by a user according to a conversation analysis mode; A first expansion module, configured to expand the sample of the conversation analysis model based on the initial conversation analysis sample to obtain an expanded conversation analysis sample; The first determining module is used to determine the initial conversation analysis sample and the expanded conversation analysis sample as the conversation analysis data set.

22. A model training device for training the dialogue flow control model according to any one of claims 1 to 6, the device comprising: A second determination unit is used to determine a process control data set, wherein the process control data set includes a plurality of process control samples, and the process control samples include: a training question-answer pair and a question label of a next question corresponding to the training question-answer pair; A second acquisition unit is used to acquire a large language model obtained through pre-training; A second training unit is used to perform supervised fine-tuning training on the large language model using the process control data set until a preset process termination condition is met; The process determination unit is used to determine the dialogue process control model based on the large language model obtained when the preset process termination condition is met.

23. The device according to claim 22, wherein: The second training unit comprises: A second construction module is used to construct a second weight matrix based on the large language model; A second training module is used to fix the model parameters of the large language model, and iteratively train the second weight matrix using the process control data set until the next question predicted by the large language model and the second weight matrix meets a preset process termination condition; The process determination unit includes: The process determination module is used to determine the second weight matrix obtained when the preset process termination condition is met and the large language model as the dialogue process control model.

24. The device according to claim 22 or 23, wherein: The second determining unit includes: A second acquisition module, configured to obtain an initial process control sample in response to a sample input operation triggered by a user according to a process control mode; A second expansion module, configured to expand the sample of the process control mode based on the initial process control sample to obtain an expanded process control sample; The second determination module is used to determine the initial process control sample and the expanded process control sample as the process control data set.

25. An electronic device comprising: at least one processor; as well as 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 to enable the at least one processor to perform the method of any one of claims 1-6, 7-9 or 10-12.

26. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6, 7-9 or 10-12.

27. A computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6, 7 to 9 or 10 to 12.