Training method, inquiry method and device of inquiry large model

Through the training method of the large consultation model, sample consultation data is used to train the large consultation model, simulate the consultation process and calculate the loss function value, which solves the problem that the existing AI medical assistance system cannot independently diagnose, and achieves accurate diagnosis of patients. Effective coverage of diagnostic and medical resources.

CN118656642APending Publication Date: 2024-09-17BEIJING BAIDU NETCOM SCI & TECH CO LTD

Patent Information

Application Number
CN202410801166.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing AI-based medical assistance systems lack actual consultation capabilities, cannot independently diagnose patients, and cannot effectively alleviate the shortage of medical resources.

Method used

A training method for a large consultation model is proposed. By obtaining sample consultation data, including basic patient information, consultation dialogue and actual diagnosis results, the large consultation model is trained to simulate the consultation process, and the loss function value is calculated to adjust the model parameters. , until the model converges to achieve accurate diagnosis of the patient.

Benefits of technology

It achieves the accuracy of the consultation dialogue and diagnosis results of the large consultation model, and can effectively diagnose patients without the participation of doctors, alleviate the shortage of medical resources, and improve the coverage of medical services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656642A
    Figure CN118656642A
Patent Text Reader

Abstract

The invention provides a training method of an inquiry large model and an inquiry method and device, and relates to the technical field of artificial intelligence, in particular to the technical field of large models and intelligent medical treatment. The specific implementation scheme is as follows: acquiring sample inquiry data; inputting the basic information of the patient into a large inquiry model, and obtaining questions output by the large inquiry model in each round of inquiry process; aiming at a question output by the large inquiry model in each round of inquiry process, obtaining a reply text corresponding to the question from the inquiry dialogue, and inputting the reply text into the large inquiry model; obtaining a prediction diagnosis result output by the large inquiry model; calculating a first loss function value based on the sample interrogation dialogue and the interrogation dialogue of the interrogation large model in the interrogation process; calculating a second loss function value based on the predicted diagnosis result and the actual diagnosis result; and training the inquiry large model based on the first loss function value and the second loss function value to obtain a trained inquiry large model. Therefore, the large inquiry model can be used for inquiry.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to the field of large models and smart medical technology. Background Art

[0002] Medical resources are currently in short supply, especially high-quality medical resources. To alleviate this problem, AI-based medical assistance systems can be used to analyze patients' symptoms and medical histories, and provide guidance and health management advice. Summary of the invention

[0003] The present invention provides a training method for a large-scale medical consultation model, a medical consultation method and a device.

[0004] According to one aspect of the present disclosure, a method for training a large medical consultation model is provided, comprising:

[0005] Acquire sample consultation data, wherein the sample consultation data includes basic patient information, sample consultation dialogues, and actual diagnosis results;

[0006] Inputting the patient's basic information into the medical consultation model, and obtaining the questions output by the medical consultation model during each round of medical consultation;

[0007] For the questions output by the medical consultation model in each round of medical consultation, the answer text corresponding to the question is obtained from the medical consultation dialogue, and the answer text is input into the medical consultation model;

[0008] Obtaining the predicted diagnosis result output by the large consultation model;

[0009] Calculating a first loss function value based on the sample consultation dialogue and the consultation dialogue of the consultation model during the consultation process;

[0010] Calculating a second loss function value based on the predicted diagnosis result and the actual diagnosis result;

[0011] The medical consultation model is trained based on the first loss function value and the second loss function value to obtain a trained medical consultation model.

[0012] According to a second aspect of the present disclosure, a medical consultation method is provided, comprising:

[0013] Get the basic patient information entered by the user;

[0014] Inputting the patient's basic information into a large medical consultation model, and providing the user with questions output by the large medical consultation model in each round of medical consultation, wherein the large medical consultation model is a model trained based on the method described in the first aspect;

[0015] Obtaining the user's answer text for each round of questions, and inputting the answer text into the medical consultation model;

[0016] Obtaining the diagnosis result output by the large medical consultation model;

[0017] The diagnosis result is displayed to the user.

[0018] According to a third aspect of the present disclosure, a training device for a large-scale medical consultation model is provided, comprising:

[0019] The acquisition module is used to acquire sample consultation data, wherein the sample consultation data includes basic patient information, sample consultation dialogues, and actual diagnosis results; input the basic patient information into the consultation model, and acquire the questions output by the consultation model in each round of consultation; for the questions output by the consultation model in each round of consultation, acquire the answer text corresponding to the question from the consultation dialogue, and input the answer text into the consultation model; and acquire the predicted diagnosis result output by the consultation model;

[0020] A calculation module, used to calculate a first loss function value based on the sample consultation dialogue and the consultation dialogue of the consultation model during the consultation process; and calculate a second loss function value based on the predicted diagnosis result and the actual diagnosis result;

[0021] A training module is used to train the medical consultation model based on the first loss function value and the second loss function value to obtain a trained medical consultation model.

[0022] According to a fourth aspect of the present disclosure, there is provided a medical consultation device, comprising:

[0023] The acquisition module is used to obtain the basic information of the patient input by the user;

[0024] Providing a module for inputting the basic information of the patient into a large medical consultation model, and providing the user with questions output by the large medical consultation model in each round of medical consultation, wherein the large medical consultation model is a model trained based on the device described in the third aspect;

[0025] The acquisition module is further used to acquire the user's answer text for each round of questions, input the answer text into the medical consultation model, and acquire the diagnosis result output by the medical consultation model;

[0026] A display module is used to display the diagnosis result to the user.

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

[0028] at least one processor; and

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

[0030] The memory stores instructions that can be executed 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 described in the first aspect or the second aspect.

[0031] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect or the second aspect.

[0032] According to a seventh aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the method described in the first aspect or the second aspect when executed by a processor.

