Author-reviewedEvidence: highv1.0.1

Data Mining

Data mining is the computational search of large health datasets, such as claims or patient records, for patterns that were not specified in advance.

Status
Published, version 1.0.1
Last reviewed
11 Oct 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Data Mining in Health Economics and Outcomes Research

Data mining in health economics uses algorithms to search insurance claims, electronic records and spontaneous adverse reaction reports, where the volume of data allows thousands of possible patterns to be tested at once. It is used to predict costs for risk adjustment, to find patient groups that may need separate states or subgroups in a model, and to screen safety databases for drug and event pairs that deserve review. Its outputs are leads for further study, because a search on that scale will turn up some patterns that exist only by chance.

Data mining as one step in knowledge discovery

Fayyad, Piatetsky-Shapiro and Smyth separate knowledge discovery in databases (KDD), the whole process of extracting useful knowledge from data, from data mining, which they describe as the application of specific algorithms for extracting patterns from data. In their account the surrounding steps, from understanding the application and cleaning the data to interpreting and acting on the patterns, carry as much weight as the algorithm itself.

The same authors warn that blind application of data-mining methods, which statisticians criticise as data dredging, easily leads to the discovery of meaningless and invalid patterns. They distinguish verification goals, where the system checks a hypothesis the user already holds, from discovery goals, where the system finds new patterns.

Hastie, Tibshirani and Friedman frame the same methods as statistical learning. In supervised learning an outcome is measured and the aim is to predict it from inputs, as when annual cost is predicted from diagnoses. In unsupervised learning there is no outcome, and the aim is to describe how the observations are organised or clustered, as when patients are grouped by their patterns of service use.

Tasks and methods applied to health data

Fayyad and colleagues list the primary data-mining tasks as classification, regression, clustering, summarisation, dependency modelling, and change and deviation detection. Each task answers a different kind of question in health economics, and the table gives an illustrative question for each.

TaskIllustrative health economics question
ClassificationWhich members of an insurance scheme will be high-cost users next year
RegressionWhat annual expenditure should a risk adjustment formula predict for a scheme member
ClusteringWhich groups of patients share similar patterns of admissions and prescriptions
SummarisationWhat compact description fits patients who stop a treatment early
Dependency modellingWhich diagnoses tend to occur together in claims records
Change and deviation detectionWhich drug and adverse event pairs are reported more often than expected

Classification methods and cluster analysis have their own pages. Dependency modelling in claims data often uses association rules, which Hastie and colleagues describe through three quantities. The support of a rule from item set AA to item set BB is the share of records containing both, the confidence is the support divided by the share containing AA, and the lift is the confidence divided by the share containing BB.

Lift(A⇒B)=Pr⁡(A and B)/Pr⁡(A)Pr⁡(B)=0.05/0.100.20=2.5\text{Lift}(A \Rightarrow B) = \frac{\Pr(A \text{ and } B) / \Pr(A)}{\Pr(B)} = \frac{0.05 / 0.10}{0.20} = 2.5

where AA is an illustrative heart failure diagnosis, BB is an emergency admission, Pr⁡(A and B)=500/10,000=0.05\Pr(A \text{ and } B) = 500/10{,}000 = 0.05 is the support, Pr⁡(A)=1,000/10,000=0.10\Pr(A) = 1{,}000/10{,}000 = 0.10 and Pr⁡(B)=2,000/10,000=0.20\Pr(B) = 2{,}000/10{,}000 = 0.20, all from an invented file of 10,000 patient records. Emergency admission is two and a half times as common among records with heart failure as among all records. Hastie and colleagues note that a minimum support threshold keeps the search feasible but leaves rules with high lift and low support undiscovered, which matters for rare but costly events.

Applications in health economics and outcomes research

Three uses recur in health economics. Each feeds a different decision.

Cost prediction for plan payment risk adjustment

Rose applied cross-validated machine learning to plan payment risk adjustment in the Truven MarketScan database, using a population of 10,976,994 people with continuous coverage across 2011 and 2012 and an analysis sample of 250,000. Total annual expenditure was predicted from age, sex, geography, inpatient diagnoses and hierarchical condition category variables. Regression, penalised regression, decision trees, neural networks and an ensemble super learner were compared by R2R^2 under 10-fold cross-validation.

