Accessibility settings

Published on in Vol 14 (2026)

Preprints (earlier versions) of this paper are available at https://preprints.jmir.org/preprint/90175, first published .
Elderly couple smiles while talking with a financial advisor

Integrating Association Rule Mining With Clustering to Characterize Coprescription Patterns in Korean National Health Insurance Claims: Descriptive Study

Integrating Association Rule Mining With Clustering to Characterize Coprescription Patterns in Korean National Health Insurance Claims: Descriptive Study

Authors of this article:

Ki Young Huh1 Author Orcid Image ;   Gaeun Kang2, 3 Author Orcid Image

Original Paper

1Department of Clinical Pharmacology and Therapeutics, Seoul National University College of Medicine and Hospital, Seoul, Republic of Korea

2Department of Pharmacology, Chonnam National University Medical School, Jeonnam-Gwangju, Republic of Korea

3Division of Clinical Pharmacology, Chonnam National University Hospital, Jeonnam-Gwangju, Republic of Korea

Corresponding Author:

Gaeun Kang, MD, PhD

Department of Pharmacology

Chonnam National University Medical School

264, Seoyang-ro, Hwasun-eup, Hwasun-gun

Jeonnam-Gwangju, 58128

Republic of Korea

Phone: 82 1026708970

Fax:82 613736974

Email: gaeun.kang@gmail.com


Background: Polypharmacy is linked to adverse health outcomes, so identifying prescription patterns matters. Scalable, automated methods can characterize coprescription patterns in large health care databases, but the interestingness measures used to rank the resulting rules are numerous, and no consensus exists on which to prefer.

Objective: This descriptive, retrospective cross-sectional study characterized coprescription association rules in 2021 National Health Insurance Service claims and evaluated whether clustering them on 25 interestingness measures separates rules differently from a simple lift threshold.

Methods: We applied the Apriori algorithm (support 0.001; confidence 0.01) to same-date prescription transactions, computed 25 interestingness measures for each rule, and applied Uniform Manifold Approximation and Projection (n_neighbors=50; min_dist=0.10) followed by k-means clustering on the 2D embedding. The number of clusters was selected by silhouette coefficient, with alternative solutions as sensitivity analyses. Clusters were characterized against external references, including drug classification, guideline recommendation, and coformulation in marketed fixed-dose combinations, and were benchmarked against simple lift and support thresholds. The lower-association cluster was further examined by age-stratified lift and by same-day receipt of both drugs. Reproducibility was assessed in a temporal, same-system 2020 sample.

Results: We analyzed 1,000,000 patients and 32,053,871 prescription line items (8,397,049 same-date transactions). From 3023 association rules (1938 deduplicated), clustering at the silhouette-optimal k=2 (silhouette 0.646) separated a higher-association cluster (1719/1938, 88.7% of rules) from a lower-association cluster (219/1938, 11.3%; mean lift 0.71, SD 0.19). The lower cluster corresponded almost exactly to the independence boundary lift <1 (Cohen κ=0.995), and this persisted when lift and added value were excluded from the clustering inputs. Documented relationships were concentrated in the higher cluster, which contained all 24 guideline-recommended pairs and a higher proportion of coformulated pairs (111/1719, 6.5% vs 2/219, 0.9%). The lower cluster was heterogeneous: 66 of its 185 (36%) drug pairs reached lift 1 or above within at least 1 age band, and among patients receiving both drugs of a pair, same-day receipt was less frequent than in the higher cluster (1,685,869/6,922,157, 24.4% vs 11,025,083/23,758,025, 46.4% of patient-pair combinations). The structure reproduced in 2020 (adjusted Rand index 0.899), though the partition coincides with the sign of (lift–1) and is not evidence of structure independent of that criterion.

Conclusions: This study integrates association rule mining with clustering to characterize coprescription patterns in national claims data without predefined criteria. The division between rule groups falls at statistical independence and holds across largely redundant interestingness measures. Resolving the heterogeneous lower-association group descriptively identifies common drugs that the same patients receive across separate encounters, a pattern that may warrant review rather than evidence of inappropriate prescribing.

JMIR Med Inform 2026;14:e90175

doi:10.2196/90175

Keywords



Background

Problematic polypharmacy, defined as the use of multiple medications without appropriate clinical justification, may lead to adverse health outcomes [1,2]. Although various definitions of polypharmacy exist, most focus primarily on the number of medications prescribed [3]. However, because a numerical criterion alone may not fully capture the potential risks of certain regimens, recent discussions have increasingly emphasized the clinical appropriateness of prescribing [3,4].

Tools such as the STOPP (Screening Tool of Older Persons’ Prescriptions) and START (Screening Tool to Alert Doctors to Right Treatment) criteria vary widely across clinical settings, are not easily scalable, and carry substantial implementation costs, and evidence supporting their effectiveness remains limited [5-7].

Prior Work

Because prescription patterns are largely determined by underlying diseases [8], comedication patterns are necessary to characterize but have been studied heterogeneously across conditions [9,10]. Large database studies have examined them in various disease contexts and to identify potential drug-drug interactions [11-13], but most rely on prior information about known interactions, requiring manual screening and limiting scalability.

Machine learning has been increasingly applied in medicine because it can uncover meaningful patterns with minimal reliance on domain-specific knowledge [14], and has been used to identify prescribing patterns and to predict risk factors for polypharmacy, which a recent review grouped into adverse-event categorization, individual risk assessment, and precision dosing [15-17]. With the growing availability of large-scale health care databases, such methods offer a promising direction for characterizing prescribing patterns at scale.

Association rule mining is an important method in machine learning for pattern recognition. It involves identifying frequent item sets in data and discovering potentially “interesting” patterns, where “interesting” refers to statistically meaningful or nonrandom associations rather than necessarily desirable or undesirable ones [18]. Widely used in marketing as market basket analysis [19], it has recently been explored in health care for adverse drug reaction risk factors [20], disease prediction [21], symptom prediction [22], and, with network analysis, collaboration patterns in trial sites [23]. Applying it to prescription data enables the exploration of comedication patterns.

From a health informatics perspective, developing automated methods to characterize prescription patterns from large-scale claims data is essential for scalable descriptive pharmacoepidemiology. Although association rule mining has been applied to health care data, most studies have focused on detecting adverse drug reactions or predicting clinical outcomes, while the characterization of coprescription patterns themselves has received less attention [24,25]. Association rule mining generates multiple interestingness measures that provide quantitative metrics for describing the strength and nature of drug associations; however, their utility for clustering and distinguishing higher-association combinations from statistically incidental coprescriptions remains underexplored [25-27]. We use the term statistically incidental operationally to denote co-occurrence at or below chance expectation, defined by added value ≤0 and lift ≤1 [26,27].

Objectives

The aim of this study was descriptive: to characterize the structure of coprescription association rules in National Health Insurance Service claims data using multiple interestingness measures, dimensionality reduction, and clustering and to assess whether the resulting structure, in particular a lower-association subset of rules, was reproducible in an independent different-year sample. We did not aim to screen for clinically meaningful or inappropriate combinations; the concordance analyses are descriptive checks, and the sex and age subgroup analyses are exploratory.


Data Source and Study Population

In this retrospective cross-sectional analysis, prescription data from the National Health Insurance Service in 2021 were obtained from a public database. The dataset was created by randomly selecting 1 million beneficiaries who had at least 1 prescription record during the year, followed by data refinement to preserve the original distributional ratios (eg, age, sex, and region) of the insured population while reducing dataset size [28]. The dataset included demographic data and prescription records with dosing and duration fields and a 9-character active ingredient code that could be matched to the corresponding generic name.

Ethical Considerations

Ethics approval for this study was waived by the institutional review board (IRB) of Seoul National University Hospital (IRB 2503-176-1625). The available fields, the deidentification of single-brand ingredients, the dosage-form distribution, and the reason for analyzing the 2021 dataset are described in Section S14 in Multimedia Appendix 1. Korea operates a single-payer national health insurance system in which enrollment is mandatory for all citizens, so the dataset reflects nationwide prescribing patterns [29]. Reporting of this observational study followed the STROBE (Strengthening the Reporting of Observational Studies in Epidemiology) recommendations (Multimedia Appendix 2).

Transaction Definition and Inclusion Criteria

The unit of analysis was the transaction, defined as the set of distinct active substances prescribed to a single patient on a single care-start date. A patient with K distinct prescription dates contributed K transactions; nonprescription days did not contribute observations. Drugs prescribed on the same date to the same patient were merged and treated as a single transaction. This operationalization captures coprescribing at a single encounter rather than concomitant medication over time, a distinction drawn in previous prescription-database work [30] and quantified in the Results section. The 2021 analytic cohort comprised 8,397,049 transactions from 1,000,000 patients (mean 8.4, SD 8.8 transactions per patient; median 6, IQR 2-11; range 1-269; corresponding to 32,053,871 prescription line items, at a mean of 3.8, SD 1.9 distinct drugs per transaction).

Each drug in a prescription record was mapped to its generic name and standardized according to the World Health Organization Anatomical Therapeutic Chemical (ATC) classification system, thereby representing the active substance. The transaction data therefore reflected drug combinations at the ingredient level, without dose or route of administration (Section S14 in Multimedia Appendix 1).