[0033] 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

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

[0035] Figure 1 It is a flow chart of a method for training a large medical consultation model provided by an embodiment of the present disclosure;

[0036] Figure 2 is a flow chart of a medical consultation method provided by an embodiment of the present disclosure;

[0037] Figure 3 is a schematic diagram of an overall implementation scheme provided by an embodiment of the present disclosure;

[0038] Figure 4 It is a structural schematic diagram of a training device for a large-scale medical consultation model provided by an embodiment of the present disclosure;

[0039] Figure 5 is a structural schematic diagram of a medical consultation device provided by an embodiment of the present disclosure;

[0040] Figure 6 It is a block diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

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

[0042] Existing AI-based medical assistance systems are usually used for medical guidance or health management. These systems can provide preliminary diagnostic suggestions and health management plans by analyzing the patient's symptoms and medical history. However, these systems have a single function and are mainly used to assist doctors in their work. They lack actual consultation capabilities and cannot diagnose patients completely independently.

[0043] In order to solve the above problems, the present disclosure provides a method for training a large model of a medical consultation, which is applied to an electronic device, which may be a computer, a server or other electronic device with large model training capabilities. Figure 1 As shown, the method includes:

[0044] S101. Obtain sample consultation data, where the sample consultation data includes basic patient information, sample consultation dialogue, and actual diagnosis results.

[0045] The basic information of the patient includes the patient's age, gender, height, weight, whether there is any allergic drug, whether there is any underlying disease, etc. The specific content of the basic information of the patient can be set according to actual needs, and the embodiments of the present disclosure do not limit this.

[0046] The sample consultation dialogue is a dialogue between a patient and a doctor during the process of the patient consulting the doctor.

[0047] The actual diagnosis result is the diagnosis result provided by the doctor after interviewing the patient.

[0048] S102. Input the patient's basic information into the medical consultation model, and obtain the questions output by the medical consultation model during each round of medical consultation.

[0049] After the patient's basic information is input into the big model, the big model can start the consultation. For example, it will first ask the user what discomfort they have and then ask the user how long the symptoms have lasted.

[0050] S103. For the questions output by the medical consultation model in each round of medical consultation, the answer text corresponding to the question is obtained from the medical consultation dialogue, and the answer text is input into the medical consultation model.

[0051] Every time the medical consultation model asks a question, the electronic device can obtain the answer text corresponding to the question from the medical consultation dialogue and input it into the medical consultation model. The medical consultation model can then output the next question, and the electronic device will input the answer text corresponding to the next question, which is equivalent to simulating the actual medical consultation process. After multiple rounds of medical consultation, when the medical consultation model determines that it has obtained enough information, it can stop the consultation and output the predicted diagnosis result.

[0052] S104. Obtain the predicted diagnosis result output by the large medical consultation model.

[0053] S105. Calculate a first loss function value based on the sample consultation dialogue and the consultation dialogue of the large consultation model during the consultation process.

[0054] S106. Calculate a second loss function value based on the predicted diagnosis result and the actual diagnosis result.

[0055] S107. Train the medical consultation model based on the first loss function value and the second loss function value to obtain a trained medical consultation model.

[0056] The electronic device can specifically adjust the parameters of the medical consultation model based on the first loss function value and the second loss function value, and then determine whether the medical consultation model has converged. If not, it returns to S101 to obtain the next sample medical consultation data, and continues to train the medical consultation model based on the next sample medical consultation data. This cycle is repeated until the medical consultation model converges, and a trained medical consultation model is obtained.

[0057] By adopting this method, after obtaining the sample consultation data, the basic information of the patient can be input into the consultation model, so as to obtain the questions output by the consultation model in each round of consultation, and obtain the corresponding answer text of the question from the consultation dialogue, and input the answer text into the consultation model, which is equivalent to simulating the actual consultation process. After the subsequent consultation model completes the consultation, the predicted diagnosis result can be output, and then the electronic device calculates the first loss function value and the second loss function value, and trains the consultation model based on the first loss function value and the second loss function value. Because the first loss function value can reflect the gap between the consultation dialogue of the consultation model and the sample consultation dialogue. The second loss function value can reflect the gap between the predicted diagnosis result and the actual diagnosis result. By using the first loss function value and the second loss function value to train the consultation model, the consultation dialogue of the consultation model can be made more and more accurate, and the predicted diagnosis result of the consultation model can be made more and more accurate, and finally the consultation model trained based on the sample consultation data can accurately conduct actual consultation on the patient, which can alleviate the shortage of medical resources and improve the coverage of medical services.

[0058] In some embodiments of the present disclosure, the electronic device may obtain sample medical consultation data from a training data set. Therefore, before obtaining the sample medical consultation data, it is necessary to generate the training data set in advance. The method of generating the training data set includes the following steps:

[0059] Step 1: Obtain the doctor's diagnosis record, which includes case history, consultation dialogue and diagnosis results.

[0060] It should be noted that in the embodiments of the present disclosure, a large number of diagnosis records of famous doctors can be collected from the publicly available information on the Internet, or the diagnosis records of doctors can be collected from the medical systems of cooperating hospitals. The above collection processes are all carried out with the authorization of the hospitals, doctors and patients involved.

[0061] The medical record includes the patient's basic information and may also include the doctor's diagnosis information. The medical consultation conversation may be a recording of a conversation between a doctor and a patient, which is recorded with the knowledge and consent of both the doctor and the patient. If the medical consultation conversation is in the form of a recording, the electronic device may convert the recording into text.

