ML-Assisted Epigenome-Wide Association Study (ML-EWAS)

Research
Introduced by
Teschendorff, Relton, and others in the epigenomics field
Year
2010s (methodological consolidation ~2015–2020)
Type
Integrative omics analysis pipeline
Family
Bioinformatics / omics

What does it do?

Machine learning-assisted EWAS (ML-EWAS) combines epigenome-wide association testing with machine learning models to identify DNA methylation sites linked to a phenotype.

The input is a methylation array with roughly 450,000 to 850,000 CpG sites, so the ML step is used to reduce and prioritise features before or alongside site-level association tests. Unlike a univariate scan, it can model several CpGs jointly and can capture non-linear effects and interactions that standard linear models do not represent.

The intuition behind the method

A conventional EWAS tests each CpG site separately against the trait and then applies a stringent multiple-testing correction, which demands large samples. ML-EWAS instead fits a supervised model that takes many sites at once, scores their joint predictive contribution, flags redundant or co-regulated sites, and can represent interactions between them. The ML output is a ranking or prioritisation of candidate sites. It does not replace the formal association test, which still determines which sites are reported as associated.

History

ML-EWAS builds on epigenome-wide association studies, which test methylation array sites individually against a phenotype. Teschendorff and Relton (2018) review statistical and integrative system-level analysis of DNA methylation data, the broader methodological field in which these approaches sit.

When to use it

Use ML-EWAS when you have genome-wide methylation array data (450K or EPIC), a well-defined phenotype, and a sample large enough for conventional EWAS to have meaningful power. It is most useful when conventional site-by-site testing is under-powered or yields an unmanageable number of correlated hits, and when interactions among CpGs or pathway-level patterns are of interest, as in complex multifactorial traits. Avoid it when samples are small, because the model is likely to overfit. The minimum sample size depends on the number of features, the expected effect sizes, and the validation design, and should be assessed by a power or learning-curve analysis. Do not use it as a substitute for multiple-testing correction. Where individual CpG effects must be explained for legal or clinical reasons, a black-box model output is not sufficient.

Limitations and considerations

  • Large sample sizes are still required. ML does not compensate for an underpowered study and can overfit when the number of samples is small relative to the number of CpGs.
  • Interpretability of ensemble and deep learning models is limited, so biological interpretation of importance scores needs careful annotation and follow-up.
  • Results depend on preprocessing choices such as the normalisation method and the cell-type correction strategy; different pipelines applied to the same data can produce different hit lists.
  • Independent replication is harder to achieve and may not be reported, which limits reproducibility.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Models many CpG sites jointly, whereas univariate EWAS evaluates each site in isolation, so correlated sites can be considered together.
  • Non-linear terms and CpG-CpG interactions can be captured by tree-based or kernel models, which standard linear regression cannot represent without explicit specification.
  • Feature importance outputs (SHAP values, variable importance) help prioritise sites for biological follow-up and hypothesis generation.
  • Elastic net shrinks many coefficients toward zero, so it returns a smaller candidate set for formal testing; the final site list still requires multiple-testing correction.
  • Can be combined with other omics layers, such as gene expression, genotype, or proteomic data, in a single modelling framework.

Applications

  • Identifying CpG methylation signatures associated with cancer risk or tumour subtype in blood or tissue samples.
  • Detecting epigenetic correlates of environmental exposures such as smoking, air pollution, or diet in population cohorts.
  • Screening for methylation biomarkers of complex psychiatric or metabolic conditions such as depression, obesity, or type 2 diabetes.
  • Multi-omics integration, jointly modelling methylation with RNA-seq or GWAS SNP data to prioritise candidate regulatory variants.

How it works

How it works

1

Raw methylation array data (IDAT files) are normalised with methods such as BMIQ, quantile normalisation, or functional normalisation to reduce technical batch effects and probe-type bias. Filtering commonly removes probes on sex chromosomes, probes affected by known SNPs, and cross-reactive probes. The exact filtering depends on study design and array version, so the choices made should be reported. Surrogate variable analysis (SVA) or cell-type deconvolution is used to account for cellular heterogeneity, which is a major confounder in blood-based studies.

2

Methylation arrays measure hundreds of thousands of CpG sites, so dimensionality must be reduced before or alongside modelling. Common approaches are variance filtering, principal component analysis, and penalised regression (LASSO or elastic net) that retains a manageable candidate set. Some pipelines first group correlated CpGs into modules using unsupervised clustering and pass the modules, rather than individual sites, to the model.