The age groups provided in 5-year intervals (eg, 0-4 years) were categorized into 3 broader groups: pediatrics (<19 years), adults (19-64 years), and older people (≥65 years). To assess the status of polypharmacy, the number of distinct drugs prescribed concurrently on a given day for each patient was calculated, overall and within each sex and age subgroup. Regional analysis was not conducted (Section S14 in Multimedia Appendix 1).

Association Rule Mining

Association rule mining is a machine learning technique that efficiently identifies frequent patterns in a large transaction dataset. It identifies co-occurring item sets and expresses them as rules [31]; for example, (dapagliflozin→metformin) denotes that metformin is likely to be coprescribed when dapagliflozin is prescribed.

In this study, we identified association rules using the Apriori algorithm [32] with a minimum support threshold of 0.001, a confidence threshold of 0.01, and a minimum rule length of 2 items (minlen=2). No maximum rule length was imposed, so the default of the arules implementation applied, and the resulting whole-cohort rules contain up to 4 items; the separately mined age-subgroup rule sets reach 5 items in the pediatric band. The pruning strategy of the algorithm and the definitions of the support and confidence thresholds it requires are given in Section S10 in Multimedia Appendix 1.

To comprehensively evaluate the association rules, we calculated 25 interestingness measures. Six measures central to interpretation in this study are reported in the main text (support, confidence, lift, added value, the Jaccard coefficient, and Yule Q); each captures a different aspect of association strength, statistical dependency, or deviation from independence. The full set of 25 measures is listed in Section S1 in Multimedia Appendix 1, with the mathematical definitions in Table S1 in Multimedia Appendix 3 [26,27,33].

As a cross-algorithm check, we additionally applied the Equivalence Class Clustering and Bottom-Up Lattice Traversal (ECLAT) algorithm at the same support threshold (0.001); methodological details are in Section S9 in Multimedia Appendix 1.

Bidirectional rules and rules sharing the same antecedent and consequent strings were collapsed onto a single entry, reducing the 3023 directed rules to 1938 deduplicated association rules. These deduplicated entries are not all 2-drug pairs: 1117 of the 1938 (57.6%) are drug-drug pairs involving 187 distinct drugs, while 821 of 1938 (42.4%) involve a multidrug antecedent or consequent, because rule generation was not restricted to 2-item rules. We therefore describe the deduplicated set as association rules rather than as drug pairs.

Dimensionality Reduction (Uniform Manifold Approximation and Projection) and Clustering (k-Means)

To better interpret the large number of extracted association rules, we visualized the pairwise correlations among the interestingness measures using a correlation plot with the Pearson correlation coefficient. We then applied a 2-step descriptive machine learning procedure consisting of nonlinear dimensionality reduction followed by clustering. Dimensionality reduction used Uniform Manifold Approximation and Projection (UMAP) with 50 nearest neighbors and a minimum distance of 0.10, producing a 2D embedding, to which k-means clustering was then applied [34]. The full parameter settings, and the distinction between the nearest-neighbor graph that the embedding builds internally and the downstream k-means step, are given in Section S14 in Multimedia Appendix 1.

The number of clusters was set to k=2, the value that maximized the silhouette coefficient (0.646 on the canonical embedding; the coefficient declined to 0.467 at k=3). The silhouette again peaks at k=2 when recomputed in the original standardized 25-measure space, and the other 3 internal indices identify no interior optimum across k=2 to 8, following established practice for internal cluster-validity criteria and for the evaluation of embedding hyperparameters [35-39] (Section S3 in Multimedia Appendix 1 and Tables S2 and S3 and Figure S1 in Multimedia Appendix 3). In place of consensus clustering, we assessed stability by aggregating cluster membership across 30 random seeds and 100 bootstrap resamples. A 3-cluster solution is reported only as a sensitivity analysis (Tables S6, S12, and S22 in Multimedia Appendix 3). To examine whether the clustering added information beyond a simple threshold, we compared the lower-association cluster with a one-line rule based on the independence boundary (lift <1 or added value <0), repeating the comparison after remining at support thresholds of 0.0005, 0.0002, and 0.0001 (Table S4 in Multimedia Appendix 3). The index values, the measure-space comparison, and the supporting literature are given in Section S14 in Multimedia Appendix 1.

To test whether the 2-cluster partition could be reproduced in rules not used to build it, we randomly split the rule set into 2 halves 12 times. In each split, UMAP and k-means were fitted to one half (the training half), and each rule in the other half (the held-out half) was assigned to the nearest cluster center of the training half. The held-out assignments were then compared with the labels from the full data. For comparison, 2 variants without the UMAP step were also run (Section S14 in Multimedia Appendix 1).

Clustering performance was evaluated with the silhouette coefficient [40], and descriptive statistics of the interestingness measures were computed for each cluster. As descriptive external checks, we computed guideline concordance and ATC anatomical-class concordance, both defined in Section S12 in Multimedia Appendix 1.

Representative drug combinations per cluster were selected by 2 complementary methods (typicality and a composite interestingness score), detailed in Section S8 in Multimedia Appendix 1. The composite was defined as the unweighted sum of 4 z-standardized measures, and the resulting ranking was robust across 81 alternative weighting schemes (Section S14 in Multimedia Appendix 1 and Table S6 and Figure S2 in Multimedia Appendix 3).

Cluster Characterization and External Comparison

To characterize the clusters beyond internal cohesion, we performed three descriptive checks: (1) guideline concordance using 24 drug pairs extracted from major clinical guidelines (Table S5A in Multimedia Appendix 3), (2) a negative-control analysis using 44 potentially inappropriate medication pairs from STOPP (version 3) [5] and the 2023 AGS Beers Criteria [41] (Table S5B in Multimedia Appendix 3), and (3) ATC anatomical-class concordance. The guideline sources, the test statistics, and the bootstrap procedure are given in Section S14 in Multimedia Appendix 1. Because the national Drug Utilization Review (DUR) system blocks contraindicated combinations at the point of prescribing, the negative control was additionally examined at progressively lower support thresholds (Section S14 in Multimedia Appendix 1).

As an adequately powered replacement for the 44-pair negative control, we assembled the contraindicated coprescription list of Korea’s national DUR system, which yielded 1925 unique unordered ingredient pairs, of which 535 had both ingredients in the study drug namespace. Exact counts were computed for every labeled pair (Section S14 in Multimedia Appendix 1).

We additionally assembled a panel of labels that form no part of the clustering input: shared ATC code prefixes, coformulation in a marketed fixed-dose combination, and the presence of an ingredient on the DUR age-contraindication list. The panel is a proxy for, not equivalent to, expert clinical adjudication (Section S14 in Multimedia Appendix 1).

Finally, we quantified the review burden implied by the rule set at each support threshold, the redundancy of the 25 interestingness measures by principal component analysis and correlation-based grouping, and the yield of deduplicated rules carrying a documented pharmacological relationship, benchmarked against the one-line criterion lift ≥1. Full specifications are given in Section S11 in Multimedia Appendix 1.

Identified association rules were visualized as network graphs (Figures 1-3) using a force-directed layout at unified thresholds (support≥0.001; confidence≥0.01); full visualization details are provided in Section S6 in Multimedia Appendix 1. Robustness was assessed through 6 sensitivity analyses, reported in full in Sections S7 and S14 in Multimedia Appendix 1 and Multimedia Appendix 3. Per-cluster distributions of all interestingness measures (median and IQR of support, confidence, lift, added value, Jaccard, and Yule Q) are provided in Table S24 in Multimedia Appendix 3.

‎
Figure 1. Graphical representation of association rules in the entire patient cohort (support≥0.001; confidence≥0.01). The width of each edge represents the lift value for the corresponding association rule, and colors indicate different clusters. The figure draws the 30 highest-lift rules in each cluster among those meeting the extraction thresholds; it is therefore a selection for legibility and not the full rule set. Edge width is scaled to lift within this figure, and the lift scales of Figures 1-3 differ, so edge widths are not comparable between figures.
‎
Figure 2. Graphical representation of association rules in male and female patients (support≥0.001; confidence≥0.01). The width of each edge represents the lift value for the corresponding association rule, and colors indicate different clusters. Each panel draws the 30 highest-lift rules in each cluster among those meeting the extraction thresholds; it is therefore a selection for legibility and not the full rule set. Edge width is scaled to lift within each panel, so the 2 panels carry separate lift legends, titled lift (male) and lift (female), and edge widths are not comparable between the panels or with the other figures.
‎
Figure 3. Graphical representation of association rules in pediatric and older patients (support≥0.001; confidence≥0.01). The width of each edge represents the lift value, and colors indicate the higher-association and lower-association clusters. Edge width is scaled to lift within each panel, so the 2 panels carry separate lift legends, titled lift (pediatrics) and lift (older patients), and edge widths are not comparable between the panels or with the other figures. Each panel draws the 30 highest-lift rules in each cluster among those meeting the extraction thresholds; it is therefore a selection for legibility and not the full rule set.

Subgroup Analyses by Sex and Age

