Doctor response system based on conversational assistant
By introducing a doctor's response system that incorporates a dialogue assistant and a deep learning model, combined with various intelligent robots, the shortcomings of traditional systems in terms of efficiency and accuracy have been overcome, enabling fast and accurate responses to patient inquiries.
Patent Information
- Application Number
- CN202311280427.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-09-28
AI Technical Summary
Existing doctor response systems struggle with efficiency and accuracy when dealing with increasingly complex patient inquiries. Traditional systems lack multifunctional dialogue assistants, making it difficult to provide quick and accurate responses.
We employ a doctor response system based on a dialogue assistant, combining FAQ robots, GPT robots, KBQA robots, and task-oriented robots. We use deep learning models for semantic parsing and intent recognition, and leverage the latest GPT technology and a larger-scale knowledge graph to provide fast and accurate responses.
It improves the efficiency and accuracy of the doctor's response system, enabling it to quickly adapt to complex patient consultation scenarios and solving the problems of response efficiency and accuracy caused by the shortage of online doctors.
Smart Images

Figure CN117373699B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to an intelligent question-and-answer system, and more particularly to a doctor's response system based on a dialogue assistant. Background Technology
[0002] With the development of economy and technology, people are paying more and more attention to their own health, and more and more people are searching for diseases online. Doctors are finding it difficult to cope with increasingly complex patient consultation scenarios, which requires the help of doctor response systems to provide patients with disease-related consultations.
[0003] Currently, various doctor response systems exist for patient consultations. Traditional doctor response systems mostly employ rule-based template robots, while deep learning-based response systems are also emerging. However, with the rapid advancement of technology, doctor response systems urgently need continuous updates. This includes, for example, introducing the latest GPT technology or updating to a larger-scale knowledge graph.
[0004] However, existing human question-and-answer systems for disease consultation still have some drawbacks. Traditional question-and-answer systems for disease consultation are generally not equipped with a multi-functional and accurate dialogue assistant function, which makes it difficult to cope with the increasing number of patient inquiries. Relying solely on doctors to respond to a large number of patient inquiries can easily lead to problems with efficiency and accuracy. Therefore, a doctor response system based on dialogue assistant function has been proposed as a solution. Summary of the Invention
[0005] The technical problem to be solved by the present invention is to provide a doctor response system based on a dialogue assistant, which can provide doctors with precise response terms through quick prompts for reference and selective responses.
[0006] The technical solution adopted by this invention to solve the above-mentioned technical problems is to provide a doctor response system based on a dialogue assistant, including a system front-end, a system back-end, a dialogue management module, an information extraction module, and an intelligent robot module. The system front-end is used to call the system back-end. The system back-end sends MQ messages to the dialogue management module and returns the messages to the system front-end. The dialogue management module calls the information extraction service from the information extraction module and returns the MQ messages to the system back-end. The information extraction module returns the extracted keywords to the dialogue management module. The intelligent robot module returns robot responses to the dialogue management module. Specifically: the dialogue management module is used to listen to MQ messages from the system back-end, retrieve the dialogue content from the previous rounds, call the information extraction module to obtain keywords, and call the intelligent robot module to obtain robot responses, and then return the robot responses to the system front-end; the information extraction module is used to perform intent recognition and entity recognition, and return the extracted information results to the dialogue management module; the intelligent robot module includes a FAQ robot, a GPT robot, a KBQA robot, and a task-oriented robot, used to return robot responses to the dialogue management module to display the target answers to doctors on the question-and-answer interaction page and selectively return them to patients.
[0007] Furthermore, the system front-end is used to provide a question-and-answer interaction page and an operation and maintenance interface. The question-and-answer interaction page is used to receive question data input by the user through the question-and-answer interaction page, and the operation and maintenance interface is used to add and / or modify synonyms and conceptual question templates.
[0008] Furthermore, the system backend is used to perform a first preprocessing on the received question data and send the preprocessed question data to the dialogue management module; the system backend is used to perform a second preprocessing on the received target answer and return the preprocessed target answer to the system frontend;
[0009] Furthermore, the first preprocessing refers to context splicing, outputting the complete dialogue content to the dialogue management module, while the second preprocessing refers to deletion processing.
[0010] Furthermore, the information extraction module is used to extract and normalize keywords from user expressions; the dialogue management module selects the GPT robot response strategy or other robot ranking response strategies based on the intent recognition results, and uses the FAQ robot for fallback processing.
[0011] Furthermore, when the dialogue management module selects other robot ranking and response strategies, it assigns an availability score to the FAQ robot, KBQA robot, and task-oriented robot respectively, and selects the one with the higher score to respond to the user.
[0012] Furthermore, the FAQ robot, GPT robot, KBQA robot, and task-oriented robot employ a deep learning model to perform semantic parsing on the question data. The FAQ robot uses standard question-answer pairs to provide structured answers to medical encyclopedia questions. The GPT robot uses the GPT series for casual conversation with non-medical intent. The KBQA robot uses a relatively complete medical knowledge graph, natural language understanding, and answer templates to answer medical encyclopedia questions. The task-oriented robot uses a medical knowledge base, natural language understanding, dialogue management, and answer templates to implement doctor-patient dialogue using the approach of a task-oriented robot.
[0013] Furthermore, the information extraction module performs binary classification and labeling on the existing data to determine whether it belongs to medical intent, and trains an AI model to classify unstructured text for intent; if the current round of dialogue is identified as non-medical intent, the GPT robot is selected to take over the dialogue; if the GPT robot still does not respond after a preset time, the system backend returns a fixed fallback script to the system frontend to take over the user message.
[0014] Furthermore, the KBQA robot performs multi-classification medical intent labeling on existing data. By training an AI model, it extracts sentences containing medical entities from message texts classified as medical intents and determines the confidence level of detailed medical intents. If the confidence level exceeds a first preset threshold, it retrieves a medical knowledge graph based on slot information. If the confidence level is lower than a second preset threshold, it returns to call the FAQ robot. If the confidence level is between the first and second preset thresholds, it clarifies the intent. The KBQA robot manually configures the slot information required to respond to a specific medical intent. When it detects that a user message is for that intent, it asks the user a question using a fixed template for slots that lack information. It uses entity recognition technology to identify entity information in the user's response message, determines whether it matches a slot, and completes the slot information supplementation. If the KBQA robot finds that it has repeatedly consulted the user for missing slot information under a certain intent without receiving a valid response, it exits the KBQA robot, and the system backend returns a fixed fallback script to the system frontend to accept the user message.
[0015] Furthermore, the first preset threshold is 0.8, and the second preset threshold is 0.4. When the confidence level is between 0.4 and 0.8, the following intent clarification is performed: For user messages received by the system, a semantic intent similarity score is calculated and a preset threshold is set. If the semantic similarity score of the user message and all intents is lower than the threshold, it is considered that no valid intent has been hit. At this time, the top 3 intents with the highest semantic similarity scores are selected to ask the user to confirm whether it is their true intent.
[0016] Compared with the prior art, the present invention has the following beneficial effects: The doctor response system based on dialogue assistant provided by the present invention introduces the latest GPT technology to provide users with additional information responses; secondly, the system updates a larger-scale knowledge graph and question-answer pairs, and uses a deep learning model to further improve the accuracy of the system's responses, which can quickly adapt to the needs of complex patient consultation scenarios and effectively solve the problems of response efficiency and accuracy caused by the large volume of patient consultations and the shortage of online doctors. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the overall architecture of the doctor response system based on a dialogue assistant according to the present invention;
[0018] Figure 2 This is a schematic diagram of the overall process of the doctor's response system based on a dialogue assistant according to the present invention;
[0019] Figure 3 This is a flowchart of the dialogue management process used in this invention;
[0020] Figure 4 This is a flowchart of the information extraction process used in this invention;
[0021] Figure 5 This is the flowchart of the FAQ robot used in this invention;
[0022] Figure 6 This is a flowchart of the GPT robot used in this invention;
[0023] Figure 7 This is a flowchart of the KBQA robot used in this invention;
[0024] Figure 8 This is a flowchart of the task-oriented robot used in this invention. Detailed Implementation
[0025] The present invention will now be further described with reference to the accompanying drawings and embodiments.
[0026] Figure 1 This is a schematic diagram of the overall architecture of the doctor response system based on a dialogue assistant according to the present invention; Figure 2 This is a schematic diagram of the overall process of the doctor's response system based on a dialogue assistant according to the present invention.
[0027] Please see Figure 1 and Figure 2The present invention provides a doctor response system based on a dialogue assistant, comprising a system front-end 1, a system back-end 2, a dialogue management module 3, an information extraction module 4, and an intelligent robot module 5. The system front-end 1 can receive user-inputted question data and send it to the system back-end 2. For example, the question data may include text information input by the user. The system back-end 2, located between the system front-end 1 and the dialogue management module 3, can distribute the question data to the dialogue management module 3 and return the processed data to the system front-end 1.
[0028] The present invention provides a doctor response system based on a dialogue assistant. The system front-end 1 provides a question-and-answer interaction page and an operation and maintenance interface, while the system back-end 2 receives question data input by the user through the question-and-answer interaction page. By providing the system front-end 1 and system back-end 2, it is convenient for patients to input question data and for doctors to display the answers to the users. The intelligent robot module 5 uses a deep learning model to perform semantic parsing of the question data. By using a deep learning model for semantic parsing of the question data, the accuracy of the question-and-answer system can be further improved, as can the robustness and adaptability of the system, and the user experience. The intelligent robot module includes a FAQ robot, a GPT robot, a KBQA robot, and a task-oriented robot, used to return robot responses to the dialogue management module, so that the target answer can be displayed to the doctor on the question-and-answer interaction page and selectively returned to the patient.
[0029] In a preferred embodiment of the present invention, such as Figure 3 As shown: The dialogue management module is used to listen to the system backend MQ messages, pull the dialogue content of the previous few rounds, call the information extraction service to obtain keywords, and call the robot to obtain the robot's response, and return the robot's response message to the system frontend. The dialogue management module is used to extract the dialogue within the last 3 rounds. For example, at time t, it can extract t-1 and t-2 simultaneously, and concatenate them into a sentence in the order of (t-2, t-1, t) and send it to the information extraction module and the intelligent robot module. If all of the last 3 rounds are doctors, no processing is performed. If the current dialogue has exceeded the time limit or round limit of the engineering side, no processing is performed. The dialogue rounds need to be configurable, for example, a strategy of extracting the previous 4, 5, 6 rounds can also be used.
[0030] In a preferred embodiment of the present invention, such as Figure 4 As shown: The information extraction module is used for intent recognition and entity recognition, extracting keywords from the question data, and returning the extracted information results to the dialogue management module. The information extraction module extracts and normalizes keywords from user statements.
[0031] The FAQ robot, GPT robot, KBQA robot, and task-oriented robot of this invention employ a deep learning model to perform semantic parsing of question data; the FAQ robot, based on standard question-answer pairs, is used to answer medical encyclopedia questions in a structured manner, such as... Figure 5 As shown; the GPT robot, based on the GPT series, is used for casual conversation with non-medical intent, such as... Figure 6 As shown; the KBQA robot, based on a relatively complete medical knowledge graph, natural language understanding, and answer templates, is used to answer medical encyclopedia questions, such as... Figure 7 As shown; the task-oriented robot, based on a medical knowledge base, natural language understanding, dialogue management, and answer templates, is used to realize doctor-patient dialogue in the manner of a task-oriented robot, such as... Figure 8 As shown. Regarding the handling of the dialogue system's inability to respond normally, if the system backend detects that the dialogue system has not returned a correct result, the system backend will return a fixed fallback message to the frontend to accept the user message.
[0032] The information extraction module of this invention performs binary classification and labeling on existing data to determine whether it belongs to medical intent. It also trains an AI model to classify unstructured text for intent. If the current round of dialogue is identified as non-medical intent, a GPT (Geometric Points Theory) robot is selected to handle the dialogue. Considering that current technology cannot completely constrain the time required for the GPT robot to generate dialogue, there is a possibility that the GPT robot may consume excessive time. Technically, a timeout constraint is implemented. If the GPT robot is still processing after a certain time, the system backend will return a fixed fallback message to the frontend to handle the user message.
[0033] The KBQA robot of this invention performs multi-classification medical intent labeling on existing data. By training an AI model, it extracts sentences containing medical entities from message texts classified as medical intents, assembles them into shorter texts, performs multi-classification, and determines the confidence level of detailed medical intents. If the confidence level exceeds a first preset threshold, it obtains a medical knowledge graph based on slot information. If the confidence level is lower than a second preset threshold, it returns to call the FAQ robot. If the confidence level is between the first and second preset thresholds, it clarifies the intent. The KBQA robot is manually configured to respond to the required slot information under a certain medical intent. When it detects that the user message is for that intent, it asks the user a question using a fixed template for slots that lack information. It uses entity recognition technology to identify entity information in the user's response message, determines whether it matches the slot, and completes the slot information supplementation. If the KBQA robot finds that it has repeatedly consulted the user for the missing slot information under a certain intent without receiving a valid response, it exits the KBQA robot, and the system backend returns a fixed fallback script to the system frontend to accept the user message.
[0034] Preferably, the first preset threshold can be selected as 0.8, and the second preset threshold is 0.4. When the confidence level is between 0.4 and 0.8, the following intent clarification is performed: For user messages received by the system, semantic intent similarity is scored and a preset threshold is set. If the semantic similarity score of the user message and all intents is lower than the threshold, it is considered that no valid intent has been hit. At this time, the top 3 intents with the highest semantic similarity scores are selected to ask the user whether it is their true intent.
[0035] The working principle of the dialogue assistant of this invention is as follows: The dialogue assistant button has two states, on and off, which can be switched by clicking. When the dialogue assistant pop-up is closed, the button also needs to be switched to the closed state simultaneously. The dialogue assistant pop-up is expanded on the right side by default. The pop-up supports dragging its position (clicking the top area of the window allows dragging its position), and the pop-up supports adjusting its boundary size (dragging the window boundary with the mouse changes the window size). After big data analysis of the dialogue, keywords are returned in real time, with a maximum of 10 keywords displayed (if more than 10 are displayed, the first 10 are displayed). Based on the selected keyword, the corresponding text returned by the big data is displayed, with the order provided by the big data (maximum 3 questions and answers for each keyword). The click range is the entire line, and the click effect is to copy the answer to the dialog box.
[0036] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications and improvements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be defined by the claims.
Claims
1. A doctor response system based on a dialogue assistant, comprising a system front-end, a system back-end, a dialogue management module, an information extraction module, and an intelligent robot module, wherein the system front-end is used to call the system back-end, the system back-end sends an MQ message to the dialogue management module and returns the message to the system front-end, the dialogue management module calls an information extraction service from the information extraction module and returns the MQ message to the system back-end, the information extraction module returns extracted keywords to the dialogue management module, and the intelligent robot module returns a robot response to the dialogue management module, characterized in that: The dialogue management module is used to listen to the system backend MQ messages, pull the dialogue content of the previous few rounds, call the information extraction module to obtain keywords, and call the intelligent robot module to obtain the robot's response, and return the robot's response message to the system frontend; the information extraction module is used to perform intent recognition and entity recognition, and return the extracted information results to the dialogue management module; The intelligent robot module includes a FAQ robot, a GPT robot, a KBQA robot, and a task-oriented robot, which are used to return robot responses to the dialogue management module so that the target answer can be displayed to the doctor on the question-and-answer interaction page and selectively returned to the patient. The FAQ robot, GPT robot, KBQA robot, and task-oriented robot employ a deep learning model to perform semantic parsing of the question data. The FAQ robot uses standard question-answer pairs to provide structured answers to medical encyclopedia questions. The GPT robot, based on the GPT series, is used for casual conversation with non-medical intent. The KBQA robot, based on a relatively complete medical knowledge graph, natural language understanding, and answer templates, is used to answer medical encyclopedia questions. The task-oriented robot, based on a medical knowledge base, natural language understanding, dialogue management, and answer templates, is used to implement doctor-patient dialogue in a task-oriented manner. The KBQA robot performs multi-class medical intent labeling on existing data. By training an AI model, it extracts sentences containing medical entities from message texts classified as medical intents and determines the confidence level of detailed medical intents. If the confidence level exceeds the first preset threshold, it obtains a medical knowledge graph based on slot information. If the confidence level is lower than the second preset threshold, it returns to call the FAQ robot. If the confidence level is between the first and second preset thresholds, it clarifies the intent. The KBQA robot is manually configured to respond to the required slot information under a specific medical intent. When it detects that the user message is for that intent, it asks the user a follow-up question using a fixed template for slots that lack information. It also uses entity recognition technology to identify entity information in the user's response message to determine if it matches the slot and completes the slot information supplementation. If the KBQA robot finds that it has repeatedly consulted the user for the missing slot information under a certain intent without receiving a valid response, it exits the KBQA robot, and the system backend returns a fixed fallback script to the system frontend to take over the user message.
2. The doctor response system based on a dialogue assistant as described in claim 1, characterized in that, The system front-end is used to provide a question-and-answer interaction page and an operation and maintenance interface. The question-and-answer interaction page is used to receive question data input by users through the question-and-answer interaction page, and the operation and maintenance interface is used to add and / or modify synonyms and conceptual question templates.
3. The doctor response system based on a dialogue assistant as described in claim 1, characterized in that, The system backend is used to perform a first preprocessing on the received question data and send the preprocessed question data to the dialogue management module; the system backend is used to perform a second preprocessing on the received target answer and return the preprocessed target answer to the system frontend.
4. The doctor response system based on a dialogue assistant as described in claim 3, characterized in that, The first preprocessing refers to context splicing, outputting the complete dialogue content to the dialogue management module; the second preprocessing refers to deletion processing.
5. The doctor response system based on a dialogue assistant as described in claim 1, characterized in that, The information extraction module is used to extract and normalize keywords from user expressions; the dialogue management module selects the GPT robot response strategy or other robot ranking response strategies based on the intent recognition results, and uses the FAQ robot for fallback processing.
6. The doctor response system based on a dialogue assistant as described in claim 5, characterized in that, When the dialogue management module selects other robot ranking and response strategies, it assigns an availability score to the FAQ robot, KBQA robot, and task-oriented robot respectively, and selects the robot with the higher score to respond to the user.
7. The doctor response system based on a dialogue assistant as described in claim 5, characterized in that, The information extraction module performs binary classification and labeling on existing data to determine whether it belongs to medical intent. It trains an AI model to classify unstructured text for intent. If the current round of dialogue is identified as non-medical intent, the GPT robot is selected to take over the dialogue. If the GPT robot still does not respond after a preset time, the system backend returns a fixed fallback message to the system frontend to take over the user message.
8. The doctor response system based on a dialogue assistant as described in claim 1, characterized in that, The first preset threshold is 0.8, and the second preset threshold is 0.
4. When the confidence level is between 0.4 and 0.8, the following intent clarification is performed: For user messages received by the system, a semantic intent similarity score is calculated and a preset threshold is set. If the semantic similarity score of the user message and all intents is lower than the threshold, it is considered that no valid intent has been hit. At this time, the top 3 intents with the highest semantic similarity scores are selected to ask the user to confirm whether it is their true intent.
Citation Information
Patent Citations
Intelligent dialogue method and system
CN114860910A
Multi-type question smart answering method, system and device, and readable storage medium
WO2021109690A1
