METHOD AND SYSTEM FOR DISCOVERING ADVERSE DRUG REACTION SIGNAL BASED ON CAUSAL DISCOVERY

Information

  • Patent Application
  • 20240145059
  • Publication Number
    20240145059
  • Date Filed
    August 02, 2023
    a year ago
  • Date Published
    May 02, 2024
    8 months ago
  • CPC
    • G16H20/10
    • G16H10/20
    • G16H10/60
  • International Classifications
    • G16H20/10
    • G16H10/20
    • G16H10/60
Abstract
Disclosed is a method and a system for discovering adverse drug reaction signals based on causal discovery. According to the present application, a causality is introduced in the process of discovering adverse drug reaction signals by using electronic medical record data, the data dimension in real-world electronic medical record data is maximally reserved, a Bayesian network structure containing causal effects, as well as a set of confounding factors which plays a role in both a medication intervention and an occurrence of an adverse event are constructed. The method of constructing the set of confounding factors starts from the data, without artificial access and prior knowledge, and retains the confounding factors in the real world to the greatest extent. A medication intervention group and a control group are constructed based on these confounding factors, and the randomized controlled trial is simulated.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

The present application claims priority to Chinese Patent Application No. 202211361950.8, filed on Nov. 2, 2022, the content of which is incorporated herein by reference in its entirety.


TECHNICAL FIELD

The present application belongs to the technical field of medical information, in particular to a method and a system for discovering adverse drug reaction signals based on causal discovery.


BACKGROUND

Adverse drug reactions (ADRs) can be defined as “an appreciably harmful or unpleasant reaction resulting from an intervention related to the use of a medicinal product”. This definition includes reactions due to errors, misuse or abuse, suspicious reactions to drugs used without permission or off-label use, and reactions caused by the use of normal doses of drugs. Over the past half-century, the primary method for detecting potential ADRs has been through spontaneous reporting systems. These systems have been widely implemented worldwide and have proven to be highly effective in identifying rare and uncommon adverse events (occurring in less than 1% of treated patients) and those that are typical drug-induced symptoms. However, spontaneous reporting systems still suffer from underreporting, selective reporting, and duplicate reporting.


At present, China has basically established a monitoring system for adverse drug reactions. The invention for a patent with an authorization announcement number of CN104765947B and the invention for a patent with an authorization announcement number of CN111402971B both disclose the method of mining potential adverse drug reactions based on the spontaneous reporting of big data of adverse drug events. With the continuous development of medical informatization, more and more data are accumulated in medical information systems such as electronic medical records, which will bring new supplementary evidence for the discovery of adverse drug reactions based on spontaneous reporting system. According to the basic principles, ADR mining methods based on electronic medical record data can be divided into the following categories: methods based on ratio imbalance, traditional drug epidemiological design methods, symmetric analysis of prescription sequence, sequential statistical test, sequential association rules, supervised machine learning and tree scanning statistics. The invention for a patent “Intelligent Detection Method, Device, System and Computer Equipment for Adverse Drug Reactions” with an authorization announcement number of CN110322944B discloses a method for ADR discovery by using multi-source dynamic patient diagnosis and treatment data, which takes clear rules of adverse drug reactions as the reasoning basis and focuses on the judgment of adverse drug reactions for patients.


Clinical scenarios in the real world are more complicated than clinical trials. Doctors give drugs according to medical knowledge and experience. For example, they often give drugs individually according to patients' features, so the effects of drugs in the clinical process often show different features from those in clinical trials before marketing. Whether based on the data of a spontaneous ADR reporting system or electronic medical records, the existing ADR detection methods can be mainly divided into two categories: one is to make explicit reasoning and judgment based on the established knowledge of drugs and ADR; and the other one is based on data analysis or data mining. The former only applies the existing knowledge clinically, while the latter can only find the correlation between drugs and adverse reactions to a certain extent. Correlation does not mean that there is a causality, which will greatly reduce the possibility that the potential signals found will become new clinical evidence.


SUMMARY

In view of the shortcomings of the prior art, it is an object of the present application to provide a method and a system for discovering adverse drug reaction signals based on causal discovery. According to the present application, causality is introduced in the process of discovering adverse drug reaction signals by using electronic medical record data, the data dimension in real-world electronic medical record data is retained to the maximum extent, a Bayesian network structure containing a causality is constructed, and a set of confounding factors which have effects on both medication intervention and adverse events is constructed, and a random controlled trial is simulated based on the set of confounding factors, so that the comparison of adverse drug reactions among groups has causal significance, and then an adverse drug reaction signals with the causality is generated.


The object of the present application is achieved through the following technical solutions.