In the subgroup analysis by sex, the 2-cluster separation was comparable between male (silhouette 0.652) and female (0.651) participants (Table S19 in Multimedia Appendix 3). In the age-group analysis, the separation was strongest in older patients (silhouette 0.669) and adults (0.577) and weakest in pediatric patients (0.453), the subgroup with the largest rule set (6649 rules); these subgroup analyses are exploratory (Tables S19 and S28 in Multimedia Appendix 3).

UMAP and k-means clustering with k=2 were repeated independently within each sex and within each age band (pediatric, adult, and older people) using the same hyperparameters and the same support and confidence thresholds as the primary analysis, with cluster labels assigned per subgroup by descending mean lift; the age-band comparison of age-contraindicated ingredients uses these same within-band labels. Cross-age overlap was compared both at the fixed support threshold and under a relative top-N criterion that equalizes rule-set size across bands. To test whether differing rule counts reflect differing concentration of prescribing rather than differing structure, we computed the Gini coefficient, the Herfindahl-Hirschman index, and the share of prescription records accounted for by the 10 most frequently prescribed drugs within each band. All subgroup analyses were exploratory.


Disposition of Data and Polypharmacy Status

A total of 1,000,000 patients (with at least 1 prescription day in 2021) and 32,053,871 prescription line items, corresponding to approximately 8.4 million transactions, were identified. Among the patients, 478,967 of 1,000,000 (47.9%) were male, and 521,033 of 1,000,000 (52.1%) were female. Prescription records from male patients accounted for 14,343,375 of 32,053,871 (44.7%), while those from female patients accounted for 17,710,496 of 32,053,871 (55.3%). By age group, 647,672 of 1,000,000 (64.8%) were adults, 164,019 of 1,000,000 (16.4%) were pediatric patients, and 188,309 of 1,000,000 (18.8%) were older patients. Prescription records from adult patients accounted for 16,085,284 of 32,053,871 (50.2%), from pediatric patients 4,970,298 of 32,053,871 (15.5%), and from older patients 10,998,289 of 32,053,871 (34.3%).

On average, there were 3.8 (SD 1.9) distinct drugs prescribed per prescription day per patient during the 1-year observation period. The number of drugs followed a U-shaped distribution according to age, with adults receiving the fewest and both pediatric and older patients more (Figure S7 in Multimedia Appendix 3). The most frequently prescribed active substances were rebamipide (1,119,266/31,353,358, 3.6% prescriptions), propionic acid derivatives (1,021,551/31,353,358, 3.3%), and mosapride (1,008,606/31,353,358, 3.2%), and the leading first-level ATC class was alimentary tract and metabolism (9,091,536/31,353,358, 29%). The per-sex and per-band means, the remaining classes, and the ATC mapping rate are in Section S14 in Multimedia Appendix 1 and Tables S8A and S8B in Multimedia Appendix 3.

Association Rule Mining

The grid search analysis for association rule-mining thresholds demonstrated an exponential increase in the number of generated rules when the support threshold was below 0.001 and the confidence threshold was set at 0.01. Based on these findings, we selected empirical threshold values that balanced interpretability, information richness, and computational feasibility for the subsequent analyses (Section S2 in Multimedia Appendix 1).

The results obtained using the ECLAT algorithm were identical to those from the Apriori algorithm (Jaccard index=1.0), indicating complete agreement between the 2 methods (Table S14 in Multimedia Appendix 3). As theoretically expected, both algorithms produced the same set of association rules, with minor discrepancies theoretically possible only due to rounding or pruning order. This agreement is expected by construction, so it is a cross-algorithm reproducibility check rather than a validation of the rule-mining approach.

Of the 3023 association rules meeting the predefined thresholds, 2170 (71.8%) were symmetric. In the network graph of the selected rules, several higher-association rules shared drugs and formed connected groups; for example, rules for lower urinary tract conditions formed a group around tamsulosin. In contrast, the lower-association cluster primarily consisted of statistically incidental or nonspecific associations, such as the combination of methylprednisolone and paracetamol (Table 1 and Figure 1).

Table 1. Top 5 association rules by typicality and composite score according to sex and clusters.
Selection criterionaMale, higher association (subgroup silhouette 0.652)Male, lower association (subgroup silhouette 0.652)Female, higher association (subgroup silhouette 0.651)Female, lower association (subgroup silhouette 0.651)
By typicalitybLevodropropizine, pseudoephedrine → levocetirizineAceclofenac, eperisone → paracetamolOther antihistamines for systemic use, pseudoephedrine → methylprednisoloneEperisone, other drugs for acid-related disorders → paracetamol
By typicalitybAmoxicillin → amoxicillin and beta-lactamase inhibitorRabeprazole → paracetamolPregabalin → eperisoneOfloxacin → other drugs for acid-related disorders
By typicalitybChlorphenamine, pseudoephedrine → amoxicillin and beta-lactamase inhibitorOther drugs for acid-related disorders, propionic acid derivatives → other antihistamines for systemic useOther antihistamines for systemic use, rebamipide → pseudoephedrineBromelains → paracetamol
By typicalitybAmoxicillin → pseudoephedrineLevofloxacin → other drugs for acid-related disordersHederae helicis folium → levocetirizineAlprazolam → other drugs for acid-related disorders
By typicalitybChlorphenamine, pseudoephedrine → acetylcysteineClarithromycin → other drugs for acid-related disordersMometasone → pseudoephedrineCefaclor, propionic acid derivatives → paracetamol
By composite scorecBudesonide → salbutamolOther antihistamines for systemic use → propionic acid derivativesMethotrexate → folic acidOther antihistamines for systemic use → mosapride
By composite scorecBrimonidine → timolol, combinationsMethylprednisolone → paracetamolSpironolactone → furosemideMethylprednisolone → paracetamol
By composite scorecSpironolactone → furosemidePseudoephedrine → propionic acid derivativesMemantine → donepezilAlmagate → rebamipide
By composite scorecFinasteride → tamsulosinAceclofenac → paracetamolLiver therapy → ursodeoxycholic acidAlmagate → other antihistamines for systemic use
By composite scorecMirabegron → tamsulosinOpium derivatives and expectorants → mosaprideQuetiapine → donepezilOpium derivatives and expectorants → mosapride

aBidirectional rules (A to B and B to A) were treated as a single drug combination, so each drug combination appears once.

bTypicality was defined as the Euclidean distance to the cluster median in a normalized 5D space of interestingness measures (lift, added value, Jaccard coefficient, Yule Q, and Kulczynski index).

cComposite score was defined as the sum of the z-standardized values of lift, added value, Yule Q, and the Jaccard coefficient.

When bidirectional rules were collapsed to unique deduplicated entries, the 3023 directed rules reduced to 1938 deduplicated association rules, distributed as 1719 of 1938 (88.7%) in the higher-association cluster and 219 of 1938 (11.3%) in the lower-association cluster. These deduplicated counts are the basis of Table 2 and of the cluster labels in Tables S7A (the cluster by pair-type cross-tabulation), S15, S20, S24, and S27 in Multimedia Appendix 3 (Section S14 in Multimedia Appendix 1).

Table 2. Characteristics of identified clusters based on interestingness measures.
CharacteristicHigher-association clusterLower-association cluster
Unique deduplicated association rules, n/N (%)1719/1938 (88.7)219/1938 (11.3)
Lift

Mean (SD)4.48 (7.92)0.71 (0.19)

Range0.99-264.250.16-1.0001

Lift >1, n/N (%)1718/1719 (99.9)1/219 (0.5)
Added value

Mean (SD)+0.133 (0.103)–0.029 (0.022)

Added value >0, n/N (%)1718/1719 (99.9)1/219 (0.5)

Guideline concordance, n/N (%)a24/24 (100)0/24 (0)

ATC anatomical-class concordance, n/N (%)b758/1719 (44.1)37/219 (16.9)

InterpretationHigher association Lower association

aAmong 24 guideline-recommended combinations identified in the dataset (Table S5A in Multimedia Appendix 3); the denominator is guideline drug pairs, not association rules.

bPercentage of deduplicated association rules whose 2 sides share at least 1 Anatomical Therapeutic Chemical (ATC) first-level anatomical class. Drugs with multiple ATC classifications (n=48) were assigned all applicable classes. A sensitivity analysis excluding drugs with multiple ATC classifications is provided in Table S7B in Multimedia Appendix 3.

Dimensionality Reduction and Clustering

UMAP followed by k-means clustering at k=2 separated the 3023 association rules into a higher-association cluster and a lower-association cluster (labeled by descending mean lift; Section S5 in Multimedia Appendix 1). On the 1938 deduplicated undirected association rules, the higher-association cluster contained 1719 (88.7%) rules (mean lift 4.48, SD 7.92; range 0.99-264.25; mean added value +0.133, SD 0.103) and the lower-association cluster 219 (11.3%) rules (mean lift 0.71, SD 0.19; range 0.16-1.00; mean added value –0.029, SD 0.022). The lower-association cluster coincided almost exactly with the simple rule lift <1 (equivalently added value <0): of the 1938 deduplicated rules, only 2 were discordant, and both had lift near 1.00 (Cohen κ=0.995; Table S15 in Multimedia Appendix 3). The correspondence was unchanged when lift and added value were removed from the clustering inputs, which shows only that the separation does not depend on the lift column itself, since near-perfect lift surrogates remain among the 23 retained measures (Section S14 in Multimedia Appendix 1 and Table S16 in Multimedia Appendix 3). We therefore interpret the lower-association cluster descriptively, as rules whose co-occurrence does not exceed chance expectation, and do not present the clustering as outperforming a simple threshold. Across 30 random seeds, the silhouette coefficient was 0.659 (2.5th to 97.5th percentile 0.633-0.684). Because this partition coincides with the sign of (lift–1), these figures establish the reproducibility of that criterion and must not be read as the stability of a discovered structure independent of it (Table 2 and Figure 4).

