WO2022041727A1 - Question and answer management method, apparatus, and device for medical inquiry system, and storage medium - Google Patents

Question and answer management method, apparatus, and device for medical inquiry system, and storage medium Download PDF

Info

Publication number
WO2022041727A1
WO2022041727A1 PCT/CN2021/084651 CN2021084651W WO2022041727A1 WO 2022041727 A1 WO2022041727 A1 WO 2022041727A1 CN 2021084651 W CN2021084651 W CN 2021084651W WO 2022041727 A1 WO2022041727 A1 WO 2022041727A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
type
medical
target
preset
Prior art date
Application number
PCT/CN2021/084651
Other languages
French (fr)
Chinese (zh)
Inventor
李响
柳恭
满晏松
Original Assignee
康键信息技术(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 康键信息技术(深圳)有限公司 filed Critical 康键信息技术(深圳)有限公司
Publication of WO2022041727A1 publication Critical patent/WO2022041727A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/04Inference or reasoning models
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H10/00ICT specially adapted for the handling or processing of patient-related medical or healthcare data
    • G16H10/60ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Definitions

  • the present application relates to the field of medical data, and in particular, to a question and answer management method, apparatus, device and storage medium for a medical consultation system.
  • Internet medical treatment is an important field of artificial intelligence application.
  • mobile medical has moved closer to the diagnosis and treatment level and made breakthroughs.
  • online consultation has become more and more popular, and the number of online consultations in a single day has already exceeded the average daily scale of one million.
  • the shortage of online doctor resources and the low efficiency of online consultation services have become prominent problems.
  • Artificial intelligence systems, especially natural language understanding have gradually become possible to solve this proposition in the context of significant breakthroughs in algorithms and computing power.
  • the present application provides a question and answer management method, device, equipment and storage medium for a medical consultation system, which are used to accurately identify the medical field intention of a user consultation and improve the accuracy of the question and answer management results of the medical consultation system.
  • a first aspect of the present application provides a question-and-answer management method for a medical consultation system, including: acquiring target feature data from a target terminal, where the target feature data is used to instruct a target user to contact a medical practitioner through the target terminal.
  • the consultation information input by the consultation system the preset neural network pre-classification model is called to pre-classify the target feature data, and the pre-classification result corresponding to the target feature data is determined, and the pre-classification result includes the first type of data and the second type of data, the first type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information; if the target feature data is the first type of data, Then call the preset knowledge graph model and the first type of data to perform medical graph reasoning, generate the first diagnosis suggestion data and send it to the target terminal; if the target feature data is the second type of data, according to The preset knowledge graph decision tree model and the second type of data perform medical graph query, generate multiple rounds of supplementary questions and send them to the target terminal; generate electronic data according to the answers to the multiple rounds of supplementary questions and the target feature data. Medical record data; invoking the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal
  • a second aspect of the present application provides a question and answer management device for a medical consultation system, including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, and the processor executes
  • the computer-readable instructions implement the following steps: acquiring target feature data from the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
  • the network pre-classification model pre-classifies the target feature data, and determines the pre-classification result corresponding to the target feature data.
  • the pre-classification result includes the first type of data and the second type of data, and the first type of data is the question.
  • the preset knowledge graph model and the first type of data are called Perform medical graph reasoning on the data, generate first diagnosis suggestion data and send it to the target terminal;
  • the target feature data is the second type of data, then according to the preset knowledge graph decision tree model, the second type Perform medical map query on the data, generate multiple rounds of supplementary questions and send them to the target terminal; generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data; call the neural network pre-classification model to The electronic medical record data is pre-classified again until the second diagnosis suggestion data is generated and sent to the target terminal.
  • a third aspect of the present application provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on a computer, the computer is caused to perform the following steps: obtaining a target from a target terminal Feature data, the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal; call the preset neural network pre-classification model to pre-classify the target feature data, and determine the The pre-classification result corresponding to the target feature data, the pre-classification result includes the first type of data and the second type of data, the first type of data is the data with complete types of consultation information, and the second type of data is the consultation Data with missing information types; if the target feature data is the first type of data, call the preset knowledge graph model and the first type of data to perform medical graph inference, generate the first diagnosis suggestion data and send it to the the target terminal; if the target feature data is the second type of data, perform medical map query according to the preset knowledge map decision tree model and
  • a fourth aspect of the present application provides a question-and-answer management device for a medical consultation system, comprising: a data acquisition module configured to acquire target feature data from a target terminal, where the target feature data is used to instruct a target user to send a request to a user through the target terminal to The consultation information input by the medical consultation system; the discrimination module is used to call the preset neural network pre-classification model to pre-classify the target feature data, and determine the pre-classification result corresponding to the target feature data, the pre-classification The result includes a first type of data and a second type of data, the first type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information; the atlas reasoning module, if the target If the feature data is the first type of data, it is used to call the preset knowledge graph model and the first type of data to perform medical graph inference, generate the first diagnosis suggestion data and send it to the target terminal; the graph tree logic module, if the target feature data is the second type of
  • target feature data is obtained from the target terminal, and the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
  • the target feature data is pre-classified, and the pre-classification result corresponding to the target feature data is determined.
  • the pre-classification result includes the first type of data and the second type of data; if the target feature data is the first type of data, the preset knowledge graph model and Perform medical graph inference on the first type of data, generate first diagnostic suggestion data and send it to the target terminal; if the target feature data is the second type of data, perform medical graph query according to the preset knowledge graph decision tree model and the second type of data , generate multiple rounds of supplementary questions and send them to the target terminal; generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and target feature data; call the neural network pre-classification model to pre-classify the electronic medical record data until the second diagnosis suggestion is generated data and sent to the target terminal.
  • the embodiment of the present application reduces the online misdiagnosis rate, saves the consultation time of the Internet hospital, and improves the consultation efficiency of the Internet hospital per unit time.
  • FIG. 1 is a schematic diagram of an embodiment of a question-and-answer management method of a medical consultation system in an embodiment of the application;
  • FIG. 2 is a schematic diagram of another embodiment of the question-and-answer management method of the medical consultation system in the embodiment of the application;
  • FIG. 3 is a schematic diagram of an embodiment of a question-and-answer management device of a medical consultation system in an embodiment of the present application
  • FIG. 4 is a schematic diagram of another embodiment of the question and answer management device of the medical consultation system in the embodiment of the application;
  • FIG. 5 is a schematic diagram of an embodiment of a question and answer management device of a medical consultation system in an embodiment of the present application.
  • the present application provides a question and answer management method, device, equipment and storage medium for a medical consultation system, which are used to reduce the online misdiagnosis rate, save the consultation time of Internet hospitals, and improve the efficiency of Internet hospital consultations per unit time.
  • FIG. 1 a flowchart of a question-and-answer management method of a medical consultation system provided by an embodiment of the present application, which specifically includes:
  • the server receives the target feature data sent by the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal.
  • the consultation information includes the text of the consultation dialogue and the basic information of the target user
  • the basic information of the target user includes the age information of the target user, the gender information of the target user, and the main appeal information of the target user.
  • the execution subject of the present application may be a question-and-answer management device of a medical consultation system, or may be a server, which is not specifically limited here.
  • the embodiments of the present application take the server as an execution subject as an example for description.
  • each sentence needs to be segmented according to the word segmentation method of string matching.
  • the custom word segmentation vocabulary corresponding to different features is not the same, and the text collection can be clicked from left to right. Different characters are separated by spaces, and the text set here is the target feature data.
  • a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data, and the first type of data is consultation Data with complete information types, and the second type of data is data with missing medical information types.
  • the server calls the preset neural network pre-classification model to pre-classify the target feature data, and determines the pre-classification result corresponding to the target feature data.
  • the pre-classification result includes the first type of data and the second type of data, and the first type of data is consultation information. Data with complete types, and the second type of data is data with missing types of consultation information.
  • the pre-classification result not only includes the data type, that is, the pre-classification result is the first type of data or the second type of data, but also includes a pre-classification value (classification prediction value).
  • the server can judge the size of the target data according to the size of the pre-classification value. completeness. When the pre-classification value is greater than a certain threshold (such as the first threshold), it will prompt that the collected information is complete (that is, the data types are complete), the diagnosis can be completed, and the consultation is ended.
  • the server will prompt that the collected information is not complete (that is, the data type is incomplete or missing), which means that the knowledge graph decision tree model needs to be called to generate supplementary questions and Return to the target terminal of the target user, so that the target user can describe the supplementary questions and obtain more consultation information, wherein there are multiple supplementary questions, so as to obtain as much required consultation information as possible.
  • a certain threshold also the first threshold
  • the standard of whether the collected information is complete refers to the existence of necessary parameters in the target feature data
  • these necessary parameters include the text of the consultation dialogue, the age information of the target user, and the gender information of the target user.
  • the target user's main appeal information, case history information, keyword information, and category label information where the category label information mainly refers to the disease information that the target user may belong to.
  • the category labels corresponding to the target user may include labels such as "abnormal liver function", “abnormal visceral function", “alcohol”, "abnormal metabolism”, etc. The same user can correspond to multiple category labels. Repeat.
  • target feature data is the first type of data
  • the server invokes the preset knowledge graph model and the first type of data to perform medical graph inference, generates the first diagnosis suggestion data and sends it to the target terminal.
  • target feature data is the second type of data
  • perform medical map query according to the preset knowledge map decision tree model and the second type of data generate multiple rounds of supplementary questions, and send them to the target terminal.
  • the server performs a medical map query according to the preset knowledge map decision tree model and the second type of data, generates multiple rounds of supplementary questions, and sends them to the target terminal.
  • the server when it is judged that the collected information is incomplete (the second type of data), the server will input the relevant user information, output results and pre-diagnosis and diagnosis results as mixed fields into the medical graph query, and the graph will query the most likely relevant information in the knowledge base. Questions (that is, generating multiple rounds of supplementary questions) are pushed.
  • the supplementary information answered by the target user is extracted and integrated into the electronic medical record module of the medical consultation system through entity information extraction and integration to obtain updated data.
  • the updated data includes basic information such as symptom information, medical history information, and age. There are no restrictions.
  • the server generates electronic medical record data based on answers to multiple rounds of supplementary questions and target feature data.
  • the server invokes the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
  • the preset attention neural network model is used to judge the completeness of the target feature data, pre-classify the target feature data, and return the pre-classification result to the preset knowledge graph model for analysis, and return it to the target terminal
  • the key questions with the highest ranking are asked, which reduces the online misdiagnosis rate, saves the time of Internet hospital admissions, and improves the efficiency of Internet hospital admissions per unit time. And this solution can be applied in the field of smart medical care, thereby promoting the construction of smart cities.
  • FIG. 2 another flowchart of the question and answer management method of the medical consultation system provided by the embodiment of the present application, specifically including:
  • 201 Acquire target feature data from a target terminal, where the target feature data is used to indicate consultation information input by a target user to a medical consultation system through the target terminal.
  • the server receives the target feature data sent by the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal.
  • the consultation information includes the text of the consultation dialogue and the basic information of the target user
  • the basic information of the target user includes the age information of the target user, the gender information of the target user, and the main appeal information of the target user.
  • the execution subject of the present application may be a question-and-answer management device of a medical consultation system, or may be a server, which is not specifically limited here.
  • the embodiments of the present application take the server as an execution subject as an example for description.
  • each sentence needs to be segmented according to the word segmentation method of string matching.
  • the custom word segmentation vocabulary corresponding to different features is not the same, and the text collection can be clicked from left to right. Different characters are separated by spaces, and the text set here is the target feature data.
  • the training process of the neural network pre-classification model may also be included:
  • the server obtains multiple initial historical medical questionnaires, and performs desensitization processing on the multiple initial historical medical questionnaires to obtain desensitized candidate historical medical questionnaires; the server performs feature extraction on the desensitized candidate historical medical questionnaires, Obtain a plurality of candidate features, the candidate features at least include the dialogue text of the medical questionnaire, the user's age information, the user's gender information, the user's main appeal information, the doctor's diagnosis and treatment prescription information and the diagnosis information; the server determines the multiple candidate features as the preset template model the input data, the marked diagnostic label is determined as the output label of the preset template model, and the preset template model is trained; the server generates a preset neural network pre-classification model, and the neural network pre-classification model is used to perform two Classification.
  • a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data, and the first type of data is consultation Data with complete information types, and the second type of data is data with missing medical information types.
  • the pre-classification result not only includes the data type, that is, the pre-classification result is the first type of data or the second type of data, but also includes a pre-classification value (classification prediction value).
  • the server can judge the size of the target data according to the size of the pre-classification value. completeness. When the pre-classification value is greater than a certain threshold (such as the first threshold), it will prompt that the collected information is complete (that is, the data types are complete), the diagnosis can be completed, and the consultation is ended.
  • the server will prompt that the collected information is not complete (that is, the data type is incomplete or missing), which means that the knowledge graph decision tree model needs to be called to generate supplementary questions and Return to the target terminal of the target user, so that the target user can describe the supplementary questions and obtain more consultation information, wherein there are multiple supplementary questions, so as to obtain as much required consultation information as possible.
  • a certain threshold also the first threshold
  • the server invokes a preset neural network pre-classification model to pre-classify the target data, and determines the pre-classification value; the server determines whether the pre-classification value is greater than or equal to the first threshold; if the pre-classification value is greater than or equal to the first threshold, then The server determines that the pre-classification result corresponding to the target feature data is the first type of data, and the first type of data is data with complete types of consultation information; if the pre-classification value is less than the first threshold, the server determines that the pre-classification result corresponding to the target feature data is The second type of data, the second type of data is the data missing the type of consultation information.
  • the standard of whether the collected information is complete refers to the existence of necessary parameters in the target feature data
  • these necessary parameters include the text of the consultation dialogue, the age information of the target user, and the gender information of the target user.
  • the target user's main appeal information, case history information, keyword information, and category label information where the category label information mainly refers to the disease information that the target user may belong to.
  • the category labels corresponding to the target user may include labels such as "abnormal liver function", “abnormal visceral function", “alcohol”, "abnormal metabolism”, etc. The same user can correspond to multiple category labels. Repeat.
  • calling a preset neural network pre-classification model to pre-classify the target data and determining the pre-classification value includes: the server invoking multiple preset encoders to perform fixed-length encoding on the target data, and generating multiple fixed-dimensional vectors , wherein the multiple preset encoders include a plain text encoder, a case history encoder, a user information encoder, a key keyword encoder and a category label encoder, and the fixed-dimensional vectors include user basic information vector, historical information vector and The current inquiry mainly requires information vectors; the server inputs multiple fixed-dimensional vectors into the preset neural network pre-classification model to generate prediction vectors; the server scores the prediction vectors to obtain the pre-classification value of the target data.
  • the target feature data is the first type of data
  • the server determines the question and answer keywords involved in the first type of data; the server determines the corresponding graph node in the medical knowledge graph of the preset knowledge graph model according to the question and answer keywords; The server performs a pruning operation on the medical knowledge graph, and obtains a pruned medical knowledge graph.
  • the pruned medical knowledge graph does not contain corresponding graph nodes.
  • the pruning is to delete the question and answer keywords that have been obtained in the target feature data from the medical knowledge graph, and then perform reasoning based on the deleted medical knowledge graph to avoid duplicate data in the medical graph reasoning process. .
  • the server performs decision tree parsing on the pruned medical knowledge graph to obtain parsing results.
  • the server determines the first diagnosis suggestion data based on the analysis result and the preset recommendation relationship table, and sends the first diagnosis suggestion data to the target terminal. For example, when the analysis result is diabetes, the server calls the preset recommendation relation table, and queries the recommendation relation table to obtain multiple diabetes treatment plans; the server scores the multiple diabetes treatment plans according to the preset scoring rules, and obtains the corresponding multiple treatment plans. The scores are sorted in descending order according to the scores, and a treatment recommendation list is obtained.
  • the treatment recommendation list includes multiple diabetes treatment plans; the server sends the top two diabetes treatment plans in the treatment recommendation list. to the target terminal.
  • target feature data is the second type of data
  • the server performs a medical map query according to the preset knowledge map decision tree model and the second type of data, generates multiple rounds of supplementary questions, and sends them to the target terminal.
  • the server when it is judged that the collected information is incomplete (the second type of data), the server will input the relevant user information, output results and pre-diagnosis and diagnosis results as mixed fields into the medical graph query, and the graph will query the most likely relevant information in the knowledge base. Questions (that is, generating multiple rounds of supplementary questions) are pushed.
  • the supplementary information answered by the target user is extracted and integrated into the electronic medical record module of the medical consultation system through entity information extraction and integration to obtain updated data.
  • the updated data includes basic information such as symptom information, medical history information, and age. There are no restrictions.
  • step 206 the construction process of the knowledge graph decision tree model is also included, and the specific process is as follows:
  • Knowledge graph decision tree model Knowledge graph decision tree model.
  • A) can be understood as the degree to which the uncertainty of the classification of the sample data set D is reduced due to the feature A, that is, the feature with large information gain has a stronger classification ability.
  • the construction process of the knowledge graph decision tree model can also be performed before step 201 .
  • the server generates electronic medical record data based on answers to multiple rounds of supplementary questions and target feature data.
  • the server invokes the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
  • the preset attention neural network model is used to judge the completeness of the target feature data, pre-classify the target feature data, and return the pre-classification result to the preset knowledge graph model for analysis, and return it to the target terminal
  • the key questions with the highest ranking are asked, which reduces the online misdiagnosis rate, saves the time of Internet hospital admissions, and improves the efficiency of Internet hospital admissions per unit time. And this solution can be applied in the field of smart medical care, thereby promoting the construction of smart cities.
  • An embodiment of the question and answer management device includes:
  • a data acquisition module 301 configured to acquire target feature data from a target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
  • the discrimination module 302 is used to call a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data.
  • Type data the first type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information;
  • the graph reasoning module 303 if the target feature data is the first type of data, is used to call the preset knowledge graph model and the first type of data to perform medical graph reasoning, generate the first diagnosis suggestion data and send it to the target terminal;
  • the map tree logic module 304 if the target feature data is the second type of data, is used to perform medical map query according to the preset knowledge map decision tree model and the second type of data, and generate multiple rounds of supplementary questions and sent to the target terminal;
  • an electronic medical record module 305 configured to generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data;
  • the discriminating module 302 is further configured to call the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
  • the preset attention neural network model is used to judge the completeness of the target feature data, pre-classify the target feature data, and return the pre-classification result to the preset knowledge graph model for analysis, and return it to the target terminal
  • the key questions with the highest ranking are asked, which reduces the online misdiagnosis rate, saves the time of Internet hospital admissions, and improves the efficiency of Internet hospital admissions per unit time. And this solution can be applied in the field of smart medical care, thereby promoting the construction of smart cities.
  • FIG. 4 another embodiment of the question and answer management device of the medical consultation system in the embodiment of the present application includes:
  • a data acquisition module 301 configured to acquire target feature data from a target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
  • the discrimination module 302 is used to call a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data.
  • Type data the first type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information;
  • the graph reasoning module 303 if the target feature data is the first type of data, is used to call the preset knowledge graph model and the first type of data to perform medical graph reasoning, generate the first diagnosis suggestion data and send it to the target terminal;
  • the map tree logic module 304 if the target feature data is the second type of data, is used to perform medical map query according to the preset knowledge map decision tree model and the second type of data, and generate multiple rounds of supplementary questions and sent to the target terminal;
  • an electronic medical record module 305 configured to generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data;
  • the discriminating module 302 is further configured to call the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
  • the discriminating module 302 includes:
  • the pre-classification unit 3021 is used to call the preset neural network pre-classification model to pre-classify the target data, and determine the pre-classification value;
  • Judging unit 3022 for judging whether the pre-classification value is greater than or equal to the first threshold
  • the first determining unit 3023 if the pre-classification value is greater than or equal to the first threshold value, is used to determine that the pre-classification result corresponding to the target feature data is the first type of data, and the first type of data is consultation Data with complete information types;
  • the second determining unit 3024 is configured to, if the pre-classification value is less than the first threshold, determine that the pre-classification result corresponding to the target feature data is the second type of data, and the second type of data is consultation Information type missing data.
  • the pre-classification unit 3021 is specifically used for:
  • multiple preset encoders to perform fixed-length encoding on target data, and generate multiple fixed-dimensional vectors, where multiple preset encoders include plain text encoders, case history encoders, user information encoders, and key keywords
  • An encoder and a category label encoder the fixed-dimensional vectors include user basic information vectors, historical information vectors, and current consultation main appeal information vectors; input the multiple fixed-dimensional vectors into the preset neural network
  • a prediction vector is generated; the prediction vector is scored to obtain the pre-classification value of the target data.
  • the graph reasoning module 303 includes:
  • the pruning unit 3031 is configured to perform a pruning operation on the medical knowledge map in the preset knowledge map model according to the first type of data, if the target feature data is the first type of data, to obtain a pruning operation Post-medical knowledge graph;
  • the parsing unit 3032 is configured to perform decision tree parsing on the pruned medical knowledge graph to obtain parsing results
  • a determination sending unit 3033 configured to determine first diagnosis suggestion data based on the analysis result and the preset recommendation relationship table, and send the first diagnosis suggestion data to the target terminal.
  • the pruning unit 3031 is specifically used for:
  • the target feature data is the first type of data
  • determine the question and answer keywords involved in the first type of data determine the corresponding question and answer keywords in the medical knowledge graph of the preset knowledge graph model according to the question and answer keywords A graph node; perform a pruning operation on the medical knowledge graph to obtain a pruned medical knowledge graph, where the pruned medical knowledge graph does not include the corresponding graph nodes.
  • the preset recommendation relationship table is called, and multiple diabetes treatment plans are obtained by querying the recommendation relationship table; the multiple diabetes treatment plans are scored according to the preset scoring rules, and the corresponding multiple treatment plans are obtained. score, and sort according to the multiple scores in descending order to obtain a treatment recommendation list, where the treatment recommendation list includes the multiple diabetes treatment plans; before sorting the treatment recommendation list Two diabetes treatment plans are sent to the target terminal.
  • the question and answer management device of the medical consultation system further includes:
  • a medical order obtaining module 306 configured to obtain a plurality of initial historical medical questions, and perform desensitization processing on the plurality of initial historical medical surveys to obtain desensitized candidate historical medical surveys;
  • the feature extraction module 307 is configured to perform feature extraction on the desensitized candidate historical medical questionnaires to obtain a plurality of candidate features, and the candidate features at least include the dialogue text of the medical questionnaires, user age information, user gender information, user The main appeal information, doctor's diagnosis and treatment prescription information and diagnosis information;
  • a training module 308, configured to determine the multiple candidate features as the input data of the preset template model, determine the marked diagnostic label as the output label of the preset template model, and train the preset template model;
  • the generating module 309 is configured to generate a preset neural network pre-classification model, where the neural network pre-classification model is used to perform binary classification on the data.
  • the preset attention neural network model is used to judge the completeness of the target feature data, pre-classify the target feature data, and return the pre-classification result to the preset knowledge graph model for analysis, and return it to the target terminal
  • the key questions with the highest ranking are asked, which reduces the online misdiagnosis rate, saves the time for Internet hospital admissions, and improves the efficiency of Internet hospital admissions per unit time.
  • this solution can be applied in the field of smart medical care, so as to promote the construction of smart city.
  • Figures 3 to 4 above describe in detail the question and answer management device of the medical consultation system in the embodiment of the present application from the perspective of modular functional entities.
  • the following is a description of the question and answer management device of the medical consultation system in the embodiment of the present application from the perspective of hardware processing. Describe in detail.
  • the question-and-answer management device 500 of the medical consultation system may vary greatly due to different configurations or performances, and may include one or more One or more central processing units (CPUs) 510 (eg, one or more processors) and memory 520, one or more storage media 530 (eg, one or more mass storage devices) that store applications 533 or data 532 ).
  • CPUs central processing units
  • storage media 530 eg, one or more mass storage devices
  • the memory 520 and the storage medium 530 may be short-term storage or persistent storage.
  • the program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the question-and-answer management device 500 of the medical consultation system. Furthermore, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the question-and-answer management device 500 of the medical consultation system.
  • the question and answer management device 500 of the medical consultation system may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and/or, one or more operating systems 531 , such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
  • operating systems 531 such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
  • the processor 510 can execute the data acquisition module 301, the discrimination module 302, the atlas inference module 303, the atlas tree logic module 304, the electronic medical record module 305, the medical order acquisition module 306, the feature extraction module 307, the training module 308 and The function of the generation module 309 .
  • the present application also provides a question-and-answer management device for a medical consultation system, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected through a line; the at least one processor A processor invokes the instructions in the memory, so that the question and answer management device of the medical consultation system executes the steps in the question and answer management method of the medical consultation system.
  • the present application also provides a computer-readable storage medium, and the computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium.
  • the computer-readable storage medium stores computer instructions, which, when executed on the computer, cause the computer to perform the following steps:
  • target feature data from the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
  • a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data.
  • One type of data is data with complete types of consultation information
  • the second type of data is data with missing types of consultation information;
  • target feature data is the first type of data
  • call the preset knowledge graph model and the first type of data to perform medical graph inference, generate first diagnosis suggestion data, and send it to the target terminal;
  • target feature data is the second type of data
  • the neural network pre-classification model is invoked to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Epidemiology (AREA)
  • Human Computer Interaction (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Animal Behavior & Ethology (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Medical Treatment And Welfare Office Work (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A question and answer management method, apparatus, and device for a medical inquiry system, and a storage medium, applied to the field of wisdom medical treatment and capable of reducing the online misdiagnosis rate. The method comprises: obtaining target feature data from a target terminal; calling a preset neural network pre-classification model to pre-classify the target feature data; if the target feature data is a first type of data, calling a preset knowledge graph model and the first type of data to perform medical graph reasoning to generate first diagnosis suggestion data and send same to the target terminal; if the target feature data is a second type of data, performing medical graph query according to a preset knowledge graph decision tree model and the second type of data to generate multiple supplemental problems and send same to the target terminal; generating electronic medical record data; and calling the neural network pre-classification model to reperform pre-classification processing on the electronic medical record data until second diagnosis suggestion data is generated and sent to the target terminal.

Description

医疗问诊系统的问答管理方法、装置、设备及存储介质Question and answer management method, device, equipment and storage medium for medical consultation system
本申请要求于2020年8月28日提交中国专利局、申请号为202010884354.2、发明名称为“医疗问诊系统的问答管理方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of the Chinese patent application filed on August 28, 2020 with the application number 202010884354.2 and the invention titled "Q&A management method, device, equipment and storage medium for medical consultation system", all of which are The contents are incorporated by reference in the application.
技术领域technical field
本申请涉及医疗数据领域,尤其涉及一种医疗问诊系统的问答管理方法、装置、设备及存储介质。The present application relates to the field of medical data, and in particular, to a question and answer management method, apparatus, device and storage medium for a medical consultation system.
背景技术Background technique
互联网医疗是人工智能应用的重要领域。随着技术的快速发展,移动医疗已经向诊疗阶靠拢和突破。近年来,线上问诊越来越普及,单日线上问诊量早已突破百万级日均规模,线上医生资源不足,线上问诊服务效率不高已成为突出问题。正因如此,高质量的计算机辅助医疗系统开发已成为各大公司和科研机构研发突破的重点领域。人工智能系统,尤其是自然语言理解,在算法和算力的大幅突破的背景下,这一命题的解决逐渐成为可能。Internet medical treatment is an important field of artificial intelligence application. With the rapid development of technology, mobile medical has moved closer to the diagnosis and treatment level and made breakthroughs. In recent years, online consultation has become more and more popular, and the number of online consultations in a single day has already exceeded the average daily scale of one million. The shortage of online doctor resources and the low efficiency of online consultation services have become prominent problems. Because of this, the development of high-quality computer-aided medical systems has become a key area of research and development breakthroughs in major companies and scientific research institutions. Artificial intelligence systems, especially natural language understanding, have gradually become possible to solve this proposition in the context of significant breakthroughs in algorithms and computing power.
发明人意识到,传统的自动化问诊流程是通过定义好的问诊流程图提出预设好的问题,收集用户的信息,这种方案会依次抛出预设好的问诊路径,一旦路径设定好系统不会依据用户的具体情况进行跳跃和切换。因为互联网医院受限于医疗本身复杂的特殊性和互联网中物理空间隔离的特点,预设的问题与用户的需求不匹配,导致线上误诊率高。The inventor realized that the traditional automated consultation process is to ask preset questions through a defined consultation flow chart and collect user information. This solution will throw out the preset consultation paths in turn. It is determined that the system will not jump and switch according to the specific situation of the user. Because Internet hospitals are limited by the complex nature of medical care and the characteristics of physical space isolation in the Internet, the preset problems do not match the needs of users, resulting in a high rate of online misdiagnosis.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种医疗问诊系统的问答管理方法、装置、设备及存储介质,用于精准识别用户咨询的医学领域意图,提高了医疗问诊系统的问答管理结果的准确度。The present application provides a question and answer management method, device, equipment and storage medium for a medical consultation system, which are used to accurately identify the medical field intention of a user consultation and improve the accuracy of the question and answer management results of the medical consultation system.
为实现上述目的,本申请第一方面提供了一种医疗问诊系统的问答管理方法,包括:从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终端向医疗问诊系统输入的问诊信息;调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;若所述目标特征数据为所述第一类数据,则调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;若所述目标特征数据为所述第二类数据,则根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。In order to achieve the above object, a first aspect of the present application provides a question-and-answer management method for a medical consultation system, including: acquiring target feature data from a target terminal, where the target feature data is used to instruct a target user to contact a medical practitioner through the target terminal. The consultation information input by the consultation system; the preset neural network pre-classification model is called to pre-classify the target feature data, and the pre-classification result corresponding to the target feature data is determined, and the pre-classification result includes the first type of data and the second type of data, the first type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information; if the target feature data is the first type of data, Then call the preset knowledge graph model and the first type of data to perform medical graph reasoning, generate the first diagnosis suggestion data and send it to the target terminal; if the target feature data is the second type of data, according to The preset knowledge graph decision tree model and the second type of data perform medical graph query, generate multiple rounds of supplementary questions and send them to the target terminal; generate electronic data according to the answers to the multiple rounds of supplementary questions and the target feature data. Medical record data; invoking the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
本申请第二方面提供了一种医疗问诊系统的问答管理设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终端向医疗问诊系统输入的问诊信息;调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;若所述目标特征数据为所述第一类数据,则调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;若所述目标特征数据为所述第二类数据,则根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。A second aspect of the present application provides a question and answer management device for a medical consultation system, including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, and the processor executes The computer-readable instructions implement the following steps: acquiring target feature data from the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal; The network pre-classification model pre-classifies the target feature data, and determines the pre-classification result corresponding to the target feature data. The pre-classification result includes the first type of data and the second type of data, and the first type of data is the question. If the target feature data is the first type of data, the preset knowledge graph model and the first type of data are called Perform medical graph reasoning on the data, generate first diagnosis suggestion data and send it to the target terminal; if the target feature data is the second type of data, then according to the preset knowledge graph decision tree model, the second type Perform medical map query on the data, generate multiple rounds of supplementary questions and send them to the target terminal; generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data; call the neural network pre-classification model to The electronic medical record data is pre-classified again until the second diagnosis suggestion data is generated and sent to the target terminal.
本申请第三方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终端向医疗问诊系统输入的问诊信息;调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;若所述目标特征数据为所述第一类数据,则调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;若所述目标特征数据为所述第二类数据,则根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。A third aspect of the present application provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on a computer, the computer is caused to perform the following steps: obtaining a target from a target terminal Feature data, the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal; call the preset neural network pre-classification model to pre-classify the target feature data, and determine the The pre-classification result corresponding to the target feature data, the pre-classification result includes the first type of data and the second type of data, the first type of data is the data with complete types of consultation information, and the second type of data is the consultation Data with missing information types; if the target feature data is the first type of data, call the preset knowledge graph model and the first type of data to perform medical graph inference, generate the first diagnosis suggestion data and send it to the the target terminal; if the target feature data is the second type of data, perform medical map query according to the preset knowledge map decision tree model and the second type of data, generate multiple rounds of supplementary questions and send them to the target terminal; generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data; invoke the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
本申请第四方面提供了一种医疗问诊系统的问答管理装置,包括:数据获取模块,用于从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终端向医疗问诊系统输入的问诊信息;判别模块,用于调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;图谱推理模块,若所述目标特征数据为所述第一类数据,则用于调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;图谱树形逻辑模块,若所述目标特征数据为所述第二类数据,则用于根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;电子病历模块,用于根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;所述判别模块,还用于调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。A fourth aspect of the present application provides a question-and-answer management device for a medical consultation system, comprising: a data acquisition module configured to acquire target feature data from a target terminal, where the target feature data is used to instruct a target user to send a request to a user through the target terminal to The consultation information input by the medical consultation system; the discrimination module is used to call the preset neural network pre-classification model to pre-classify the target feature data, and determine the pre-classification result corresponding to the target feature data, the pre-classification The result includes a first type of data and a second type of data, the first type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information; the atlas reasoning module, if the target If the feature data is the first type of data, it is used to call the preset knowledge graph model and the first type of data to perform medical graph inference, generate the first diagnosis suggestion data and send it to the target terminal; the graph tree logic module, if the target feature data is the second type of data, it is used to perform medical map query according to the preset knowledge map decision tree model and the second type of data, generate multiple rounds of supplementary questions and send them to the a target terminal; an electronic medical record module for generating electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data; The data is pre-classified again until the second diagnostic suggestion data is generated and sent to the target terminal.
本申请实施例提供的技术方案中,从目标终端获取目标特征数据,目标特征数据用于指示目标用户通过目标终端向医疗问诊系统输入的问诊信息;调用预置的神经网络预分类模型对目标特征数据进行预分类,判定目标特征数据对应的预分类结果,预分类结果包括第一类数据和第二类数据;若目标特征数据为第一类数据,则调用预置的知识图谱模型和第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至目标终端;若目标特征数据为第二类数据,则根据预置的知识图谱决策树模型、第二类数据进行医疗图谱查询,生成多轮补充问题并发送至目标终端;根据多轮补充问题的答案和目标特征数据生成电子病历数据;调用神经网络预分类模型对电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至目标终端。本申请实施例,降低了线上误诊率,节省互联网医院接诊时间,提高了单位时间内互联网医院的接诊效率。In the technical solution provided by the embodiment of the present application, target feature data is obtained from the target terminal, and the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal; The target feature data is pre-classified, and the pre-classification result corresponding to the target feature data is determined. The pre-classification result includes the first type of data and the second type of data; if the target feature data is the first type of data, the preset knowledge graph model and Perform medical graph inference on the first type of data, generate first diagnostic suggestion data and send it to the target terminal; if the target feature data is the second type of data, perform medical graph query according to the preset knowledge graph decision tree model and the second type of data , generate multiple rounds of supplementary questions and send them to the target terminal; generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and target feature data; call the neural network pre-classification model to pre-classify the electronic medical record data until the second diagnosis suggestion is generated data and sent to the target terminal. The embodiment of the present application reduces the online misdiagnosis rate, saves the consultation time of the Internet hospital, and improves the consultation efficiency of the Internet hospital per unit time.
附图说明Description of drawings
图1为本申请实施例中医疗问诊系统的问答管理方法的一个实施例示意图;1 is a schematic diagram of an embodiment of a question-and-answer management method of a medical consultation system in an embodiment of the application;
图2为本申请实施例中医疗问诊系统的问答管理方法的另一个实施例示意图;2 is a schematic diagram of another embodiment of the question-and-answer management method of the medical consultation system in the embodiment of the application;
图3为本申请实施例中医疗问诊系统的问答管理装置的一个实施例示意图;3 is a schematic diagram of an embodiment of a question-and-answer management device of a medical consultation system in an embodiment of the present application;
图4为本申请实施例中医疗问诊系统的问答管理装置的另一个实施例示意图;4 is a schematic diagram of another embodiment of the question and answer management device of the medical consultation system in the embodiment of the application;
图5为本申请实施例中医疗问诊系统的问答管理设备的一个实施例示意图。FIG. 5 is a schematic diagram of an embodiment of a question and answer management device of a medical consultation system in an embodiment of the present application.
具体实施方式detailed description
本申请提供了一种医疗问诊系统的问答管理方法、装置、设备及存储介质,用于降低线上误诊率,节省互联网医院接诊时间,提高了单位时间内互联网医院接诊效率。The present application provides a question and answer management method, device, equipment and storage medium for a medical consultation system, which are used to reduce the online misdiagnosis rate, save the consultation time of Internet hospitals, and improve the efficiency of Internet hospital consultations per unit time.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例进行描述。In order to make those skilled in the art better understand the solutions of the present application, the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”或“具有”及其任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed steps or units, but may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
请参阅图1,本申请实施例提供的医疗问诊系统的问答管理方法的流程图,具体包括:Please refer to FIG. 1 , a flowchart of a question-and-answer management method of a medical consultation system provided by an embodiment of the present application, which specifically includes:
101、从目标终端获取目标特征数据,目标特征数据用于指示目标用户通过目标终端向医疗问诊系统输入的问诊信息。101. Acquire target feature data from a target terminal, where the target feature data is used to indicate consultation information input by a target user to a medical consultation system through the target terminal.
服务器接收目标终端发送的目标特征数据,该目标特征数据用于指示目标用户通过目标终端向医疗问诊系统输入的问诊信息。其中,问诊信息包括问诊对话文本和目标用户的基础信息,该目标用户的基础信息包括目标用户的年龄信息、目标用户的性别信息以及目标用户的主要诉求信息。The server receives the target feature data sent by the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal. Wherein, the consultation information includes the text of the consultation dialogue and the basic information of the target user, and the basic information of the target user includes the age information of the target user, the gender information of the target user, and the main appeal information of the target user.
可以理解的是,本申请的执行主体可以为医疗问诊系统的问答管理装置,还可以是服务器,具体此处不做限定。本申请实施例以服务器为执行主体为例进行说明。It can be understood that the execution subject of the present application may be a question-and-answer management device of a medical consultation system, or may be a server, which is not specifically limited here. The embodiments of the present application take the server as an execution subject as an example for description.
需要说明的是,在获取目标特征数据时,需要按照字符串匹配的分词方法对各个语句进行切分,其中不同特征对应的自定义分词词表不尽相同,文本集合可以按从左至右按不同字符空格隔开,这里的文本集合即为目标特征数据。It should be noted that when obtaining the target feature data, each sentence needs to be segmented according to the word segmentation method of string matching. The custom word segmentation vocabulary corresponding to different features is not the same, and the text collection can be clicked from left to right. Different characters are separated by spaces, and the text set here is the target feature data.
102、调用预置的神经网络预分类模型对目标特征数据进行预分类,判定目标特征数据对应的预分类结果,预分类结果包括第一类数据和第二类数据,第一类数据为问诊信息类型齐全的数据,第二类数据为问诊信息类型缺失的数据。102. Invoke a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data, and the first type of data is consultation Data with complete information types, and the second type of data is data with missing medical information types.
服务器调用预置的神经网络预分类模型对目标特征数据进行预分类,判定目标特征数据对应的预分类结果,预分类结果包括第一类数据和第二类数据,第一类数据为问诊信息类型齐全的数据,第二类数据为问诊信息类型缺失的数据。The server calls the preset neural network pre-classification model to pre-classify the target feature data, and determines the pre-classification result corresponding to the target feature data. The pre-classification result includes the first type of data and the second type of data, and the first type of data is consultation information. Data with complete types, and the second type of data is data with missing types of consultation information.
其中,预分类结果除了包括数据类型,即预分类结果为第一类数据或第二类数据,还包括一个预分类值(分类预测值),服务器可以根据预分类值的大小,判断目标数据的完整程度。当该预分类值大于某一阈值(如第一阈值),会提示收集信息完备(即数据类型齐全)已能完成诊断,并结束问诊。同样,当该预分类值小于某一阈值(同样为第一阈值)时,服务器会提示收集信息不够完备(即数据类型不齐全,缺失),即表明需要调用知识图谱决策树模型生成补充问题并返回到目标用户的目标终端,以使得目标用户对补充问题进行描述,获取更多的问诊信息,其中,补充问题为多个,以便尽可能多的获取需要的问诊信息。The pre-classification result not only includes the data type, that is, the pre-classification result is the first type of data or the second type of data, but also includes a pre-classification value (classification prediction value). The server can judge the size of the target data according to the size of the pre-classification value. completeness. When the pre-classification value is greater than a certain threshold (such as the first threshold), it will prompt that the collected information is complete (that is, the data types are complete), the diagnosis can be completed, and the consultation is ended. Similarly, when the pre-classification value is less than a certain threshold (also the first threshold), the server will prompt that the collected information is not complete (that is, the data type is incomplete or missing), which means that the knowledge graph decision tree model needs to be called to generate supplementary questions and Return to the target terminal of the target user, so that the target user can describe the supplementary questions and obtain more consultation information, wherein there are multiple supplementary questions, so as to obtain as much required consultation information as possible.
需要说明的是,收集信息是否完备(即数据类型是否齐全)的标准是指目标特征数据中存在必要的参数,这些必要的参数包括问诊对话文本、目标用户的年龄信息、目标用户的性别信息、目标用户的主要诉求信息、病例历史信息、关键字信息以及类别标签信息,其中,类别标签信息主要指目标用户可能属于的病种信息,例如,目标用户如果在文本对话中提及关键字“肝”,那么该目标用户可能对应的类别标签包括“肝功能异常”、“内脏功能异常”、“酒精”、“新陈代谢异常”等标签,同一个用户可以对应多个类别标签,具体此处不再赘述。It should be noted that the standard of whether the collected information is complete (that is, whether the data type is complete) refers to the existence of necessary parameters in the target feature data, and these necessary parameters include the text of the consultation dialogue, the age information of the target user, and the gender information of the target user. , the target user's main appeal information, case history information, keyword information, and category label information, where the category label information mainly refers to the disease information that the target user may belong to. For example, if the target user mentions keywords in the text dialogue " Liver", then the category labels corresponding to the target user may include labels such as "abnormal liver function", "abnormal visceral function", "alcohol", "abnormal metabolism", etc. The same user can correspond to multiple category labels. Repeat.
103、若目标特征数据为第一类数据,则调用预置的知识图谱模型和第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至目标终端。103. If the target feature data is the first type of data, call the preset knowledge graph model and the first type of data to perform medical graph inference, generate the first diagnosis suggestion data, and send it to the target terminal.
若目标特征数据为第一类数据,则服务器调用预置的知识图谱模型和第一类数据进行 医疗图谱推理,生成第一诊断建议数据并发送至目标终端。If the target feature data is the first type of data, the server invokes the preset knowledge graph model and the first type of data to perform medical graph inference, generates the first diagnosis suggestion data and sends it to the target terminal.
104、若目标特征数据为第二类数据,则根据预置的知识图谱决策树模型、第二类数据进行医疗图谱查询,生成多轮补充问题并发送至目标终端。104. If the target feature data is the second type of data, perform medical map query according to the preset knowledge map decision tree model and the second type of data, generate multiple rounds of supplementary questions, and send them to the target terminal.
具体的,若目标特征数据为第二类数据,则服务器根据预置的知识图谱决策树模型、第二类数据进行医疗图谱查询,生成多轮补充问题并发送至目标终端。Specifically, if the target feature data is the second type of data, the server performs a medical map query according to the preset knowledge map decision tree model and the second type of data, generates multiple rounds of supplementary questions, and sends them to the target terminal.
具体的,当判断收集信息不完备(为第二类数据)时,服务器会将相关用户信息、输出结果和预诊诊断结果作为混合字段输入到医疗图谱查询,图谱查询知识库中最可能的相关问题(即生成多轮补充问题)进行推送。Specifically, when it is judged that the collected information is incomplete (the second type of data), the server will input the relevant user information, output results and pre-diagnosis and diagnosis results as mixed fields into the medical graph query, and the graph will query the most likely relevant information in the knowledge base. Questions (that is, generating multiple rounds of supplementary questions) are pushed.
多轮补充问题会组织成im消息的形式展现在目标终端。将目标用户回答的补充信息,经过实体信息抽取和整合录入进医疗问诊系统的电子病历模块,得到更新后的数据,该更新后的数据包括病征信息、病史信息、年龄等基础信息,具体此处不做限定。Multiple rounds of supplementary questions are organized into im messages and displayed on the target terminal. The supplementary information answered by the target user is extracted and integrated into the electronic medical record module of the medical consultation system through entity information extraction and integration to obtain updated data. The updated data includes basic information such as symptom information, medical history information, and age. There are no restrictions.
105、根据多轮补充问题的答案和目标特征数据生成电子病历数据。105. Generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data.
服务器根据多轮补充问题的答案和目标特征数据生成电子病历数据。The server generates electronic medical record data based on answers to multiple rounds of supplementary questions and target feature data.
106、调用神经网络预分类模型对电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至目标终端。106. Invoke the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
服务器调用神经网络预分类模型对电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至目标终端。The server invokes the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
本申请实施例,通过预置的注意力神经网络模型对目标特征数据完备程度判断,对目标特征数据进行预分类,并通过预分类结果返回到预置的知识图谱模型进行解析,返回给目标终端排名最高的关键问题进行提问,降低了线上误诊率,节省互联网医院接诊时间,提高了单位时间内互联网医院的接诊效率。并且本方案可应用于智慧医疗领域中,从而推动智慧城市的建设。In this embodiment of the present application, the preset attention neural network model is used to judge the completeness of the target feature data, pre-classify the target feature data, and return the pre-classification result to the preset knowledge graph model for analysis, and return it to the target terminal The key questions with the highest ranking are asked, which reduces the online misdiagnosis rate, saves the time of Internet hospital admissions, and improves the efficiency of Internet hospital admissions per unit time. And this solution can be applied in the field of smart medical care, thereby promoting the construction of smart cities.
请参阅图2,本申请实施例提供的医疗问诊系统的问答管理方法的另一个流程图,具体包括:Please refer to FIG. 2, another flowchart of the question and answer management method of the medical consultation system provided by the embodiment of the present application, specifically including:
201、从目标终端获取目标特征数据,目标特征数据用于指示目标用户通过目标终端向医疗问诊系统输入的问诊信息。201. Acquire target feature data from a target terminal, where the target feature data is used to indicate consultation information input by a target user to a medical consultation system through the target terminal.
服务器接收目标终端发送的目标特征数据,该目标特征数据用于指示目标用户通过目标终端向医疗问诊系统输入的问诊信息。其中,问诊信息包括问诊对话文本和目标用户的基础信息,该目标用户的基础信息包括目标用户的年龄信息、目标用户的性别信息以及目标用户的主要诉求信息。The server receives the target feature data sent by the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal. Wherein, the consultation information includes the text of the consultation dialogue and the basic information of the target user, and the basic information of the target user includes the age information of the target user, the gender information of the target user, and the main appeal information of the target user.
可以理解的是,本申请的执行主体可以为医疗问诊系统的问答管理装置,还可以是服务器,具体此处不做限定。本申请实施例以服务器为执行主体为例进行说明。It can be understood that the execution subject of the present application may be a question-and-answer management device of a medical consultation system, or may be a server, which is not specifically limited here. The embodiments of the present application take the server as an execution subject as an example for description.
需要说明的是,在获取目标特征数据时,需要按照字符串匹配的分词方法对各个语句进行切分,其中不同特征对应的自定义分词词表不尽相同,文本集合可以按从左至右按不同字符空格隔开,这里的文本集合即为目标特征数据。It should be noted that when obtaining the target feature data, each sentence needs to be segmented according to the word segmentation method of string matching. The custom word segmentation vocabulary corresponding to different features is not the same, and the text collection can be clicked from left to right. Different characters are separated by spaces, and the text set here is the target feature data.
可选的,在步骤201之前,还可以包括神经网络预分类模型的训练过程:Optionally, before step 201, the training process of the neural network pre-classification model may also be included:
服务器获取多个初始历史问诊单,并对多个初始历史问诊单进行脱敏处理,得到脱敏后的候选历史问诊单;服务器对脱敏后的候选历史问诊单进行特征提取,得到多个候选特征,候选特征至少包括问诊单对话文本、用户年龄信息、用户性别信息、用户的主要诉求信息、医生诊疗处方信息和诊断信息;服务器将多个候选特征确定为预置模板模型的输入数据,将标注过的诊断标签确定为预置模板模型的输出标签,对预置模板模型进行训练;服务器生成预置的神经网络预分类模型,神经网络预分类模型用于对数据进行二分类。The server obtains multiple initial historical medical questionnaires, and performs desensitization processing on the multiple initial historical medical questionnaires to obtain desensitized candidate historical medical questionnaires; the server performs feature extraction on the desensitized candidate historical medical questionnaires, Obtain a plurality of candidate features, the candidate features at least include the dialogue text of the medical questionnaire, the user's age information, the user's gender information, the user's main appeal information, the doctor's diagnosis and treatment prescription information and the diagnosis information; the server determines the multiple candidate features as the preset template model the input data, the marked diagnostic label is determined as the output label of the preset template model, and the preset template model is trained; the server generates a preset neural network pre-classification model, and the neural network pre-classification model is used to perform two Classification.
202、调用预置的神经网络预分类模型对目标特征数据进行预分类,判定目标特征数据对应的预分类结果,预分类结果包括第一类数据和第二类数据,第一类数据为问诊信息类 型齐全的数据,第二类数据为问诊信息类型缺失的数据。202. Invoke a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data, and the first type of data is consultation Data with complete information types, and the second type of data is data with missing medical information types.
其中,预分类结果除了包括数据类型,即预分类结果为第一类数据或第二类数据,还包括一个预分类值(分类预测值),服务器可以根据预分类值的大小,判断目标数据的完整程度。当该预分类值大于某一阈值(如第一阈值),会提示收集信息完备(即数据类型齐全)已能完成诊断,并结束问诊。同样,当该预分类值小于某一阈值(同样为第一阈值)时,服务器会提示收集信息不够完备(即数据类型不齐全,缺失),即表明需要调用知识图谱决策树模型生成补充问题并返回到目标用户的目标终端,以使得目标用户对补充问题进行描述,获取更多的问诊信息,其中,补充问题为多个,以便尽可能多的获取需要的问诊信息。The pre-classification result not only includes the data type, that is, the pre-classification result is the first type of data or the second type of data, but also includes a pre-classification value (classification prediction value). The server can judge the size of the target data according to the size of the pre-classification value. completeness. When the pre-classification value is greater than a certain threshold (such as the first threshold), it will prompt that the collected information is complete (that is, the data types are complete), the diagnosis can be completed, and the consultation is ended. Similarly, when the pre-classification value is less than a certain threshold (also the first threshold), the server will prompt that the collected information is not complete (that is, the data type is incomplete or missing), which means that the knowledge graph decision tree model needs to be called to generate supplementary questions and Return to the target terminal of the target user, so that the target user can describe the supplementary questions and obtain more consultation information, wherein there are multiple supplementary questions, so as to obtain as much required consultation information as possible.
具体的,服务器调用预置的神经网络预分类模型对目标数据进行预分类,确定预分类值;服务器判断预分类值是否大于或等于第一阈值;若预分类值大于或等于第一阈值,则服务器确定目标特征数据对应的预分类结果为第一类数据,第一类数据为问诊信息类型齐全的数据;若预分类值小于第一阈值,则服务器确定目标特征数据对应的预分类结果为第二类数据,第二类数据为问诊信息类型缺失的数据。Specifically, the server invokes a preset neural network pre-classification model to pre-classify the target data, and determines the pre-classification value; the server determines whether the pre-classification value is greater than or equal to the first threshold; if the pre-classification value is greater than or equal to the first threshold, then The server determines that the pre-classification result corresponding to the target feature data is the first type of data, and the first type of data is data with complete types of consultation information; if the pre-classification value is less than the first threshold, the server determines that the pre-classification result corresponding to the target feature data is The second type of data, the second type of data is the data missing the type of consultation information.
需要说明的是,收集信息是否完备(即数据类型是否齐全)的标准是指目标特征数据中存在必要的参数,这些必要的参数包括问诊对话文本、目标用户的年龄信息、目标用户的性别信息、目标用户的主要诉求信息、病例历史信息、关键字信息以及类别标签信息,其中,类别标签信息主要指目标用户可能属于的病种信息,例如,目标用户如果在文本对话中提及关键字“肝”,那么该目标用户可能对应的类别标签包括“肝功能异常”、“内脏功能异常”、“酒精”、“新陈代谢异常”等标签,同一个用户可以对应多个类别标签,具体此处不再赘述。It should be noted that the standard of whether the collected information is complete (that is, whether the data type is complete) refers to the existence of necessary parameters in the target feature data, and these necessary parameters include the text of the consultation dialogue, the age information of the target user, and the gender information of the target user. , the target user's main appeal information, case history information, keyword information, and category label information, where the category label information mainly refers to the disease information that the target user may belong to. For example, if the target user mentions keywords in the text dialogue " Liver", then the category labels corresponding to the target user may include labels such as "abnormal liver function", "abnormal visceral function", "alcohol", "abnormal metabolism", etc. The same user can correspond to multiple category labels. Repeat.
可选的,调用预置的神经网络预分类模型对目标数据进行预分类,确定预分类值,包括:服务器调用多个预置编码器对目标数据进行固定长度编码,生成多个固定维度的向量,其中,多个预置编码器包括纯文本编码器、病例历史编码器、用户信息编码器、重点关键字编码器和类别标签编码器,固定维度的向量包括用户基础信息向量、历史信息向量和当前问诊主要诉求信息向量;服务器将多个固定维度的向量输入到预置的神经网络预分类模型中,生成预测向量;服务器对预测向量进行评分,得到目标数据的预分类值。Optionally, calling a preset neural network pre-classification model to pre-classify the target data and determining the pre-classification value includes: the server invoking multiple preset encoders to perform fixed-length encoding on the target data, and generating multiple fixed-dimensional vectors , wherein the multiple preset encoders include a plain text encoder, a case history encoder, a user information encoder, a key keyword encoder and a category label encoder, and the fixed-dimensional vectors include user basic information vector, historical information vector and The current inquiry mainly requires information vectors; the server inputs multiple fixed-dimensional vectors into the preset neural network pre-classification model to generate prediction vectors; the server scores the prediction vectors to obtain the pre-classification value of the target data.
203、若目标特征数据为第一类数据,则根据第一类数据对预置的知识图谱模型中医学知识图谱进行剪枝操作,得到剪枝后的医学知识图谱。203. If the target feature data is the first type of data, perform a pruning operation on the medical knowledge graph in the preset knowledge graph model according to the first type of data, to obtain a pruned medical knowledge graph.
具体的,若目标特征数据为第一类数据,则服务器确定第一类数据中涉及的问答关键词;服务器根据问答关键词在预置的知识图谱模型的医学知识图谱中确定对应的图谱节点;服务器对医疗知识图谱进行剪枝操作,得到剪枝后的医学知识图谱,剪枝后的医学知识图谱不包含对应的图谱节点。Specifically, if the target feature data is the first type of data, the server determines the question and answer keywords involved in the first type of data; the server determines the corresponding graph node in the medical knowledge graph of the preset knowledge graph model according to the question and answer keywords; The server performs a pruning operation on the medical knowledge graph, and obtains a pruned medical knowledge graph. The pruned medical knowledge graph does not contain corresponding graph nodes.
需要说明的是,这里的剪枝就是将目标特征数据中已获取的问答关键词,从医学知识图谱删除,然后根据删除后的医学知识图谱进行推理,避免在医疗图谱推理过程中出现重复的数据。It should be noted that the pruning here is to delete the question and answer keywords that have been obtained in the target feature data from the medical knowledge graph, and then perform reasoning based on the deleted medical knowledge graph to avoid duplicate data in the medical graph reasoning process. .
204、对剪枝后的医学知识图谱进行决策树解析,得到解析结果。204. Perform decision tree analysis on the pruned medical knowledge graph to obtain an analysis result.
服务器对剪枝后的医学知识图谱进行决策树解析,得到解析结果。The server performs decision tree parsing on the pruned medical knowledge graph to obtain parsing results.
205、基于解析结果和预置的推荐关系表确定第一诊断建议数据,并将第一诊断建议数据发送至目标终端。205. Determine the first diagnosis suggestion data based on the analysis result and the preset recommendation relationship table, and send the first diagnosis suggestion data to the target terminal.
服务器基于解析结果和预置的推荐关系表确定第一诊断建议数据,并将第一诊断建议数据发送至目标终端。例如,当解析结果为糖尿病时,服务器调用预置的推荐关系表,在推荐关系表中查询得到多个糖尿病治疗方案;服务器根据预置评分规则对多个糖尿病治疗方案进行评分,得到对应的多个分值,并根据多个分值按照从大到小的顺序进行排序,得到治疗推荐列表,治疗推荐列表包括多个糖尿病治疗方案;服务器将治疗推荐列表中排序 前两名的糖尿病治疗方案发送至目标终端。The server determines the first diagnosis suggestion data based on the analysis result and the preset recommendation relationship table, and sends the first diagnosis suggestion data to the target terminal. For example, when the analysis result is diabetes, the server calls the preset recommendation relation table, and queries the recommendation relation table to obtain multiple diabetes treatment plans; the server scores the multiple diabetes treatment plans according to the preset scoring rules, and obtains the corresponding multiple treatment plans. The scores are sorted in descending order according to the scores, and a treatment recommendation list is obtained. The treatment recommendation list includes multiple diabetes treatment plans; the server sends the top two diabetes treatment plans in the treatment recommendation list. to the target terminal.
206、若目标特征数据为第二类数据,则根据预置的知识图谱决策树模型、第二类数据进行医疗图谱查询,生成多轮补充问题并发送至目标终端。206. If the target feature data is the second type of data, perform medical map query according to the preset knowledge map decision tree model and the second type of data, generate multiple rounds of supplementary questions, and send them to the target terminal.
具体的,若目标特征数据为第二类数据,则服务器根据预置的知识图谱决策树模型、第二类数据进行医疗图谱查询,生成多轮补充问题并发送至目标终端。Specifically, if the target feature data is the second type of data, the server performs a medical map query according to the preset knowledge map decision tree model and the second type of data, generates multiple rounds of supplementary questions, and sends them to the target terminal.
具体的,当判断收集信息不完备(为第二类数据)时,服务器会将相关用户信息、输出结果和预诊诊断结果作为混合字段输入到医疗图谱查询,图谱查询知识库中最可能的相关问题(即生成多轮补充问题)进行推送。Specifically, when it is judged that the collected information is incomplete (the second type of data), the server will input the relevant user information, output results and pre-diagnosis and diagnosis results as mixed fields into the medical graph query, and the graph will query the most likely relevant information in the knowledge base. Questions (that is, generating multiple rounds of supplementary questions) are pushed.
多轮补充问题会组织成im消息的形式展现在目标终端。将目标用户回答的补充信息,经过实体信息抽取和整合录入进医疗问诊系统的电子病历模块,得到更新后的数据,该更新后的数据包括病征信息、病史信息、年龄等基础信息,具体此处不做限定。Multiple rounds of supplementary questions are organized into im messages and displayed on the target terminal. The supplementary information answered by the target user is extracted and integrated into the electronic medical record module of the medical consultation system through entity information extraction and integration to obtain updated data. The updated data includes basic information such as symptom information, medical history information, and age. There are no restrictions.
可选的,在步骤206之前,还包括知识图谱决策树模型的构建过程,具体过程如下:Optionally, before step 206, the construction process of the knowledge graph decision tree model is also included, and the specific process is as follows:
服务器将预置的知识图谱训练数据分成多个样本数据集;服务器调用第一预置公式计算每个数据样本集的纯度,
Figure PCTCN2021084651-appb-000001
其中,H(X)表示数据样本集合的信息熵,p(x)=p i表示随机变量X发生概率;服务器根据预置公式g(D,A)=H(D)-H(D|A)计算信息增益,得到多个特征信息增益,其中,g(D,A)表示特征A对样本数据集D的信息增益,H(D)表示样本数据集D的不确定度,H(D|A)表示给定条件A下样本数据集D的不确定度;服务器在多个特征信息增益中选择值最大的特征信息增益,确定为目标特征信息增益;服务器根据目标特征信息增益采用ID3算法生成知识图谱决策树模型。
The server divides the preset knowledge graph training data into multiple sample data sets; the server calls the first preset formula to calculate the purity of each data sample set,
Figure PCTCN2021084651-appb-000001
Among them, H(X) represents the information entropy of the data sample set, p(x)=pi represents the occurrence probability of random variable X; the server according to the preset formula g (D,A)=H(D)-H(D|A ) calculate the information gain to obtain multiple feature information gains, where g(D,A) represents the information gain of feature A to sample data set D, H(D) represents the uncertainty of sample data set D, H(D| A) represents the uncertainty of the sample data set D under the given condition A; the server selects the feature information gain with the largest value among multiple feature information gains, and determines it as the target feature information gain; the server uses the ID3 algorithm to generate the target feature information gain according to the target feature information gain. Knowledge graph decision tree model.
需要说明的是,H(D|A)可以理解为由于特征A使得对样本数据集D的分类的不确定性减少的程度,即信息增益大的特征具有更强的分类能力。It should be noted that H(D|A) can be understood as the degree to which the uncertainty of the classification of the sample data set D is reduced due to the feature A, that is, the feature with large information gain has a stronger classification ability.
可以理解的是,知识图谱决策树模型的构建过程也可以再步骤201之前进行。It can be understood that, the construction process of the knowledge graph decision tree model can also be performed before step 201 .
207、根据多轮补充问题的答案和目标特征数据生成电子病历数据。207. Generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data.
服务器根据多轮补充问题的答案和目标特征数据生成电子病历数据。The server generates electronic medical record data based on answers to multiple rounds of supplementary questions and target feature data.
208、调用神经网络预分类模型对电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至目标终端。208. Invoke the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
服务器调用神经网络预分类模型对电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至目标终端。The server invokes the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
本申请实施例,通过预置的注意力神经网络模型对目标特征数据完备程度判断,对目标特征数据进行预分类,并通过预分类结果返回到预置的知识图谱模型进行解析,返回给目标终端排名最高的关键问题进行提问,降低了线上误诊率,节省互联网医院接诊时间,提高了单位时间内互联网医院的接诊效率。并且本方案可应用于智慧医疗领域中,从而推动智慧城市的建设。In this embodiment of the present application, the preset attention neural network model is used to judge the completeness of the target feature data, pre-classify the target feature data, and return the pre-classification result to the preset knowledge graph model for analysis, and return it to the target terminal The key questions with the highest ranking are asked, which reduces the online misdiagnosis rate, saves the time of Internet hospital admissions, and improves the efficiency of Internet hospital admissions per unit time. And this solution can be applied in the field of smart medical care, thereby promoting the construction of smart cities.
上面对本申请实施例中医疗问诊系统的问答管理方法进行了描述,下面对本申请实施例中医疗问诊系统的问答管理装置进行描述,请参阅图3,本申请实施例中医疗问诊系统的问答管理装置的一个实施例包括:The question and answer management method of the medical consultation system in the embodiment of the present application has been described above, and the question and answer management device of the medical consultation system in the embodiment of the present application is described below. Please refer to FIG. 3 . An embodiment of the question and answer management device includes:
数据获取模块301,用于从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终端向医疗问诊系统输入的问诊信息;A data acquisition module 301, configured to acquire target feature data from a target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
判别模块302,用于调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;The discrimination module 302 is used to call a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data. Type data, the first type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information;
图谱推理模块303,若所述目标特征数据为所述第一类数据,则用于调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;The graph reasoning module 303, if the target feature data is the first type of data, is used to call the preset knowledge graph model and the first type of data to perform medical graph reasoning, generate the first diagnosis suggestion data and send it to the target terminal;
图谱树形逻辑模块304,若所述目标特征数据为所述第二类数据,则用于根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;The map tree logic module 304, if the target feature data is the second type of data, is used to perform medical map query according to the preset knowledge map decision tree model and the second type of data, and generate multiple rounds of supplementary questions and sent to the target terminal;
电子病历模块305,用于根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;an electronic medical record module 305, configured to generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data;
所述判别模块302,还用于调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。The discriminating module 302 is further configured to call the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
本申请实施例,通过预置的注意力神经网络模型对目标特征数据完备程度判断,对目标特征数据进行预分类,并通过预分类结果返回到预置的知识图谱模型进行解析,返回给目标终端排名最高的关键问题进行提问,降低了线上误诊率,节省互联网医院接诊时间,提高了单位时间内互联网医院的接诊效率。并且本方案可应用于智慧医疗领域中,从而推动智慧城市的建设。In this embodiment of the present application, the preset attention neural network model is used to judge the completeness of the target feature data, pre-classify the target feature data, and return the pre-classification result to the preset knowledge graph model for analysis, and return it to the target terminal The key questions with the highest ranking are asked, which reduces the online misdiagnosis rate, saves the time of Internet hospital admissions, and improves the efficiency of Internet hospital admissions per unit time. And this solution can be applied in the field of smart medical care, thereby promoting the construction of smart cities.
请参阅图4,本申请实施例中医疗问诊系统的问答管理装置的另一个实施例包括:Referring to FIG. 4, another embodiment of the question and answer management device of the medical consultation system in the embodiment of the present application includes:
数据获取模块301,用于从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终端向医疗问诊系统输入的问诊信息;A data acquisition module 301, configured to acquire target feature data from a target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
判别模块302,用于调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;The discrimination module 302 is used to call a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data. Type data, the first type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information;
图谱推理模块303,若所述目标特征数据为所述第一类数据,则用于调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;The graph reasoning module 303, if the target feature data is the first type of data, is used to call the preset knowledge graph model and the first type of data to perform medical graph reasoning, generate the first diagnosis suggestion data and send it to the target terminal;
图谱树形逻辑模块304,若所述目标特征数据为所述第二类数据,则用于根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;The map tree logic module 304, if the target feature data is the second type of data, is used to perform medical map query according to the preset knowledge map decision tree model and the second type of data, and generate multiple rounds of supplementary questions and sent to the target terminal;
电子病历模块305,用于根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;an electronic medical record module 305, configured to generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data;
所述判别模块302,还用于调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。The discriminating module 302 is further configured to call the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
可选的,判别模块302包括:Optionally, the discriminating module 302 includes:
预分类单元3021,用于调用预置的神经网络预分类模型对所述目标数据进行预分类,确定预分类值;The pre-classification unit 3021 is used to call the preset neural network pre-classification model to pre-classify the target data, and determine the pre-classification value;
判断单元3022,用于判断所述预分类值是否大于或等于第一阈值;Judging unit 3022, for judging whether the pre-classification value is greater than or equal to the first threshold;
第一确定单元3023,若所述预分类值大于或等于所述第一阈值,则用于确定所述目标特征数据对应的预分类结果为第一类数据,所述第一类数据为问诊信息类型齐全的数据;The first determining unit 3023, if the pre-classification value is greater than or equal to the first threshold value, is used to determine that the pre-classification result corresponding to the target feature data is the first type of data, and the first type of data is consultation Data with complete information types;
第二确定单元3024,用于若所述预分类值小于所述第一阈值,则用于确定所述目标特征数据对应的预分类结果为第二类数据,所述第二类数据为问诊信息类型缺失的数据。The second determining unit 3024 is configured to, if the pre-classification value is less than the first threshold, determine that the pre-classification result corresponding to the target feature data is the second type of data, and the second type of data is consultation Information type missing data.
可选的,预分类单元3021具体用于:Optionally, the pre-classification unit 3021 is specifically used for:
调用多个预置编码器对目标数据进行固定长度编码,生成多个固定维度的向量,其中,多个预置编码器包括纯文本编码器、病例历史编码器、用户信息编码器、重点关键字编码器和类别标签编码器,所述固定维度的向量包括用户基础信息向量、历史信息向量和当前问诊主要诉求信息向量;将所述多个固定维度的向量输入到所述预置的神经网络预分类模型中,生成预测向量;对所述预测向量进行评分,得到所述目标数据的预分类值。Invoke multiple preset encoders to perform fixed-length encoding on target data, and generate multiple fixed-dimensional vectors, where multiple preset encoders include plain text encoders, case history encoders, user information encoders, and key keywords An encoder and a category label encoder, the fixed-dimensional vectors include user basic information vectors, historical information vectors, and current consultation main appeal information vectors; input the multiple fixed-dimensional vectors into the preset neural network In the pre-classification model, a prediction vector is generated; the prediction vector is scored to obtain the pre-classification value of the target data.
可选的,图谱推理模块303包括:Optionally, the graph reasoning module 303 includes:
剪枝单元3031,用于若所述目标特征数据为所述第一类数据,则根据所述第一类数据对所述预置的知识图谱模型中医学知识图谱进行剪枝操作,得到剪枝后的医学知识图谱;The pruning unit 3031 is configured to perform a pruning operation on the medical knowledge map in the preset knowledge map model according to the first type of data, if the target feature data is the first type of data, to obtain a pruning operation Post-medical knowledge graph;
解析单元3032,用于对所述剪枝后的医学知识图谱进行决策树解析,得到解析结果;The parsing unit 3032 is configured to perform decision tree parsing on the pruned medical knowledge graph to obtain parsing results;
确定发送单元3033,用于基于所述解析结果和预置的推荐关系表确定第一诊断建议数据,并将所述第一诊断建议数据发送至所述目标终端。A determination sending unit 3033, configured to determine first diagnosis suggestion data based on the analysis result and the preset recommendation relationship table, and send the first diagnosis suggestion data to the target terminal.
可选的,剪枝单元3031具体用于:Optionally, the pruning unit 3031 is specifically used for:
若所述目标特征数据为所述第一类数据,则确定所述第一类数据中涉及的问答关键词;根据所述问答关键词在预置的知识图谱模型的医学知识图谱中确定对应的图谱节点;对所述医疗知识图谱进行剪枝操作,得到剪枝后的医学知识图谱,所述剪枝后的医学知识图谱不包含所述对应的图谱节点。If the target feature data is the first type of data, determine the question and answer keywords involved in the first type of data; determine the corresponding question and answer keywords in the medical knowledge graph of the preset knowledge graph model according to the question and answer keywords A graph node; perform a pruning operation on the medical knowledge graph to obtain a pruned medical knowledge graph, where the pruned medical knowledge graph does not include the corresponding graph nodes.
可选的,确定发送单元3033具体用于:Optionally, determine that the sending unit 3033 is specifically used for:
当解析结果为糖尿病时,调用预置的推荐关系表,在所述推荐关系表中查询得到多个糖尿病治疗方案;根据预置评分规则对所述多个糖尿病治疗方案进行评分,得到对应的多个分值,并根据所述多个分值按照从大到小的顺序进行排序,得到治疗推荐列表,所述治疗推荐列表包括所述多个糖尿病治疗方案;将所述治疗推荐列表中排序前两名的糖尿病治疗方案发送至所述目标终端。When the analysis result is diabetes, the preset recommendation relationship table is called, and multiple diabetes treatment plans are obtained by querying the recommendation relationship table; the multiple diabetes treatment plans are scored according to the preset scoring rules, and the corresponding multiple treatment plans are obtained. score, and sort according to the multiple scores in descending order to obtain a treatment recommendation list, where the treatment recommendation list includes the multiple diabetes treatment plans; before sorting the treatment recommendation list Two diabetes treatment plans are sent to the target terminal.
可选的,医疗问诊系统的问答管理装置还包括:Optionally, the question and answer management device of the medical consultation system further includes:
诊单获取模块306,用于获取多个初始历史问诊单,并对所述多个初始历史问诊单进行脱敏处理,得到脱敏后的候选历史问诊单;A medical order obtaining module 306, configured to obtain a plurality of initial historical medical questions, and perform desensitization processing on the plurality of initial historical medical surveys to obtain desensitized candidate historical medical surveys;
特征提取模块307,用于对所述脱敏后的候选历史问诊单进行特征提取,得到多个候选特征,所述候选特征至少包括问诊单对话文本、用户年龄信息、用户性别信息、用户的主要诉求信息、医生诊疗处方信息和诊断信息;The feature extraction module 307 is configured to perform feature extraction on the desensitized candidate historical medical questionnaires to obtain a plurality of candidate features, and the candidate features at least include the dialogue text of the medical questionnaires, user age information, user gender information, user The main appeal information, doctor's diagnosis and treatment prescription information and diagnosis information;
训练模块308,用于将所述多个候选特征确定为预置模板模型的输入数据,将标注过的诊断标签确定为预置模板模型的输出标签,对预置模板模型进行训练;A training module 308, configured to determine the multiple candidate features as the input data of the preset template model, determine the marked diagnostic label as the output label of the preset template model, and train the preset template model;
生成模块309,用于生成预置的神经网络预分类模型,所述神经网络预分类模型用于对数据进行二分类。The generating module 309 is configured to generate a preset neural network pre-classification model, where the neural network pre-classification model is used to perform binary classification on the data.
本申请实施例,通过预置的注意力神经网络模型对目标特征数据完备程度判断,对目标特征数据进行预分类,并通过预分类结果返回到预置的知识图谱模型进行解析,返回给目标终端排名最高的关键问题进行提问,降低了线上误诊率,节省互联网医院接诊时间,提高了单位时间内互联网医院的接诊效率。并且本方案可应用于智慧医疗领域中,从而推动智慧城市的建设。In this embodiment of the present application, the preset attention neural network model is used to judge the completeness of the target feature data, pre-classify the target feature data, and return the pre-classification result to the preset knowledge graph model for analysis, and return it to the target terminal The key questions with the highest ranking are asked, which reduces the online misdiagnosis rate, saves the time for Internet hospital admissions, and improves the efficiency of Internet hospital admissions per unit time. And this solution can be applied in the field of smart medical care, so as to promote the construction of smart city.
上面图3至图4从模块化功能实体的角度对本申请实施例中的医疗问诊系统的问答管理装置进行详细描述,下面从硬件处理的角度对本申请实施例中医疗问诊系统的问答管理设备进行详细描述。Figures 3 to 4 above describe in detail the question and answer management device of the medical consultation system in the embodiment of the present application from the perspective of modular functional entities. The following is a description of the question and answer management device of the medical consultation system in the embodiment of the present application from the perspective of hardware processing. Describe in detail.
图5是本申请实施例提供的一种医疗问诊系统的问答管理设备的结构示意图,该医疗问诊系统的问答管理设备500可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(central processing units,CPU)510(例如,一个或一个以上处理器)和存储器520,一个或一个以上存储应用程序533或数据532的存储介质530(例如一个或 一个以上海量存储设备)。其中,存储器520和存储介质530可以是短暂存储或持久存储。存储在存储介质530的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对医疗问诊系统的问答管理设备500中的一系列指令操作。更进一步地,处理器510可以设置为与存储介质530通信,在医疗问诊系统的问答管理设备500上执行存储介质530中的一系列指令操作。5 is a schematic structural diagram of a question-and-answer management device of a medical consultation system provided by an embodiment of the present application. The question-and-answer management device 500 of the medical consultation system may vary greatly due to different configurations or performances, and may include one or more One or more central processing units (CPUs) 510 (eg, one or more processors) and memory 520, one or more storage media 530 (eg, one or more mass storage devices) that store applications 533 or data 532 ). Among them, the memory 520 and the storage medium 530 may be short-term storage or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the question-and-answer management device 500 of the medical consultation system. Furthermore, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the question-and-answer management device 500 of the medical consultation system.
医疗问诊系统的问答管理设备500还可以包括一个或一个以上电源540,一个或一个以上有线或无线网络接口550,一个或一个以上输入输出接口560,和/或,一个或一个以上操作系统531,例如Windows Serve,Mac OS X,Unix,Linux,FreeBSD等等。本领域技术人员可以理解,图5示出的医疗问诊系统的问答管理设备结构并不构成对医疗问诊系统的问答管理设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。处理器510可以执行上述实施例中数据获取模块301、判别模块302、图谱推理模块303、图谱树形逻辑模块304、电子病历模块305、诊单获取模块306、特征提取模块307、训练模块308和生成模块309的功能。The question and answer management device 500 of the medical consultation system may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and/or, one or more operating systems 531 , such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art can understand that the structure of the question and answer management device of the medical consultation system shown in FIG. 5 does not constitute a limitation on the question and answer management device of the medical consultation system, and may include more or less components than those shown in the figure, or Combining certain components, or different component arrangements. The processor 510 can execute the data acquisition module 301, the discrimination module 302, the atlas inference module 303, the atlas tree logic module 304, the electronic medical record module 305, the medical order acquisition module 306, the feature extraction module 307, the training module 308 and The function of the generation module 309 .
本申请还提供一种医疗问诊系统的问答管理设备,包括:存储器和至少一个处理器,所述存储器中存储有指令,所述存储器和所述至少一个处理器通过线路互连;所述至少一个处理器调用所述存储器中的所述指令,以使得所述医疗问诊系统的问答管理设备执行上述医疗问诊系统的问答管理方法中的步骤。The present application also provides a question-and-answer management device for a medical consultation system, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected through a line; the at least one processor A processor invokes the instructions in the memory, so that the question and answer management device of the medical consultation system executes the steps in the question and answer management method of the medical consultation system.
本申请还提供一种计算机可读存储介质,该计算机可读存储介质可以为非易失性计算机可读存储介质,也可以为易失性计算机可读存储介质。计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:The present application also provides a computer-readable storage medium, and the computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores computer instructions, which, when executed on the computer, cause the computer to perform the following steps:
从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终端向医疗问诊系统输入的问诊信息;Obtain target feature data from the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;Invoke a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data. One type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information;
若所述目标特征数据为所述第一类数据,则调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;If the target feature data is the first type of data, call the preset knowledge graph model and the first type of data to perform medical graph inference, generate first diagnosis suggestion data, and send it to the target terminal;
若所述目标特征数据为所述第二类数据,则根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;If the target feature data is the second type of data, perform medical map query according to the preset knowledge map decision tree model and the second type of data, generate multiple rounds of supplementary questions, and send them to the target terminal;
根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;generating electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data;
调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。The neural network pre-classification model is invoked to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述 各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions recorded in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (20)

  1. 一种医疗问诊系统的问答管理方法,包括:A question and answer management method for a medical consultation system, comprising:
    从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终端向医疗问诊系统输入的问诊信息;Obtain target feature data from the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
    调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;Invoke a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data. One type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information;
    若所述目标特征数据为所述第一类数据,则调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;If the target feature data is the first type of data, call the preset knowledge graph model and the first type of data to perform medical graph inference, generate first diagnosis suggestion data, and send it to the target terminal;
    若所述目标特征数据为所述第二类数据,则根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;If the target feature data is the second type of data, perform medical map query according to the preset knowledge map decision tree model and the second type of data, generate multiple rounds of supplementary questions, and send them to the target terminal;
    根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;generating electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data;
    调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。The neural network pre-classification model is invoked to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
  2. 根据权利要求1所述的医疗问诊系统的问答管理方法,其中,所述调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据,包括:The question and answer management method of a medical consultation system according to claim 1, wherein the target feature data is pre-classified by invoking a preset neural network pre-classification model, and a pre-classification result corresponding to the target feature data is determined , the pre-classification result includes a first type of data and a second type of data, the first type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information, including:
    调用预置的神经网络预分类模型对所述目标数据进行预分类,确定预分类值;Calling the preset neural network pre-classification model to pre-classify the target data, and determine the pre-classification value;
    判断所述预分类值是否大于或等于第一阈值;judging whether the pre-classification value is greater than or equal to a first threshold;
    若所述预分类值大于或等于所述第一阈值,则确定所述目标特征数据对应的预分类结果为第一类数据,所述第一类数据为问诊信息类型齐全的数据;If the pre-classification value is greater than or equal to the first threshold, determining that the pre-classification result corresponding to the target feature data is the first type of data, and the first type of data is data with complete types of consultation information;
    若所述预分类值小于所述第一阈值,则确定所述目标特征数据对应的预分类结果为第二类数据,所述第二类数据为问诊信息类型缺失的数据。If the pre-classification value is less than the first threshold, it is determined that the pre-classification result corresponding to the target feature data is the second type of data, and the second type of data is data missing the type of consultation information.
  3. 根据权利要求2所述的医疗问诊系统的问答管理方法,其中,所述调用预置的神经网络预分类模型对所述目标数据进行预分类,确定预分类值,包括:The question-and-answer management method of a medical consultation system according to claim 2, wherein the pre-classification of the target data by invoking a preset neural network pre-classification model to determine a pre-classification value comprises:
    调用多个预置编码器对目标数据进行固定长度编码,生成多个固定维度的向量,其中,多个预置编码器包括纯文本编码器、病例历史编码器、用户信息编码器、重点关键字编码器和类别标签编码器,所述固定维度的向量包括用户基础信息向量、历史信息向量和当前问诊主要诉求信息向量;Invoke multiple preset encoders to perform fixed-length encoding on target data, and generate multiple fixed-dimensional vectors, where multiple preset encoders include plain text encoders, case history encoders, user information encoders, and key keywords An encoder and a category label encoder, wherein the fixed-dimensional vector includes a user basic information vector, a historical information vector, and an information vector of current main appeals for consultation;
    将所述多个固定维度的向量输入到所述预置的神经网络预分类模型中,生成预测向量;Inputting the vectors of the plurality of fixed dimensions into the preset neural network pre-classification model to generate a prediction vector;
    对所述预测向量进行评分,得到所述目标数据的预分类值。The prediction vector is scored to obtain the pre-classification value of the target data.
  4. 根据权利要求1所述的医疗问诊系统的问答管理方法,其中,所述若所述目标特征数据为所述第一类数据,则调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端,包括:The question-and-answer management method of a medical consultation system according to claim 1, wherein, if the target feature data is the first type of data, a preset knowledge graph model and the first type of data are called to carry out Medical graph reasoning, generating first diagnosis suggestion data and sending it to the target terminal, including:
    若所述目标特征数据为所述第一类数据,则根据所述第一类数据对所述预置的知识图谱模型中医学知识图谱进行剪枝操作,得到剪枝后的医学知识图谱;If the target feature data is the first type of data, perform a pruning operation on the medical knowledge graph in the preset knowledge graph model according to the first type of data, to obtain a pruned medical knowledge graph;
    对所述剪枝后的医学知识图谱进行决策树解析,得到解析结果;Performing decision tree analysis on the pruned medical knowledge graph to obtain an analysis result;
    基于所述解析结果和预置的推荐关系表确定第一诊断建议数据,并将所述第一诊断建议数据发送至所述目标终端。Determine the first diagnosis suggestion data based on the analysis result and the preset recommendation relationship table, and send the first diagnosis suggestion data to the target terminal.
  5. 根据权利要求4所述的医疗问诊系统的问答管理方法,其中,所述若所述目标特征数据为所述第一类数据,则根据所述第一类数据对所述预置的知识图谱模型中医学知识图谱进行剪枝操作,得到剪枝后的医学知识图谱,包括:The question-and-answer management method of a medical consultation system according to claim 4, wherein, if the target feature data is the first type of data, the preset knowledge graph is analyzed according to the first type of data. The medical knowledge graph in the model is pruned, and the pruned medical knowledge graph is obtained, including:
    若所述目标特征数据为所述第一类数据,则确定所述第一类数据中涉及的问答关键词;If the target feature data is the first type of data, determine the question and answer keywords involved in the first type of data;
    根据所述问答关键词在预置的知识图谱模型的医学知识图谱中确定对应的图谱节点;Determine the corresponding graph node in the medical knowledge graph of the preset knowledge graph model according to the question and answer keywords;
    对所述医疗知识图谱进行剪枝操作,得到剪枝后的医学知识图谱,所述剪枝后的医学知识图谱不包含所述对应的图谱节点。A pruning operation is performed on the medical knowledge graph to obtain a pruned medical knowledge graph, where the pruned medical knowledge graph does not include the corresponding graph nodes.
  6. 根据权利要求4所述的医疗问诊系统的问答管理方法,其中,所述基于所述解析结果和预置的推荐关系表确定第一诊断建议数据,并将所述第一诊断建议数据发送至所述目标终端,包括:The question and answer management method of a medical consultation system according to claim 4, wherein the first diagnosis suggestion data is determined based on the analysis result and the preset recommendation relation table, and the first diagnosis suggestion data is sent to The target terminal includes:
    当解析结果为糖尿病时,调用预置的推荐关系表,在所述推荐关系表中查询得到多个糖尿病治疗方案;When the analysis result is diabetes, the preset recommendation relationship table is called, and a plurality of diabetes treatment plans are obtained by querying the recommendation relationship table;
    根据预置评分规则对所述多个糖尿病治疗方案进行评分,得到对应的多个分值,并根据所述多个分值按照从大到小的顺序进行排序,得到治疗推荐列表,所述治疗推荐列表包括所述多个糖尿病治疗方案;Score the multiple diabetes treatment plans according to the preset scoring rules, obtain multiple corresponding scores, and sort them in descending order according to the multiple scores to obtain a treatment recommendation list. The recommended list includes the plurality of diabetes treatment options;
    将所述治疗推荐列表中排序前两名的糖尿病治疗方案发送至所述目标终端。Send the top two diabetes treatment plans in the treatment recommendation list to the target terminal.
  7. 根据权利要求1-6中任一项所述的医疗问诊系统的问答管理方法,其中,在所述从目标终端获取目标特征数据之前,所述医疗问诊系统的问答管理方法还包括:The question and answer management method of the medical consultation system according to any one of claims 1-6, wherein, before the acquisition of the target feature data from the target terminal, the question and answer management method of the medical consultation system further comprises:
    获取多个初始历史问诊单,并对所述多个初始历史问诊单进行脱敏处理,得到脱敏后的候选历史问诊单;Obtaining a plurality of initial historical medical questionnaires, and performing desensitization processing on the plurality of initial historical medical questionnaires to obtain desensitized candidate historical medical questionnaires;
    对所述脱敏后的候选历史问诊单进行特征提取,得到多个候选特征,所述候选特征至少包括问诊单对话文本、用户年龄信息、用户性别信息、用户的主要诉求信息、医生诊疗处方信息和诊断信息;Perform feature extraction on the desensitized candidate historical medical questionnaire to obtain multiple candidate features, the candidate features at least include the dialogue text of the medical questionnaire, the user's age information, the user's gender information, the user's main appeal information, and the doctor's diagnosis and treatment. Prescribing and diagnostic information;
    将所述多个候选特征确定为预置模板模型的输入数据,将标注过的诊断标签确定为预置模板模型的输出标签,对预置模板模型进行训练;Determining the plurality of candidate features as input data of the preset template model, determining the marked diagnostic label as the output label of the preset template model, and training the preset template model;
    生成预置的神经网络预分类模型,所述神经网络预分类模型用于对数据进行二分类。A preset neural network pre-classification model is generated, and the neural network pre-classification model is used for binary classification of data.
  8. 一种医疗问诊系统的问答管理设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A question and answer management device for a medical consultation system, comprising a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, when the processor executes the computer-readable instructions Implement the following steps:
    从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终端向医疗问诊系统输入的问诊信息;Obtain target feature data from the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
    调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;Invoke a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data. One type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information;
    若所述目标特征数据为所述第一类数据,则调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;If the target feature data is the first type of data, call the preset knowledge graph model and the first type of data to perform medical graph inference, generate first diagnosis suggestion data, and send it to the target terminal;
    若所述目标特征数据为所述第二类数据,则根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;If the target feature data is the second type of data, perform medical map query according to the preset knowledge map decision tree model and the second type of data, generate multiple rounds of supplementary questions, and send them to the target terminal;
    根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;generating electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data;
    调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。The neural network pre-classification model is invoked to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
  9. 根据权利要求8所述的医疗问诊系统的问答管理设备,所述处理器执行所述计算机程序时还实现以下步骤:The question-and-answer management device of a medical consultation system according to claim 8, wherein the processor further implements the following steps when executing the computer program:
    调用预置的神经网络预分类模型对所述目标数据进行预分类,确定预分类值;Calling the preset neural network pre-classification model to pre-classify the target data, and determine the pre-classification value;
    判断所述预分类值是否大于或等于第一阈值;judging whether the pre-classification value is greater than or equal to a first threshold;
    若所述预分类值大于或等于所述第一阈值,则确定所述目标特征数据对应的预分类结果为第一类数据,所述第一类数据为问诊信息类型齐全的数据;If the pre-classification value is greater than or equal to the first threshold, determining that the pre-classification result corresponding to the target feature data is the first type of data, and the first type of data is data with complete types of consultation information;
    若所述预分类值小于所述第一阈值,则确定所述目标特征数据对应的预分类结果为第 二类数据,所述第二类数据为问诊信息类型缺失的数据。If the pre-classification value is less than the first threshold, it is determined that the pre-classification result corresponding to the target feature data is the second type of data, and the second type of data is data with missing medical information types.
  10. 根据权利要求9所述的医疗问诊系统的问答管理设备,所述处理器执行所述计算机程序时还实现以下步骤:The question-and-answer management device of a medical consultation system according to claim 9, wherein the processor further implements the following steps when executing the computer program:
    调用多个预置编码器对目标数据进行固定长度编码,生成多个固定维度的向量,其中,多个预置编码器包括纯文本编码器、病例历史编码器、用户信息编码器、重点关键字编码器和类别标签编码器,所述固定维度的向量包括用户基础信息向量、历史信息向量和当前问诊主要诉求信息向量;Invoke multiple preset encoders to perform fixed-length encoding on target data, and generate multiple fixed-dimensional vectors, where multiple preset encoders include plain text encoders, case history encoders, user information encoders, and key keywords An encoder and a category label encoder, wherein the fixed-dimensional vector includes a user basic information vector, a historical information vector, and an information vector of current main appeals for consultation;
    将所述多个固定维度的向量输入到所述预置的神经网络预分类模型中,生成预测向量;Inputting the vectors of the plurality of fixed dimensions into the preset neural network pre-classification model to generate a prediction vector;
    对所述预测向量进行评分,得到所述目标数据的预分类值。The prediction vector is scored to obtain the pre-classification value of the target data.
  11. 根据权利要求8所述的医疗问诊系统的问答管理设备,所述处理器执行所述计算机程序时还实现以下步骤:The question-and-answer management device of a medical consultation system according to claim 8, wherein the processor further implements the following steps when executing the computer program:
    若所述目标特征数据为所述第一类数据,则根据所述第一类数据对所述预置的知识图谱模型中医学知识图谱进行剪枝操作,得到剪枝后的医学知识图谱;If the target feature data is the first type of data, perform a pruning operation on the medical knowledge graph in the preset knowledge graph model according to the first type of data, to obtain a pruned medical knowledge graph;
    对所述剪枝后的医学知识图谱进行决策树解析,得到解析结果;Performing decision tree analysis on the pruned medical knowledge graph to obtain an analysis result;
    基于所述解析结果和预置的推荐关系表确定第一诊断建议数据,并将所述第一诊断建议数据发送至所述目标终端。Determine the first diagnosis suggestion data based on the analysis result and the preset recommendation relationship table, and send the first diagnosis suggestion data to the target terminal.
  12. 根据权利要求11所述的医疗问诊系统的问答管理设备,所述处理器执行所述计算机程序时还实现以下步骤:The question and answer management device of the medical consultation system according to claim 11, wherein the processor further implements the following steps when executing the computer program:
    若所述目标特征数据为所述第一类数据,则确定所述第一类数据中涉及的问答关键词;If the target feature data is the first type of data, determine the question and answer keywords involved in the first type of data;
    根据所述问答关键词在预置的知识图谱模型的医学知识图谱中确定对应的图谱节点;Determine the corresponding graph node in the medical knowledge graph of the preset knowledge graph model according to the question and answer keywords;
    对所述医疗知识图谱进行剪枝操作,得到剪枝后的医学知识图谱,所述剪枝后的医学知识图谱不包含所述对应的图谱节点。A pruning operation is performed on the medical knowledge graph to obtain a pruned medical knowledge graph, where the pruned medical knowledge graph does not include the corresponding graph nodes.
  13. 根据权利要求11所述的医疗问诊系统的问答管理设备,所述处理器执行所述计算机程序时还实现以下步骤:The question and answer management device of the medical consultation system according to claim 11, wherein the processor further implements the following steps when executing the computer program:
    当解析结果为糖尿病时,调用预置的推荐关系表,在所述推荐关系表中查询得到多个糖尿病治疗方案;When the analysis result is diabetes, the preset recommendation relationship table is called, and a plurality of diabetes treatment plans are obtained by querying the recommendation relationship table;
    根据预置评分规则对所述多个糖尿病治疗方案进行评分,得到对应的多个分值,并根据所述多个分值按照从大到小的顺序进行排序,得到治疗推荐列表,所述治疗推荐列表包括所述多个糖尿病治疗方案;Score the multiple diabetes treatment plans according to the preset scoring rules, obtain multiple corresponding scores, and sort them in descending order according to the multiple scores to obtain a treatment recommendation list. The recommended list includes the plurality of diabetes treatment options;
    将所述治疗推荐列表中排序前两名的糖尿病治疗方案发送至所述目标终端。Send the top two diabetes treatment plans in the treatment recommendation list to the target terminal.
  14. 根据权利要求8-13中任一项所述的医疗问诊系统的问答管理设备,所述处理器执行所述计算机程序时还实现以下步骤:According to the question and answer management device of the medical consultation system according to any one of claims 8-13, the processor further implements the following steps when executing the computer program:
    获取多个初始历史问诊单,并对所述多个初始历史问诊单进行脱敏处理,得到脱敏后的候选历史问诊单;Obtaining a plurality of initial historical medical questionnaires, and performing desensitization processing on the plurality of initial historical medical questionnaires to obtain desensitized candidate historical medical questionnaires;
    对所述脱敏后的候选历史问诊单进行特征提取,得到多个候选特征,所述候选特征至少包括问诊单对话文本、用户年龄信息、用户性别信息、用户的主要诉求信息、医生诊疗处方信息和诊断信息;Perform feature extraction on the desensitized candidate historical medical questionnaire to obtain multiple candidate features, the candidate features at least include the dialogue text of the medical questionnaire, the user's age information, the user's gender information, the user's main appeal information, and the doctor's diagnosis and treatment. Prescribing and diagnostic information;
    将所述多个候选特征确定为预置模板模型的输入数据,将标注过的诊断标签确定为预置模板模型的输出标签,对预置模板模型进行训练;Determining the plurality of candidate features as input data of the preset template model, determining the marked diagnostic label as the output label of the preset template model, and training the preset template model;
    生成预置的神经网络预分类模型,所述神经网络预分类模型用于对数据进行二分类。A preset neural network pre-classification model is generated, and the neural network pre-classification model is used for binary classification of data.
  15. 一种计算机可读存储介质,所述计算机可读存储介质中存储计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:A computer-readable storage medium, storing computer instructions in the computer-readable storage medium, when the computer instructions are executed on a computer, the computer is made to perform the following steps:
    从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终 端向医疗问诊系统输入的问诊信息;Obtain target characteristic data from the target terminal, and the target characteristic data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
    调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;Invoke a preset neural network pre-classification model to pre-classify the target feature data, and determine a pre-classification result corresponding to the target feature data, where the pre-classification result includes the first type of data and the second type of data. One type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information;
    若所述目标特征数据为所述第一类数据,则调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;If the target feature data is the first type of data, call the preset knowledge graph model and the first type of data to perform medical graph inference, generate first diagnosis suggestion data, and send it to the target terminal;
    若所述目标特征数据为所述第二类数据,则根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;If the target feature data is the second type of data, perform medical map query according to the preset knowledge map decision tree model and the second type of data, generate multiple rounds of supplementary questions, and send them to the target terminal;
    根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;generating electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data;
    调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。The neural network pre-classification model is invoked to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
  16. 根据权利要求15所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:The computer-readable storage medium of claim 15, when the computer instructions are executed on a computer, causing the computer to further perform the following steps:
    调用预置的神经网络预分类模型对所述目标数据进行预分类,确定预分类值;Calling the preset neural network pre-classification model to pre-classify the target data, and determine the pre-classification value;
    判断所述预分类值是否大于或等于第一阈值;judging whether the pre-classification value is greater than or equal to a first threshold;
    若所述预分类值大于或等于所述第一阈值,则确定所述目标特征数据对应的预分类结果为第一类数据,所述第一类数据为问诊信息类型齐全的数据;If the pre-classification value is greater than or equal to the first threshold, determining that the pre-classification result corresponding to the target feature data is the first type of data, and the first type of data is data with complete types of consultation information;
    若所述预分类值小于所述第一阈值,则确定所述目标特征数据对应的预分类结果为第二类数据,所述第二类数据为问诊信息类型缺失的数据。If the pre-classification value is less than the first threshold, it is determined that the pre-classification result corresponding to the target feature data is the second type of data, and the second type of data is data missing the type of consultation information.
  17. 根据权利要求16所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:The computer-readable storage medium of claim 16, when the computer instructions are executed on a computer, causing the computer to further perform the following steps:
    调用多个预置编码器对目标数据进行固定长度编码,生成多个固定维度的向量,其中,多个预置编码器包括纯文本编码器、病例历史编码器、用户信息编码器、重点关键字编码器和类别标签编码器,所述固定维度的向量包括用户基础信息向量、历史信息向量和当前问诊主要诉求信息向量;Invoke multiple preset encoders to perform fixed-length encoding on target data, and generate multiple fixed-dimensional vectors, where multiple preset encoders include plain text encoders, case history encoders, user information encoders, and key keywords An encoder and a category label encoder, wherein the fixed-dimensional vector includes a user basic information vector, a historical information vector, and an information vector of current main appeals for consultation;
    将所述多个固定维度的向量输入到所述预置的神经网络预分类模型中,生成预测向量;Inputting the vectors of the plurality of fixed dimensions into the preset neural network pre-classification model to generate a prediction vector;
    对所述预测向量进行评分,得到所述目标数据的预分类值。The prediction vector is scored to obtain the pre-classification value of the target data.
  18. 根据权利要求15所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:The computer-readable storage medium of claim 15, when the computer instructions are executed on a computer, causing the computer to further perform the following steps:
    若所述目标特征数据为所述第一类数据,则根据所述第一类数据对所述预置的知识图谱模型中医学知识图谱进行剪枝操作,得到剪枝后的医学知识图谱;If the target feature data is the first type of data, perform a pruning operation on the medical knowledge graph in the preset knowledge graph model according to the first type of data, to obtain a pruned medical knowledge graph;
    对所述剪枝后的医学知识图谱进行决策树解析,得到解析结果;Performing decision tree analysis on the pruned medical knowledge graph to obtain an analysis result;
    基于所述解析结果和预置的推荐关系表确定第一诊断建议数据,并将所述第一诊断建议数据发送至所述目标终端。Determine the first diagnosis suggestion data based on the analysis result and the preset recommendation relationship table, and send the first diagnosis suggestion data to the target terminal.
  19. 根据权利要求18所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:The computer-readable storage medium of claim 18, the computer instructions, when executed on a computer, cause the computer to further perform the following steps:
    若所述目标特征数据为所述第一类数据,则确定所述第一类数据中涉及的问答关键词;If the target feature data is the first type of data, determine the question and answer keywords involved in the first type of data;
    根据所述问答关键词在预置的知识图谱模型的医学知识图谱中确定对应的图谱节点;Determine the corresponding graph node in the medical knowledge graph of the preset knowledge graph model according to the question and answer keywords;
    对所述医疗知识图谱进行剪枝操作,得到剪枝后的医学知识图谱,所述剪枝后的医学知识图谱不包含所述对应的图谱节点。A pruning operation is performed on the medical knowledge graph to obtain a pruned medical knowledge graph, where the pruned medical knowledge graph does not include the corresponding graph nodes.
  20. 一种医疗问诊系统的问答管理装置,所述医疗问诊系统的问答管理装置包括:A question and answer management device of a medical consultation system, the question and answer management device of the medical consultation system includes:
    数据获取模块,用于从目标终端获取目标特征数据,所述目标特征数据用于指示目标用户通过所述目标终端向医疗问诊系统输入的问诊信息;a data acquisition module, configured to acquire target feature data from the target terminal, where the target feature data is used to indicate the consultation information input by the target user to the medical consultation system through the target terminal;
    判别模块,用于调用预置的神经网络预分类模型对所述目标特征数据进行预分类,判 定所述目标特征数据对应的预分类结果,所述预分类结果包括第一类数据和第二类数据,所述第一类数据为问诊信息类型齐全的数据,所述第二类数据为问诊信息类型缺失的数据;The discrimination module is used to call the preset neural network pre-classification model to pre-classify the target feature data, and determine the pre-classification result corresponding to the target feature data, and the pre-classification result includes the first type of data and the second type of data Data, the first type of data is data with complete types of consultation information, and the second type of data is data with missing types of consultation information;
    图谱推理模块,若所述目标特征数据为所述第一类数据,则用于调用预置的知识图谱模型和所述第一类数据进行医疗图谱推理,生成第一诊断建议数据并发送至所述目标终端;The graph reasoning module, if the target feature data is the first type of data, is used to call the preset knowledge graph model and the first type of data to perform medical graph reasoning, generate the first diagnosis suggestion data and send it to the the target terminal;
    图谱树形逻辑模块,若所述目标特征数据为所述第二类数据,则用于根据预置的知识图谱决策树模型、所述第二类数据进行医疗图谱查询,生成多轮补充问题并发送至所述目标终端;The map tree logic module, if the target feature data is the second type of data, is used to perform medical map query according to the preset knowledge map decision tree model and the second type of data, and generate multiple rounds of supplementary questions. sent to the target terminal;
    电子病历模块,用于根据所述多轮补充问题的答案和所述目标特征数据生成电子病历数据;an electronic medical record module, configured to generate electronic medical record data according to the answers to the multiple rounds of supplementary questions and the target feature data;
    所述判别模块,还用于调用所述神经网络预分类模型对所述电子病历数据重新进行预分类处理,直至生成第二诊断建议数据并发送至所述目标终端。The discrimination module is further configured to call the neural network pre-classification model to pre-classify the electronic medical record data again until the second diagnosis suggestion data is generated and sent to the target terminal.
PCT/CN2021/084651 2020-08-28 2021-03-31 Question and answer management method, apparatus, and device for medical inquiry system, and storage medium WO2022041727A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010884354.2A CN112035636B (en) 2020-08-28 2020-08-28 Question and answer management method, device and equipment of medical question and answer system and storage medium
CN202010884354.2 2020-08-28

Publications (1)

Publication Number Publication Date
WO2022041727A1 true WO2022041727A1 (en) 2022-03-03

Family

ID=73586120

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084651 WO2022041727A1 (en) 2020-08-28 2021-03-31 Question and answer management method, apparatus, and device for medical inquiry system, and storage medium

Country Status (2)

Country Link
CN (1) CN112035636B (en)
WO (1) WO2022041727A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114692486A (en) * 2022-03-10 2022-07-01 中国科学技术大学 Product optimization design method based on user feedback knowledge graph
CN115631852A (en) * 2022-11-02 2023-01-20 北京大学重庆大数据研究院 Certificate type recommendation method and device, electronic equipment and nonvolatile storage medium
CN115982335A (en) * 2023-02-14 2023-04-18 智慧眼科技股份有限公司 Active AI medical question-answering system, method, equipment and storage medium
CN117493681A (en) * 2023-11-15 2024-02-02 无锡胤兴智创科技有限公司 Intelligent medical information pushing system and method based on cloud computing
CN117708306A (en) * 2024-02-06 2024-03-15 神州医疗科技股份有限公司 Medical question-answering architecture generation method and system based on layered question-answering structure

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035636B (en) * 2020-08-28 2023-06-02 康键信息技术(深圳)有限公司 Question and answer management method, device and equipment of medical question and answer system and storage medium
CN112786182B (en) * 2020-12-31 2024-05-10 深圳平安智慧医健科技有限公司 Intelligent diagnosis guiding method and device, electronic equipment and storage medium
CN112749286A (en) * 2021-01-26 2021-05-04 北京搜狗科技发展有限公司 Methods, apparatuses and media for construction and use of knowledge graph
CN112768091A (en) * 2021-01-26 2021-05-07 北京搜狗科技发展有限公司 Method, device and medium for processing inquiry information
CN113257407A (en) * 2021-05-31 2021-08-13 康键信息技术(深圳)有限公司 Method, device and equipment for processing medical public account message and storage medium
CN113792163B (en) * 2021-08-09 2022-12-27 北京达佳互联信息技术有限公司 Multimedia recommendation method and device, electronic equipment and storage medium
CN113707286A (en) * 2021-08-30 2021-11-26 康键信息技术(深圳)有限公司 Inquiry allocation method, device, equipment and storage medium based on decision tree
CN114300160B (en) * 2021-11-16 2022-10-18 北京左医科技有限公司 Inquiry dialogue method and system
CN114566295A (en) * 2022-03-04 2022-05-31 康键信息技术(深圳)有限公司 Online inquiry method, device, equipment and storage medium
CN114629867A (en) * 2022-03-22 2022-06-14 康键信息技术(深圳)有限公司 On-line inquiry instant communication system and message processing method
CN114925833B (en) * 2022-04-20 2023-07-21 中国人民解放军91977部队 Target state rule knowledge mining method based on capability data base graph
CN115831356B (en) * 2023-02-20 2024-02-27 中国海洋大学 Auxiliary prediction diagnosis method based on artificial intelligence algorithm

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150161241A1 (en) * 2013-12-05 2015-06-11 International Business Machines Corporation Analyzing Natural Language Questions to Determine Missing Information in Order to Improve Accuracy of Answers
CN105912846A (en) * 2016-04-07 2016-08-31 南京小网科技有限责任公司 Intelligent medical aid decision making system on basis of cloud computing technique and medical knowledge base technique
CN109559830A (en) * 2018-09-30 2019-04-02 西南医科大学附属医院 Smart Verify consulting system and its implementation based on Medicine standard problem base
CN110390003A (en) * 2019-06-19 2019-10-29 北京百度网讯科技有限公司 Question and answer processing method and system, computer equipment and readable medium based on medical treatment
CN112035636A (en) * 2020-08-28 2020-12-04 康键信息技术(深圳)有限公司 Question-answer management method, device, equipment and storage medium of medical inquiry system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9646079B2 (en) * 2012-05-04 2017-05-09 Pearl.com LLC Method and apparatus for identifiying similar questions in a consultation system
US10248689B2 (en) * 2015-10-13 2019-04-02 International Business Machines Corporation Supplementing candidate answers
CN107992543B (en) * 2017-11-27 2020-11-17 上海智臻智能网络科技股份有限公司 Question-answer interaction method and device, computer equipment and computer readable storage medium
CN109522395A (en) * 2018-10-12 2019-03-26 平安科技(深圳)有限公司 Automatic question-answering method and device
CN109284363B (en) * 2018-12-03 2023-03-14 北京羽扇智信息科技有限公司 Question answering method and device, electronic equipment and storage medium
CN110008324A (en) * 2019-03-29 2019-07-12 上海大易云计算股份有限公司 A kind of recruitment chat method and system based on natural semantic analysis
CN111475628B (en) * 2020-03-30 2023-07-14 珠海格力电器股份有限公司 Session data processing method, apparatus, computer device and storage medium
CN111460124B (en) * 2020-04-21 2023-08-25 文思海辉智科科技有限公司 Intelligent interaction method, intelligent interaction device and robot

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150161241A1 (en) * 2013-12-05 2015-06-11 International Business Machines Corporation Analyzing Natural Language Questions to Determine Missing Information in Order to Improve Accuracy of Answers
CN105912846A (en) * 2016-04-07 2016-08-31 南京小网科技有限责任公司 Intelligent medical aid decision making system on basis of cloud computing technique and medical knowledge base technique
CN109559830A (en) * 2018-09-30 2019-04-02 西南医科大学附属医院 Smart Verify consulting system and its implementation based on Medicine standard problem base
CN110390003A (en) * 2019-06-19 2019-10-29 北京百度网讯科技有限公司 Question and answer processing method and system, computer equipment and readable medium based on medical treatment
CN112035636A (en) * 2020-08-28 2020-12-04 康键信息技术(深圳)有限公司 Question-answer management method, device, equipment and storage medium of medical inquiry system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114692486A (en) * 2022-03-10 2022-07-01 中国科学技术大学 Product optimization design method based on user feedback knowledge graph
CN114692486B (en) * 2022-03-10 2024-03-15 中国科学技术大学 Product optimization design method based on user feedback knowledge graph
CN115631852A (en) * 2022-11-02 2023-01-20 北京大学重庆大数据研究院 Certificate type recommendation method and device, electronic equipment and nonvolatile storage medium
CN115631852B (en) * 2022-11-02 2024-04-09 北京大学重庆大数据研究院 Certificate type recommendation method and device, electronic equipment and nonvolatile storage medium
CN115982335A (en) * 2023-02-14 2023-04-18 智慧眼科技股份有限公司 Active AI medical question-answering system, method, equipment and storage medium
CN117493681A (en) * 2023-11-15 2024-02-02 无锡胤兴智创科技有限公司 Intelligent medical information pushing system and method based on cloud computing
CN117493681B (en) * 2023-11-15 2024-05-14 无锡胤兴智创科技有限公司 Intelligent medical information pushing system and method based on cloud computing
CN117708306A (en) * 2024-02-06 2024-03-15 神州医疗科技股份有限公司 Medical question-answering architecture generation method and system based on layered question-answering structure
CN117708306B (en) * 2024-02-06 2024-05-03 神州医疗科技股份有限公司 Medical question-answering architecture generation method and system based on layered question-answering structure

Also Published As

Publication number Publication date
CN112035636A (en) 2020-12-04
CN112035636B (en) 2023-06-02

Similar Documents

Publication Publication Date Title
WO2022041727A1 (en) Question and answer management method, apparatus, and device for medical inquiry system, and storage medium
CN111414393B (en) Semantic similar case retrieval method and equipment based on medical knowledge graph
US10795949B2 (en) Methods and systems for investigation of compositions of ontological subjects and intelligent systems therefrom
KR102288249B1 (en) Information processing method, terminal, and computer storage medium
US20070067293A1 (en) System and methods for automatically identifying answerable questions
CN108664599B (en) Intelligent question-answering method and device, intelligent question-answering server and storage medium
CN112650840A (en) Intelligent medical question-answering processing method and system based on knowledge graph reasoning
CN112800170A (en) Question matching method and device and question reply method and device
CN110298029B (en) Friend recommendation method, device, equipment and medium based on user corpus
CN112214593A (en) Question and answer processing method and device, electronic equipment and storage medium
CN111274365A (en) Intelligent inquiry method and device based on semantic understanding, storage medium and server
WO2023178971A1 (en) Internet registration method, apparatus and device for seeking medical advice, and storage medium
CN108038208B (en) Training method and device of context information recognition model and storage medium
CN110795542A (en) Dialogue method and related device and equipment
CN111966810B (en) Question-answer pair ordering method for question-answer system
CN111984851A (en) Medical data searching method, device, electronic device and storage medium
CN111078837A (en) Intelligent question and answer information processing method, electronic equipment and computer readable storage medium
CN113569023A (en) Chinese medicine question-answering system and method based on knowledge graph
CN111368096A (en) Knowledge graph-based information analysis method, device, equipment and storage medium
CN113764112A (en) Online medical question and answer method
Sybrandt et al. Large-scale validation of hypothesis generation systems via candidate ranking
Elhalwany et al. Using Textual Case-based Reasoning in Intelligent Fatawa QA System.
CN114153994A (en) Medical insurance information question-answering method and device
US20230169361A1 (en) Generating answers to multi-hop constraint-based questions from knowledge graphs
CN110674276A (en) Robot self-learning method, robot terminal, device and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21859576

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.06.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21859576

Country of ref document: EP

Kind code of ref document: A1