[0062] The diagnosis result may include the type of disease, the severity of the disease, and the treatment plan. For example, the disease type is a cold, rhinitis, gastric ulcer, hypertension, heart disease, etc. The severity of the disease may include severe, general, not severe, or may be divided into level one, level two, level three, level four, etc. in order from high to low severity. The severity of the disease may be divided based on actual needs, and the embodiments of the present disclosure are not limited to this. The treatment plan may include the name of the drug, the dosage, and the duration of administration, etc. Optionally, the treatment plan also includes review information, etc. The specific information included shall be subject to the treatment plan actually given by the doctor.

[0063] Optionally, the diagnosis record may also include the patient's examination result information, such as X-rays, blood test reports, B-ultrasound reports, etc.

[0064] Step 2: Clean the diagnostic records.

[0065] Among them, the data cleaning method is: input the diagnosis record into the trained scoring model to obtain the score of the diagnosis record, and the score is used to indicate the accuracy of the diagnosis result included in the diagnosis record; if the score is less than the preset score, the diagnosis record is deleted; if the score is greater than or equal to the preset score, the diagnosis record is retained.

[0066] Among them, the scoring model is pre-trained. For example, a professional doctor can annotate multiple sample diagnosis records to obtain the true score of each sample diagnosis record, and then input each sample diagnosis record into the scoring model respectively to obtain the score output by the scoring model. The loss function value of the score and the true score annotated by the professional doctor is calculated, and then the parameters of the scoring model are adjusted based on the loss function value. Through multiple trainings, the scoring model reaches the convergence conditions, such as the loss function value is less than the preset threshold, or the number of trainings reaches the preset number of times.

[0067] Then, the trained scoring model can be used to score the collected diagnostic records, and the diagnostic records with scores less than the preset scores can be deleted. In this way, diagnostic records with inaccurate diagnostic results can be accurately deleted, avoiding the use of inaccurate diagnostic records to train the medical consultation model, which can improve the accuracy of the predicted diagnostic results output by the trained medical consultation model.

[0068] Step 3: Generate a training data set based on the remaining diagnosis records after data cleaning, and the training data set includes multiple sample consultation data.

[0069] The electronic device can extract basic patient information from the case included in each diagnosis record after data cleaning, and use the extracted basic patient information, the consultation dialogue included in the diagnosis record, and the diagnosis result included in the diagnosis record as a sample consultation data.

[0070] It is understandable that the consultation dialogue included in the diagnosis record can be used as a sample consultation dialogue, and the diagnosis result included in the diagnosis record can be used as the actual diagnosis result. Through this method, a sample consultation data can be obtained for each diagnosis record, and then the obtained multiple sample consultation data can constitute a training data set.

[0071] In this way, the real basic information of patients, medical consultation dialogues and diagnosis results can be accurately obtained from the diagnosis records after data cleaning. The medical consultation model can be trained based on the real basic information of patients, medical consultation dialogues and diagnosis results, so that the trained medical consultation model can accurately output diagnosis results.

[0072] In the disclosed embodiment, by collecting a large number of doctors' diagnosis records, cleaning the diagnosis records, and generating a training data set using the remaining diagnosis records after data cleaning, a high-quality training data set can be formed. The richer the collected diagnosis records, the richer the sample consultation data included in the training data set, so that the generalization performance of the consultation model trained using the training data set is better, and it can achieve comprehensive coverage of common diseases and chronic diseases, improve the intelligence level of the consultation model, and enable the consultation model to handle complex diseases and meet diverse consultation needs.

[0073] It is understandable that after obtaining the training data set, sample consultation data can be obtained from the training data set and executed. Figure 1 The training method shown.

[0074] In some embodiments of the present disclosure, the sample medical consultation data also includes the patient's examination result information, and the patient's examination result information can be input into the medical consultation model before the electronic device obtains the questions output by the medical consultation model in each round of medical consultation. In this way, the medical consultation model can refer to the patient's examination result information when conducting medical consultations and when obtaining the predicted diagnosis results later, so that the medical consultation process can better obtain the patient's true situation and obtain more accurate predicted diagnosis results.

[0075] In some embodiments of the present disclosure, the above S105, calculating the first loss function value based on the sample consultation dialogue and the consultation dialogue of the consultation model during the consultation process, can be specifically implemented as follows:

[0076] The sequence loss function is used to calculate the first loss function value of the sample consultation dialogue and the consultation dialogue of the large consultation model during the consultation process.

[0077] Among them, the sequence loss function is suitable for processing natural language processing tasks. Since the sample consultation dialogue is a multi-round question and answer between the doctor and the patient, and the consultation dialogue of the large consultation model during the consultation process is a multi-round question and answer between the large consultation model and the patient, that is, the sample consultation dialogue and the consultation dialogue of the large consultation model during the consultation process both have the characteristics of serialization. Therefore, calculating the first loss function value through the sequence loss function can more accurately reflect the gap between the consultation dialogue of the large consultation model during the consultation process and the sample consultation dialogue. Subsequently, using the first loss function value to adjust the parameters of the large consultation model can enable the large consultation model to more accurately output the questions that need to be asked to the patient during the consultation process, so as to obtain information that is conducive to diagnosis, thereby making more accurate decisions.

[0078] In some embodiments of the present disclosure, the actual diagnosis result includes the actual disease type, the actual severity of the disease, and the actual treatment plan. Accordingly, the predicted diagnosis result includes the predicted disease type, the predicted severity of the disease, and the predicted treatment plan. On this basis, the above S106, calculating the second loss function value based on the predicted diagnosis result and the actual diagnosis result, can be specifically implemented as follows:

[0079] Step A: Using the cross entropy loss function, calculate the first cross entropy loss function value of the actual disease type and the predicted disease type.

[0080] Among them, the large consultation model can map the patient's symptoms to a specific disease type based on the patient's basic information and consultation dialogue, and thus obtain the predicted disease type.