‎
Figure 4. Interestingness measures and clustering: (A) Pearson correlation matrix of the 6 interestingness measures reported in the main text, which is a different coefficient from the Spearman correlations used for the redundancy analysis and (B) UMAP embedding colored by the 2-cluster k-means solution (higher association and lower association). Panel (A) labels the measures as they are named in the analysis code, so added value appears as “addedValue,” the Jaccard coefficient as “jaccard,” and the Yule Q coefficient as “yuleQ.” UMAP: Uniform Manifold Approximation and Projection.

Across 100 bootstrap resamples, the median cluster-membership posterior probability was 0.958 (IQR 0.908-0.983), and 3016 of 3023 (99.8%) rules retained their cluster assignment in at least 80% of resamples (Table S13 and Figure S4 in Multimedia Appendix 3; the corresponding 3-cluster values are in Table S12 in Multimedia Appendix 3). Because this partition coincides with the sign of (lift–1), these figures establish the reproducibility of that criterion and must not be read as the stability of a discovered structure independent of it. UMAP hyperparameter sensitivity across 12 combinations of n_neighbors and minimum distance yielded silhouette coefficients of 0.413 to 0.690 and adjusted Rand indices of 0.51 to 1.00 relative to the baseline embedding, with most combinations reproducing the baseline partition exactly (Section S4 in Multimedia Appendix 1 and Table S11 and Figure S3 in Multimedia Appendix 3).

The 2-cluster structure also replicated in an independent 2020 sample from the same claims system, which yielded 3273 directed rules and 2176 deduplicated rules with a lower-association cluster of 250 of 2176 (11.5%) and a mean lift of 0.73 (SD 0.19); on the 2776 directed rules common to both years, the k=2 labels agreed for 2726 of 2776 (98.2%) rules (adjusted Rand index=0.899; Table S17 in Multimedia Appendix 3). As with the seed and bootstrap analyses, this establishes the reproducibility of a partition that coincides with the sign of (lift–1) and must not be read as the stability of a discovered structure independent of that criterion.

In the hold-out analysis, held-out rules projected into a training-half UMAP embedding reproduced the canonical labels almost exactly across 12 splits (mean accuracy 0.9997, SD 0.0005; mean Cohen κ 0.9986, SD 0.0019; mean adjusted Rand index 0.9982, SD 0.0025; mean training-half silhouette 0.702, SD 0.020). Across 20 splits, k-means applied directly in the 25-measure standardized space, or to a 2-component principal component projection, recovered a different partition rather than no partition at all (mean adjusted Rand index –0.074, SD 0.010 and mean adjusted Rand index –0.078, SD 0.013, respectively), cutting the dominant axis near its middle rather than failing to find structure (Section S12 in Multimedia Appendix 1 and Table S18 in Multimedia Appendix 3). Neither variant refits UMAP, so neither speaks to the necessity of the nonlinear embedding step. This is an internal out-of-sample check of the partition and is not evidence that the pipeline outperforms the criterion lift <1. Because the partition being recovered coincides with the sign of (lift–1), the hold-out result establishes the reproducibility of that criterion and must not be read as the stability of a discovered structure independent of it.

A support-threshold sweep tested whether the correspondence between the lower-association cluster and lift <1 depends on the reported threshold (Table S4 in Multimedia Appendix 3). At the 2 highest thresholds, the correspondence did not depend on the threshold (Cohen κ=0.995 at 0.001 and 0.997 at 0.0005). At thresholds below 0.0005, the partition departed from lift <1. This departure reflects a weaker 2-cluster structure rather than additional information: the embedding silhouette fell from 0.646 to 0.389 (Table S4 in Multimedia Appendix 3), and the share of deduplicated rules near the independence boundary stayed flat or decreased across the 4 thresholds (Section S12 in Multimedia Appendix 1).

The silhouette used to select k was computed on the 2D embedding, so we recomputed it in the original standardized 25-measure space, where it again peaks at k=2 (0.362 vs 0.279 at k=3) at much lower absolute values, while k-means run directly in that space yields a different partition agreeing with neither the published labels nor lift <1 (Section S14 in Multimedia Appendix 1 and Table S2 in Multimedia Appendix 3).

Cluster Characterization and External Comparison

All 24 guideline-recommended drug pairs were assigned to the higher-association cluster (concordance rate 24/24, 100%, on the basis of guideline drug pairs; Table S5A in Multimedia Appendix 3). On the rule basis used in the independent label panel, 63 of 1719 (3.7%) higher-association rules and 0 of 219 lower-association rules carry a guideline label (Table S20 in Multimedia Appendix 3).

Two negative controls were examined. Of 44 candidate STOPP/Beers potentially inappropriate medication pairs, only acetylsalicylic acid plus clopidogrel surpassed the support threshold, and it too fell in the higher-association cluster; at lower thresholds, 5 of the 44 surfaced, all with the higher-association signature (Section S12 in Multimedia Appendix 1 and Table S5B and Figure S8 in Multimedia Appendix 3). These combinations were thus coprescribed more often than chance expectation, which illustrates that association strength and prescribing appropriateness are distinct dimensions, and their near-absence is consistent with a prescribing-time blocking system. On the national contraindication list, 94 of 535 (17.6%) eligible DUR item-label pairs were coprescribed at least once, but 0 of 535 (0%; exact 95% CI 0%-0.7%) reached the primary support threshold of 0.001, and only 1 of 535 (0.2%) reached 0.0001. Against the 48,920 same-drug pairs that exclude the 535 labeled pairs, the Haldane-Woolf odds ratio (OR) was 0.270 (95% CI 0.017-4.343; P=.27) at support ≥0.001, so the depletion is not statistically significant at the primary threshold and reaches significance at all 3 lower thresholds (P=.04 at ≥0.0005; P<.001 at ≥0.0002 and ≥0.0001). The 44-pair list bounded the surfacing proportion only to 0.1% to 12%, whereas the 535-pair list bounds it to 0% to 0.7%. The per-threshold counts, the second denominator, and the background surfacing rates are in Section S12 in Multimedia Appendix 1 and Table S21 in Multimedia Appendix 3.

ATC anatomical-class concordance (the proportion of deduplicated association rules whose 2 sides share a first-level ATC anatomical class) was 44.1% (758/1719) in the higher-association cluster (bootstrap 95% CI 41.7-46.3) and 16.9% (37/219) in the lower-association cluster (bootstrap 95% CI 11.9-22.4; OR 3.88, 95% CI 2.67-5.76; χ21=58.3; P<.001). Concordance rose with the depth of the shared ATC code, although the intermediate contrasts were not monotonic, and a Cochran-Armitage test across the depth of the deepest shared prefix gave Z=6.24, P<.001; the 3-tier subdivision showed the same gradient (Z=10.0; P<.001), and the direction survived 3 ATC multiclassification scenarios (Section S14 in Multimedia Appendix 1 and Tables S7B, S20, and S22 in Multimedia Appendix 3). The metric therefore reflects graded pharmacological relatedness rather than only the 14 broad anatomical main groups.

Turning to labels that form no part of the clustering input, coformulation in a marketed fixed-dose combination was markedly more common among higher-association rules: 111 of 1719 (6.5%) versus 2 of 219 (0.9%), OR 7.49 (95% CI 2.00-63.03; P<.001; Table S20 in Multimedia Appendix 3). Because none of these labels is a function of the 25 interestingness measures, none can have been induced by the clustering; the coformulation label is nevertheless regulatory evidence of intentional coformulation rather than expert clinical adjudication.

A third label in the same panel, the presence of a DUR age-contraindicated ingredient, was null across the whole rule set (higher-association rules: 393/1719, 22.9% vs lower-association rules: 41/219, 18.7%; OR 1.29, 95% CI 0.89-1.89; P=.20). As an exploratory observation, in the pediatric subgroup (within-band 2-cluster refit used for Table 3, in which the pediatric lower-association cluster is not below chance; Section S7 in Multimedia Appendix 1), rules containing an age-contraindicated ingredient were more common in the lower-association cluster (higher-association rules: 426/1910, 22.3% vs lower-association rules: 1668/3852, 43.3%; OR 0.38, 95% CI 0.33-0.43; P<.001), the opposite direction to adults (higher-association rules: 373/1654, 22.6% vs lower-association rules: 59/268, 22%; P=.88) and older people (higher-association rules: 240/1792, 13.4% vs lower-association rules: 32/273, 11.7%; P=.50). This must not be read as the lower-association cluster flagging inappropriate prescribing: the likely confounder is that rarer drugs are both less strongly associated and more often age-restricted, and the label is ingredient-level rather than dose- or indication-level.

Table 3. Top 5 association rules by typicality and composite score according to age group and clustersa.
Selection criterionbPediatrics, higher association (subgroup silhouette 0.453)Pediatrics, lower association (subgroup silhouette 0.453)Older people, higher association (subgroup silhouette 0.669)Older people, lower association (subgroup silhouette 0.669)
By typicalitycClarithromycin, levodropropizine → prednisoloneMontelukast, paracetamol → levodropropizinePitavastatin → acetylsalicylic acidDonepezil → tramadol and paracetamol
By typicalitycPhenylephrine, combinations; tulobuterol → Hederae helicis foliumMontelukast, prednisolone → phenylephrine, combinationsLevamlodipine → choline alfoscerateTiropramide → propionic acid derivatives
By typicalitycAcetylcysteine, Saccharomyces boulardii → Hederae helicis foliumCefpodoxime, levodropropizine → phenylephrine, combinationsCilostazol → rosuvastatinTrimebutine → eperisone
By typicalitycMontelukast, tulobuterol → prednisoloneAcetylcysteine, amoxicillin → levodropropizineOmega-3-triglycerides including other esters and acids → atorvastatinAlprazolam → eperisone
By typicalitycChlorphenamine, paracetamol → cefaclorAcetylcysteine, other respiratory system products → amoxicillin and beta-lactamase inhibitorKallidinogenase → choline alfoscerateNizatidine → other drugs for acid-related disorders
By composite scoredSalbutamol → budesonideAmoxicillin and beta-lactamase inhibitor, pseudoephedrine → lactic acid producing organismsMethotrexate → folic acidCholine alfoscerate → mosapride
By composite scoredSalbutamol, tulobuterol → budesonideTrimebutine → lactic acid producing organismsBrimonidine → timolol, combinationsEsomeprazole → tramadol and paracetamol
By composite scoredBudesonide, tulobuterol → salbutamolDexibuprofen, lactic acid producing organisms → paracetamolSpironolactone → furosemideFamotidine → rebamipide
By composite scoredAcetylcysteine, budesonide → salbutamolLactic acid producing organisms; phenylephrine, combinations → amoxicillin and beta-lactamase inhibitorBromfenac → moxifloxacinEsomeprazole → aceclofenac
By composite scoredAcetylcysteine, salbutamol → budesonideAcetylcysteine, levocetirizine → montelukastQuetiapine → donepezilRabeprazole → eperisone

aLabels come from a within-band 2-cluster refit; the pediatric lower-association cluster is not below chance (median lift 1.22, IQR 0.90-1.52; Section S7 in Multimedia Appendix 1).

bBidirectional rules (A to B and B to A) were treated as a single drug combination, so each drug combination appears once.

cTypicality was defined as the Euclidean distance to the cluster median in a normalized 5D space of interestingness measures (lift, added value, Jaccard coefficient, Yule Q, and Kulczynski index).

dComposite score was defined as the sum of the z-standardized values of lift, added value, Yule Q, and the Jaccard coefficient.

Duration-mismatched coprescription events (one drug dispensed for ≤14 days and the other for ≥30 days) were more frequent in the lower-association cluster (mean 5.3%, SD 9.1%; median 1.7%, IQR 1.0%-5.5%) than in the higher-association cluster (mean 2.5%, SD 7.8%; median 0.6%, IQR 0.3%-1.3%; Wilcoxon P<.001), although the absolute proportions were modest in both (Table S9 and Figure S6 in Multimedia Appendix 3).

Because a per-pair Wilcoxon test is close to automatic at this sample size, we report the magnitude instead: Cliff delta 0.546 (95% CI 0.478-0.611) and a Hodges-Lehmann median difference of 1.08 percentage points (95% CI 0.86-1.39). Both distributions are heavily right-skewed; 7 of 923 higher-association pairs exceed a 50% mismatch proportion, and no lower-association pair does (Table S23 and Figure S6 in Multimedia Appendix 3). The shift is consistent in direction but modest in absolute size. The unit of this analysis is the drug pair rather than the deduplicated rule: it covers all 1117 genuine drug-drug pairs (923 higher association and 194 lower association), each counted once.

Because a same-date transaction observes only drugs written at one encounter, we measured how much within-patient couse it misses. Among patient-pair combinations in which the patient received both drugs of a pair at any point in 2021, only 12,710,952 of 30,680,182 (41.4%) included receipt of both on a single date (higher-association pairs: 11,025,083/23,758,025, 46.4%; lower-association pairs: 1,685,869/6,922,157, 24.4%), so more than half of within-patient couse is invisible to this unit. The unit itself is not the source of that loss: 24,576,377 of 25,124,994 (97.8%) same-date coprescriptions were written on a single claim (Section S13 in Multimedia Appendix 1), so a care-start date is one prescribing act, not several same-day encounters. These 2 figures cover the 1033 of 1117 drug pairs whose item labels contain no embedded comma.

At the primary support threshold (≥0.001), the analysis generated 1738 frequent item sets, 3023 directed association rules, and 1938 deduplicated rules, involving 187 distinct drugs among the single-drug to single-drug rules. Reviewing only the higher-association cluster would still leave 1719 of 1938 (88.7%) deduplicated rules, so the 2-cluster split sets aside 219 of 1938 (11.3%). Lowering the support threshold to 0.0001 raised the count of directed rules from 3023 to 48,413, a 16-fold increase, and the count of deduplicated drug-drug pairs from 1117 to 9237, an 8-fold increase (Table S25 in Multimedia Appendix 3). These are descriptive burden counts and imply no screening claim.

The 25 interestingness measures were substantially redundant. Principal component analysis of the standardized measures gave a participation ratio of 3.51 effective dimensions, with the first component accounting for 47.8% of the variance and 4 components required to reach 80%; correlation-based grouping produced 13 redundancy groups, within one of which lift, hyperLift, the OR, Yule Q, and Yule Y were functionally interchangeable (absolute Spearman ρ≥0.9967; Tables S16 and S26 and Figure S9 in Multimedia Appendix 3). The 2-cluster split lay along this dominant axis (area under the curve 0.995 for the first component as a predictor of cluster membership among the 1938 deduplicated rules), and the axis persisted when lift and added value were removed from the input (first component 46.8% of variance, area under the curve 0.995). The optimal cut point on the first component nevertheless agreed with the k-means label at only Cohen κ=0.87, materially worse than the agreement of lift <1 (0.995), so the component does not reproduce the partition.

Using knowledge-base labels as an explicit proxy, a deduplicated rule was counted as carrying a documented pharmacological relationship if it was guideline-recommended, contraindicated on the DUR list, coformulated in a marketed fixed-dose combination, or shared an ATC code prefix. Under the strict variant (shared ATC level 4), the label applied to 179 of 1938 (9.2%) rules, and under the broad variant, to 841 of 1938 (43.4%), and only 2 of 179 strict and 39 of 841 broad documented-relationship rules fell outside the higher-association cluster. Cluster membership and the one-line criterion lift ≥1 gave numerically identical values in every cell (sensitivity 177/179, 98.9%; specificity 217/1759, 12.3%; positive predictive value 177/1719, 10.3%), so cluster membership offers no advantage over the one-line criterion; a stricter threshold, lift ≥2, traded sensitivity for specificity rather than dominating it, and ranking by support was weakest (Table S27 in Multimedia Appendix 3). The full contingency tables, the broad-variant figures, and the counts behind each rate are in Section S12 in Multimedia Appendix 1 and Table S27 in Multimedia Appendix 3. Knowledge-base labels are a proxy for, not equivalent to, expert clinical judgment.

The primary k=2 solution was therefore interpreted descriptively as a higher-association and a lower-association cluster; the supplementary 3-tier sensitivity analysis subdivides the higher-association cluster into strong and moderate tiers and leaves the lower-association cluster unchanged. Statistically incidental is not synonymous with inappropriate: a frequently coprescribed but potentially inappropriate pair appears in the higher-association cluster, not the lower-association one.

Subgroup Analyses by Sex and Age

The sex subgroup networks showed sex-specific examples: in male patients, budesonide with salbutamol, and in female patients, methotrexate with folic acid. Lower-association, statistically incidental drug combinations were also observed in both sexes, such as methylprednisolone with paracetamol in male patients and fluconazole with drugs for acid-related disorders in female patients (Figure 2).

In a subgroup analysis by age groups, a total of 2809 association rules were identified in adult patients, 6649 in pediatric patients, and 3380 in older patients (Table S28 in Multimedia Appendix 3). Only 331 deduplicated rules were common to all 3 age bands at the primary threshold (Tables S10A and S10B in Multimedia Appendix 3), and a size-controlled comparison gave a similarly modest overlap (31 of the top 500), so the small overlap is not solely an artifact of the fixed threshold (Section S14 in Multimedia Appendix 1 and Tables S10A-S10C and S29 and Figure S5 in Multimedia Appendix 3). These subgroup patterns (pediatric patients concentrated in respiratory conditions and older patients in cardiovascular and metabolic conditions) were exploratory. In pediatric patients, drug combinations were highly concentrated in respiratory diseases, particularly the combination of budesonide and salbutamol, predominantly within the higher-association cluster. In contrast, drug combinations in older patients were more diverse in therapeutic content, spanning cardiovascular, metabolic, and neurodegenerative conditions (Table 3 and Figure 3).