According to a first aspect of this specification, a method for discovering adverse drug reaction signals based on causal discovery is provided and the method includes the following steps:

    • acquiring and cleaning real-world electronic medical record data;
    • selecting a target drug and an adverse event, marking use of the target drug as an index event and an appearance of a target adverse event as a marker event, and constructing a patient cohort according to a patient population in which the index event or the marker event occurs;
    • generating a set of confounding factors affecting both a medication intervention and an occurrence of an adverse reaction by constructing a Bayesian network containing a causal property; and
    • constructing cohorts of an intervention group and a control group based on the set of the confounding factors, simulating a randomized controlled trial, evaluating a difference in occurrences of adverse reactions between the intervention group and the control group, and generating an adverse drug reaction signal having the causality.


Further, the target drug is a single drug, or a type of drugs having a same efficacy, or a type of drugs having a same property.


The adverse event is defined by using a diagnosis, or a specific type of laboratory reports, or both the diagnosis and the specific type of laboratory reports.


Further, the patient population in which the index event or the marker event occurs is defined as an enrolled population, inclusion and exclusion criteria are defined to screen the enrolled population, the screened enrolled population constitutes the patient cohort, and the patient data in the patient cohort constitutes the enrolled patient dataset.


Further, a generation method of the set of the confounding factors is as follows:

    • marking patient data in the patient cohort as an enrolled patient dataset, containing a feature Xindex indicating whether the index event occurs, a feature Xmarker indicating whether the marker event occurs, and other features of an enrolled patient extracted from the electronic medical record data;
    • forming a preliminary screened feature set by retaining features that will affect occurrence of the index event or the marker event through a single-factor logistic regression method; and
    • using the feature in the preliminary screened feature set as a node of the Bayesian network, learning a Bayesian network structure from the enrolled patient dataset according to a K2 algorithm, introducing a causality in a learning process of the Bayesian network structure, obtaining a parent node set of each node after a plurality of rounds of iterations, considering a common parent node of the features Xindex and Xmarker as a factor playing a role in occurrence of both the index event and the marker event, and generating the set of the confounding factors.


Further, a node priority of the K2 algorithm is optimized, specifically: using a mutual information formula with a penalty term to calculate an information amount of features in the preliminary screened feature set, ranking all the features in a descending order according to the amount of the information, and assigning a node priority degree according to ranking.


Further, a maximum number of the parent nodes of each node of the K2 algorithm is optimized, specifically: calculating mutual information and average mutual information of each feature and all other features in the preliminary screened feature set, and marking the number of times when a mutual information value of each feature and other features is greater than an average mutual information value as the maximum number of the parent nodes of the node corresponding to the feature.


Further, for a node Xi in the Bayesian network, the parent node set ΠXi is an empty set during initialization, a network score Scoreold=g(Xi, ΠXi) is calculated, where g is a scoring function, and then a cycle of searching for the parent node of the node Xi is performed; and in the cycle, when the number of the node in the set ΠXi is less than the maximum number of the parent nodes, a node having a node priority before Xi and not within ΠXi is used as a candidate node; a node z with a largest network score g(Xi, ΠXi∩{z}) is selected in the candidate node, and a network score thereof is marked as Scorenew; if Scorenew>Scoreold, a value of the Scorenew is assigned to Scoreold, ΠxiXi∩{z} is set, and a next round of iteration is performed; and the cycle is not stopped until Scorenew≤Scoreold, so as to obtain the parent node set of the node Xi.


Further, calculation formula for the scoring function g(Xi, ΠXi) is as follows:







g

(


X
i

,



X
i



)

=