The ensemble outperformed every single algorithm. A parametric regression on the 10 variables kept by a random forests screening step reached a cross-validated R2R^2 of 0.23, against 0.25 for the regression with all 86 covariates. Rose argues that a shorter formula could reduce insurers' incentive to code diagnoses more intensely in order to raise payments, and cautions that algorithms that performed well in this dataset will not necessarily perform well in other settings.

Safety signal detection in spontaneous reports

Evans, Waller and Davis developed the proportional reporting ratio (PRR) on the UK Yellow Card database. It compares the proportion of all reactions to a drug that concern a condition of interest with the same proportion for all drugs in the database. Their minimum criteria for a signal were 3 or more cases, a PRR of at least 2 and a chi-squared value of at least 4. Applied to 15 newly marketed drugs over 1996 to 1998, the method produced 481 signals. On further evaluation 70% were known adverse reactions, 13% were events likely to be related to the underlying disease and 17% needed further evaluation.

The European Medicines Agency (EMA) guidance Screening for adverse reactions in EudraVigilance (EMA/849944/2016) reports that the choice among disproportionality statistics matters less than the thresholds set, and favours the reporting odds ratio (ROR). It calls a flagged drug and event pair a signal of disproportionate reporting (SDR). The criteria applied in EudraVigilance are a lower bound of the 95% confidence interval above one, at least 3 cases for most substances on the additional monitoring list or 5 for others, and an event on the important medical event list.

Covariate selection in real-world evidence studies

The NICE real-world evidence framework (ECD9) accepts machine learning as a way to identify a sufficient set of covariates when the number of potential covariates is very large. It asks that such use be clearly justified and checked for consistency with causal assumptions.

Assumptions and analytic choices

Every mined pattern assumes complete and consistently coded data. Claims and electronic health records are collected to pay for and deliver care rather than for research, so a change in coding practice can look like a change in disease.

How performance is judged is the second assumption. Hastie and colleagues show that training error is not a good estimate of test error, since it keeps falling as models grow more complex. In a data-rich setting they split the data into training, validation and test sets, typically 50%, 25% and 25%, and keep the test set in a vault until the end, since repeated use of it underestimates the true error. Overfitting is the failure this guards against.

Thresholds are the third choice. The EMA guidance notes that too low a threshold produces large and potentially unmanageable numbers of SDRs, while too high a threshold delays or misses important adverse reactions.

Worked example of a disproportionality screen and its chance findings

The database, drug and counts in this example are illustrative. A spontaneous reporting database holds 200,000 reports. Drug A appears in 400 reports, 20 of which mention a serious kidney event. The other 199,600 reports include 2,000 that mention the same event.

1. Set out the two by two table. Using the EMA notation, a=20a = 20 reports list drug A and the event, b=380b = 380 list drug A without the event, c=2,000c = 2{,}000 list the event without drug A and d=197,600d = 197{,}600 list neither, which sums to 200,000. If drug A and the event were unrelated, about 400 × 2,020 / 200,000 = 4.04 reports would be expected in cell aa.

2. Compute the reporting odds ratio.

ROR=a/bc/d=20/3802000/197600=0.052630.01012=5.2\text{ROR} = \frac{a / b}{c / d} = \frac{20 / 380}{2000 / 197600} = \frac{0.05263}{0.01012} = 5.2

where aa, bb, cc and dd are the four cell counts defined in step 1. The PRR from the same table is 0.05 (20 of 400) divided by 0.01002 (2,000 of 199,600), or 4.99, well above the threshold of 2 used by Evans and colleagues.

3. Compute the 95% confidence interval. The EMA guidance gives the standard error of the log ROR.

s=1a+1b+1c+1d=0.05+0.00263+0.0005+0.000005=0.05314=0.2305s = \sqrt{\frac{1}{a} + \frac{1}{b} + \frac{1}{c} + \frac{1}{d}} = \sqrt{0.05 + 0.00263 + 0.0005 + 0.000005} = \sqrt{0.05314} = 0.2305

where ss is the standard error of the natural logarithm of the ROR. The interval is 5.2 / exp(1.96 × 0.2305) to 5.2 × exp(1.96 × 0.2305), and since exp(0.4518) = 1.571, it runs from 3.31 to 8.17. The lower bound exceeds one and there are 20 cases, so if the event is on the important medical event list the pair is flagged as an SDR.

