Next Article in Journal
Aggregating Image Segmentation Predictions with Probabilistic Risk Control Guarantees
Previous Article in Journal
Theoretical Properties of Closed Frequent Itemsets in Frequent Pattern Mining
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Performance of Apriori Algorithm for Detecting Drug–Drug Interactions from Spontaneous Reporting Systems

1
Department of Biostatistics, University of North Carolina at Chapel Hill, Chapel Hill, NC 27599, USA
2
Department of Mathematics and Statistics, Univerisy of North Carolina at Greensboro, Greensboro, NC 27412, USA
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2025, 13(11), 1710; https://doi.org/10.3390/math13111710
Submission received: 18 April 2025 / Revised: 15 May 2025 / Accepted: 22 May 2025 / Published: 23 May 2025
(This article belongs to the Section D1: Probability and Statistics)

Abstract

:
Drug–drug interactions (DDIs) can pose significant risks in clinical practice and pharmacovigilance. Although traditional association rule mining techniques, such as the Apriori algorithm, have been applied to drug safety signal detection, their performance in DDI detection has not been systematically evaluated, especially in the Spontaneous Reporting System (SRS), which contains a large number of drugs and AEs with a complex correlation structure and unobserved latent factors. This study fills that gap through comprehensive simulation studies designed to mimic key features of SRS data. We show that latent confounding can substantially distort detection accuracy: for example, when using the reporting ratio (RR) as a secondary indicator, the area under the curve (AUC) for detecting main effects dropped by approximately 30% and for DDIs by about 15%, compared to settings without confounding. A real-world application using 2024 VAERS data further illustrates the consequences of unmeasured bias, including a potentially spurious association between COVID-19 vaccination and infection. These findings highlight the limitations of existing methods and emphasize the need for future tools that account for latent factors to improve the reliability of safety signal detection in pharmacovigilance analyses.

1. Introduction

Pharmacovigilance [1], the post-marketing monitoring of drug safety, relies heavily on spontaneous reporting systems (SRSs) such as the FDA Adverse Event Reporting System (FAERS) [2] and the Vaccine Adverse Event Reporting System (VAERS) [3]. These systems collect voluntarily submitted reports of adverse events (AEs) and play a crucial role in identifying drug-associated adverse events (AEs, i.e., side effects), including those due to drug–drug interactions (DDIs), which are often not captured during clinical trials [4,5,6]. Detecting DDIs in SRS data is particularly challenging due to their high dimensionality, sparsity, and lack of structured covariate information.
Among the tools commonly used for drug safety signal detection in SRSs, the Apriori algorithm [7] stands out for its model-free nature, minimal reliance on assumptions, and reduced computation burden for large databases. Despite its popularity, the performance of the Apriori algorithm in detecting DDIs has not been thoroughly evaluated under realistic data settings. Prior studies [8,9,10,11,12] have generally applied Apriori to real datasets without examining how data characteristics, such as sparsity, outcome correlations, and hidden confounding, affect its accuracy.
Moreover, a critical gap in the literature is the absence of discussion regarding the impact of potential latent confounders. These latent confounders, also known as unobserved heterogeneity, are inherent in SRSs because these systems rely on voluntary, unstructured reports rather than systematically collected data. Such unobserved influences can affect both the likelihood that an adverse event is reported and its association with particular drugs or drug combinations, thereby introducing reporting bias and confounding conditions, and, consequently, significantly distorting detection results.
This methodological oversight represents a substantial gap between current analytical approaches and the complex reality of SRS data. To fill the above two critical gaps, the main contribution of this paper is therefore twofold: (1) to systematically examine the performance of the Apriori algorithm for DDI detection across a wide range of simulated conditions that mirror features of SRS data, and (2) to quantify, through rigorous simulation studies and real data analysis, how this oversight affects performance metrics in DDI detection across different confounding scenarios. To our knowledge, this is the first study to systematically evaluate how latent confounders affect the performance of association rule mining in the context of drug safety signal detection.
The remainder of this paper is structured as follows. In Section 2, we describe the Apriori method used for detecting both drug–AE association pairs and DDIs in SRSs. Section 3 presents a comprehensive simulation study that evaluates the performance of the Apriori approach in uncovering drug safety signals from SRSs under various confounding scenarios. In Section 4, we apply the Apriori method to the real-world VAERS database, highlighting how the presence of latent confounders affects results in practice. Conclusions and discussions regarding limitations, and future research directions to address the confounding challenge are provided in Section 5.

2. Apriori Method

The Apriori algorithm is selected as the framework to identify drug safety signals in this study based on several methodological and practical considerations that are relevant to the specific context of pharmacovigilance and spontaneous reporting systems (SRSs).
First, Apriori remains one of the most widely used and well-established algorithms for association rule mining, especially in applications involving large-scale, high-dimensional, and sparse data such as those in SRSs. Its popularity stems from its model-free nature, scalability, and transparent output structure, which makes it particularly suitable for exploratory pattern discovery. The algorithm’s ability to generate easily interpretable association rules, such as ‘Drug A and Drug B → AE X’, is especially valuable in the context of pharmacovigilance, where regulatory agencies and healthcare providers prioritize interpretability and accountability in decision making.
In addition, unlike many machine learning (ML) or deep learning (DL) methods that require labeled training data and are typically designed for single-outcome prediction tasks, the Apriori algorithm can flexibly accommodate multiple outcomes. This feature is essential in SRS datasets, where a single report may include multiple AEs, and the goal is to detect co-occurrence patterns without pre-specifying a target variable. While multi-label classification methods have been developed in the ML literature, they often suffer from scalability issues or lack the interpretability needed in drug safety applications [13]. Moreover, Apriori is computationally efficient and scalable to massive datasets like FAERIES or VAERS, while many ML or DL models are computationally expensive and prone to overfitting when applied to such types of datasets.
Finally, the objective of this paper is not to propose a fully optimized prediction framework, but rather to systematically study the effect of latent confounding on drug safety signal detection from SRSs. The Apriori algorithm, with its transparent rule structure and modular form, offers a clear platform for this foundational investigation and is more acceptable compared with black-box models like DL.