{








i
=
1


n







k
=
1


r
i




N

i

k




log



(


N

i

k



n



)





,




if






X
i



is


an


empty


set














n




i
=
1



γ








"\[LeftBracketingBar]"


D



X
i





"\[RightBracketingBar]"




j
=
1







r
i



k
=
1




N
ijk



log



(


N
ijk


N
ij


)






-




if






X
i



is


not


an


empty


set













n




i
=
1




(


r
i

-
1

)





"\[LeftBracketingBar]"




D
Π




x
i




"\[RightBracketingBar]"


*

n




,












where n″ is the number of the node in the set {Xi, ΠXi}, ri is the number of all possible values of the Xi, and |DΠxi| is the number of possible values of all nodes in ΠXi; Nik represents the number of data instances where the node Xi takes a kth value xik in the enrolled patient dataset D; Nijk represents the number of data instances where the node Xi takes the kth value xik and a feature of ΠXi takes a jth value in the enrolled patient dataset D, and Nij is the number of data instances where the feature of ΠXi takes the jth value; and γ is an intensity of a temporal causal effect.


Further, by considering the occurrence of the index event as the intervention and the occurrence of the reference event as the outcome, and considering confounding factors, propensity score matching method can be employed to control for the enrolled populations in the intervention group and the control group. By comparing the occurrence of outcome events between the two groups, if the average increase in adverse reactions is greater than zero, it indicates a causal relationship between the current intervention and the outcome. In other words, the selected drug is likely to induce adverse reactions.


According to a second aspect of the present application, provided is a system for discovering adverse drug reaction signals based on causal discovery; the system includes: a data acquisition module configured to collect and clean real-world electronic medical record data; an adverse drug reaction discovery module configured to discover an adverse drug reaction signal having causality; and a signal result display module configured to present a signal discovery result; the adverse drug reaction discovery module utilizing the method for discovering adverse drug reaction signals based on causal discovery to construct a patient cohort, construct a Bayesian network containing a causal property, generate a set of confounding factors, construct an intervention group and a control group based on the set of the confounding factors, evaluate a difference in an occurrence of an adverse reaction between the intervention group and the control group, and generate the adverse drug reaction signal having the causality.


The present application has the beneficial effects that the method of constructing a set of confounding factors based on Bayesian network provided by the present application starts from the data, without artificial access and prior knowledge, and retains the confounding factors in the real world to the greatest extent. Based on these confounding factors, the control group and the intervention group in the observational study are constructed, and the relationship between drugs and adverse reactions obtained from this can be considered to have causal effect, which is more valuable in clinical guidance.





BRIEF DESCRIPTION OF DRAWINGS


FIG. 1 is a flowchart of a method for discovering adverse drug reaction signals based on causal discovery provided by an exemplary embodiment;



FIG. 2 is a schematic diagram of a Bayesian network structure including three-dimensional features provided by an exemplary embodiment;



FIG. 3 is a flow chart of Bayesian network learning provided by an exemplary embodiment; and



FIG. 4 is a structural diagram of a system for discovering adverse drug reaction signals based on causal discovery provided by an exemplary embodiment.





DESCRIPTION OF EMBODIMENTS

In order to make the above objects, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application will be described in detail with reference to the accompanying drawings.


In the following description, specific details are set forth in order to fully understand the present application, but the present application can also be implemented in other ways different from those described here, and those skilled in the art can make similar promotion without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.


As shown in FIG. 1, an embodiment of the present application provides a method for discovering adverse drug reaction signals based on causal discovery; the method includes the following steps.


Step 1: Data Acquisition and Cleaning


Real-world patient data, medication data, diagnosis data, operation data, laboratory reports and the like are obtained from electronic medical record data, and the original date and time are retained without processing. Specifically, the obtained information includes: i) demographic information: gender, age and nationality; ii) basic medical information: allergy history, family history and blood type; iii) diagnosis and treatment information: diagnosis records, laboratory reports, medication records and operation records.


First of all, the data codes are unified: gender, age, nationality, allergic history, blood type, laboratory reports and medication information use self-designed codes, and the coding form is not limited. Diagnosis and family history use ICD-10 codes, and surgical information uses ICD-9-CM codes.


After data standardization, the data are regularly merged and transformed: gender, nationality, allergy history and blood type data are filled as classified variable data according to natural conditions; diagnosis-related features and surgical information are filled as binary variables according to the codes, that is, 1 is recorded for occurrence, otherwise 0; according to the actual situation, the laboratory reports are filled as multi-classification variables, that is, those exceeding the upper limit of the normal value of the corresponding indicators are marked as “high”, those below the lower limit of the normal value are marked as “low” and those within the normal value range are marked as “normal”; the age data are divided into four groups, namely “less than 18 years old”, “18 to 44 years old”, “45 to 59 years old” and “over 60 years old”; in the case of missing data, the whole sample is excluded if the data of gender, nationality, age and blood type is missing; the absence of diagnosis-related data and operation information is regarded as not occurring, and recorded as 0; the missing data of the laboratory reports is regarded as normal.


To sum up, the collected electronic medical record data will be cleaned and transformed into a form that can be used for the discovery of adverse drug reactions in the future.


Step 2: Construction of a Patient Cohort


First, the target drug and adverse event to be analyzed are selected. For example, the selected target drug is voriconazole and the adverse event is hepatotoxicity.


The target drug can be a single drug or a type of drugs with the same efficacy or property. When a type of drugs is selected as the target drug, the selected drugs are regarded as the same drug.


Adverse event can be defined by using diagnosis or a specific type of laboratory reports or by using both diagnosis and a specific type of laboratory reports. For example, the definition of “hepatotoxicity” can be defined according to clinical practice or clinical guidelines, using the diagnosis of “drug-induced liver injury” or the following compound rules composed of diagnosis and laboratory reports:


Alanine aminotransferase≥5×upper limit of normal value (ULN).


Alanine aminotransferase≥3×ULN with total bilirubin>2×ULN.


Alkaline phosphatase≥2×ULN, without osteopathy and elevated glutamyl transpeptidase.


If one of the above rules is met, it can be considered that the target adverse event has occurred.


In that present application, the first use of the target drug and the first occurrence of the target adverse event after the first use of the target drug are define as main event occurrence nodes, the date of the first use of the target drug is recorded as an index date, and the use of the target drug is recorded as an index event; the first occurrence of the target adverse event is recorded as a marker event, and the corresponding date is recorded as a marked date. The patient population with index events or marker events is defined as the enrolled population, and on this basis, a series of specific inclusion and a series of specific inclusion and exclusion criteria can be further defined to further screen the enrolled population, or not. The screened enrolled population constitutes a patient cohort, and the patient data in the patient cohort is recorded as an enrolled patient data set.