[0081] The cross-entropy loss function is suitable for classification tasks. Therefore, using the cross-entropy loss function to calculate the first cross-entropy loss function value can more accurately reflect the gap between the predicted disease type and the actual disease type.

[0082] Step B: using the cross entropy loss function, calculate the second cross entropy loss function value of the actual disease severity and the predicted disease severity.

[0083] The big consultation model can map the patient's symptoms to a specific severity based on the patient's basic information and the consultation dialogue, and thus obtain the predicted severity of the disease. That is, the process of predicting the severity of the disease by the big consultation model is also performing a classification task, so the cross entropy loss function can also be used to calculate the gap between the predicted severity of the disease and the actual severity of the disease.

[0084] Step C: using the specified loss function, calculate the specified loss function values ​​of the actual treatment plan and the predicted treatment plan.

[0085] The specified loss function can be a cross entropy loss function or a custom loss function (Custom LossFunction).

[0086] When both the actual treatment plan and the predicted treatment plan only include classification information such as drug name and dosage, that is, when the large consultation model can obtain the predicted treatment plan through the classification task, the specified loss function is the cross entropy loss function.

[0087] When the actual treatment plan and the predicted treatment plan also include more complex information, that is, when the large consultation model cannot obtain the predicted treatment plan based on the classification task alone, the specified loss function is a custom loss function. The more complex information may be review information, such as the review date, the examinations required for the review, and other information.

[0088] Among them, the custom loss function can be pre-set based on specific business needs.

[0089] It should be noted that the embodiment of the present disclosure does not limit the execution order of step A to step C, and they can be executed in sequence or in parallel.

[0090] Step D: perform weighted summation on the first cross entropy loss function value, the second cross entropy loss function value, and the preset loss function value to obtain a second loss function value.

[0091] Among them, the weights of each loss function value can be pre-set according to actual needs.

[0092] The disclosed embodiment can use the cross entropy loss function to calculate the first cross entropy loss function value and the second cross entropy loss function value, and use the specified loss function to calculate the specified loss function value of the actual treatment plan and the predicted treatment plan. The selected loss function conforms to the task type corresponding to each output of the large medical consultation model, so that each calculated loss function can be more accurate. Finally, the three loss function values ​​are weighted and summed to obtain the second loss function value, so that the second loss function value can accurately reflect the accuracy of predicting the disease type, predicting the severity of the disease, and predicting the treatment plan, and further make the performance of the large medical consultation model trained based on the second loss function value better, and can more accurately output the predicted diagnosis results.

[0093] In some embodiments of the present disclosure, the sample medical consultation data also includes actual symptom description information. On this basis, in the above S103, for the questions output by the medical consultation big model in each round of medical consultation, the answer text corresponding to the question is obtained from the medical consultation dialogue, and the answer text is input into the medical consultation big model, the method also includes: obtaining the predicted symptom description information output by the medical consultation big model; using the sequence loss function, calculating the third loss function value of the predicted symptom description information and the actual symptom description information.

[0094] Among them, both the predicted symptom description information and the predicted symptom description information include the patient's symptoms, such as fever, cough, nasal congestion, etc.

[0095] On the basis of calculating the third loss function value, the above S107, training the large medical consultation model based on the first loss function value and the second loss function value to obtain the trained large medical consultation model, can be specifically implemented as follows:

[0096] The first loss function value, the second loss function value and the third loss function value are weightedly summed to obtain a total loss function value, and the medical consultation model is trained based on the total loss function value to obtain a trained medical consultation model.

[0097] Among them, the weight of each loss function value can be pre-set based on actual needs.

[0098] In the disclosed embodiment, the predicted symptom description information output by the medical consultation big model can also reflect the degree of understanding of the patient's condition by the medical consultation big model to a certain extent. Therefore, when training the medical consultation big model, the loss function value between the predicted symptom description information output by the medical consultation big model and the actual symptom description information is also considered, so that the trained medical consultation big model can obtain the patient's symptom information more accurately, thereby giving a more accurate diagnosis result.

[0099] It can be understood that when the sample medical consultation data does not include actual symptom description information, the electronic device does not need to calculate the third loss function value. Accordingly, the above S107, training the medical consultation model based on the first loss function value and the second loss function value to obtain the trained medical consultation model, can be specifically implemented as follows: weighted summing of the first loss function value and the second loss function value to obtain the total loss function value, training the medical consultation model based on the total loss function value to obtain the trained medical consultation model.

[0100] Based on the same technical concept, the embodiment of the present disclosure also provides a medical consultation method, which is applied to an electronic device, which may be a mobile phone, a computer, or an intelligent terminal or intelligent robot in a hospital equipped with a medical consultation system. Figure 2 As shown, the method includes:

[0101] S201. Obtain basic patient information input by a user.

[0102] The user is the patient himself or the person who helps the patient to consult. The patient's basic information includes the patient's age, gender, height, weight, whether there are allergic drugs, and whether there are underlying diseases. The specific content of the patient's basic information can be set according to actual needs, and the embodiments of the present disclosure do not limit this.

[0103] S202. Input the patient's basic information into the medical consultation model, and provide the user with questions output by the medical consultation model during each round of medical consultation.

[0104] Among them, the large medical consultation model is a model trained based on the training method of the large medical consultation model in the above embodiment.

[0105] S203, obtaining the user's reply text for each round of questions, and inputting the reply text into the medical consultation model.

[0106] Each time the big model asks a question, the user can answer it, which is equivalent to the big model simulating the role of the doctor. After multiple rounds of consultation, when the big model determines that it has obtained enough information, it can stop the consultation and output the diagnosis result.

[0107] S204, obtaining the diagnosis result output by the large medical consultation model.

[0108] S205: Display the diagnosis result to the user.