These differing rule counts reflect, in part, differing concentration of prescribing rather than structure. Pediatric prescribing was substantially more concentrated than prescribing for adults or older people (Gini coefficient of prescription records 0.920 vs 0.844 and 0.815; share of records accounted for by the 10 most frequent drugs 1,970,103/4,679,630, 42.1% vs 4,746,893/15,809,567, 30% and 2,424,225/10,864,161, 22.3%), and the pediatric band retained far more rules per unit of prescribing volume than either other band (5.45 vs 1.22 rules per 1000 transactions in older people and 0.64 in adults; 6649 vs 3380 and 2809 rules). Concentration is only a partial explanation, because the least concentrated band (older people: Gini 0.815) yielded nearly twice the rules per transaction of adults (Gini 0.844; Table S28 in Multimedia Appendix 3). The pediatric excess was driven by higher-order rules: among deduplicated drug-drug pairs, the band of older people retained more (1349 vs 978). Remining within each age band further shows that the pooled rule set mixes opposite age-specific signs: 66 of 185 (36%) lower-association pairs reach lift ≥1 in at least 1 band, while 150 of 848 (17.7%) higher-association pairs fall below it (computed on the 1033 comma-free pairs; Section S13 in Multimedia Appendix 1). Age stratification is therefore not only a sensitivity analysis but a step that changes what the pooled rule set means. The fixed support threshold also biases rule volume across age bands; the size-controlled top-N comparison nevertheless still shows limited cross-age overlap (Table S29 in Multimedia Appendix 3), so both observations hold together.

Representative combinations selected by typicality and by composite score were similar between the sexes, with higher-association combinations including guideline-concordant pairs such as methotrexate-folic acid and spironolactone-furosemide, the latter appearing in both sexes (Table 1), whereas pediatric higher-association combinations involved respiratory medications and antibiotics, and those in older patients involved cardiovascular and metabolic treatments (Table 3).


Principal Findings

The silhouette-optimal 2-cluster partition of the association rules is equivalent to the one-line criterion lift <1 (Cohen κ=0.995 on the 1938 deduplicated rules, with only 2 discordant rules); the equivalence holds at support 0.0005 and is therefore not an artifact of the reported threshold; and cluster membership has documented-relationship operating characteristics numerically identical to those of lift ≥1. The clustering adds nothing to a one-line criterion. What survives is a parsimony result about the interestingness measures themselves, set out under the Comparison With Prior Work section. What places a rule in the lower-association cluster is nonetheless structural. The support threshold makes below-chance pairs observable only when both drugs are common: no rule in that cluster has a product of marginal supports at or below 0.001, and its median attainable maximum lift is 8.4 (IQR 8.2-13.8) against 20.3 (IQR 11.5-29.4). Their couse is largely invisible to a same-encounter unit (1,685,869/6,922,157, 24.4% vs 11,025,083/23,758,025, 46.4%), and 66 of 185 (36%) reach lift 1 inside at least 1 age band. The cluster is not a single phenomenon: part of it reflects pooling across ages, and part marks common drugs that are seldom written together at one encounter rather than clinically irrelevant combinations (Section S13 in Multimedia Appendix 1). The 2 clusters had distinct descriptive profiles (Table 2), and the partition was stable across seeds and bootstrap resamples, which establishes the reproducibility of the criterion rather than of a structure independent of it. A mean of 3.8 (SD 1.9) drugs was prescribed per prescription day, with pediatric and older patients more exposed to polypharmacy.

Comparison With Prior Work

The contribution of this study is descriptive. Previous applications of data mining to health care claims have concentrated on adverse drug event discovery [42] or on the outcomes of sustained polypharmacy [43] rather than on the structure of the coprescription rule set itself. We characterized the geometry of coprescription association rules in a national claims sample and showed that a lower-association subset, near the statistical independence boundary, is separated reproducibly. Because guideline-recommended pairs are common chronic-disease combinations expected to have high lift, their assignment to the higher-association cluster is a face-validity check rather than independent validation. The ATC anatomical-class concordance contrast between the clusters (758/1719, 44.1% vs 37/219, 16.9%) is reported as a structural correlate, because the ATC classification is not part of the clustering inputs; it is not evidence of clinical utility. Because the lower-association cluster largely coincides with a simple lift threshold, the multimeasure procedure should be understood as a reproducible descriptive summary rather than a classifier that distinguishes clinically meaningful from inappropriate combinations or that outperforms existing interestingness measures.

The noncircular component of this evidence is the label panel that plays no role in the clustering input. Coformulation in a marketed fixed-dose combination and the depth of the shared ATC code both track cluster membership (coformulation: 111/1719, 6.5% vs 2/219, 0.9%; Cochran-Armitage trend across ATC depth Z=6.24; P<.001), which addresses the circularity that arises when a label is correlated with the clustering inputs by construction, as guideline-recommended pairs are with lift. These labels are not, however, independent of the indication confound: fixed-dose combinations and shared ATC codes exist because the drugs treat the same condition, so the panel confirms that rules above the independence boundary are pharmacologically related, which is expected, rather than establishing clinical utility. These are knowledge-base labels and a proxy for expert judgment, establishing a statistical association with external pharmacological structure rather than clinical appropriateness.

The surviving contribution of this study concerns parsimony rather than performance. The 25 interestingness measures occupy roughly 3.5 effective dimensions and fall into 13 redundancy groups, one of which holds 5 functionally interchangeable measures, so much of the apparent richness of the measure space is duplication. The 2-cluster split lies along this dominant axis and is recovered when lift and added value are removed from the input, leaving the identical 219 lower-association rules; this shows only that the partition does not depend on the lift column itself, because near-perfect lift surrogates remain among the 23 retained measures (Table S16 in Multimedia Appendix 3). This is a statement about interestingness measures rather than evidence that the pipeline outperforms a threshold: a criterion whose specificity is 217 of 1759 (12.3%), while flagging 1719 of 1938 (88.7%) of the rule set is uninformative as a filter, so the clustering confers no advantage over simple lift-based ranking. The supporting figures are in Section S14 in Multimedia Appendix 1.

The exploratory subgroup analyses revealed distinct differences by age and smaller differences by sex, consistent with evidence that polypharmacy is influenced by demographic and clinical factors: sex-related disparities in potentially inappropriate medication use [44-46], frequent concurrent medication in children with chronic conditions [47,48], and polypharmacy in older adults arising from multimorbidity and complex regimens [49,50].

Part of the subgroup difference in rule count is a property of the threshold rather than of prescribing: pediatric prescribing is more concentrated, so a fixed support threshold retains proportionally more rules in that band, an excess carried by higher-order rules. Cross-age overlap remains low once rule-set size is controlled, so the 2 observations coexist rather than conflict.

Several recognizable associations were observed across the age subgroups. In pediatric patients, comedication was predominantly respiratory, and in older patients, it involved neurodegenerative and cardiovascular disease, consistent with Korean and US reports [48,51-53]. The descriptive approach therefore captures subgroup-specific prescribing without relying on predefined rules.

Association rule mining has been applied to polypharmacy only recently: Faquetti et al [54] identified polypharmacy patterns with the Apriori algorithm in new users of metformin, and data mining algorithms have been used on large databases to detect drug combinations associated with adverse drug reactions [24]. Those approaches target specific adverse outcomes rather than the structure of the coprescription rule set, which is what this study describes, and the graph-based visualizations aid interpretation across demographic subgroups.

Threshold and measure selection is consequential in association rule mining: too low a threshold yields unimportant rules and too high a threshold loses potential ones. We used an empirical support threshold of 0.001, also used in a previous study [18]. Because the performance of interestingness measures converges under support constraints [26], similar trends are expected with other measures.

The approach is therefore not a substitute for criteria-based tools such as STOPP/START. Its relevance is limited to descriptive characterization of large-scale coprescription structure, summarizing without predefined rules which combinations co-occur more or less often than chance expectation; any downstream use to prioritize combinations for clinical review would require a separate assessment against clinical criteria.

Limitations

The dataset provided no data on adverse drug reactions. The results are descriptive and exploratory, without a confirmatory risk assessment, and may vary with the thresholds and measures chosen. The same-day prescription assumption could not be verified against actual administration, and dispensing duration is an imperfect proxy for concurrent exposure. Duration mismatch was modest overall but more frequent in the lower-association cluster, and more than half of within-patient couse is invisible to a same-encounter unit. The near-absence of STOPP/Beers pairs above the support threshold (1 of 44) limited the original negative control’s resolution. The 2020 replication drew on the same national claims system, and the deidentified public data cannot show beneficiary overlap with 2021, so it is a temporal rather than an independent-population replication and not an external or expert-based validation. Further stability checks and the knowledge-base comparison are in Section S13 in Multimedia Appendix 1. Cross-age overlap was sensitive to the support threshold, so subgroup findings should be read with the threshold sensitivity analyses. The dataset is dominated by ambulatory care, so inpatient-intensive patterns are underrepresented, and the rules are not independent observations, so the P values and intervals reported for rule-level comparisons are descriptive summaries rather than inference on independent units (Section S14 in Multimedia Appendix 1). Finally, cluster membership reflects how strongly 2 drugs are associated, not whether the combination is clinically advisable, so a frequently coprescribed but potentially inappropriate pair appears in the higher-association cluster, and cluster assignment should not be read as a judgment of prescribing appropriateness.