Step 3: Discovering Adverse Drug Reaction Signals Based on Causal Discovery.


3.1 Construction of a Set of Confounding Factors Based on a Bayesian Network


The enrolled patient data set is defined as D=<Va, T>, which contains n features {X1, X2, . . . , Xn-2, Xindex, Xmarker}, in which Xindex is a feature indicating whether the index event occurs, Xmarker is a feature indicating whether the marker event occurs, and X1, X2, . . . , Xn-2 is other features extracted from the electronic medical record data of the enrolled patients. The value of the feature is stored in the feature set Va, and the time when the feature occurs is stored in the time set T. The steps of constructing the set of confounding factors are as follows (unless otherwise specified, the values of the feature X in the following steps are all taken from Va):

    • 1) Preliminary screening of feature correlation. X1, X2, . . . , Xn-2 is subjected to single factor logistic regression with Xindex and Xmarker, respectively, and the features corresponding to Xindex and Xmarker whose significance levels p are both greater than a set threshold p* are eliminated. The retained features are all features that will affect the occurrence of index events or marker events. The new feature set includes n′ features, which is recorded as a post-preliminary-screening feature set S={X1, X2, . . . , Xn′-2, Xindex, Xmarker}.
    • 2) Calculation of feature information. The information amount in the n′ features in post-preliminary-screening feature set is calculated by using the formula of mutual information with a penalty term, which emphasizes the relationship between {X1, X2, . . . , Xn′-2} and Xindex, Xmarker and weakens the mutual relationship between features in {X1, X2, . . . , Xn′-2}. Assuming that S′ is a set of remaining features after feature Xi is removed from the set X1, X2, . . . , Xn′-2, then the information amount I(Xi) of the feature Xi(i=1, 2, . . . , n′−2) is calculated as follows:







I

(

X
i

)

=






X
i



X

i

n

d

e

x






p

(


X
i

,

X

i

n

d

e

x



)



log




p

(


X
i

,

X

i

n

d

e

x



)



p

(

X
i

)



p

(

X

i

n

d

e

x


)





+





X
i



X

m

a

r

k

e

r






p

(


X
i

,

X

mark

e

r



)



log




p

(


X
i

,

X

mark

e

r



)



p

(

X
i

)



p

(

X

mark

e

r


)





-

α






X
j



S









X
i



X
j





p

(


X
i

,

X
j


)



log




p

(


X
i

,

X
j


)



p

(

X
i

)



p

(

X
j

)












where α is a weight factor, which may be generally determined by the scale of the number of features contained in the post-preliminary-screening feature set, and






α
=

1
-

1



"\[LeftBracketingBar]"

s


"\[RightBracketingBar]"








can be taken. For Xindex and Xmarker, the information amount thereof is 1. Therefore, the calculation formula of the corresponding information amount is as follows:







I

(

X

i

n

d

e

x


)

=


1
+





X
index

,

X

m

a

r

k

e

r






p

(


X

i

n

dex


,

X

m

a

r

k

e

r



)



log




p

(


X

i

n

dex


,

X

mark

e

r



)



p

(

X

i

n

d

e

x


)



p

(

X

mark

e

r


)





-

α






X
j



S










X
index

,

X
j






p

(


X

i

n

dex


,

X
j


)



log




p

(


X

i

n

dex


,

X

j
˙



)



p

(

X

i

n

d

e

x


)



p

(

X
j

)






I

(

X

m

a

r

k

e

r


)






=






X

m

a

r

k

e

r


,

X

i

n

d

e

x






p

(


X

mark

e

r


,

X

i

n

d

e

x



)



log




p

(


X
marker

,

X

i

n

d

e

x



)



p

(

X
marker

)



p

(

X

i

n

d

e

x


)





+
1
-

α






X
j



S









X
marker

,

X
j





p
(


X
marker

,

X
j



)



log




p

(


X
marker

,

X
j


)



p

(

X
marker

)



p

(

X
j

)















    • 3) Bayesian network structure learning. According to the method, causal features are introduced into the process of screening confounding factors, and the traditional K2 algorithm is improved to learn a Bayesian network structure from the grouped patient data set, so that the relationship among the features in the data set can be expressed as accurately as possible. K2 algorithm is a Bayesian network structure learning algorithm based on scoring. In order to reduce the search space, it is necessary to provide the algorithm with a priori priority of nodes and the maximum number of parent nodes of each node. According to the features of the data set of the enrolled patients, an improvement on the determination process of the above two key parameters are proposed, which is specifically as follows.