[0109] By adopting this method, the user can input the basic information of the patient and answer the questions answered by the large model of the medical consultation to obtain the diagnosis result output by the large model of the medical consultation. Since the large model of the medical consultation is trained by the method in the above embodiment, the output diagnosis result is relatively accurate. It can be seen that the method can realize the actual medical consultation of the patient without the participation of doctors, which can alleviate the shortage of medical resources and improve the coverage of medical services.

[0110] In some embodiments of the present disclosure, the above S202, providing the user with questions output by the large consultation model in each round of consultation, can be specifically implemented as follows:

[0111] Display the questions output by the big model in each round of consultation in text form on the consultation interface; or

[0112] Convert the questions output by the large medical consultation model into question voices and play the question voices for the user; or

[0113] The questions output by the large consultation model are converted into question videos, and the consultation videos are played for users.

[0114] Accordingly, in the above S203, obtaining the user's answer text for each round of questions can be specifically implemented as follows:

[0115] Get the answer text entered by the user in the consultation interface; or,

[0116] Get the reply voice of the user's reply, and convert the reply voice into reply text; or,

[0117] Obtain the user's response video during the video consultation process, and extract the response text from the response video.

[0118] It can be understood that if the user enters the reply text through the dialog box in the consultation interface, the next question output by the consultation model can be displayed in the dialog box in text form; if the user replies by voice, the next question output by the consultation model can be played in voice form, and optionally, the text corresponding to the next question can also be displayed in the dialog box of the consultation interface; or, the user can also directly use the video call method to consult, and the consultation model can be displayed in the video as a virtual doctor, and have a video conversation with the user.

[0119] It can be seen that during the consultation process, users can interact with the consultation model through text, voice or video, supporting multiple consultation forms and meeting the diverse needs of users.

[0120] In some embodiments of the present disclosure, after the reply text is input into the medical consultation model, the symptom description information output by the medical consultation model can also be obtained and displayed to the user. In this way, the user can check whether the symptom description information is consistent with the patient's symptoms, thereby judging the accuracy of the obtained diagnosis result, which can improve the safety of the medical consultation.

[0121] Optionally, in the process of applying the medical consultation big model for actual medical consultation, with the user's authorization, the diagnosis records generated by the medical consultation big model can be collected in real time, and based on the user's feedback on the diagnosis results and through collaboration with the doctor, the diagnosis records can be annotated to obtain new sample medical consultation data, and the medical consultation big model can be iteratively trained using these sample medical consultation data, thereby continuously improving the diagnostic accuracy of the medical consultation big model, continuously optimizing the performance of the medical consultation big model, and improving the user's medical consultation experience.

[0122] Optionally, in the process of iterative training of the large medical consultation model, the calculation of other custom loss functions can be added, and the large medical consultation model can be optimized in combination with other custom loss functions. For example, a custom loss function can be calculated based on specific indicators that need to be optimized during the medical consultation process. Specific indicators may be, for example, diagnostic accuracy, patient satisfaction with the diagnostic results, etc. Taking the patient's satisfaction with the diagnostic results as an example, after outputting the diagnostic results to the patient, the patient's feedback on the satisfaction can be obtained, and the loss function value between the satisfaction and the expected satisfaction (such as 100%) can be calculated. Subsequently, the loss function value and other loss function values ​​in the above embodiments can be used to comprehensively adjust the parameters of the large medical consultation model to optimize the performance of the large medical consultation model.

[0123] like Figure 3 As shown, the overall implementation scheme of the method provided by the embodiment of the present disclosure is as follows Figure 3 As shown, it is divided into four stages: data collection and processing, model training, consultation system application, and feedback improvement.

[0124] Among them, in the data collection and processing stage, diagnostic records can be collected, and the collected data can be cleaned and labeled to obtain a high-quality training data set.

[0125] After obtaining a high-quality training data set, the high-quality training data set can be used to train the preset big model, so that the preset big model can be trained into a consultation big model that can be used for actual consultation.

[0126] Among them, the preset large model is an Enhanced Representation through kNowledge Integration (ERNIE) model, and can also be a Recurrent Neural Network (RNN) model, etc.

[0127] After training the big model for the medical consultation, the big model can be deployed in the medical consultation system, which supports text consultation, voice consultation and video consultation. The medical consultation system supports the user's input of patient information, and can obtain the symptom description information and diagnosis results output by the big model for the medical consultation, so as to display the symptom description information and diagnosis results to the user. Among them, the diagnosis results can specifically include diagnostic suggestions and treatment plans. The diagnostic suggestions can include the type of disease and the severity of the symptoms. The treatment plan can include the name and dosage of the required drugs, etc.

[0128] In the process of using the big consultation model to conduct medical consultations, it is also possible to collect diagnostic records based on user authorization, discard bad diagnostic records, and analyze the reasons for the bad diagnostic records. It is also possible to use good diagnostic records to generate new sample medical consultation data and add high-quality training data sets to provide feedback and improvements, so as to iteratively optimize the big consultation model.

[0129] The consultation system in the embodiment of the present disclosure can also be called an AI doctor consultation system, which can be specifically applied in the following scenarios.

[0130] 1. Community health services.

[0131] Deploying this consultation system in community health service centers can solve the diagnosis and treatment problems of common and chronic diseases of community residents through video, voice, and text consultations, and provide convenient medical services to community residents.

[0132] 2. Home medical services.

[0133] By integrating the consultation system into home medical devices or applications, users can perform self-diagnosis and health management at home. It can provide users with personalized health advice and treatment plans, reducing medical costs.

[0134] 3. Telemedicine services.

[0135] Deploying this consultation system in remote areas or areas with scarce medical resources can solve the problem of patients' difficulty in seeing a doctor through remote consultation and improve the accessibility of medical services.

[0136] 4. Assistance from medical institutions.