2.1. Apriori Algorithm for Drug–AE Association Detection

Association rule mining (ARM) is one of the well-established unsupervised learning techniques, frequently used to discover interesting relationships between variables hidden in large databases. The Apriori method, first proposed by Agrawal and Srikant (1994) [7], is a type of ARM and has wide applications, especially in the field of marketing analysis. Consider a dataset containing n transactions or reports, where each transaction/report T consists of a set of items. Let X and Y be two disjointed sets of items. An association rule is expressed as an implication of the form X Y . For example, in the scenario of PhV, the antecedent X can be a set of drugs, and the consequent Y is a set of AEs.
There are several indicators that are frequently used in ARM. The first one is Support, which is defined as the percentage of all reports that include both X and Y, that is,
S u p p o r t ( X Y ) = n x y n ,
where n x y is the number of reports in the dataset that have both sets of elements X and Y.
Second, the Confidence is denoted as the conditional probability of Y given X, i.e., the proportion of occurrences of Y among the reports containing occurrences of X in the dataset:
C o n f i d e n c e ( X Y ) = S u p p o r t ( X Y ) S u p p o r t ( X ) .
The higher the confidence, the stronger the association between X and Y.
Third, the Lift represents the ratio between the Confidence of the rule and the Support of the item set in the consequent of the rule. That is,
L i f t ( X Y ) = C o n f i d e n c e ( X Y ) S u p p o r t ( Y ) = S u p p o r t ( X Y ) S u p p o r t ( X ) × S u p p o r t ( Y ) .
The Lift score measures the relative magnitude of the probability of observing Y under the condition of X, compared to the overall probability of observing Y. If Lift = 1, X and Y are independent of each other. When Lift is greater than 1, X and Y are not independent, and the higher the Lift value, the greater the relevance of X and Y [14].
Finally, Conviction is interpreted as the expected frequency that X occurs without Y if they are independent, divided by the observed frequency of incorrect predictions, which is mathematically defined as
C o n v i c t i o n ( X Y ) = 1 S u p p o r t ( Y ) 1 C o n f i d e n c e ( X Y ) .
Conviction is an indicator that illustrates whether a wrong prediction is made. If the value of Conviction is large, it is unlikely that Y is not true for the premise of X [15].
The classic Apriori algorithm operates in two steps. The first step searches for item sets that exceed a minimum Support threshold, while in the second step, association rules are mined from these frequent item sets based on thresholds from a secondary indicator, usually a Confidence score. The Apriori algorithm leverages the downward closure property of frequency to efficiently prune the search space. This property states that if an item set is infrequent, then any larger item set containing it will also be infrequent and can be removed from the search space. This “a priori” knowledge of frequency patterns significantly reduces computational complexity, making the algorithm particularly suitable for spontaneous reporting systems, which typically contain thousands or even millions of reports with hundreds to thousands of variables (drugs/vaccines).
However, using Confidence as the secondary indicator has proven to be inappropriate in drug safety surveillance [9,10,11]. This limitation arises because frequently reported AEs, such as headaches or nausea, often yield high Confidence scores irrespective of their true association with a given drug. In contrast, rare AEs tend to produce lower Confidence values, even when strong associations with specific drugs exist. In Sarkar and Sun (2024) [16], the authors demonstrate that employing disproportionality measures, such as the proportional reporting ratio (PRR) [17], the relative reporting ratio (RR) [9] and the reporting odds ratio (ROR) [18], as secondary indicators yields better performance than Confidence in terms of detection sensitivity, specificity, and overall accuracy.

2.2. Apriori Algorithm for DDI Detection

Typically, the variables in one report from the spontaneous reporting system can be classified into three categories. One is the clinical (or covariate) variables, including the patient’s age, gender, and so on. Another group contains the variables recording the drug usage information, such as which drug(s) is(are) used and the corresponding dosage(s). The third category usually includes the AE information, such as what adverse events are reported here.
If the classic Apriori was applied directly to the spontaneous reporting system data with three categories of variables as a whole, then some of the selected rules might contain variables from only one category, or from only clinical and AE categories, consequently missing the interesting DDIs. Therefore, to identify DDIs, it is natural to modify the classic Apriori by adding constraints to the variable categories. That is, one should only consider the variables belonging to drug and AE categories, ignoring clinical variables, and restrict the search space to include rules with at least one drug and one AE. This modification only reduces the search space, and consequently reduces the computation burden for the Apriori algorithm, but also ensures the generated rules from this modified Apriori contains both drug and AE information, avoiding the situations of selecting only {drug, drug} or {AE, AE} item sets. In addition, this modification inherits the hierarchical nature, i.e., the downward closure property of frequency, of the classic Apriori, so as to further prune the search spaces and decrease the computation cost. Consequently, the steps for detecting DDIs by using Apriori with this modification are as follows:
  • Choose all individual drugs and AEs that have Support larger than a pre-defined threshold, minsup. Denote the set for all selected drugs as D 1 and the set for all selected AEs as A 1 .
  • For all possible combinations of 2-item pairs ( d , a e ) , where d D 1 and a e A 1 , calculate the corresponding Support and remove the pairs with Support less than minsup. Denote the set for the remaining pairs as D A . Use D 2 and A 2 to represent the set that contains all unique drugs and unique AEs in D A , respectively.
  • For each 2-item pair ( d 1 , d 2 ) in the set D 2 , where d 1 d 2 , compute the Support scores for all 3-item triplets ( d 1 , d 2 , a e ) , with a e A 2 . The set for the triplets that have Support larger than minsup is denoted as D D A .
  • For each triplet in the set D D A , compute the score for a secondary Apriori indicator. The triplets with this secondary score larger than the pre-defined threshold are then identified as the desired DDIs associated with AEs.