The deduplication key was built from the antecedent and consequent strings, collapsing a multi-item antecedent onto a single entry. The deduplicated set therefore mixes single-drug to single-drug pairs (1117/1938) with higher-order rules (821/1938; Table S25 in Multimedia Appendix 3) and describes association rules rather than drug pairs exclusively.

The negative control bounds the surfacing proportion of contraindicated combinations tightly (0/535 eligible pairs at support ≥0.001), but those combinations are blocked at prescribing, so this describes rarity under a blocking system, not safety or DUR effectiveness. Because no eligible pair appears in the rule set, that cross-tabulation is structurally empty, and 1165 of 1925 (60.5%) pairs were ineligible, limiting sensitivity.

Three caveats govern the interpretation of this result. First, contraindicated combinations on the DUR list are actively blocked at the point of prescribing, so their near-absence from these claims is expected by construction and is not evidence of safety, appropriate prescribing, or DUR effectiveness. Second, the cluster by contraindication cross-tabulation is structurally empty and supports no inference about cluster structure. Third, 1165 of 1925 (60.5%) contraindicated pairs are not eligible because at least 1 ingredient is absent from the cohort drug namespace, which limits sensitivity rather than specificity (Section S14 in Multimedia Appendix 1).

The hold-out analysis is an internal reproducibility check, not independent validation: the out-of-sample projection is approximate, and the training embedding uses half the rules. The exploratory age-contraindication result is confounded by drug rarity and is not a count of inappropriate prescribing.

Conclusions

Association rule mining combined with dimensionality reduction and clustering can describe coprescription patterns in large-scale claims data, but the resulting 2-cluster partition is equivalent to the one-line criterion lift <1 and confers no advantage over it. What survives is the redundancy of the interestingness measures, the location of the split at the statistical independence boundary, and a structural account of the lower-association cluster, which resolves into components of which only one, common drugs seldom written together at one encounter, would invite prescribing-level attention.

Data Availability

The dataset analyzed in this study is a publicly available sample provided by the National Health Insurance Service of Korea through the national open data portal [28].

Funding

This study was financially supported by Chonnam National University (grant 2025-0375-03). The funder had no role in the study design, data collection, analysis, interpretation, or preparation of the manuscript.

Generative AI Use

Generative AI tools (ChatGPT, OpenAI; Claude, Anthropic) were used during manuscript preparation for language editing, for assistance with analysis and visualization code, and for consistency checking across the manuscript and supplementary materials. All outputs were reviewed and verified by the authors, who take responsibility for the content.

Authors' Contributions

Conceptualization: KYH

Data curation: KYH

Formal analysis: KYH

Funding acquisition: GK

Investigation: KYH, GK

Methodology: KYH

Project administration: KYH

Resources: GK

Supervision: GK

Validation: GK

Visualization: KYH

Writing – original draft: KYH

Writing – review & editing: GK

Conflicts of Interest

None declared.

Multimedia Appendix 1

Methods and results supplement: interestingness measures, threshold and cluster-number selection, sensitivity analyses, external label panel, and specifications of the additional analyses.

PDF File (Adobe PDF File), 305 KB

Multimedia Appendix 2

STROBE checklist for the reporting of this cross-sectional analysis of routinely collected claims data.

PDF File (Adobe PDF File), 48 KB

Multimedia Appendix 3

Supplementary tables (Tables S1-S29) and figures (Figures S1-S9): definitions and redundancy of the 25 interestingness measures; cluster-number selection, UMAP hyperparameter, multiseed, bootstrap, hold-out, support-threshold, and 2020 replication analyses; guideline, negative-control, Anatomical Therapeutic Chemical, and fixed-dose combination label comparisons; prescribing volume and duration-mismatch distributions; and sex and age subgroup results.