3

A supervised model, commonly elastic net logistic regression, random forest, support vector machine, or gradient boosting, is trained to predict the phenotype (case/control, continuous trait, or time-to-event) from the selected methylation features. Cross-validation (typically 5- or 10-fold) is used to tune hyperparameters and estimate generalisation performance. All selection and tuning steps, including variance filtering, penalised selection, and hyperparameter tuning, should be carried out only on the training data within each cross-validation fold. Held-out samples should not inform any selection or tuning step before the final evaluation. Feature importance scores or SHAP values rank the CpG sites that contribute most to prediction.

4

The top-ranked CpG candidates are tested formally with linear or logistic regression or mixed-effects models, including the planned covariates. Significance is judged against a genome-wide threshold that must be chosen and justified for the study and array; p < 9×10−8 is one value used as an example for 450K arrays. The multiple-testing correction (Bonferroni or Benjamini–Hochberg FDR) must reflect the number of sites formally tested, including any sites pre-selected by the ML step. Where selection and formal testing use the same samples, selection bias arises. The analysis should avoid this, for example by testing in a held-out subset, or disclose it. Effect sizes, confidence intervals, and the direction of methylation change are reported for each site.

5

Findings are checked in an independent cohort or with an orthogonal assay such as pyrosequencing or bisulfite sequencing. Enrichment analysis tests whether significant CpGs cluster in functional genomic regions such as gene promoters, enhancers, or CpG islands. Mendelian randomisation can be used to assess whether methylation changes are upstream or downstream of the phenotype.

Common pitfalls

  • Omitting cell-type deconvolution in blood-based studies. Differences in cell composition between cases and controls are a common source of false positives in EWAS, and the ML model does not correct for them.
  • Treating ML feature importance ranks as equivalent to association p-values. They measure different quantities and cannot be interchanged.
  • Training and evaluating the ML model on the same samples used for EWAS testing. This causes data leakage and inflates performance estimates. A strict train/test or cross-validation split must be kept.
  • Ignoring batch effects. Unmodelled technical batches on the array produce systematic differences that the model may learn as spurious signal.
  • Interpreting ML feature importance as biologically meaningful in a small sample without independent validation.

Frequently asked questions

How is ML-EWAS different from a standard EWAS?

Standard EWAS tests each CpG site independently with a linear or logistic regression model and applies genome-wide multiple-testing correction. ML-EWAS adds a multivariate model that is trained across all (or pre-filtered) CpGs simultaneously, which allows it to capture interactions and correlated structure. The ML component typically serves as a feature prioritisation step before or after formal association testing, not as a replacement for it.

Which machine learning algorithms are most commonly used?

Elastic net regularised regression is commonly used because it performs implicit variable selection and produces interpretable coefficients. Random forest and gradient boosting (XGBoost, LightGBM) are popular for classification tasks and handle non-linearity well. Deep learning models have been applied but require very large sample sizes to avoid overfitting to the high-dimensional CpG input space.

Do I still need to apply multiple-testing correction if I use ML?

Yes. ML feature importance scores are not statistical p-values and do not substitute for multiple-testing correction. CpG sites selected by ML as important should still be subjected to formal association tests with appropriate Bonferroni or FDR correction before being reported as significantly associated with the phenotype.

How do I handle cell-type heterogeneity in blood-based studies?

Reference-based or reference-free cell-type deconvolution methods estimate cell-type proportions and should be applied before modelling. The estimated proportions are then included as covariates in the regression models. Skipping this step is a common source of false positives in blood EWAS.

What sample size do I need?

There is no single threshold. The required sample size depends on the expected effect sizes, the number of features, and the validation design. The ML layer does not lower the requirement that conventional EWAS faces for genome-wide power. Small samples carry a high risk of overfitting the high-dimensional CpG space, whatever the cross-validation scheme, so the adequacy of the sample should be assessed by a power or learning-curve analysis.

Related methods

Sources

  1. Teschendorff, A. E., & Relton, C. L. (2018). Statistical and integrative system-level analysis of DNA methylation data. Nature Reviews Genetics, 19(3), 129–147.

    Open publication reference
  2. Jones, M. J., Goodman, S. J., & Kobor, M. S. (2015). DNA methylation and healthy human aging. Aging Cell, 14(6), 924–932.

    Open publication reference