Previous studies that used a similar approach as above to identify DDIs employed various secondary indicators for the purpose of identification in the final step of the analysis. These indicators include Lift [12], as well as disproportionality measures PRR [8,10,11] and RR [9]. For any drug–drug–AE combination, disproportionality measures quantify the difference between the observed and expected number of reports for that AE associated with a given drug–drug pair, relative to the overall reporting frequency in the database. These measures can be calculated using the 2 × 2 contingency table in Table 1.
In particular, the Proportional Reporting Ratio (PRR) is the ratio between the proportion of a suspected AE among individuals who consume a particular drug–drug combination and the proportion of this AE among subjects that consume other drug combinations. That is,
P R R = a / ( a + b ) c / ( c + d ) = a ( c + d ) c ( a + b )
A PRR value exceeding one suggests an elevated prevalence of reports featuring the suspected AE in association with the specified drug–drug pair relative to reports of this AE occurring with alternative medications [17].
The Relative Reporting Ratio (RR) represents the ratio between a rule’s observed frequency and a baseline expected frequency for all reports in the database. It can be calculated as
R R = P r { A E } { D r u g D r u g } P r A E · P r D r u g D r u g = n a ( a + c ) ( a + b ) .
An RR value larger than one indicates that the co-occurrence of the suspected AE and the suspected drug–drug pair is more frequently reported than would be expected if they were independent of each other [9].
The Reporting Odds Ratio (ROR) is the ratio between the reporting odds of a suspected AE among individuals exposed to a specific drug and the reporting odds of this AE among subjects that are not exposed to the specific drug. That is
R O R = a / b c / d = a d b c
The ROR measures the likelihood of an AE being reported in the presence of a certain drug pair compared to the likelihood of that AE being reported in the absence of that drug pair. An ROR value exceeding one provides strong evidence of the association between the suspected AE and suspected drug pair [18].
It is important to note that all these metrics—Support, Confidence, Lift, ROR, and PRR—are fundamentally calculated from 2 × 2 contingency tables. Each table represents a simplified model examining the relationship between a single drug (or drug combination) and a single adverse event. This approach can be viewed as equivalent to fitting a series of simple logistic regression models, each with one outcome (AE) and one covariate (either a single drug or a drug–drug interaction term).
While computationally efficient, this framework inherently makes several strong assumptions that rarely hold in real-world spontaneous reporting data. First, it treats each drug–AE or DDI-AE association as independent, ignoring potential correlations among adverse events. Second, and perhaps more critically, this approach disregards the presence of latent confounders—unmeasured variables that may influence both drug administration patterns and adverse event reporting. Such confounders could include patient demographics, underlying health conditions, reporting behaviors of different healthcare providers, or temporal trends in reporting—none of which are typically accounted for in the standard Apriori implementation. As our simulation study will demonstrate, these methodological limitations can significantly impact the performance of the Apriori algorithm in detecting true drug safety signals, particularly in the complex, heterogeneous data environment of spontaneous reporting systems.

3. Simulation Studies

Although several studies have applied the Apriori algorithm to detect DDIs from spontaneous reporting systems (SRSs) [9,11,12], they have primarily focused on implementation aspects, with limited evaluation of the algorithm’s performance under realistic conditions. Most critically, no previous work has systematically assessed how the presence of latent confounders—a common feature in SRS data—affect detection accuracy. To address this gap, we conducted a series of comprehensive simulation studies to evaluate the performance of the modified Apriori approach described in Section 2.2 for identifying drug–drug interactions under various scenarios that mimic the challenges inherent in spontaneous reporting systems. These challenges include high dimensionality, data sparsity, weak signal strength, complex correlation structures, and—central to our investigation—the presence of latent confounding factors. In this section, we first present our simulation design, followed by detailed results that demonstrate the substantial impact of confounding on DDI detection performance

3.1. Data Generation Model