PDF File (Adobe PDF File), 1521 KB

  1. Delara M, Murray L, Jafari B, Bahji A, Goodarzi Z, Kirkham J, et al. Prevalence and factors associated with polypharmacy: a systematic review and Meta-analysis. BMC Geriatr. 2022;22(1):601. [CrossRef] [Medline]
  2. Tsang JY, Sperrin M, Blakeman T, Payne RA, Ashcroft D. Defining, identifying and addressing problematic polypharmacy within multimorbidity in primary care: a scoping review. BMJ Open. 2024;14(5):e081698. [FREE Full text] [CrossRef] [Medline]
  3. Masnoon N, Shakib S, Kalisch-Ellett L, Caughey GE. What is polypharmacy? A systematic review of definitions. BMC Geriatr. 2017;17(1):230. [FREE Full text] [CrossRef] [Medline]
  4. Burt J, Elmore N, Campbell SM, Rodgers S, Avery AJ, Payne RA. Developing a measure of polypharmacy appropriateness in primary care: systematic review and expert consensus study. BMC Med. 2018;16(1):91. [FREE Full text] [CrossRef] [Medline]
  5. O'Mahony D, Cherubini A, Guiteras AR, Denkinger M, Beuscart J, Onder G, et al. STOPP/START criteria for potentially inappropriate prescribing in older people: version 3. Eur Geriatr Med. 2023;14(4):625-632. [FREE Full text] [CrossRef] [Medline]
  6. Martyn-St James M, Faria R, Wong R, Scope A. Evidence for the impact of interventions and medicines reconciliation on problematic polypharmacy in the UK: a rapid review of systematic reviews. Br J Clin Pharmacol. 2021;87(1):42-75. [FREE Full text] [CrossRef] [Medline]
  7. Fahmi A, Wong D, Walker L, Buchan I, Pirmohamed M, Sharma A, et al. Combinations of medicines in patients with polypharmacy aged 65-100 in primary care: large variability in risks of adverse drug related and emergency hospital admissions. PLoS One. 2023;18(2):e0281466. [FREE Full text] [CrossRef] [Medline]
  8. Vyas A, Pan X, Sambamoorthi U. Chronic condition clusters and polypharmacy among adults. Int J Family Med. 2012;2012:193168. [FREE Full text] [CrossRef] [Medline]
  9. Calderón-Larrañaga A, Gimeno-Feliu LA, González-Rubio F, Poblador-Plou B, Lairla-San José M, Abad-Díez JM, et al. Polypharmacy patterns: unravelling systematic associations between prescribed medications. PLoS One. 2013;8(12):e84967. [FREE Full text] [CrossRef] [Medline]
  10. Tobi H, Faber A, van den Berg PB, Drane JW, de Jong-van den Berg LTW. Studying co-medication patterns: the impact of definitions. Pharmacoepidemiol Drug Saf. 2007;16(4):405-411. [FREE Full text] [CrossRef] [Medline]
  11. Yang BR, Seong J, Choi N, Shin J, Lee J, Kim Y, et al. Co-medication of statins with contraindicated drugs. PLoS One. 2015;10(5):e0125180. [FREE Full text] [CrossRef] [Medline]
  12. Bruessel T. Co-medications, pre-medication and common diseases in the elderly. Best Pract Res Clin Anaesthesiol. 2003;17(2):179-190. [CrossRef] [Medline]
  13. Sutherland JJ, Daly TM, Liu X, Goldstein K, Johnston JA, Ryan TP. Co-prescription trends in a large cohort of subjects predict substantial drug-drug interactions. PLoS One. 2015;10(3):e0118991. [FREE Full text] [CrossRef] [Medline]
  14. Rajkomar A, Dean J, Kohane I. Machine learning in medicine. N Engl J Med. 2019;380(14):1347-1358. [CrossRef] [Medline]
  15. Longo E, Burnett B, Bauermeister S, Zhou S. Identifying dynamic patterns of polypharmacy for patients with dementia from primary care electronic health records: a machine learning driven longitudinal study. Aging Dis. 2023;14(2):548-559. [FREE Full text] [CrossRef] [Medline]
  16. Mehta RS, Kochar BD, Kennelty K, Ernst ME, Chan AT. Emerging approaches to polypharmacy among older adults. Nat Aging. 2021;1(4):347-356. [CrossRef] [Medline]
  17. Seyedtabib M, Kamyari N. Predicting polypharmacy in half a million adults in the Iranian population: comparison of machine learning algorithms. BMC Med Inform Decis Mak. 2023;23(1):84. [FREE Full text] [CrossRef] [Medline]
  18. Saha E, Rathore P. Discovering hidden patterns among medicines prescribed to patients using association rule mining technique. Int J Healthcare Manag. 2023;16(2):277-286. [CrossRef]
  19. Kaur M, Kang S. Market basket analysis: identify the changing trends of market data using association rule mining. Proc Comput Sci. 2016;85:78-85. [CrossRef]
  20. Reps JM, Aickelin U, Ma J, Zhang Y. Refining adverse drug reactions using association rule mining for electronic healthcare data. 2014. Presented at: 2014 IEEE International Conference on Data Mining Workshop; December 14, 2014:763-770; Shenzhen, China. [CrossRef]
  21. Srinivas K, Rao GR, Govardhan A. Mining association rules from large datasets towards disease prediction. 2012. Presented at: 2012 International Conference on Information and Computer Networks (ICICN 2012); February 26-28, 2012:22-26; Singapore. URL: https://www.researchgate.net/publication/274697199
  22. McCormick TH, Rudin C, Madigan D. Bayesian hierarchical rule modeling for predicting medical conditions. Ann Appl Stat. Jun 1, 2012;6(2):652-668. [CrossRef]
  23. Huh KY, Song I. Analyzing collaborations in clinical trials in Korea using association rule mining. Transl Clin Pharmacol. 2024;32(4):177-186. [CrossRef] [Medline]
  24. Shi Y, Chiang CW, Unroe KT, Oyarzun-Gonzalez X, Sun A, Yang Y, et al. Application of an innovative data mining approach towards safe polypharmacy practice in older adults. Drug Saf. 2024;47(1):93-102. [CrossRef] [Medline]
  25. Bringhurst K, Jones T, Runko G, Jabbari M, Zipparro N, Nghi Vo G, et al. Artificial intelligence in the management of polypharmacy among older adults: a scoping review. Cureus. 2025;17(8):e90867. [CrossRef] [Medline]
  26. Tan PN, Kumar V, Srivastava J. Selecting the right objective measure for association analysis. Inform Syst. 2004;29(4):293-313. [CrossRef]
  27. Geng L, Hamilton HJ. Interestingness measures for data mining: a survey. ACM Comput Surv. 2006;38(3):9. [CrossRef]
  28. Pharmaceutical prescription information. National Health Insurance Service. URL: https://data.go.kr/biz/dcat/metadata/15007117.do [accessed 2026-11-17]
  29. Song SO, Jung CH, Song YD, Park C, Kwon H, Cha BS, et al. Background and data configuration process of a nationwide population-based study using the Korean National Health Insurance System. Diabetes Metab J. 2014;38(5):395-403. [FREE Full text] [CrossRef] [Medline]
  30. Tragni E, Casula M, Pieri V, Favato G, Marcobelli A, Trotta MG, et al. Prevalence of the prescription of potentially interacting drugs. PLoS One. 2013;8(10):e78827. [FREE Full text] [CrossRef] [Medline]
  31. Vu K, Clark RA, Bellinger C, Erickson G, Osornio-Vargas A, Zaïane OR, et al. The index lift in data mining has a close relationship with the association measure relative risk in epidemiological studies. BMC Med Inform Decis Mak. 2019;19(1):112. [FREE Full text] [CrossRef] [Medline]
  32. Agrawal R, Srikant R. Fast algorithms for mining association rules in large databases. 1994. Presented at: VLDB '94: Proceedings of the 20th International Conference on Very Large Data Bases; September 12-15, 1994:487-499; Santiago, Chile. URL: https://dl.acm.org/doi/10.5555/645920.672836 [CrossRef]
  33. Hahsler M. A Probabilistic Comparison of Commonly Used Interest Measures for Association Rules. 2015. URL: https://mhahsler.github.io/arules/docs/measures [accessed 2025-12-23]
  34. McInnes L, Healy J, Melville J. UMAP: Uniform Manifold Approximation and Projection for dimension reduction. ArXiv. Preprint posted online on February 8, 2018. [CrossRef]
  35. Tibshirani R, Walther G, Hastie T. Estimating the number of clusters in a data set via the gap statistic. J R Stat Soc Series B Stat Methodol. 2001;63(2):411-423. [CrossRef]
  36. Charrad M, Ghazzali N, Boiteau V, Niknafs A. NbClust: an R package for determining the relevant number of clusters in a data set. J Stat Soft. 2014;61(6):1-36. [CrossRef]
  37. Mourer A, Forest F, Lebbah M, Azzag H, Lacaille J. Selecting the number of clusters K with a stability trade-off: an internal validation criterion. In: Kashima H, Ide T, Peng WC, editors. Advances in Knowledge Discovery and Data Mining. PAKDD 2023. Lecture Notes in Computer Science, vol 13935. Cham. Springer; 2023:210-222.
  38. Becht E, McInnes L, Healy J, Dutertre C, Kwok IWH, Ng LG, et al. Dimensionality reduction for visualizing single-cell data using UMAP. Nat Biotechnol. 2019;37(1):38-44. [CrossRef] [Medline]
  39. Xia L, Lee C, Li JJ. Statistical method scDEED for detecting dubious 2D single-cell embeddings and optimizing t-SNE and UMAP hyperparameters. Nat Commun. 2024;15(1):1753. [FREE Full text] [CrossRef] [Medline]
  40. Rousseeuw PJ. Silhouettes: a graphical aid to the interpretation and validation of cluster analysis. J Comput Appl Math. 1987;20:53-65. [CrossRef]
  41. By the 2023 American Geriatrics Society Beers Criteria® Update Expert Panel. American Geriatrics Society 2023 updated AGS Beers Criteria® for potentially inappropriate medication use in older adults. J Am Geriatr Soc. 2023;71(7):2052-2081. [CrossRef] [Medline]
  42. Harpaz R, DuMouchel W, Shah NH, Madigan D, Ryan P, Friedman C. Novel data-mining methodologies for adverse drug event discovery and analysis. Clin Pharmacol Ther. 2012;91(6):1010-1021. [FREE Full text] [CrossRef] [Medline]
  43. Chae J, Cho HJ, Yoon S, Kim D. The association between continuous polypharmacy and hospitalization, emergency department visits, and death in older adults: a nationwide large cohort study. Front Pharmacol. 2024;15:1382990. [FREE Full text] [CrossRef] [Medline]
  44. Rochon PA, Li J, O'Mahony D, Onder G, Petrovic M, Sternberg SA, et al. The impact of age, sex, and gender on polypharmacy and potential prescribing cascades: lessons from five databases. J Am Geriatr Soc. 2025;73(2):520-532. [CrossRef] [Medline]
  45. Rochon PA, Petrovic M, Cherubini A, Onder G, O'Mahony D, Sternberg SA, et al. Polypharmacy, inappropriate prescribing, and deprescribing in older people: through a sex and gender lens. Lancet Healthy Longev. 2021;2(5):e290-e300. [FREE Full text] [CrossRef] [Medline]
  46. Ukhanova M, Markwardt S, Furuno JP, Davis L, Noble BN, Quiñones AR. Are there sex differences in potentially inappropriate prescribing in adults with multimorbidity? J Am Geriatr Soc. 2021;69(8):2163-2175. [FREE Full text] [CrossRef] [Medline]
  47. Ewig CLY, Wong KS, Chan PH, Leung TF, Cheung YT. Chronic medication use and factors associated with polypharmacy among outpatient pediatric patients. J Pediatr Pharmacol Ther. 2022;27(6):537-544. [FREE Full text] [CrossRef] [Medline]
  48. Jeon SM, Park S, Rhie SJ, Kwon JW. Prescribing patterns of polypharmacy in Korean pediatric patients. PLoS One. 2019;14(10):e0222781. [FREE Full text] [CrossRef] [Medline]
  49. Dovjak P. Polypharmacy in elderly people. Wien Med Wochenschr. 2022;172(5-6):109-113. [CrossRef] [Medline]
  50. Turgeon J, Michaud V, Steffen L. The dangers of polypharmacy in elderly patients. JAMA Intern Med. 2017;177(10):1544. [CrossRef] [Medline]
  51. Xie L, Gelfand A, Murphy CC, Mathew MS, Atem F, Delclos GL, et al. Prevalence of polypharmacy and associated adverse outcomes and risk factors among children with asthma in the USA: a cross-sectional study. BMJ Open. 2022;12(10):e064708. [FREE Full text] [CrossRef] [Medline]
  52. Kim HL, Lee HJ. Polypharmacy and associated factors in South Korean elderly patients with dementia: an analysis using National Health Insurance claims data. PLoS One. 2024;19(4):e0302300. [FREE Full text] [CrossRef] [Medline]
  53. Wei YJ, Shrestha N, Chiang C, DeKosky ST. Prevalence and trend of central nervous system-active medication polypharmacy among US commercially insured adults with vs without early-onset dementia: a multi-year cross-sectional study. Alzheimers Res Ther. 2024;16(1):30. [FREE Full text] [CrossRef] [Medline]
  54. Faquetti ML, la Torre AM, Burkard T, Obozinski G, Burden AM. Identification of polypharmacy patterns in new-users of metformin using the Apriori algorithm: a novel framework for investigating concomitant drug utilization through association rule mining. Pharmacoepidemiol Drug Saf. 2023;32(3):366-381. [CrossRef] [Medline]


‎
ATC: Anatomical Therapeutic Chemical
DUR: Drug Utilization Review
ECLAT: Equivalence Class Clustering and Bottom-Up Lattice Traversal
IRB: institutional review board
OR: odds ratio
START: Screening Tool to Alert Doctors to Right Treatment
STOPP: Screening Tool of Older Persons’ Prescriptions
STROBE: Strengthening the Reporting of Observational Studies in Epidemiology
UMAP: Uniform Manifold Approximation and Projection


Edited by J Klann; submitted 22.Dec.2025; peer-reviewed by J Li, A Wani; comments to author 14.May.2026; revised version received 06.Oct.2026; accepted 02.Nov.2026; published 30.Nov.2026.

Copyright

©Ki Young Huh, Gaeun Kang. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 30.Nov.2026.

This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on https://medinform.jmir.org/, as well as this copyright and license information must be included.