[0137] The medical consultation system can be deployed in hospitals or clinics and used as a doctor's assistant to assist doctors in initial screening of diseases and provide diagnostic suggestions, thereby improving diagnosis and treatment efficiency.

[0138] The method provided by the embodiment of the present disclosure can improve the coverage of medical services, relieve the pressure on doctors, and patients do not need to go to the hospital frequently, which reduces the cost and time cost of medical treatment and improves the medical experience. It can also optimize the allocation of medical resources and reserve high-quality resources for diseases that need doctors to diagnose and treat more. Compared with the guidance system in the related art, the consultation system in the embodiment of the present disclosure has a higher level of intelligence and actual consultation capabilities, can provide more comprehensive and accurate medical services, and has broad application prospects and significant social benefits.

[0139] Corresponding to the above method embodiment, the present disclosure also provides a training device for a large-scale medical consultation model, such as Figure 4 As shown, the device comprises:

[0140] The acquisition module 401 is used to acquire sample consultation data, which includes basic patient information, sample consultation dialogues, and actual diagnosis results; input the basic patient information into the consultation model, and obtain the questions output by the consultation model in each round of consultation; obtain the answer text corresponding to the question from the consultation dialogue for the question output by the consultation model in each round of consultation, and input the answer text into the consultation model; and obtain the predicted diagnosis result output by the consultation model;

[0141] A calculation module 402 is used to calculate a first loss function value based on the sample consultation dialogue and the consultation dialogue of the consultation model during the consultation process; and calculate a second loss function value based on the predicted diagnosis result and the actual diagnosis result;

[0142] The training module 403 is used to train the large medical consultation model based on the first loss function value and the second loss function value to obtain a trained large medical consultation model.

[0143] Optionally, the calculation module 402 is specifically configured to:

[0144] Using the sequence loss function, calculate the first loss function value of the sample consultation dialogue and the consultation dialogue of the large consultation model during the consultation process.

[0145] Optionally, the actual diagnosis result includes the actual disease type, the actual severity of the disease, and the actual treatment plan, and the predicted diagnosis result includes the predicted disease type, the predicted severity of the disease, and the predicted treatment plan;

[0146] The calculation module 402 is specifically used for:

[0147] Using the cross entropy loss function, calculate the first cross entropy loss function value of the actual disease type and the predicted disease type;

[0148] Using the cross entropy loss function, calculating the second cross entropy loss function value of the actual disease severity and the predicted disease severity;

[0149] Using the specified loss function, calculate the specified loss function values ​​of the actual treatment plan and the predicted treatment plan;

[0150] The first cross entropy loss function value, the second cross entropy loss function value, and the preset loss function value are weightedly summed to obtain a second loss function value.

[0151] Optionally, the sample consultation data also includes actual symptom description information;

[0152] The acquisition module 401 is also used to obtain the predicted symptom description information output by the large consultation model;

[0153] The calculation module 402 is further used to calculate the third loss function value of the predicted symptom description information and the actual symptom description information using the sequence loss function;

[0154] The training module 403 is specifically used for:

[0155] Performing weighted summation on the first loss function value, the second loss function value, and the third loss function value to obtain a total loss function value;

[0156] The large medical consultation model is trained based on the total loss function value to obtain a trained large medical consultation model.

[0157] Optionally, the sample consultation data also includes the patient's examination result information;

[0158] The acquisition module 401 is also used to input the examination result information into the medical consultation model.

[0159] Optionally, the device further comprises: a data cleaning module and a generating module;

[0160] The acquisition module 401 is also used to acquire the doctor's diagnosis record, which includes the case, the consultation dialogue and the diagnosis result;

[0161] Data cleaning module, used for data cleaning of diagnostic records;

[0162] The generation module is used to generate a training data set based on the remaining diagnosis records after data cleaning, and the training data set includes multiple sample consultation data.

[0163] Optionally, the data cleaning module is specifically used to:

[0164] Input the diagnostic record into the trained scoring model to obtain the score of the diagnostic record, and the score is used to indicate the accuracy of the diagnostic result included in the diagnostic record;

[0165] If the score is less than the preset score, the diagnostic record will be deleted;

[0166] If the score is greater than or equal to the preset score, the diagnosis record is retained.

[0167] Optionally, generate a module specifically for:

[0168] For each diagnosis record after data cleaning, the basic information of the patient is extracted from the case included in the diagnosis record, and the extracted basic information of the patient, the consultation dialogue included in the diagnosis record, and the diagnosis result included in the diagnosis record are taken as a sample consultation data.

[0169] Corresponding to the above method embodiment, the present disclosure also provides a medical consultation device, such as Figure 5 As shown, including:

[0170] The acquisition module 501 is used to acquire the basic information of the patient input by the user;

[0171] A module 502 is provided, which is used to input the basic information of the patient into the medical consultation model, and provide the user with questions output by the medical consultation model in each round of medical consultation, wherein the medical consultation model is a model trained by the training device based on the medical consultation model;

[0172] The acquisition module 501 is also used to obtain the user's answer text for each round of questions, input the answer text into the medical inquiry model, and obtain the diagnosis result output by the medical inquiry model;

[0173] The display module 503 is used to display the diagnosis result to the user.

[0174] Optionally, the acquisition module 501 is further used to acquire symptom description information output by the large consultation model;

[0175] The display module 503 is also used to display symptom description information to the user.

[0176] Optionally, a module 502 is provided, specifically configured to:

[0177] Display the questions output by the big model in each round of consultation in text form on the consultation interface; or

[0178] Convert the questions output by the large medical consultation model into question voices and play the question voices for the user; or

[0179] The questions output by the large medical consultation model are converted into question videos, and the question videos are played for users.

[0180] Optionally, the acquisition module 501 is specifically configured to:

[0181] Get the answer text entered by the user in the consultation interface; or,

