A knowledge-data dual-driven method for predicting rational drug use

Through the dual-driven method of knowledge and data, combined with data-driven and knowledge-driven prediction models, the problem of low efficiency in rational drug use prediction in the existing technology is solved, the accuracy and efficiency of drug selection and dosage prediction are improved, and adverse reactions and Waste of resources.

CN116779095BActive Publication Date: 2024-09-03SOUTHWEST JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310471305.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-09-03
Estimated Expiration
2043-04-27

AI Technical Summary

Technical Problem

Existing rational drug use prediction methods have problems of 'cold start' and 'low efficiency'. Purely data-driven prediction methods are difficult to cope with the complexity of drug selection and dosage. Pure knowledge-driven methods are inefficient, leading to frequent irrational drug use. hair.

Method used

Adopting a knowledge-data dual-driven approach, we obtain raw data for preprocessing and coding, train machine learning models and build visual knowledge graphs. Combined with path reasoning, we integrate data-driven and knowledge-driven prediction models to achieve explainable and rational medication prediction.

Benefits of technology

It improves the accuracy and efficiency of drug selection and dosage prediction, reduces adverse reactions, and enhances the utilization of medical resources and the credibility of results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116779095B
    Figure CN116779095B
Patent Text Reader

Abstract

The present invention discloses a knowledge-data dual-driven rational drug use prediction method, including obtaining raw data, preprocessing the raw data in a preset manner; encoding the preprocessed data set according to different data types; training the representation data using a machine learning model; obtaining expert knowledge of rational drug use, and constructing a visual knowledge graph; reasoning the visual knowledge graph in a path-based reasoning manner to obtain a knowledge-driven rational drug use prediction model; fusing the data-driven rational drug use prediction model with the knowledge-driven rational drug use prediction model to obtain a knowledge-data dual-driven rational drug use prediction model, and performing interpretable rational drug use prediction. The present invention is based on multi-dimensional feature data, and can improve the accuracy and robustness of drug selection and drug dosage prediction for the patient; the data and knowledge dual-driven approach adopted can effectively improve the credibility of the rational drug use scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rational drug use prediction, and in particular to a knowledge and data dual-driven rational drug use prediction method. Background Art

[0002] In the context of big data and comprehensive informatization, how artificial intelligence + big data can play an important role in medical supervision is one of the core issues of smart medical care. In recent years, with the continuous emergence of new drugs, the number of clinical drugs has continued to increase. Faced with a wide range of drugs, medical staff cannot understand and master comprehensive drug information, and clinical pharmacists cannot be very familiar with the application of each type of drug. As a result, clinicians will inevitably make some irrational use of drugs when choosing drugs and drug dosages. Irrational use of drugs will not only delay or even fail treatment, cause adverse reactions and drug-induced diseases, and harm patients, but also damage the reputation of medical institutions and doctors, and even waste social resources and increase the economic burden on patients. Therefore, solving the problems caused by irrational use of drugs is of great significance to promoting the construction of smart medical care.

[0003] However, the existing prediction methods for rational drug use are relatively simple. Pure data-driven prediction methods have the problem of "cold start", and pure knowledge-driven prediction methods have the problem of "low efficiency". Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides a knowledge and data dual-driven rational drug use prediction method.

[0005] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0006] A knowledge and data dual-driven rational drug use prediction method includes the following steps:

[0007] Obtaining raw data, and preprocessing the raw data in a preset manner to obtain a preprocessed data set;

[0008] Encode the preprocessed data set according to different data types to obtain the representation data of each data;

[0009] Use machine learning models to train the representation data to obtain a data-driven rational drug use prediction model;

[0010] Acquire expert knowledge on rational drug use and construct a visual knowledge graph;

[0011] The visual knowledge graph is inferred based on path reasoning to obtain a knowledge-driven rational drug use prediction model.

[0012] The data-driven rational drug use prediction model and the knowledge-driven rational drug use prediction model are integrated to obtain a knowledge-data dual-driven rational drug use prediction model for interpretable rational drug use prediction.

[0013] Optionally, the original data specifically includes:

[0014] Patient health data, examination index data, drug interaction data, and examination instrument equipment data.

[0015] Optionally, the original data is preprocessed in a preset manner to obtain a preprocessed data set, specifically including:

[0016] Fill in or delete missing data in the original data;

[0017] The 3σ method is used to perform outlier analysis on the continuous numerical feature columns of the original data and delete the outlier sample data;

[0018] The data type of the irregular data is limited, and the above processing is completed to obtain the preprocessed data set.

[0019] Optionally, the preprocessed data set is encoded according to different data types to obtain representation data for each piece of data, specifically including:

[0020] For multivariate data, one-hot encoding is used;

[0021] Continuous data is scaled and standardized to map continuous values ​​to values ​​between 0 and 1.

[0022] Optionally, a machine learning model is used to train the representation data to obtain a data-driven rational drug use prediction model, specifically including:

[0023] The XGBoost machine learning model is trained using the representation data as the model input, and the strategy of the enhancement method of sequentially training the model is adopted to combine each subset of weak learners to obtain new stronger learners.

[0024] Optionally, obtain expert knowledge and build a visual knowledge graph, including:

[0025] Acquire expert knowledge on rational drug use and construct a knowledge graph ontology using a seven-step approach;

[0026] According to the knowledge graph ontology structure, relevant entities and relationships between entities are extracted from the knowledge, and the extracted entities and relationships are matched to form triples;

[0027] Align the acquired triples, align multiple entities with the same semantics into one entity, organize all aligned triples into structured data, and build a visual knowledge graph using the graph database model.

[0028] Optionally, a path-based reasoning method is used to reason on the visualized knowledge graph to obtain a knowledge-driven rational drug use prediction model, which specifically includes:

[0029] Use Cypher language to query and retrieve the visual knowledge graph to obtain the inference result entity;

[0030] According to the reasoning result entity, all entities from the starting point to the result are used as the interpretable reasoning path of the result to provide explainability for the result. The path is displayed by a visual knowledge graph to realize path-based knowledge graph reasoning.

[0031] Optionally, the Cypher language is used to query and retrieve the visual knowledge graph to obtain the inference result entity, including:

[0032] First, various types of patient information are obtained through matching as a starting point set;

[0033] Then the relationship between each starting node and the desired result type is used as the path relationship of each starting point, and all entities from the starting point are used as candidate entities;

[0034] Finally, the common entity obtained from each starting point is obtained to obtain the reasoning result entity.

[0035] Optionally, the data-driven rational drug use prediction model is integrated with the knowledge-driven rational drug use prediction model to obtain a knowledge-data dual-driven rational drug use prediction model, and interpretable rational drug use prediction is performed, specifically including:

[0036] The rational drug use prediction model driven by both knowledge and data is used to predict the rational drug use of the current data; when the prediction results of the data-driven rational drug use prediction model and the knowledge-driven rational drug use prediction model are consistent, they are jointly output as the final result; when the sample data is small, the prediction result of the knowledge-driven rational drug use prediction model is used as the final result, and when the sample data is large, the prediction result of the data-driven rational drug use prediction model is used as the final result;

[0037] The final prediction results are explained using a SHAP-based machine learning model.

[0038] The present invention has the following beneficial effects:

[0039] 1. In the present invention, after the model is trained, the rational drug use review model driven by knowledge data and multiple factors such as the patient's own conditions, examination indicators, drug interactions, and examination instruments and equipment can be combined to complete the drug selection and drug dosage prediction for the patient. To a certain extent, it improves medical efficiency, alleviates the problem of irregular drug use in clinical practice, prevents or alleviates adverse reactions, enables patients to obtain the best treatment effect with the least expenditure, effectively utilizes health resources, and reduces waste.

[0040] 2. In the medical field, explainability is as important as prediction accuracy. An explainable model can increase doctors’ and patients’ trust in the results. The data- and knowledge-driven approach adopted by the present invention can use SHAP to analyze the results based on the data-driven model, giving the impact of each factor on the results and the degree of impact; the knowledge graph-based model can give the reasoning path, visualize the reasoning process of the results, and explain the results. Therefore, the present invention can effectively improve the credibility of rational medication plans.

[0041] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by implementing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 Schematic diagram of the flow of a knowledge and data dual-driven rational drug use prediction method in this embodiment. DETAILED DESCRIPTION

[0043] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0044] like Figure 1 As shown, the embodiment of the present invention provides a knowledge and data dual-driven rational drug use prediction method, including the following steps S1 to S6:

[0045] S1. Obtaining raw data, preprocessing the raw data according to a preset method to obtain a preprocessed data set;

[0046] In an optional embodiment of the present invention, the original data acquired in step S1 specifically includes:

[0047] Patient health data, examination index data, drug interaction data, and examination instrument equipment data.

[0048] This embodiment is based on multi-dimensional feature data such as the patient's health status, examination indicators, drug interactions, and examination instruments and equipment, and can improve the accuracy and robustness of drug selection and drug dosage prediction for the patient.

[0049] Step S1 preprocesses the original data in a preset manner to obtain a preprocessed data set, which specifically includes the following sub-steps S11 to S13:

[0050] S11. Fill in or delete the missing data of the original data to solve the problems of many missing values ​​in the original data and irregular data records.

[0051] S12. Use the 3σ method to perform outlier analysis on the continuous numerical feature columns of the original data and delete the outlier sample data;

[0052] S13. Limit the data type of the recorded non-standard data, for example: 1. Standardize the unit of the numerical value, and record the weight in kg; 2. Standardize the recorded data type, and map the age from the original specific numerical value to the age category; complete the above processing to obtain the preprocessed data set.

[0053] S2, encoding the preprocessed data set according to different data types to obtain representation data for each data;

[0054] In an optional embodiment of the present invention, step S2 encodes the preprocessed data set according to different data types to obtain representation data of each data, which specifically includes the following sub-steps S21 to S22:

[0055] S21, use one-hot encoding method to process multivariate data;

[0056] Considering that data needs to be used for model training, clinical data is mostly categorical data, continuous data, and Boolean data, but in fact, the data required by machine learning models is digital, because only digital types can be calculated. Therefore, for various special feature values, we need to encode them accordingly.

[0057] The encoding process is also a quantitative process. Common encoding methods include integer encoding, one-hot encoding, and word embedding. Integer encoding represents different categories of the same feature with different integers, for example: 1 represents children, 2 represents adults, and 3 represents the elderly. Integers have a natural ordering relationship, which can lead to poor results or unexpected results. One-hot encoding can better avoid this problem. One-hot encoding removes integer encoding and creates a binary variable for each integer value, for example: children [0,0,1], adults [0,1,0], and the elderly [1,0,0]. Word embedding methods are often used in the field of NLP. Words are embedded in a high-dimensional vector space, and the relationship between words can be calculated through the embedding representation of each word. Since the rational drug use review data is more inclined to categorical data rather than complex semantic relationships, one-hot encoding is used for multivariate data.

[0058] S22. Scaling and standardizing the continuous data to map the continuous values ​​to values ​​between 0 and 1.

[0059] S3. Use machine learning models to train the representation data to obtain a data-driven rational drug use prediction model;

[0060] In an optional embodiment of the present invention, step S3 uses a machine learning model to train the characterization data to obtain a data-driven rational drug use prediction model, which specifically includes:

[0061] The XGBoost machine learning model is trained using the representation data as the model input, and the strategy of the enhancement method of sequentially training the model is adopted to combine each subset of weak learners to obtain new stronger learners.

[0062] In this embodiment, considering the data complexity and rate issues, XGBoost machine learning is adopted. The full name of XGBoost (Extreme Gradient Boosting) is extreme gradient boosting. The model introduces the strategy of the enhancement method of sequentially training the model, combining each subset of weak learners to obtain a new stronger learner. The core of the algorithm is to improve the problem that GBDT only uses first-order derivative information, and improve the solution efficiency of the model. At the same time, XGBoost uses the Shrikage method to reduce the probability of overfitting, which can effectively prevent overfitting.

[0063] S4. Obtain expert knowledge on rational drug use and construct a visual knowledge graph;

[0064] In an optional embodiment of the present invention, step S4 acquires expert knowledge and constructs a visual knowledge graph, which specifically includes the following sub-steps S41 to S43:

[0065] S41. Obtain expert knowledge on rational drug use and construct a knowledge graph ontology using a seven-step approach;

[0066] This embodiment crawls relevant knowledge from the Internet, discovers the relationship between knowledge through knowledge learning, and constructs a knowledge graph ontology. The specific steps include the following sub-steps S411 to S412:

[0067] S411, the ontology construction method includes two methods: top-down and bottom-up. In this embodiment, the top-down construction method is adopted, that is, the ontology layer is constructed first, and then the data layer is filled;

[0068] S412. The ontology construction is based on the seven-step ontology construction method proposed by Stanford, which specifically includes the following sub-steps S4121 to S4127:

[0069] S4121, the first step of the seven-step method is to determine the scope of the subject. In this embodiment, the scope of the subject is determined in two aspects: drugs and population, and from this, the name, gender, weight, disease, examination index, symptoms, frequency of medication, medication method, drug interaction, in vitro compatibility, treatment scope, adverse reactions, medication results, etc. are derived;

[0070] S4122, the second step of the seven-step method, consider reusing existing ontology. At present, most public knowledge graphs are mainly general knowledge graphs, which cover a wide range but are not deep enough. The target knowledge graph constructed in this embodiment is a vertical knowledge graph, which requires high professional knowledge and has a deeper application. Therefore, in this embodiment, only the ontology structure of the drug part of the drug instructions and the knowledge graph publicly disclosed in the medical field is referenced in terms of the attributes of the drug concept;

[0071] S4123, the third step of the seven-step method is to analyze domain knowledge. In this embodiment, most of the data comes from drug instructions, and the knowledge source is accurate and professional. At the same time, there are medical professionals who provide guidance and opinions. Combined with drug instructions, relevant literature and expert knowledge, the domain knowledge analysis is completed;

[0072] S4124, the fourth step of the seven-step method, constructing an ontology framework. In this embodiment, based on the analysis of knowledge, people and drugs are used as concepts, and the relationship between drugs and people is "drug use". Drugs include: drug ingredients, duration of use, specifications, interactions, in vitro compatibility, treatment of diseases, treatment symptoms, adverse reactions, and adverse reactions; people include: detection indicators, diseases, symptoms, age, gender, weight, frequency of use, method of use, and results of use;

[0073] S4125, the fifth step of the seven-step method, representing the ontology. In this embodiment, Protégé is used for ontology representation. Protégé software is an ontology editing software developed by the Bioinformatics Research Center of the School of Medicine of Stanford University based on Java language;

[0074] S4126, the sixth step of the seven-step method, evaluating the ontology. In this embodiment, after the ontology representation is completed, the ontology is evaluated by medical experts;

[0075] S4127, Step 7 of the Seven-Step Method: Determine the ontology. After the experts evaluate the ontology, they modify and optimize it according to their opinions, and finally complete the construction of the ontology layer.

[0076] S42. According to the knowledge graph ontology structure, relevant entities and relationships between entities are extracted from the knowledge, and the extracted entities and relationships are matched to form triples;

[0077] This embodiment extracts relevant entities and relationships from knowledge according to the ontology structure and specified data types, matches the extracted entities and relationships to form triples, constructs an entity relationship table, and completes the construction of the knowledge graph data layer.

[0078] In this embodiment, entity relationship extraction is performed by manual extraction, and the extracted entities and relationships are constructed into multiple triples, each triple is composed of <entity, relationship, entity>, for example: <adult, belongs to, population>; the obtained triples are aligned, and multiple entities with the same semantics are aligned into one entity, for example: adult and adult are uniformly aligned as adult.

[0079] S43. Align the acquired triples, align multiple entities with the same semantics into one entity, organize all aligned triples into structured data, and use the graph database model to build a visual knowledge graph.

[0080] This embodiment organizes all the aligned triples into structured data, that is, organizes the data into an entity table and a relationship table. The entity table includes all entities and generates a unique ID for each entity; the relationship table includes the IDs of two entities and the relationship between the two entities. The data of the two tables are imported into neo4j to build a visual knowledge graph.

[0081] S5. Use path-based reasoning to reason on the visualized knowledge graph to obtain a knowledge-driven rational drug use prediction model;

[0082] In an optional embodiment of the present invention, step S5 uses a path-based reasoning method to reason on the visualized knowledge graph to obtain a knowledge-driven rational drug use prediction model, which specifically includes the following sub-steps S51 to S52:

[0083] S51. Use Cypher language to query and retrieve the visualized knowledge graph to obtain the inference result entity;

[0084] This embodiment first obtains various types of patient information through matching as the starting point set A={a1,a2,...am}, and takes the relationship between each starting node and the desired result type as the path relationship of each starting point. All entities starting from the starting point are used as candidate entities. For example: starting from the starting entity a1, the relationship between a1 and the result entity is r1, and the candidate entity of a1 is a1 as the head entity, r1 as the tail entity set B1={b11,b12,...b1n} of the relationship. Similarly, a2 also has a corresponding candidate entity set B2={b21,b22,...b2k}. Finally, the common entity obtained from each starting point is obtained, that is, the intersection entity in the B1, B2,...Bm sets, which is the result of reasoning.

[0085] S52. According to the reasoning result entity, all entities from the starting point to the result are used as the interpretable reasoning path of the result to provide interpretability for the result. The path is displayed by a visual knowledge graph to realize path-based knowledge graph reasoning.

[0086] S6. Integrate the data-driven rational drug use prediction model with the knowledge-driven rational drug use prediction model to obtain a knowledge- and data-driven rational drug use prediction model to perform explainable rational drug use prediction.

[0087] In an optional embodiment of the present invention, step S6 integrates the data-driven rational drug use prediction model with the knowledge-driven rational drug use prediction model to obtain a knowledge-data dual-driven rational drug use prediction model, and performs explainable rational drug use prediction, which specifically includes the following sub-steps S61 to S62:

[0088] S61. Use the knowledge-data dual-driven rational drug use prediction model to predict rational drug use for current data; when the prediction results of the data-driven rational drug use prediction model and the knowledge-driven rational drug use prediction model are consistent, they are jointly output as the final result; when the sample data is small, the prediction result of the knowledge-driven rational drug use prediction model is used as the final result, and when the sample data is large, the prediction result of the data-driven rational drug use prediction model is used as the final result;

[0089] Since the data-driven model has the problem of high data dependence, it cannot achieve good results when the data sample size is small. The knowledge-driven model can alleviate the problem of the data-driven model, but it has the problem of high labor costs. Therefore, this embodiment combines the two models for rational drug use prediction, which can effectively alleviate the problem. At the same time, the combination of knowledge data can provide more explainability for the results.

[0090] When making predictions on rational drug use based on current data, the knowledge- and data-driven models are started simultaneously to obtain two results. When the two results are consistent, they are jointly output as the final result. When the sample data is small, the result of the knowledge-driven model is used as the final result, and when the sample data is large, the result of the data-driven model is used as the final result.

[0091] S62. Use the SHAP-based machine learning model to interpret the final prediction results.

[0092] Regarding the interpretability of the results, in addition to the explanation based on the knowledge graph reasoning path proposed in step S52, there is also a post-explanation of the machine learning model results based on SHAP, which is to explain the results. SHAP is a general model explanation method that supports the explanation of the results of multiple supervised learning models. SHAP provides observations on the impact of feature values ​​on target variables at individual strengths, which can intuitively show how feature values ​​affect model predictions;

[0093] In this embodiment, after the model is trained, the rational medication review model driven by knowledge data and other factors can be used to complete the drug selection and drug dosage prediction for the patient based on the patient's own conditions, examination indicators, medication use, etc. To a certain extent, it improves medical efficiency, alleviates the problem of irregular medication in clinical practice, prevents or alleviates adverse reactions, enables patients to get the best treatment effect with the least expenditure, effectively utilizes health resources, reduces waste, and has high application value.

[0094] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0095] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0097] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0098] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A knowledge-data dual-driven method for predicting rational drug use. It is characterized in that The following steps are involved: Obtaining raw data, and preprocessing the raw data in a preset manner to obtain a preprocessed data set; The original data specifically includes: patient health data, examination index data, drug interaction data and examination instrument data; Encode the preprocessed data set according to different data types to obtain the representation data of each data; Use machine learning models to train the representation data to obtain a data-driven rational drug use prediction model; Acquire expert knowledge on rational drug use and construct a visual knowledge graph; specifically: To obtain the expert knowledge of rational drug use, a seven-step method was used to construct the knowledge graph ontology. The first step was to determine the scope of the ontology, which was defined as drugs and populations, and to extend the name, gender, weight, disease, examination index, symptoms, frequency of medication, mode of medication, drug interaction, in vitro compatibility, therapeutic range, adverse reactions, and medication results. The second step was to consider reusing the existing ontology, and only refer to the drug instructions and the ontology structure of the drug part of the knowledge graph publicly available in the medical field in terms of the attributes of the drug concept. The third step was to analyze the domain knowledge, and complete the domain knowledge analysis based on the guidance and opinions provided by professionals in the medical field, combined with the drug instructions, relevant literature, and expert knowledge. The fourth step was to construct this The ontology framework, based on the analysis of knowledge, takes population and drugs as concepts, and the relationship between drugs and population is the medication relationship. Drugs include: drug ingredients, medication duration, specifications, interactions, in vitro compatibility, treatment diseases, treatment symptoms, adverse reaction diseases, adverse reaction symptoms; population includes: detection indicators, diseases, symptoms, age, gender, weight, medication frequency, medication method, medication results; the fifth step is to represent the ontology, using Protégé to represent the ontology; the sixth step is to evaluate the ontology. After the ontology representation is completed, the ontology is evaluated by medical experts; the seventh step is to determine the ontology. After the experts evaluate the ontology, it is modified and optimized according to the opinions, and finally the construction of the ontology layer is completed; According to the knowledge graph ontology structure, relevant entities and relationships between entities are extracted from the knowledge, and the extracted entities and relationships are matched to form triples; Align the acquired triples, align multiple entities with the same semantics into one entity, organize all the aligned triples into structured data, and build a visual knowledge graph using a graph database model; organizing all the aligned triples into structured data specifically includes organizing the data into an entity table and a relationship table, the entity table includes all entities and generates a unique id for each entity; the relationship table includes the ids of two entities and the relationship between the two entities; The visual knowledge graph is inferred based on path reasoning to obtain a knowledge-driven rational drug use prediction model; specifically, it includes: The Cypher language is used to query and retrieve the visualized knowledge graph to obtain the inference result entity. Specifically, the various types of patient information are obtained by matching as the starting point set; then the relationship between each starting node and the desired result type is used as the path relationship of each starting point, and all entities obtained from the starting points are used as candidate entities; finally, the common entity obtained from each starting point is obtained to obtain the inference result entity; According to the reasoning result entity, all entities from the starting point to the result are used as the interpretable reasoning path of the result to provide interpretability for the result. The path is displayed by a visual knowledge graph to realize path-based knowledge graph reasoning; The data-driven rational drug use prediction model and the knowledge-driven rational drug use prediction model are integrated to obtain a knowledge-data dual-driven rational drug use prediction model, and interpretable rational drug use prediction is performed, including: The rational drug use prediction model driven by both knowledge and data is used to predict the rational drug use of the current data; when the prediction results of the data-driven rational drug use prediction model and the knowledge-driven rational drug use prediction model are consistent, they are jointly output as the final result; when the sample data is small, the prediction result of the knowledge-driven rational drug use prediction model is used as the final result, and when the sample data is large, the prediction result of the data-driven rational drug use prediction model is used as the final result; A SHAP-based machine learning model is used to explain the final prediction results.

2. According to claim 1, a knowledge and data dual-driven rational drug use prediction method, It is characterized in that The original data is preprocessed in a preset manner to obtain a preprocessed data set, which specifically includes: Fill in or delete missing data in the original data; The 3σ method is used to perform outlier analysis on the continuous numerical feature columns of the original data and delete the outlier sample data; The data type of the irregular data is limited, and the above processing is completed to obtain the preprocessed data set.

3. According to claim 1, a knowledge and data dual-driven rational drug use prediction method, It is characterized in that The preprocessed data set is encoded according to different data types to obtain the representation data of each data, including: For multivariate data, one-hot encoding is used; Continuous data is scaled and standardized to map continuous values ​​to values ​​between 0 and 1.

4. According to claim 1, a knowledge and data dual-driven rational drug use prediction method, It is characterized in that The machine learning model is used to train the representation data to obtain a data-driven rational drug use prediction model, which includes: The XGBoost machine learning model is trained using the representation data as the model input, and the strategy of the enhancement method of sequentially training the model is adopted to combine each subset of weak learners to obtain new strong learners.