Assume that we have collected data { ( x i , y i ) ; i = 1 , , n } from n subjects, where y i = ( y i 1 , , y i d ) T denotes d responses (AEs) and x i = ( x i 1 , , x i p ) T is a p × 1 vector of covariates (drugs and drug–drug interactions) for subject i. Here, p is the number of drugs plus the number of all possible drug–drug interactions. That is, if there are m drugs, then p = m + m 2 . Given that y i j { 0 , 1 } , we assume a generalized linear mixed model for y i given x i and conditional on random effects b i j ,
h ( μ i j ) = x i T β j + b i j ,   i = 1 , , n ;   j = 1 , , d .
where μ i j = E ( y i j | x i , β j , b i j ) is the conditional mean of y i j given x i and b i j , with h ( μ i j ) being the logit link function; β j R p are the regression coefficients; and b i j represents a subject-specific random effect for y i j , the occurrence of the jth AE for subject i.
To model the dependence among AEs, we assume a latent factor model for b i = ( b i 1 , , b i d ) T . That is
b i = Λ η i ,
where Λ = ( λ j k ) is a d × K factor loading matrix with K being the number of latent factors, and η i R K is the potential latent factors for subject i following a multivariate normal distribution with variance covariance matrix I K . The purpose of including this subject-specific random effect, b i , is to induce dependence among the binary outcomes conditional on X n × p = ( x 1 , , x n ) T . We are not interested in estimating Λ , but we still require that the upper triangular part of Λ is 0, i.e., λ j k = 0 if j < k , to ensure the identifiability of Λ as discussed in [19].
Combining Equations (8) and (9), the resulting multivariate logistic regression model can be viewed as a generalized linear mixed effects model (GLMM) for repeatedly measured binary outcomes, but with a specific covariance structure described by a factor analysis model.
To systematically evaluate the impact of latent confounders, we consider three distinct scenarios for generating the subject-specific random effects b i via Equation (9):
  • Scenario 1 (No Random Effects): We assume no random effects, setting Λ = 0 . This represents the idealized case assumed by standard Apriori implementations.
  • Scenario 2 (Random Effects Without Confounding): We introduce subject-specific random effects b i = Λ η i , where Λ = ( λ j k ) with λ j k = 0 if j < k and λ j k N ( 0 , 1 ) if k , representing dependence among AEs, and η i N ( 0 , I K ) . Under this setup, the random effects b i are independent of X , and thus, η i do not function as latent confounders.
  • Scenario 3 (Random Effects With Confounding): We maintain the same structure for Λ as in Scenario 2, but crucially, we introduce correlation between η i and X by defining η i = A x i T + W , where both A K × p and W K × 1 are generated from N ( 0 , I K ) . In this scenario, η i represent true latent confounders, creating spurious associations between drugs and adverse events.

3.2. Simulation Setups

To mimic the real-world characteristics of spontaneous reporting systems, we simulated X by sampling from the VAERS vaccine data from 2018, by viewing vaccines as a type of drug. For each replication, we sampled n records (reports), retained the drug (i.e., vaccine) usage information, and expanded it as X by including both single drugs and all possible two-way interactions. Given X , we generated the adverse event data Y n × d = ( y i j ) following the multivariate logistic regression model described previously.
We set sample sizes at n = 5000 and 10,000. Due to computational constraints, we focused on low to moderate dimensions rather than high-dimensional scenarios. Specifically, we set the number of drugs (m) and adverse events (d) to be m = d = 10 and m = d = 20 . It is important to note that with m = 10 drugs, there are 45 potential two-way interaction terms, resulting in p = 55 total covariates; with m = 20 drugs, there are 190 possible two-way interaction terms, yielding p = 210 total covariates.
When generating adverse events ( Y ) using Equation (8), for a fixed number of drugs m, there are m × d coefficients β j l representing main effects, and ( p m ) · d coefficients representing all two-way interaction effects, for j = 1 , , d and l = 1 , , p . Among the main effect coefficients, we designated five to be non-zero (set to 1.0), indicating significant drug–AE associations. Similarly, among all interaction coefficients, we designated three to be non-zero (also set to 1.0), representing significant DDIs. We included an intercept term β j 0 calibrated to maintain an overall AE prevalence of approximately 10 % .
To comprehensively evaluate the algorithm’s performance under different effect structures, we considered four distinct scenarios for generating the relationships between main effects and interactions:
  • Main effects only: no two-way interactions exist.
  • Interaction effects only: no main effects exist.
  • Independent effects: both main effects and two-way interactions exist but are generated independently.
  • Hierarchical effects: both main effects and two-way interactions exist, with a hierarchical structure—if drugs i and j have a significant interaction effect, then both also have significant main effects.
For each simulation setting, we performed N = 200 replications. In each replication, we implemented the Apriori algorithm described in Section 2.2 and computed scores for various secondary indicators: Confidence, Lift, PRR, ROR, and RR for both main effects and DDIs. The value of minsup was set to 3 to exclude extreme cases where a drug–AE pair or DDI appears in only one or two reports, which are unlikely to provide reliable evidence. In practice, the choice of minsup can be tailored to the dataset. For instance, one can set minsup as a small proportion of the total sample size, such as 1% of n.
While Sarkar and Sun (2024) [16] evaluated performance based on sensitivity, specificity, and overall accuracy using pre-selected thresholds, we recognized that threshold selection is inherently subjective and that comparing different indicators at the same threshold value can be misleading since each captures distinct aspects of association. Therefore, we employed the area under the receiver operating characteristic curve (AUC) as our primary performance metric, which provides a threshold-independent measure of each indicator’s ability to discriminate between true and false associations for both main effects and drug–drug interactions.

3.3. Performance Evaluation

3.3.1. No Random Effect

