A method for extracting causal relationships of risk factors based on embedding medical causal knowledge
By constructing a feedforward neural network based on medical causal knowledge, the problem of inaccurate causal relationship mining in existing technologies is solved, causal relationship analysis consistent with evidence-based medicine knowledge is achieved, and the accuracy of medical data mining is improved.
Patent Information
- Application Number
- CN202311848403.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2043-12-29
AI Technical Summary
Existing technologies struggle to effectively uncover causal relationships between disease risk factors from clinical data, and causal discovery methods based on observational data cannot leverage existing medical expert knowledge, leading to inconsistencies between evidence-based medicine knowledge and data mining results.
By acquiring clinical data and medical causal knowledge, a feedforward neural network is constructed. The causal structure is corrected using medical causal knowledge, and the network weights are optimized by training the loss function to obtain the causal structure between disease risk factors.
It enables the extraction of causal relationships from medical data that are consistent with evidence-based medicine knowledge, provides a feasible method for analyzing the causal relationships of disease risk factors, and improves the accuracy and reliability of causal relationships.
Smart Images

Figure CN117809854B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of artificial intelligence technology, and specifically relates to a method for extracting causal relationships of risk factors based on embedding medical causal knowledge. Background Art
[0002] As a branch of computer science, artificial intelligence has been widely used in the medical field, such as medical data mining, disease prediction, medical image segmentation, bioinformatics processing, etc. The application of artificial intelligence technology in the medical field can process complex high-dimensional data, assist doctors in diagnosis, and use big data analysis to help medical centers make decisions.
[0003] Data mining is an important technology in artificial intelligence technology. Data mining technology can obtain useful information from data, and use this information to predict diseases. With the development of machine learning technology, data mining technology has become very rich, and machine learning technology is widely used in medical data mining. Among them, using data mining technology to analyze the relationship between various risk factors and between diseases and risk factors is crucial to clarify the pathogenesis of diseases, and it is also a prerequisite for disease prevention and treatment. However, most of the previous analysis techniques for disease risk factors are aimed at the correlation between these factors rather than the causal relationship, and the correlation obtained from clinical data may be inconsistent with the causal evidence relationship in evidence-based medical knowledge. For example, in gynecological diseases, the two risk factors "breast hyperplasia" and "uterine fibroids" mined from clinical data are correlated, but in evidence-based medical knowledge, "breast hyperplasia" and "uterine fibroids" are not related, and are both caused by the common cause of "hormones". Therefore, the previous analysis techniques for disease risk factors have the problem of "separation of evidence-based medical knowledge and health data mining", and it is necessary to construct a new data mining method guided by evidence-based medical knowledge. In addition, mining the pathological and physiological causal relationships of diseases has important theoretical significance and can provide clinical guidance for the prevention and treatment of diseases. Therefore, new data mining techniques are urgently needed to analyze the causal relationships between disease risk factors.
[0004] At present, the methods for mining the causal relationship of disease risk factors mainly include two categories: randomized controlled trials and causal discovery methods based on observational data. Randomized controlled trials are a traditional causal discovery method. However, in randomized controlled trials, the experimental group needs to undergo substantial intervention, which not only makes the trial cost very high, but also may bring about ethical and moral issues. The causal discovery method based on observational data can obtain the causal relationship between disease risk factors from the observational data, which can avoid the problems of randomized controlled trials. The existing causal discovery methods based on observational data can be roughly divided into three categories: constraint-based causal discovery methods, score-based causal discovery methods, and causal discovery methods based on functional causal models. However, causal discovery methods based on observational data are difficult to utilize existing domain expert knowledge. The noise in the data may affect the effect of the causal discovery algorithm. The use of expert knowledge can avoid the generation of redundant and erroneous causal edges, making the mined causal structure closer to the real causal structure, and more in line with the cognition of domain experts, so it is easier to be accepted. Summary of the invention
[0005] In order to solve the problems existing in the above prior art, the present invention proposes a method for extracting causal relationships of risk factors based on embedding medical causal knowledge, the method comprising: obtaining clinical data and medical causal knowledge; obtaining the causal structure between disease risk factors according to the clinical data and the medical causal knowledge; correcting the causal structure, inputting the corrected causal structure into a trained feedforward neural network, and obtaining the causal structure between disease risk factors;
[0006] Training a feedforward neural network involves:
[0007] S1. Obtain clinical data and medical causal knowledge, and pre-process clinical data;
[0008] S2. Construct the initial weights θ of the feedforward neural network based on the preprocessed clinical data t ;
[0009] S3, construct a directed acyclic graph of medical causal knowledge, and inject the directed acyclic graph into the feedforward neural network to obtain the recognition result;
[0010] S4, calculating the loss function of the model according to the recognition results;
[0011] S5. According to the loss function, the weight θ t Update and get Θ T ;
[0012] S6. According to the updated weight Θ T Construct the causal structure G between disease risk factors;
[0013] S7. Adjust the loss function of the model. When the loss function converges, the model training is completed.
[0014] Beneficial effects of the present invention:
[0015] This invention introduces deep learning into causal discovery, combining data-driven and knowledge-driven. This method is applied to the study of causal relationships between disease risk factors, and can mine causal relationships consistent with evidence-based medical knowledge, providing a feasible solution for mining causal relationships between disease risk factors from medical data using artificial intelligence technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Other features, objectives and advantages of the present application will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings.
[0017] Figure 1 A flow chart of a method for extracting causal relationships of risk factors based on embedding of medical causal knowledge provided in an embodiment of the present application;
[0018] Figure 2 A flowchart of the causal knowledge injection phase provided for an embodiment of the present application;
[0019] Figure 3 A diagram of a joint neural network structure according to an embodiment of the present application;
[0020] Figure 4 A schematic diagram of causal knowledge representation provided for an embodiment of the present application;
[0021] Figure 5 A schematic diagram of expert knowledge provided for an embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] In the process of filing this application, the applicant found that traditional medical data mining methods are all about mining correlations between disease risk factors, in which false correlations are inconsistent with the causal evidence in evidence-based medical knowledge, leading to the problem of "separation of evidence-based medical knowledge from health data mining". Causal discovery methods based on observational data can mine causal relationships between disease risk factors from data, but it is difficult to use existing medical expert knowledge. This application is filed to solve the above problems.
[0024] A method for extracting causal relationships of risk factors based on embedding medical causal knowledge, such as Figure 1 As shown, the method includes: obtaining clinical data and medical causal knowledge; obtaining the causal structure between disease risk factors based on the clinical data and medical causal knowledge; correcting the causal structure, and inputting the corrected causal structure into the trained feedforward neural network to obtain the causal structure between disease risk factors.
[0025] Training a feedforward neural network involves:
[0026] S1. Obtain clinical data and medical causal knowledge, and pre-process clinical data;
[0027] S2. Construct the initial weights θ of the feedforward neural network based on the preprocessed clinical data t ;
[0028] S3, construct a directed acyclic graph of medical causal knowledge, and inject the directed acyclic graph into the feedforward neural network to obtain the recognition result;
[0029] S4, calculating the loss function of the model according to the recognition result;
[0030] S5. According to the loss function, the weight θ t Update and get Θ T ;
[0031] S6. According to the updated weight Θ T Construct the causal structure G between disease risk factors;
[0032] S7. Adjust the loss function of the model. When the loss function converges, the model training is completed.
[0033] In this embodiment, the risk factor causal relationship extraction method based on medical causal knowledge embedding includes the following steps S101-S103; specifically, the following steps are included:
[0034] In step S101, the causal structure between disease risk factors is obtained based on clinical data and medical causal knowledge;
[0035] In step S102, the revised causal structure is obtained using expert knowledge;
[0036] In step S102, a causal structure between risk factors close to the actual disease is obtained based on the corrected causal structure.
[0037] According to an embodiment of the present application, a schematic diagram of medical causal knowledge representation is as follows: Figure 4 shown. Figure 4 It includes three causal structures in the causal graph: a chain, a collider, and a fork. The schematic diagram of expert knowledge is as follows: Figure 5 shown. Figure 5 It is the expert knowledge of diabetes risk factors, represented as an adjacency matrix of a directed acyclic graph, where the gray squares in the figure indicate that there are causal edges between disease risk factors, and the white squares indicate that there are no causal edges between disease risk factors.
[0038] Figure 2 This is a flow chart of the causal knowledge injection stage. Specifically, the specific process of the causal knowledge injection stage includes the following steps S201-S205.
[0039] In step S201, the clinical data is preprocessed, the missing values in the clinical data set are replaced by the mean replacement method, the data is normalized, and the outliers are replaced by the mean value;
[0040] In step S202, the joint neural network is randomly initialized, or the weights θ that have been trained on clinical data are initialized. t ;
[0041] In step S203, the medical causal knowledge is injected into the joint network in the form of a directed acyclic graph;
[0042] In step S204, the weight θ is adjusted using the loss function t Update to get Θ T ;
[0043] In step S205, according to the weight θ T Obtain the causal structure G between disease risk factors.
[0044] Modifying the causal structure includes: constructing a directed acyclic graph G based on expert knowledge ek , the directed acyclic graph is used as feedback to the causal structure G learned by the joint neural network. If the causal edges in G are connected to G ek If the causal edges in are inconsistent, the causal edges in G are modified to obtain a modified causal graph G1; the content of the causal structure is the causal relationship between the feature variables, and these relationships are represented in the form of a directed acyclic graph, and the causal structure is represented as a directed acyclic graph DAG.
[0045] According to an embodiment of the present application, the structure diagram of the joint neural network is as follows: Figure 3 shown. Figure 3In the joint neural network, there is an input layer, multiple hidden layers, and an output layer. This application defines the total number of input features and output features as d+1. The joint neural network has d+1 subnetworks, where the input layer has (d+1)×d neurons, because at least one input neuron in each subnetwork is shielded (gray nodes, corresponding to output nodes), so each subnetwork is used to reconstruct a feature. The hidden layers are shared and encode information from all subnetworks. The output layer has d+1 neurons.
[0046] Construct the initial weights Θ of the feedforward neural network t It includes two stages. The first stage is to randomly initialize the network weights. This situation exists before the learned causal structure is modified. The feedforward neural network is randomly initialized and the causal structure G is obtained using clinical data and medical causal knowledge. The second stage is to establish the weights Θ on the clinical data. t , which exists after the learned causal structure is modified. At this time, the neural network has been trained once and the weights have fitted the clinical data.
[0047] According to an embodiment of the present application, medical causal knowledge is injected into the joint network in the form of a directed acyclic graph. The injection of causal knowledge is achieved by masking the weights of the input layer; specifically, if there is no causal edge between two features in the directed acyclic graph, the weight of the neuron corresponding to the feature is set to 0. For example Figure 3 Whether the edge between feature X1 of neutron network 1 and the masked feature Y belongs to the injected causal knowledge ((X1,Y)∈G), if so, no masking is applied, otherwise the weight of the neuron corresponding to X1 is set to 0.
[0048] The loss function of the model is:
[0049]
[0050]
[0051]
[0052] Among them, R DAG Loss for cause and effect discovery; represents the matrix containing all variables in DAG; f Θ is represented as L N is the reconstruction loss, but it is different from the standard reconstruction loss of the autoencoder, L N The model is simply allowed to reconstruct each input feature and target feature from other variables; is the acyclic constraint loss. When it is minimized, the relationship between the learned variables is causal. Tr() is the trace of the matrix. M is a (d+1)×(d+1)-dimensional matrix. ⊙ is the Hadamard product, and d is the number of input features. is the weight matrix in Θ1 The l1 paradigm.
[0053] Constructing the causal structure G between disease risk factors includes:
[0054] According to the weight Θ T Obtain the causal structure between disease risk factors and use weight Θ T Get the adjacency matrix W G =(w ik ), where w ik is the square root of the sum of the squares of the input layer weights from all the hidden layer neurons, and its expression is:
[0055]
[0056] W G The transformation is performed to obtain the causal structure G between disease risk factors, and its transformation is expressed as:
[0057] G τ (W G )=(V,E τ (W G ))
[0058] E τ (W G )={(i,k)|w ik >w ki ∧w ik >τ}
[0059] Among them, τ is a threshold, which is used to remove the G Meaningless relationship.
[0060] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for extracting causal relationships of risk factors based on embedding medical causal knowledge, It is characterized in that include: Access to clinical data and medical causal knowledge; Obtain the causal structure between disease risk factors based on clinical data and medical causal knowledge; The causal structure is modified and input into the trained feedforward neural network to obtain the causal structure between disease risk factors; Training a feedforward neural network involves: S1. Obtain clinical data and medical causal knowledge, and pre-process clinical data; S2. Construct the initial weights θ of the feedforward neural network based on the preprocessed clinical data t ; S3, construct a directed acyclic graph of medical causal knowledge, and inject the directed acyclic graph into the feedforward neural network to obtain the recognition result; S4. Calculate the loss function of the model according to the recognition result; the loss function of the model is: Among them, R DAG Loss for cause and effect discovery; represents the matrix containing all variables in DAG; f Θ is represented as L N is the reconstruction loss, L N To only allow the model to reconstruct each input feature and target feature from other variables; is the acyclic constraint loss. When it is minimized, the relationship between the learned variables is causal. Tr() is the trace of the matrix. M is a (d+1)×(d+1)-dimensional matrix. ⊙ is the Hadamard product, and d is the number of input features. is θ 1 Medium weight matrix l 1 Paradigm; S5. According to the loss function, the weight θ t Update and get Θ T ; S6. According to the updated weight Θ T Construct the causal structure G between disease risk factors; specifically include: according to the weight Θ T Obtain the causal structure between disease risk factors and use weight Θ T Get the adjacency matrix W G =(w ik ), where w ik is the square root of the sum of the squares of the input layer weights from all the hidden layer neurons, and its expression is: W G The transformation is performed to obtain the causal structure G between disease risk factors, and its transformation is expressed as: G τ (W G )=(V,E τ (W G )) E τ (IN G )={(i,k)|in ik >w ki ^in ik >τ} Among them, τ is a threshold, which is used to remove the G meaningless relationships; S7. Adjust the loss function of the model. When the loss function converges, the model training is completed.
2. According to claim 1, a method for extracting causal relationships of risk factors based on embedding medical causal knowledge, It is characterized in that Modifying the causal structure includes: constructing a directed acyclic graph G based on expert knowledge ek , the directed acyclic graph is used as feedback to the causal structure G learned by the joint neural network. If the causal edges in G are connected to G ek If the causal edges in G are inconsistent, the causal edges in G are modified to obtain the modified causal graph G 1 ; The content of the causal structure is the causal relationship between the feature variables, and these relationships are represented in the form of a directed acyclic graph. The causal structure is represented as a directed acyclic graph DAG.
3. According to claim 1, a method for extracting causal relationships of risk factors based on embedding medical causal knowledge, It is characterized in that The preprocessing of clinical data includes replacing missing values in the clinical data set using the mean replacement method, normalizing the replaced data, and replacing outliers with the mean value.
4. According to claim 1, a method for extracting causal relationships of risk factors based on embedding medical causal knowledge, It is characterized in that Construct the initial weights Θ of the feedforward neural network t It includes two stages. The first stage is to randomly initialize the network weights. This situation exists before the learned causal structure is modified. The feedforward neural network is randomly initialized and the causal structure G is obtained using clinical data and medical causal knowledge. The second stage is to establish weights θ on clinical data t , which exists after the learned causal structure is modified. At this time, the neural network has been trained once and the weights have fitted the clinical data.
5. According to claim 1, a method for extracting causal relationships of risk factors based on embedding medical causal knowledge, It is characterized in that The feedforward neural network consists of d+1 sub-networks, each of which contains d input neurons; each input neuron consists of an input layer, multiple hidden layers, and an output layer.
6. According to claim 1, a method for extracting causal relationships of risk factors based on embedding medical causal knowledge, It is characterized in that Injecting a directed acyclic graph into a feedforward neural network includes: the directed acyclic graph is medical causal knowledge; the causal knowledge injection is achieved by masking the weights of neurons in the input layer so that there is no corresponding weight in the input graph; the masked weights, that is, the weights Assign a value of 0, where represents the weight from the deep neuron i in the input layer to the neuron j in the first hidden layer in the kth sub-network.