[0182] Get the reply voice of the user's reply, and convert the reply voice into reply text; or,

[0183] Obtain the user's response video during the video consultation process, and extract the response text from the response video.

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

[0185] It should be noted that the diagnosis record in this embodiment is not a diagnosis record for a specific user and cannot reflect the personal information of a specific user.

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

[0187] Figure 6 A schematic block diagram of an example electronic device 600 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.

[0188] like Figure 6 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

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

[0190] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 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 601 performs the various methods and processes described above, such as the training method and the consultation method of the large model of the consultation. For example, in some embodiments, the training method and the consultation method of the large model of the consultation may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the training method and the consultation method of the large model of the consultation described above may be executed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the training method and the consultation method of the large consultation model in any other appropriate manner (for example, by means of firmware).

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

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

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

[0194] 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).

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

[0196] 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 of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

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

[0198] 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 method for training a large medical consultation model, comprising: Acquire sample consultation data, wherein the sample consultation data includes basic patient information, sample consultation dialogues, and actual diagnosis results; Inputting the patient's basic information into the medical consultation model, and obtaining the questions output by the medical consultation model during each round of medical consultation; For the questions output by the medical consultation model in each round of medical consultation, the answer text corresponding to the question is obtained from the medical consultation dialogue, and the answer text is input into the medical consultation model; Obtaining the predicted diagnosis result output by the large consultation model; Calculating a first loss function value based on the sample consultation dialogue and the consultation dialogue of the consultation model during the consultation process; Calculating a second loss function value based on the predicted diagnosis result and the actual diagnosis result; The medical consultation model is trained based on the first loss function value and the second loss function value to obtain a trained medical consultation model.

2. The method according to claim 1, wherein: The calculating of the first loss function value based on the sample consultation dialogue and the consultation dialogue of the consultation large model during the consultation process includes: The sequence loss function is used to calculate the first loss function value of the sample consultation dialogue and the consultation dialogue of the large consultation model during the consultation process.

3. The method according to claim 1, wherein: The actual diagnosis result includes the actual disease type, the actual severity of the disease and the actual treatment plan, and the predicted diagnosis result includes the predicted disease type, the predicted severity of the disease and the predicted treatment plan; The calculating a second loss function value based on the predicted diagnosis result and the actual diagnosis result comprises: Calculate the first cross entropy loss function value of the actual disease type and the predicted disease type by using the cross entropy loss function; Calculating a second cross entropy loss function value of the actual severity of the disease and the predicted severity of the disease using a cross entropy loss function; Using a specified loss function, calculating the specified loss function values ​​of the actual treatment plan and the predicted treatment plan; The first cross entropy loss function value, the second cross entropy loss function value and the preset loss function value are weightedly summed to obtain the second loss function value.

4. According to the method of any one of claims 1 to 3, the sample consultation data further includes actual symptom description information; after obtaining a reply text corresponding to the question output by the consultation big model in each round of consultation process from the consultation dialogue and inputting the reply text into the consultation big model, the method further includes: Obtaining predicted symptom description information output by the large medical consultation model; Calculate the third loss function value of the predicted symptom description information and the actual symptom description information by using a sequence loss function; The step of training the medical consultation model based on the first loss function value and the second loss function value to obtain a trained medical consultation model includes: Performing a weighted summation on the first loss function value, the second loss function value, and the third loss function value to obtain a total loss function value; The medical consultation model is trained based on the total loss function value to obtain a trained medical consultation model.

5. According to the method of claim 1, the sample consultation data also includes the patient's examination result information; before obtaining the questions output by the consultation model in each round of consultation, the method also includes: The examination result information is input into the medical consultation model.

6. The method according to claim 1, before obtaining the sample consultation data, the method further comprises: Obtaining a doctor's diagnosis record, wherein the diagnosis record includes case history, consultation dialogue, and diagnosis result; Performing data cleaning on the diagnostic records; A training data set is generated based on the remaining diagnosis records after data cleaning, and the training data set includes a plurality of sample consultation data.

7. The method according to claim 6, wherein: The data cleaning of the diagnostic record includes: Inputting the diagnostic record into the trained scoring model to obtain a score for the diagnostic record, wherein the score is used to indicate the accuracy of the diagnostic result included in the diagnostic record; If the score is less than a preset score, deleting the diagnosis record; If the score is greater than or equal to the preset score, the diagnosis record is retained.

8. The method according to claim 6 or 7, wherein: The method of generating a training data set based on the remaining diagnostic records after data cleaning includes: For each diagnosis record after data cleaning, the basic information of the patient is extracted from the case included in the diagnosis record, and the extracted basic information of the patient, the consultation dialogue included in the diagnosis record, and the diagnosis result included in the diagnosis record are taken as a sample consultation data.

9. A medical consultation method, comprising: Get the basic patient information entered by the user; Inputting the basic information of the patient into the medical consultation model, and providing the user with questions output by the medical consultation model in each round of medical consultation, wherein the medical consultation model is a model trained based on any one of the methods of claims 1 to 8; Obtaining the user's answer text for each round of questions, and inputting the answer text into the medical consultation model; Obtaining the diagnosis result output by the large medical consultation model; The diagnosis result is displayed to the user.

10. The method according to claim 9, after inputting the reply text into the medical consultation model, the method further comprises: Obtaining symptom description information output by the medical consultation model; The symptom description information is displayed to the user.

11. The method according to claim 9 or 10, wherein: The providing the user with questions output by the large consultation model during each round of consultation includes: Display the questions output by the large consultation model in each round of consultation in text form on the consultation interface; or Convert the questions output by the medical consultation model into question voices, and play the question voices for the user; or The questions output by the medical consultation model are converted into question videos, and the question videos are played for the user.