In this scenario, we assume no subject-specific random effects exist, setting Λ = 0 in Equation (9). This represents the idealized case most commonly assumed in standard Apriori implementations.
Table 2 summarizes the AUC values for detecting main effects across different sample sizes (n), numbers of drugs (m), numbers of adverse events (d), coefficient generation settings, and secondary Apriori indicators. All indicators perform well in this scenario, consistently achieving high AUC values. When the sample size is moderate ( n = 5000 ), we observe a slight decrease in AUC values as the dimensionality (m and d) increases. However, with a larger sample size (n = 10,000), this dimensionality effect becomes negligible, and performance remains robust. Note that for the second coefficient generation setting (interaction effects only), AUC values are not reported since this setting assumes no true main effects exist.
The results for detecting interaction effects are presented in Table 3. For the first coefficient generation setting (main effects only), no AUC values are reported since this setting assumes no true interaction effects exist. Compared to main effect detection, the AUC values for identifying interaction effects are generally lower, likely due to the low frequency of reports with relevant drug pairs as well as relative rarity of true DDIs in our simulation design. As expected, larger sample sizes substantially improve detection performance. Interestingly, we observe that performance actually improves as the dimensionality (m and d) increases, contrary to what might be intuitively expected. One possible explanation is that the increased correlations among drugs or AEs in higher-dimensional settings can enhance the Apriori algorithm’s ability to detect meaningful interactions. Furthermore, comparing across coefficient generation settings, we find that setting 3 (independent main and interaction effects) outperforms setting 2 (interaction effects only), and setting 4 (hierarchical effects) yields the best performance overall. This suggests that the coexistence of main and interaction effects improves DDI detection, with particularly strong performance when these effects follow a hierarchical structure—a pattern that may reflect real-world drug interaction mechanisms.

3.3.2. Random Effects Without Confounding

In this scenario, we introduce subject-specific random effects b i that are uncorrelated with the covariates X . While these random effects create dependence among adverse events, they do not function as true confounders since they are independent of drug exposures. Table 4 and Table 5 summarize the AUC values for detecting main effects and interaction effects, respectively.
Similar trends to Scenario 1 are observed, but with an important distinction: the presence of subject-specific random effects reduces the AUC values for both main effect and interaction effect detection. Notably, this reduction is substantially more pronounced for DDI identification than for main effect identification. This differential impact likely stems from the fact that interaction effects represent higher-order relationships that are inherently more sensitive to noise. When random effects introduce additional variability in the data, the already subtle signals of drug–drug interactions become more difficult to distinguish from background noise, whereas the stronger signals of main effects remain relatively more detectable. Additionally, since each interaction effect involves multiple drugs, the propagation of noise through these complex relationships may have a multiplicative effect on detection performance.

3.3.3. Random Effects with Confounding

In this scenario, we introduce true latent confounders by generating subject-specific random effects b i that are correlated with the covariates X i . Table 6 and Table 7 summarize the detection performance for main effects and interaction effects, respectively.
Compared with the previous two scenarios, the presence of latent confounders substantially degrades the detection performance for both types of effects, but with a notable pattern: the decline in AUC values is considerably more pronounced for main effect detection than for DDI detection. This asymmetric impact likely stems from the fundamental difference in how confounding affects single-drug versus multi-drug associations. When a latent variable confounds the relationship between drugs and adverse events, it directly creates spurious associations at the main effect level. However, for interaction effects to be confounded, the latent variable would need to be associated not just with individual drugs but with specific drug combinations. This higher-order confounding structure is less common and typically weaker than first-order confounding. Additionally, interaction effects benefit from an implicit form of adjustment—the detection algorithms already account for the constituent main effects, which may partially absorb confounding bias, leaving interaction effects as relatively more robust against confounding than main effects.

4. Real Data Example

Since vaccines are a type of drug, except for the simulation studies, we also implement the proposed modified Apriori approach to the VAERS dataset to select both drug–AE (i.e., vaccine–AE) association pairs and DDIs (i.e., vaccine–vaccine interactions). In particular, we choose the reports from the year of 2024, which include a total of 51,984 reports with 5894 different AEs and 123 unique vaccine names. The data files, and VAERS Symptoms and VAERS Vaccine files for the year of 2024 can be downloaded at https://vaers.hhs.gov/data/datasets.html, accessed on 5 March 2025.
The top 10 (by ROR) identified vaccine–AE associations and vaccine interactions are reported in Table 8 and Table 9, respectively. To save space, we list the corresponding secondary indicators values in the Supplementary Materials.
Syncope (fainting), dizziness, and pain are common side effects observed with the administration of injectable vaccines. It is, therefore, not surprising to see these AEs in the identified associations listed in the tables above. However, the identified associations between the COVID-19 vaccine and COVID-19 infection were unexpected and warrant careful interpretation. This finding likely demonstrates the real-world impact of latent confounding factors that our simulation studies predicted. Several plausible latent confounding mechanisms could explain this observation: (1) temporal confounding, where vaccination coincided with periods of high community transmission; (2) behavioral confounding, where recently vaccinated individuals might have changed their risk behaviors; (3) detection bias, where vaccinated individuals were more likely to be tested for COVID-19; or (4) reporting bias, where individuals who experienced COVID-19 after vaccination were more likely to submit reports than those with other post-vaccination experiences. This real-world example directly illustrates how the Apriori algorithm can generate potentially misleading associations when latent confounders exist—precisely the phenomenon our simulation studies demonstrated. These results underscore the importance of developing modified approaches that can account for or adjust for such confounding factors when mining spontaneous reporting data.

5. Conclusions