First, the optimized node priority is calculated. All the features are sorted in a descending order according to the feature information amount in the previous step, and the first feature is assigned with a node priority of 1, the second feature is assigned with a node priority of 2, and so on. If the information of multiple features is equal, they are recorded as juxtaposition, and they are assigned with the same node priority. If the priorities of m nodes are the same, the sum of mutual information between these features and Xindex and Xmarker are calculated respectively, that is:








I


(

X
i

)

=









X

i
,




X
index





p

(


X
i

,

X
index


)



log




p

(


X
i

,

X
index


)



p

(

X
i

)



p

(

X
index

)




+








X
i

,

X
marker





p

(


X
i

,

X
marker


)



log




p

(


X
i

,

X
marker


)



p

(

X
i

)



p

(

X
marker

)









I′ is sorted in a descending order, the priority of the first feature node is not added with score, and the priority of the second feature node is increased by 1/m, and so on, so as to obtain the node priority ranking of each feature.


Second, the optimized maximum number of parent nodes. The method of using the same maximum number of parent nodes for each feature in the original K2 algorithm is changed. A dynamic algorithm is used in the present application. First, the mutual information MI and the average mutual information Avg_MI of each feature and all other features are calculated. The mutual information MI of the feature Xi and Xi (Xj, XjϵS) is calculated as follows:







MI



(


X
i

,

X
j


)


=







X
i

,

X
j






p

(


X
i

,

X
j


)



log




p

(


X
i

,

X
j


)



p

(

X
i

)



p

(

X
j

)









The formula for calculating the average mutual information Avg_MI of feature Xi is as follows:







Avg_MI



(

X
i

)


=


1

n











X
j


S













X
i

,

X
j






p

(


X
i

,

X
j


)



log




p

(


X
i

,

X
j


)



p

(

X
i

)



p

(

X
j

)










The number of times that the mutual information value between each feature and other features is greater than Avg_MI value is taken as the estimated value of the number of parent nodes of the node, and it is recorded as the maximum number of parent nodes of the node.


Finally, the learning of a Bayesian network structure. In the learning process of a Bayesian network structure, the present application introduces one of the essential properties of causality, that is, “cause” occurs before “effect”. Therefore, the network to be learned by the present application is a n′-dimensional Bayesian network, which is denoted as B=(X, G, Θ), where X is the n′-dimensional feature vector; G=(N, E) is a directed acyclic graph, N={X1, X2, . . . , Xn′-2, Xindex, Xmarker} is a node of the directed acyclic graph, and E is an edge of the directed acyclic graph, which represents the dependency between features. Θ={θijk}i=1 . . . n′,jϵDΠxi,k=1 . . . ri is a parameter of the network, in which θijk=P(Xi=xikXi=wij); ΠXi represent the set of all the parent nodes of Xi in a graph G, DΠxi represents the possible values of all the nodes in ΠXi, ri is the number of all possible values of Xi, xik is the kth value of the feature Xi, wij is the jth value of the feature ΠXi, and θijk is the probability of taking the value of xik under the condition that all the parent nodes of the node Xi take the value of wij.


The meanings of N, ΠXi, DΠxi, wij and xik will be explained through an example. FIG. 2 is a schematic diagram of a Bayesian network structure, which contains three-dimensional features, namely N={after liver transplantation, voriconazole, abnormal liver function}. Let the feature Xi=abnormal liver function. For the node with abnormal liver function, it has two parent nodes, “after liver transplantation” and “voriconazole”, namely, ΠXi={after liver transplantation, voriconazole}. The possible values of the parent node include four conditions, namely, “not after liver transplantation, not taking voriconazole”, “after liver transplantation, not taking voriconazole”, “not after liver transplantation, taking voriconazole” and “after liver transplantation, taking voriconazole”, and the corresponding data can be expressed as wij having four values, DΠxi, ={{0,0}, {1,0}, {0,1}, {1,1}}, j=0,1,2,3; the “abnormal liver function” node itself has two possibilities, namely “normal liver function” and “abnormal liver function”, and the corresponding data is expressed as xik having two values for: 0 and 1, where k=0,1.