12. The method according to claim 9 or 10, wherein: Get the user's answer text for each round of questions, including: Obtaining the reply text input by the user in the consultation interface; or, Acquire the reply voice of the user's reply, and convert the reply voice into reply text; or, The user's reply video during the video consultation is obtained, and the reply text is extracted from the reply video.

13. A training device for a large medical consultation model, comprising: An acquisition module is used to acquire sample consultation data, wherein the sample consultation data includes basic patient information, sample consultation dialogues and actual diagnosis results; Inputting the patient's basic information into the medical consultation model, and obtaining the questions output by the medical consultation model during each round of medical consultation; For the questions output by the medical consultation model in each round of medical consultation, the answer text corresponding to the question is obtained from the medical consultation dialogue, and the answer text is input into the medical consultation model; Obtaining the predicted diagnosis result output by the large consultation model; A calculation module, used for calculating a first loss function value based on the sample consultation dialogue and the consultation dialogue of the consultation model during the consultation process; Calculating a second loss function value based on the predicted diagnosis result and the actual diagnosis result; A training module is used to train the medical consultation model based on the first loss function value and the second loss function value to obtain a trained medical consultation model.

14. The device according to claim 13, wherein: The computing module is specifically used for: The sequence loss function is used to calculate the first loss function value of the sample consultation dialogue and the consultation dialogue of the large consultation model during the consultation process.

15. The device according to claim 13, wherein: The actual diagnosis result includes the actual disease type, the actual severity of the disease and the actual treatment plan, and the predicted diagnosis result includes the predicted disease type, the predicted severity of the disease and the predicted treatment plan; The computing module is specifically used for: Calculate the first cross entropy loss function value of the actual disease type and the predicted disease type by using the cross entropy loss function; Calculating a second cross entropy loss function value of the actual severity of the disease and the predicted severity of the disease using a cross entropy loss function; Using a specified loss function, calculating the specified loss function values ​​of the actual treatment plan and the predicted treatment plan; The first cross entropy loss function value, the second cross entropy loss function value and the preset loss function value are weightedly summed to obtain the second loss function value.

16. The device according to any one of claims 13 to 15, wherein the sample consultation data further includes actual symptom description information; The acquisition module is further used to acquire the predicted symptom description information output by the large consultation model; The calculation module is further used to calculate a third loss function value of the predicted symptom description information and the actual symptom description information using a sequence loss function; The training module is specifically used for: Performing a weighted summation on the first loss function value, the second loss function value, and the third loss function value to obtain a total loss function value; The medical consultation model is trained based on the total loss function value to obtain a trained medical consultation model.

17. The device according to claim 13, wherein the sample medical consultation data further includes the patient's examination result information; The acquisition module is also used to input the examination result information into the large medical consultation model.

18. The apparatus according to claim 13, further comprising: Data cleaning module and generation module; The acquisition module is further used to acquire the doctor's diagnosis record, which includes the case, the consultation dialogue and the diagnosis result; The data cleaning module is used to clean the diagnostic records; The generating module is used to generate a training data set based on the remaining diagnosis records after data cleaning, and the training data set includes a plurality of sample consultation data.

19. The device according to claim 18, wherein: The data cleaning module is specifically used for: Inputting the diagnostic record into the trained scoring model to obtain a score for the diagnostic record, wherein the score is used to indicate the accuracy of the diagnostic result included in the diagnostic record; If the score is less than a preset score, deleting the diagnosis record; If the score is greater than or equal to the preset score, the diagnosis record is retained.

20. The device according to claim 18 or 19, wherein: The generation module is specifically used for: For each diagnosis record after data cleaning, the basic information of the patient is extracted from the case included in the diagnosis record, and the extracted basic information of the patient, the consultation dialogue included in the diagnosis record, and the diagnosis result included in the diagnosis record are taken as a sample consultation data.

21. A medical consultation device, comprising: The acquisition module is used to obtain the basic information of the patient input by the user; Providing a module for inputting the basic information of the patient into a large medical consultation model, and providing the user with questions output by the large medical consultation model in each round of medical consultation, wherein the large medical consultation model is a model trained based on the device according to any one of claims 13 to 20; The acquisition module is further used to acquire the user's answer text for each round of questions, input the answer text into the medical consultation model, and acquire the diagnosis result output by the medical consultation model; A display module is used to display the diagnosis result to the user.

22. The device according to claim 21, The acquisition module is also used to acquire the symptom description information output by the large consultation model; The display module is also used to display the symptom description information to the user.

23. The device according to claim 21 or 22, wherein: The providing module is specifically used for: Display the questions output by the large consultation model in each round of consultation in text form on the consultation interface; or Converting the questions output by the medical consultation model into question voices, and playing the question voices for the user; or, The questions output by the medical consultation model are converted into question videos, and the question videos are played for the user.

24. The device according to claim 21 or 22, wherein: The acquisition module is specifically used for: Obtaining the reply text input by the user in the consultation interface; or, Acquire the reply voice of the user's reply, and convert the reply voice into reply text; or, The user's reply video during the video consultation is obtained, and the reply text is extracted from the reply video.

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 that can be executed 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 according to any one of claims 1 to 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-12.

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

Citation Information

Patent Citations

  • Deep reinforcement learning-based inquiry method and system

    CN114613489A

  • Interaction data processing method and device, electronic equipment and storage medium

    CN117012405A

  • Structural health diagnosis vision-language basic model and multi-mode interaction system establishing method

    CN117390151A

  • Training method of inquiry big model, inquiry method and device based on big model

    CN117747087A

  • Object analysis method and device, computer equipment and storage medium

    CN118039124A

Cited By

  • Interrogation question generation method and device, equipment and storage medium

    CN119581066A

  • Assessment method and system of medical question-answering system and electronic equipment

    CN122086734A