In this study, we conducted a systematic evaluation of the Apriori algorithm for detecting drug–drug interactions using spontaneous reporting systems data, with a focus on assessing its performance under realistic data conditions, particularly to assess and quantify the impact of latent confounders, which is a critical but previously overlooked issue.
Our comprehensive simulation studies revealed several important findings. First, various secondary indicators (Confidence, Lift, PRR, ROR, and RR) showed comparable performance in detecting both drug–AE associations and drug–drug interactions in idealized settings. Second, and most critically, the presence of latent factors significantly degraded algorithm performance, with differential impacts on main effects versus interaction effects. For example, when using RR as the secondary indicator, the AUC for detecting main effects dropped by approximately 30% in the presence of latent confounders (Scenario 3) compared to scenarios without confounding (Scenario 1), while the AUC for identifying DDIs declined by about 15%. This observation provides the first systematic evidence that latent confounding—an inherent feature of real-world spontaneous reporting data—substantially compromises the reliability of current Apriori implementations for drug safety signal detection.
The real-data application using VAERS data not only confirmed the practical feasibility of our approach but also provided a concrete example of potentially spurious associations (COVID-19 vaccine and COVID-19 infection) that likely result from unaccounted latent confounders. This finding validates our simulation results and underscores the real-world implications of our methodological investigation.
While this paper does not focus on directly estimating or modeling latent factors, it highlights the critical consequences of ignoring them in drug safety signal detection. Our simulation studies and real-world analysis show that latent confounding can substantially distort the detection of drug–AE associations and DDIs, often resulting in false-positive signals. Given that post-marketing drug safety monitoring is of great interest to clinicians, pharmaceutical companies, and regulatory professionals, especially as rare or delayed adverse effects may only appear after widespread use, our findings highlight the need for caution when interpreting signals from existing tools that overlook unmeasured confounders.
Moreover, our findings underscore three important directions for future research. First, methodological development should focus on integrating approaches to account for latent confounders without compromising the computational efficiency that makes Apriori attractive for large-scale pharmacovigilance. Potential strategies might include incorporating propensity score adjustments, using instrumental variables, or developing hybrid approaches that combine association rule mining with more sophisticated causal inference methods. Second, extending the current framework to capture higher-order interactions would address another limitation of current approaches. Third, incorporating additional observed covariates, such as age, sex, and comorbidities, could partially mitigate confounding effects.
The R code used to implement the modified Apriori algorithm and the supporting code and data files necessary to conduct the simulation studies are available at https://github.com/TXMUNC/DDI_MDPI_Mathematics_2025, accessed on 22 May 2025. These files are intended to facilitate reproducibility and provide a clear reference for researchers and practitioners seeking to apply or extend the proposed method.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/math13111710/s1, Table S1: Identified AE-associated vaccines from VAERS reports in the year of 2024 with secondary indicator values; Table S2: Identified AE-associated vaccines interactions from VAERS reports in the year of 2024 with secondary indicator values.

Author Contributions

Conceptualization, J.S. and X.T.; methodology, J.S. and X.T.; study design, Y.H. and X.T.; simulation, Y.H. and X.T.; real data analysis, Y.H.; writing—original draft preparation, J.S.; writing—review and editing, Y.H., J.S. and X.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are publicly available.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. World Health Organization (WHO). The Importance of Pharmacovigilance. In WHO Collaborating Centre for International Drug Monitoring; WHO: Athens, Greece, 2022. [Google Scholar]
  2. FDA’s Adverse Event Reporting System (FAERS). Available online: https://www.fda.gov/drugs/surveillance/fda-adverse-event-reporting-system-faers (accessed on 8 January 2025).
  3. Shimabukuro, T.T.; Nguyen, M.; Martin, D.; DeStefano, F. Safety monitoring in the vaccine adverse event reporting system (VAERS). Vaccine 2015, 33, 4398–4405. [Google Scholar] [CrossRef] [PubMed]
  4. Manzi, S.F.; Shannon, M. Drug interactions—A review. Clin. Pediatr. Emerg. Med. 2005, 5, 93–102. [Google Scholar] [CrossRef]
  5. Khouri, V.; Semnani, S.H.; Roushandel, G.H. Frequency distribution of drug interactions and some of related factors in prescriptions. Med. J. Tabriz Univ. Med. Sci. 2006, 27, 29–32. [Google Scholar]
  6. Pirmohamed, D.; Ormne, M.L. Drug interactions of clinical importance. In Davies’s Textbook of Adverse Drug Reactions; Davies, D., Ferner, R., de Glanville, H., Eds.; Chapman & Hall Medical: London, UK, 1998; pp. 888–912. [Google Scholar]
  7. Agrawal, R.; Srikant, R. Fast algorithms for mining association rules. In Proceedings of the 20th International Conference Very Large Data Bases, VLDB, Santiago, Chile, 12–15 September 1994; Volume 1215, pp. 487–499. [Google Scholar]
  8. Shirakuni, Y.; Okamoto, K.; Kawashita, N.; Yasunaga, T.; Takagi, T. Signal detection of drug complications applying association rule learning for Stevens-Johnson Syndrome. J. Com. Aid. Chem. 2009, 10, 118–127. [Google Scholar] [CrossRef]
  9. Harpaz, R.; Haerian, K.; Chase, H.S.; Friedman, C. Statistical mining of potential drug interaction adverse effects in fda’s spontaneous reporting system. AMIA Annu. Symp. Proc. 2010, 2010, 281–285. [Google Scholar] [PubMed]
  10. Sindhu, M.S.; Kannan, B. Detecting signals of drug-drug interactions using association rule mining methodology. Int. J. Comput. Sci. Inf. Technol. 2013, 4, 590–594. [Google Scholar]
  11. Ibrahim, H.; Saad, A.; Abdo, A.; Sharaf Eldin, A. Mining association patterns of drug-interactions using post marketing FDA’s spontaneous reporting data. J. Biomed. Inform. 2016, 60, 294–308. [Google Scholar] [CrossRef] [PubMed]
  12. Noguchi, Y.; Ueno, A.; Otsubo, M.; Katsuno, H.; Sugita, I.; Kanematsu, Y.; Yoshida, A.; Esaki, H.; Tachi, T.; Teramachi, H. A new search method using association rule mining for drug-drug interaction based on spontaneous report system. Front. Pharmacol. 2018, 9, 197. [Google Scholar] [CrossRef] [PubMed]
  13. Zhang, M.L.; Zhou, Z.H. A Review on Multi-Label Learning Algorithms. IEEE Trans. Knowl. Data Eng. 2014, 26, 1819–1837. [Google Scholar] [CrossRef]
  14. Hahsler, M.; Grün, B.; Hornik, K. arules—A computational environment for mining association rules and frequent item sets. J. Stat. Softw. 2005, 14, 1–25. [Google Scholar] [CrossRef]
  15. Brin, S.; Motwani, R.; Tsur, S. Dynamic itemset counting and implication rules for market basket data. ACM SIGMOD Rec. 1997, 26, 255–264. [Google Scholar] [CrossRef]
  16. Sarkar, R.; Sun, J. Improved apriori method for safety signal detection using post-marketing clinical data. Mathematics 2024, 12, 2705. [Google Scholar] [CrossRef]
  17. Lallich, S.; Teytaud, O.; Prudhomme, E. Association rule interestingness: Measure and statistical validation. In Quality Measures in Data Mining; Guillet, F.J., Hamilton, H.J., Eds.; Springer: Berlin/Heidelberg, Germany, 2007; pp. 251–275. [Google Scholar]
  18. Rothman, K.J.; Lanes, S.; Sacks, S.T. The reporting odds ratio and its advantages over the proportional reporting ratio. Pharmacoepidemiol. Drug Safty 2004, 13, 519–523. [Google Scholar] [CrossRef] [PubMed]
  19. Tan, X.; Wang, W.; Zeng, D.; Liu, G.F.; Diao, G.; Jafari, N.; Alt, E.M.; Ibrahim, J.G. Safety signal detection with control of latent factors. Stat. Med. 2024, 43, 1397–1418. [Google Scholar] [CrossRef] [PubMed]