As shown in FIG. 3, for a node Xi in N, its parent node set ΠXi is set as an empty set 0 during initialization, and the network score {ΠXi, Xi} of the set Scoreold=g(Xi, ΠXi) is calculated, and then the cycle of searching the parent nodes of the node Xi is entered. In the cycle, when the number of the node in the set ΠXi is less than the maximum number of the parent nodes, for a node z having a node priority before Xi and not within ΠXi, g(Xi, ΠXi∩{z}) is calculated; the node z with argmaxz(g(Xi, ΠXi∩{z}) is taken, and Scorenew=g(Xi, ΠXi∩{z}) is compared with Scoreold. If Scorenew>Scoreold, a value of the Scorenew is assigned to Scoreold, ΠXiXi∩{z} is set, and a next round of iteration is performed; and the cycle is not stopped until Scorenew≤Scoreold, so as to obtain the parent node set of the node Xi.


In the above calculation process, the scoring function g(Xi, ΠXi) is scored by the improved Bayesian information standard with a penalty term. Because the maximum number of parent nodes estimated by the previous optimization of the present application may be greater than the actual number of parent nodes, this will bring redundant causality to the network, so the scoring function used in the present application is calculated according to the following formula:







g

(


X
i

,







X
i



)

=

{











i
=
1


n










k
=
1


r
i




N

i

k




log



(


N

i

k



n



)



,





if








X
i



-


TagBox[StyleBox["\[EmptySet]", Rule[FontWeight, "Bold"]], "\[EmptySet]"]















i
=
1


n




γ







i
=
1




"\[LeftBracketingBar]"


D



X
i





"\[RightBracketingBar]"










k
=
1


r
i




N
ijk



log



(


N
ijk


N
ij


)


-





if








X
i



=


TagBox[StyleBox["\[EmptySet]", Rule[FontWeight, "Bold"]], "\[EmptySet]"]














i
=
1


n





(


r
i

-
1

)





"\[LeftBracketingBar]"




D
Π




x
i




"\[RightBracketingBar]"


*

n



,












where n″ is the number of the node in the set {Xi, ΠXi}; Nik represents the number of data instances where the node Xi takes a kth value xik in the enrolled patient dataset D; Nijk represents the number of data instances where the node Xi takes the kth value xik and a feature of ΠXi takes a jth value in the enrolled patient dataset D, and Nijk=1ri=Nijk is the number of data instances where the feature of ΠXi takes the jth value; |DΠxi| represents the number of possible values of all nodes in ΠXi; γ is the strength of a temporal causal effect, and its size reflects the strength of this causal effect that “cause” occurs before “effect”; for a feature s in ΠXi, the instance ratio of the occurrence time Ts<TXi is calculated, and when this ratio is greater than the set threshold β (β=0.5 in this embodiment), γs=1 is recorded, and otherwise γs=0. The calculation method of γ is:






γ
=


1



"\[LeftBracketingBar]"


D

Π

x
i





"\[RightBracketingBar]"










s


D

Π

x
i







γ

s







In the calculation formula of the scoring function, the second term is a penalty term, and Σi=1n″(ri−1)|DΠxi|*n″ represents the complexity of the network. The addition of n″ can also eliminate the over-fitting problem of the network caused by the large estimated value of the largest parent node to some extent.

    • 4) Construction of the set of confounding factors for drug-adverse reaction signal discovery. In the Bayesian network calculated above, a common parent node of Xindex and Xmarker is considered as a factor that affects whether the index event and the marker event occur at the same time, and is used as a set of confounding factors in the subsequent causal evaluation of adverse drug reaction signals.


3.2 Causality Evaluation of Drug-Adverse Reaction Signals Based on Propensity Score Matching


Propensity score matching is a technique often used in clinical observational studies to control confounding deviation, which is the possibility that individuals with specific features are assigned to the intervention group (relative to the control group), that is, propensity score=p(Z=1|X), where Z is intervention, all the data of the intervention group Z=1, the data of the control group Z=0, and X is a given condition. In the real-world observational study, the method of propensity score matching can make the confounding factors of the cohort sample of the intervention group and the control group well controlled, so as to achieve the purpose of simulating the randomized controlled trial and obtain the clinical conclusion with causality.


In the present application, whether the index event occurs is considered as an intervention Z and whether the flag event occurs is considered as an end Y According to the set of confounding factors constructed based on the Bayesian network, the people who enter the intervention group and the control group are controlled by the method of propensity score matching, and the results of drug-adverse reaction signals with causal effects are obtained by comparing the occurrence of end events between the two groups. The specific methods are as follows:


Firstly, an intervention group cohort CohortCase is constructed, and all patients with index events are screened into the group. According to the confounding factor set, the confounding factor data set of the intervention group is constructed by using the confounding factor data of the patients in the cohort, and the propensity score of each sample in the intervention group cohort is calculated by logistic regression.


Secondly, a control group cohort CohortControl is constructed, and all patients without index events are screened into the group. According to the confounding factor set, the confounding factor data set of the control group is constructed by using the confounding factor data of the patients in the cohort, and the propensity score of each sample in the control group is calculated by using logistic regression.


Thirdly, stratified propensity score matching based on patient similarity. The propensity score of the intervention group is sorted in descending order, and is divided into 1/μ propensity score intervals with μ(0<μ<1) as the interval. The control group is divided into several propensity scoring intervals by the same method. For the sample case in each intervention group, the sample with the smallest distance from the case itself is selected as a match in the propensity score interval corresponding to the control sample, that is, the patient sample most similar to the patient corresponding to the case sample is selected as a match, and control group samples are formed from the matched samples. Assuming that the data set of confounding factors in the intervention group/control group contains c confounding factor features, the distance d(i, j) between samples i and j adopts the following distance calculation formula:







d

(

i
,
j

)

=








f
=
1

c



δ
ij

(
f
)




d
ij

(
f
)










f
=
1

c



δ
ij

(
f
)








where if the sample i or j does not have the metric value of the fth feature, the item δij(f)=0 (the present application completes data filling in the process of data cleaning, so the above situation does not exist); and otherwise, the indicating item δij(f)=1. dij(f) is the contribution of the fth feature to the dissimilarity between i and j. For binary classification features, there are only two states, and the two states have the same value and weight. When the corresponding binary feature values of sample i and sample j are the same, dij(f) is set to 0; otherwise, dij(f) is set to 1. For multi-classification features, it is a generalization of binary features, and more than two state values can be taken. Similar to binary features, the present application defines that when the feature values of the fth attribute of sample i and sample j are the same, dij(f) is set to 0; and otherwise, dij(f) is set to 1.


Fourthly, the average gain ASG of occurrence of adverse reactions is calculated, and the calculation formula is as follows:






ASG
=



E
[

Y




"\[LeftBracketingBar]"


Z
=
1



]

-

E
[

Y




"\[LeftBracketingBar]"


Z
=
0



]


=



1

n
1









i
=
1


n
1




Y
i


-


1

n
0









i
=
1


n
0




Y
i








where E stands for expectation, n0 and n1 represent the numbers of patients in the control group and the intervention group respectively; for a patient i, Yi stands for the occurrence of a marker event, and when a marker event occurs, Yi=1, and otherwise Yi=0. In this example, n0=n1, so the calculation result of ASG is the number of patients with marker events (adverse reactions) in the intervention group minus the number of patients with marker events (adverse reactions) in the control group, and then divided by the number of patients in the intervention group. When ASG>0, there is a causality between the current intervention and the outcome, that is, the currently selected drug will cause adverse reactions.


As shown in FIG. 4, the present application also provides an embodiment of an adverse drug reaction signal discovery system based on causal discovery, which includes:

    • a data acquisition module configured to collect and clean real-world electronic medical record data;
    • an adverse drug reaction discovery module configured to discover an adverse drug reaction signal having causality; and
    • a signal result display module configured to present a signal discovery result.


The adverse drug reaction discovery module is a core module in the present application. It utilizes the aforementioned the adverse drug reaction signal discovery method based on causal discovery. The module constructs a patient cohort, builds a Bayesian network incorporating causal characteristics, generates a set of confounding factors, creates intervention and control groups based on the confounding factors, evaluates the differences in adverse reaction occurrences between the two groups, and generates adverse drug reaction signals with causal relationships.


The present application is not limited to the existing drug-adverse reaction relationship, and the adverse drug reaction signal can be found by using the real-world electronic medical record data, so that the drug-adverse reactions that are not shown in the clinical trial stage can be identified, which is of great significance for the safe development of clinical activities.


The present application is not limited to finding the correlation between drugs and adverse reactions, and generates the most comprehensive set of confounding factors by introducing causal features into the Bayesian network construction process, and achieves the effect of simulating random controlled trials by controlling these confounding factors, so as to evaluate and verify the causality between drugs and adverse reactions.


In this application, the term “controller” and/or “module” may refer to, be part of, or include: an Application Specific Integrated Circuit (ASIC); a digital, analog, or mixed analog/digital discrete circuit; a digital, analog, or mixed analog/digital integrated circuit; a combinational logic circuit; a field programmable gate array (FPGA); a processor circuit (shared, dedicated, or group) that executes code; a memory circuit (shared, dedicated, or group) that stores code executed by the processor circuit; other suitable hardware components (e.g., op amp circuit integrator as part of the heat flux data module) that provide the described functionality; or a combination of some or all of the above, such as in a system-on-chip.


The term memory is a subset of the term computer-readable medium. The term computer-readable medium, as used herein, does not encompass transitory electrical or electromagnetic signals propagating through a medium (such as on a carrier wave); the term computer-readable medium may therefore be considered tangible and non-transitory. Non-limiting examples of a non-transitory, tangible computer-readable medium are nonvolatile memory circuits (such as a flash memory circuit, an erasable programmable read-only memory circuit, or a mask read-only circuit), volatile memory circuits (such as a static random access memory circuit or a dynamic random access memory circuit), magnetic storage media (such as an analog or digital magnetic tape or a hard disk drive), and optical storage media (such as a CD, a DVD, or a Blu-ray Disc).


The apparatuses and methods described in this application may be partially or fully implemented by a special purpose computer created by configuring a general-purpose computer to execute one or more particular functions embodied in computer programs. The functional blocks, flowchart components, and other elements described above serve as software specifications, which can be translated into the computer programs by the routine work of a skilled technician or programmer.


The above is only the preferred embodiment of one or more embodiments of this specification, and it is not used to limit one or more embodiments of this specification. Any modification, equivalent substitution, improvement and the like made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of protection of one or more embodiments of this specification.

Claims
  • 1. A method for discovering adverse drug reaction signals based on causal discovery, comprising the following steps: acquiring and cleaning real-world electronic medical record data;selecting a target drug and an adverse event, marking use of the target drug as an index event and an appearance of a target adverse event as a marker event, and constructing a patient cohort according to a patient population in which the index event or the marker event occurs; andgenerating a set of confounding factors affecting both a medication intervention and an occurrence of an adverse reaction by constructing a Bayesian network containing a causal property, wherein said generating the set of the confounding factors comprises:marking patient data in the patient cohort as an enrolled patient dataset, wherein the enrolled patient dataset comprises a feature Xindex indicating whether the index event occurs, a feature Xmarker indicating whether the marker event occurs, and other features of an enrolled patient extracted from the electronic medical record data;forming a preliminary screened feature set by retaining features capable of affecting occurrence of the index event or the marker event through a single-factor logistic regression method;taking feature in the preliminary screened feature set as a node of the Bayesian network, learning a Bayesian network structure from the enrolled patient dataset according to a K2 algorithm, introducing a causality in a learning process of the Bayesian network structure, obtaining a parent node set of a node after a plurality of rounds of iterations, taking a common parent node of the features Xindex and Xmarker as factors affecting whether both the index event and the marker event occur, and generating the set of the confounding factors;optimizing a node priority of the K2 algorithm, comprising: calculating an information amount of features in the preliminary screened feature set using a mutual information formula with a penalty term, ranking all the features in a descending order according to the amount of the information, and assigning a node priority degree according to ranking;optimizing a maximum number of parent nodes of each node of the K2 algorithm, comprising: calculating mutual information and average mutual information of a feature and all other features in the preliminary screened feature set, and marking a number of times when a mutual information value of the feature and other features is greater than an average mutual information value as the maximum number of the parent nodes of a node corresponding to the feature; andconstructing cohorts of an intervention group and a control group based on the set of the confounding factors, simulating a randomized controlled trial, evaluating a difference in occurrences of adverse reactions between the intervention group and the control group, and generating an adverse drug reaction signal having the causality.
  • 2. The method for discovering adverse drug reaction signals based on causal discovery according to claim 1, wherein the target drug is a single drug, a type of drugs having a same efficacy, or a type of drugs having a same property; and the adverse event is defined by a diagnosis, a specific type of laboratory reports, or both the diagnosis and the specific type of laboratory reports.
  • 3. The method for discovering adverse drug reaction signals based on causal discovery according to claim 1, wherein the patient population in which the index event or the marker event occurs is defined as an enrolled population, inclusion and exclusion criteria is defined to screen the enrolled population, the screened enrolled population constitutes the patient cohort, and the patient data in the patient cohort constitutes the enrolled patient dataset.
  • 4. The method for discovering adverse drug reaction signals based on causal discovery according to claim 1, wherein a parent node set ΠXi of a node Xi in the Bayesian network is an empty set when the node Xi is initialized, a network score Scoreold=g(Xi, ΠXi) is calculated, where g represents a scoring function, and a cycle of searching for a parent node of the node Xi is performed; and wherein in the cycle, when a number of nodes in the set ΠXi is less than a maximum number of the parent nodes, a node having a node priority before the node Xi and not within the set ΠXi is used as a candidate node; a node z with a largest network score g(Xi, ΠXi ∩{z}) is selected in the candidate node, and a network score of the node z is denoted as Scorenew; when Scorenew>Scoreold, a value of Scorenew is assigned to Scoreold, ΠXi=ΠXi∩{z} is set, and a next round of iteration is performed; and the cycle stops until Scorenew≤Scoreold, so as to obtain the parent node set of the node Xi.
  • 5. The method for discovering adverse drug reaction signals based on causal discovery according to claim 4, wherein a scoring function g(Xi, ΠXi) is calculated as follows
  • 6. The method for discovering adverse drug reaction signals based on causal discovery according to claim 1, comprising: by considering the occurrence of the index event as the intervention and the occurrence of the reference event as the outcome, and considering confounding factors, propensity score matching method can be employed to control for the enrolled populations in the intervention group and the control group. By comparing the occurrence of outcome events between the two groups, if the average increase in adverse reactions is greater than zero, it indicates a causal relationship between the current intervention and the outcome. In other words, the selected drug is likely to induce adverse reactions.
  • 7. A system for discovering adverse drug reaction signals based on causal discovery, comprising: a data acquisition module configured to collect and clean real-world electronic medical record data; an adverse drug reaction discovery module configured to discover an adverse drug reaction signal having the causality; and a signal result display module configured to present a signal discovery result; wherein the adverse drug reaction discovery module constructs a patient cohort with the method according to claim 1, constructs a Bayesian network containing a causal property, generates a set of confounding factors, constructs an intervention group and a control group based on the set of the confounding factors, evaluates a difference in an occurrence of an adverse reaction between the intervention group and the control group, and generates the adverse drug reaction signal having the causality.
Priority Claims (1)
Number Date Country Kind
202211361950.8 Nov 2022 CN national