4. Count the chance flags in the whole screen. Suppose the same rule is run across 5,000 drug and event pairs with no true association. A lower 95% bound above one behaves roughly like a one-sided test at 2.5%, so about 5,000 × 0.025 = 125 pairs would cross it by chance, before the case count rule removes some. Hastie and colleagues give the probability of at least one false rejection among MM independent tests at level α\alpha as one minus (1−α)M(1 - \alpha)^M, which for 5,000 tests at 0.025 is indistinguishable from one.

5. Interpretation. The flag for drug A earns a clinical review, and the screen as a whole will also send reviewers many pairs that mean nothing. The EMA guidance stresses that an SDR may reflect confounding, reporting artefacts or coding practice, and that its confidence bound should not be read as inference. The ROR of 5.2 is also not an incidence and cannot be directly converted into one, so a cost-effectiveness model that needs the rate of the kidney event under drug A must take it from a study that measured incidence, not from the screen.

What mined findings can support in HTA

Mined findings sit on the discovery side of the line Fayyad and colleagues draw, so in economic evaluation and health technology assessment a mined association is a hypothesis that other evidence must confirm before it is treated as an effect. A cluster found in claims data can justify a subgroup analysis or a separate model state, but the costs and effects assigned to it still need an estimation strategy that addresses confounding.

The NICE position statement on the use of AI in evidence generation (ECD11) treats AI methods used to estimate comparative treatment effects as a higher-risk application. It asks for sensitivity analysis, checks against other suitable methods and presentation alongside the clinical evidence. Prediction equations from mined data that enter a model should be judged on validation in data like the decision population.

How data mining differs from nearby ideas

Data mining is a kind of data analytics, and it overlaps heavily with machine learning, which supplies most of its algorithms. Artificial intelligence in health covers products and tools that act on such predictions, while data mining is the search that produces them. Hypothesis testing sits on the verification side, where the question is fixed before the data are examined. Real-world evidence results when a pattern in real-world data is examined by a design suited to the question, often one built for causal inference. Data dredging is the pejorative name for mining without the surrounding steps.

Common errors when mining health data

The most common error is reading a mined association as a causal effect. A drug prescribed to sicker patients will be associated with worse outcomes and higher costs, and a reporting artefact can look like a safety signal.

More variables make the problem worse. Fayyad and colleagues note that a high-dimensional dataset increases the chance that an algorithm finds spurious patterns that are not valid in general, and that a system testing models at the 0.001 level on purely random data will accept about N/1000 of N models as significant.

Reported performance is often optimistic, and Rose's caution about transfer applies to any prediction model carried from one health system to another.

Selecting covariates by statistical significance is discouraged by the NICE real-world evidence framework (ECD9). Analyses that were not pre-specified should be labelled as such, so that a reader can tell a confirmed finding from a pattern found during the search.

Sources

  • European Medicines Agency. Screening for adverse reactions in EudraVigilance. EMA/849944/2016. London: European Medicines Agency; 19 December 2016.
  • Evans SJW, Waller PC, Davis S. Use of proportional reporting ratios (PRRs) for signal generation from spontaneous adverse drug reaction reports. Pharmacoepidemiology and Drug Safety. 2001;10(6):483-486. doi:10.1002/pds.677
  • Fayyad U, Piatetsky-Shapiro G, Smyth P. From data mining to knowledge discovery in databases. AI Magazine. 1996;17(3):37-54.
  • Hastie T, Tibshirani R, Friedman J. The Elements of Statistical Learning: Data Mining, Inference, and Prediction. 2nd ed. New York: Springer; 2009.
  • National Institute for Health and Care Excellence. NICE real-world evidence framework. Corporate document ECD9. London: NICE; published 23 June 2022, last updated September 2025.
  • National Institute for Health and Care Excellence. Use of AI in evidence generation: NICE position statement. Corporate document ECD11. London: NICE; published 15 August 2024.
  • Rose S. A machine learning framework for plan payment risk adjustment. Health Services Research. 2016;51(6):2358-2374. doi:10.1111/1475-6773.12464

Library

Publications

4
  • Journal article

    From data mining to knowledge discovery in databases — Fayyad U, Piatetsky-Shapiro G, Smyth P, Vol. 17, No. 3, pp. 37-54 ed., 1996 (AI Magazine)

    Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Data Mining, where it is cited as a reference for that concept.

  • Other

    Screening for adverse reactions in EudraVigilance — European Medicines Agency, 2016 (European Medicines Agency)

    Source listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Data Mining, where it is cited as a reference for that concept.

  • Journal article

    A machine learning framework for plan payment risk adjustment — Rose S, Vol. 51, No. 6, pp. 2358-2374 ed., 2016 (Health Services Research)

    Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture articles on Cross-Validation and Data Mining, where it is cited as a reference for that concept.

  • Book

    Statistical Analysis of Cost-Effectiveness Data — Willan & Briggs, 1st Edition ed., 2006 (John Wiley & Sons)

    A synthesis of statistical methods for analysing cost-effectiveness data, including net-benefit regression, confidence intervals for the ICER, cost-effectiveness acceptability curves, and covariate adjustment. Part of the Wiley Statistics in Practice series.

Frequently Asked Questions (6)

  • What is data mining?

    Data mining is the computational search of large health datasets, such as claims or patient records, for patterns that were not specified in advance.

    Source: Fayyad et al. 1996

  • What does data mining search for in large datasets?

    Data mining searches large datasets for patterns, associations, and structures using computational and statistical techniques, often without a hypothesis fixed in advance. Rather than testing a specific prediction, it lets the data suggest relationships, which can generate new ideas from records too vast to examine by hand. Its risk is that sifting through many possibilities will turn up chance patterns that do not hold up, so findings need confirmation on fresh data. Hunting for patterns without a prior hypothesis is its nature. Hastie and colleagues (2009) describe these techniques.

    Source: Hastie et al. 2009

  • How does data mining work?

    Data mining works by applying algorithms and statistical techniques to large datasets to identify patterns, such as clustering to find groups, association analysis to find co-occurrences, and predictive modelling to relate features to outcomes. It typically involves preparing the data, applying methods, and evaluating and interpreting the findings. So data mining works by using computational methods to search data for structure and relationships, often iteratively and exploratively, drawing on machine learning and statistics, with the aim of extracting patterns that are useful or interesting, which are then assessed for validity and meaning rather than assumed to be genuine from their discovery alone.

    Source: Hastie, Tibshirani & Friedman 2009

  • What are the risks of data mining?

    The risks of data mining include finding spurious patterns that arise by chance in large datasets, since searching many possibilities inflates the chance of false discoveries; overfitting, where models capture noise rather than real structure; and drawing unwarranted conclusions from associations that do not generalise or imply causation. So data mining carries a substantial risk of false or non-replicable findings, which is why discovered patterns are validated on independent data and treated as hypotheses to be tested rather than established results, since the exploratory, multiple-comparison nature of data mining makes it prone to identifying apparent relationships that do not hold up under scrutiny.

    Source: Hastie, Tibshirani & Friedman 2009

  • How is data mining used in health research?

    Data mining is used in health research to explore large and complex datasets, such as electronic health records, claims, or genomic data, to identify risk factors, disease subtypes, treatment patterns, or predictive markers, and to generate hypotheses for further study. So data mining is used in health research to extract patterns and generate hypotheses from large routinely collected or high-dimensional data, supporting discovery where predefined hypotheses are lacking, though its findings require validation, since patterns found by mining may be spurious or confounded, and their use in practice depends on confirmation through more rigorous, targeted study.

    Source: Hastie, Tibshirani & Friedman 2009

  • How does data mining differ from traditional statistical analysis?

    Data mining differs from traditional statistical analysis in being largely exploratory and data-driven, searching large datasets for patterns without prespecified hypotheses, whereas traditional analysis typically tests specific hypotheses set in advance and emphasises inference and control of error rates. Data mining prioritises discovery and prediction, often with machine learning methods and large data. So data mining and traditional statistical analysis differ in their aims and approach, with data mining seeking to uncover unknown patterns and traditional analysis to test defined hypotheses, and because the exploratory nature of data mining raises the risk of false findings, its results are validated before being relied upon.

    Source: Hastie, Tibshirani & Friedman 2009

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 11 Oct 2026

Content version: 1.0.1

Canonical Identity

Term code
HE-ES-SA-043

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This article is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/data-mining