Table 1. Contingency table for disproportionality measures.
Table 1. Contingency table for disproportionality measures.
Suspected AEOther AEsTotal
Suspected drug–drug pairab a + b
Other drug combinationscd c + d
Total a + c b + d a + c + b + d = n
Table 2. AUC for detecting main effects when Λ = 0 .
Table 2. AUC for detecting main effects when Λ = 0 .
n m = d ConfidenceLiftPRRRORRR
β generation setting 1
5000101.0000.9970.9970.9980.997
5000200.9990.9150.9310.9430.915
10,000101.0000.9930.9950.9970.993
10,000201.0001.0001.0001.0001.000
β generation setting 3
5000101.0000.9980.9980.9980.998
5000200.9990.9190.9350.9470.919
10,000101.0000.9930.9950.9960.993
10,000201.0001.0001.0001.0001.000
β generation setting 4
5000101.0000.9970.9970.9980.997
5000201.0000.9220.9370.9490.922
10,000101.0000.9940.9970.9970.994
10,000201.0000.9990.9991.0000.999
Table 3. AUC for detecting interaction effects when Λ = 0 .
Table 3. AUC for detecting interaction effects when Λ = 0 .
n m = d ConfidenceLiftPRRRORRR
β generation setting 2
5000100.6290.6280.6280.6290.628
5000200.7200.7200.7200.7200.720
10,000100.9360.9350.9360.9360.935
10,000200.9900.9900.9900.9900.990
β generation setting 3
5000100.7740.7740.7740.7740.774
5000200.9980.9930.9930.9950.993
10,000100.8120.8110.8110.8120.811
10,000200.8120.8110.8110.8110.811
β generation setting 4
5000100.8010.8010.8010.8010.801
5000200.8690.8670.8670.8680.867
10,000100.9980.9960.9960.9980.996
10,000200.9990.9990.9990.9990.999
Table 4. AUC for detecting main effects when b i exists but is not correlated with x i .
Table 4. AUC for detecting main effects when b i exists but is not correlated with x i .
n m = d ConfidenceLiftPRRRORRR
β generation setting 1
5000100.9580.9910.9910.9910.991
5000200.9400.8900.9060.9140.890
10,000100.9630.9850.9890.9900.985
10,000200.9760.9990.9991.0000.999
β generation setting 3
5000100.9650.9930.9930.9930.993
5000200.9520.8990.9150.9220.899
10,000100.9790.9880.9920.9930.988
10,000200.9800.9990.9990.9990.999
β generation setting 4
5000100.9690.9940.9940.9940.994
5000200.9500.8960.9120.9190.896
10,000100.9720.9850.9890.9910.985
10,000200.9850.9990.9990.9990.999
Table 5. AUC for detecting interaction effects when b i exists but is not correlated with x i .
Table 5. AUC for detecting interaction effects when b i exists but is not correlated with x i .
n m = d ConfidenceLiftPRRRORRR
β generation setting 2
5000100.5840.5860.5860.5860.586
5000200.6840.6870.6870.6870.687
10,000100.8730.8850.8850.8840.885
10,000200.9400.9490.9490.9480.949
β generation setting 3
5000100.6750.6760.6760.6760.676
5000200.9940.9920.9920.9930.992
10,000100.8120.8110.8110.8110.811
10,000200.8110.8110.8110.8110.811
β generation setting 4
5000100.7220.7220.7220.7220.722
5000200.8260.8260.8260.8260.826
10,000100.9950.9940.9950.9950.994
10,000200.9990.9990.9990.9990.999
Table 6. AUC for detecting main effects when b i exists and is correlated with x i .
Table 6. AUC for detecting main effects when b i exists and is correlated with x i .
n m = d ConfidenceLiftPRRRORRR
β generation setting 1
5000100.8110.8100.8040.8040.810
5000200.7780.6440.6550.6580.644
10,000100.7840.7110.7180.7200.711
10,000200.8390.8370.8370.8350.837
β generation setting 3
5000100.7880.7930.7870.7860.793
5000200.7850.6480.6600.6630.648
10,000100.8160.7490.7580.7600.749
10,000200.8390.8390.8390.8370.839
β generation setting 4
5000100.8150.8190.8150.8140.819
5000200.7740.6440.6560.6590.644
10,000100.8210.7480.7540.7580.748
10,000200.8490.8510.8510.8490.851
Table 7. AUC for detecting interaction effects when b i exists and is correlated with x i .
Table 7. AUC for detecting interaction effects when b i exists and is correlated with x i .
nm = dConfidenceLiftPRRRORRR
β generation setting 2
5000100.5700.5720.5720.5710.572
5000200.6580.6610.6610.6600.661
10,000100.7950.8040.8040.8010.804
10,000200.8710.8850.8850.8800.885
β generation setting 3
5000100.6420.6440.6440.6420.644
5000200.9350.9280.9290.9310.928
10,000100.7740.7710.7710.7720.771
10,000200.7680.7710.7710.7690.771
β generation setting 4
5000100.7120.7140.7140.7120.714
5000200.8200.8160.8160.8180.816
10,000100.9400.9330.9340.9360.933
10,000200.9760.9800.9810.9780.980
Table 8. Identified AE-associated vaccines from VAERS reports in the year of 2024.
Table 8. Identified AE-associated vaccines from VAERS reports in the year of 2024.
VaccineAE
COVID19 (PFIZER-BIONTECH)COVID-19
MENINGOCOCCAL CONJUGATE (MENQUADFI)Syncope
HPV (GARDASIL 9)Syncope
MENINGOCOCCAL CONJUGATE (MENVEO)Syncope
TDAP (BOOSTRIX)Syncope
ZOSTER (NO BRAND NAME)Pain
MENINGOCOCCAL CONJUGATE (MENQUADFI)Dizziness
PNEUMO (PREVNAR20)Injection site erythema
PNEUMO (PREVNAR20)Erythema
INFLUENZA (SEASONAL) (FLUZONE HIGH-DOSE QUADRIVALENT)Injection site pain
Table 9. Identified AE-associated vaccine interactions from VAERS reports in the year of 2024.
Table 9. Identified AE-associated vaccine interactions from VAERS reports in the year of 2024.
VaccineVaccineAE
HPV (GARDASIL 9)MENINGOCOCCAL B (BEXSERO)Syncope
COVID19 (COVID19 (PFIZER-BIONTECH))COVID19 (COVID19 (MODERNA))COVID-19
HPV (GARDASIL 9)MENINGOCOCCAL CONJUGATE (MENVEO)Syncope
VARICELLA (VARIVAX)MENINGOCOCCAL CONJUGATE (MENQUADFI)Syncope
TDAP (BOOSTRIX)MEASLES + MUMPS + RUBELLA (MMR II)Syncope
MENINGOCOCCAL B (BEXSERO)MENINGOCOCCAL CONJUGATE (MENVEO)Syncope
TDAP (BOOSTRIX)MENINGOCOCCAL CONJUGATE (MENQUADFI)Syncope
VARICELLA (VARIVAX)TDAP (BOOSTRIX)Syncope
HPV (GARDASIL 9)TDAP (BOOSTRIX)Syncope
TDAP (BOOSTRIX)HEP A (HAVRIX)Syncope
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

He, Y.; Sun, J.; Tan, X. Performance of Apriori Algorithm for Detecting Drug–Drug Interactions from Spontaneous Reporting Systems. Mathematics 2025, 13, 1710. https://doi.org/10.3390/math13111710

AMA Style

He Y, Sun J, Tan X. Performance of Apriori Algorithm for Detecting Drug–Drug Interactions from Spontaneous Reporting Systems. Mathematics. 2025; 13(11):1710. https://doi.org/10.3390/math13111710

Chicago/Turabian Style

He, Yajie, Jianping Sun, and Xianming Tan. 2025. "Performance of Apriori Algorithm for Detecting Drug–Drug Interactions from Spontaneous Reporting Systems" Mathematics 13, no. 11: 1710. https://doi.org/10.3390/math13111710

APA Style

He, Y., Sun, J., & Tan, X. (2025). Performance of Apriori Algorithm for Detecting Drug–Drug Interactions from Spontaneous Reporting Systems. Mathematics, 13(11), 1710. https://doi.org/10.3390/math13111710

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop