Enhancing Clinical Classifier Robustness with Deep Representation Learning Based OOD Detection on DNA Methylation Data

Md Zahangir Alom, Quynh T. Tran, Breuer Alexandar, Brent A. OrrarXiv 2026

TL;DR

This paper introduces a robust "safety layer" for AI-driven cancer diagnostics by detecting out-of-distribution (OOD) samples in DNA methylation data. By leveraging deep representation learning and 1D-Subspace Analysis, the researchers created a framework that flags unfamiliar tumor types with high accuracy (AUROC > 0.97), preventing the dangerous overconfidence often seen in standard clinical classifiers.

What Problem Does This Paper Address?

Machine learning models have become incredibly effective at classifying tumors based on DNA methylation (DNAm) arrays. However, these models suffer from a "closed-world" problem: they are trained on a fixed set of reference tumor types. When presented with a rare tumor or a sample type not included in the training data, these models don't say "I don't know." Instead, they often produce a high-confidence prediction for the wrong category—a failure mode known as overconfident extrapolation.

In a clinical setting, this is a major safety risk. A misclassification can lead to inappropriate surgery, chemotherapy, or surveillance. This paper addresses the urgent need for a principled quality-control layer that can identify when a sample falls outside the model's expertise.

Methods

The authors propose an end-to-end framework that moves beyond simple probability scores. Their approach involves:

  1. Deep Representation Learning: They trained Deep Neural Networks (DNNs) on DNAm data and extracted feature vectors from the "bottleneck layer"—a low-dimensional representation that captures the most essential biological signals.
  2. OOD Detection Algorithms: They compared five different methods to identify outliers in this feature space: Mahalanobis Distance (MD), K-Nearest Neighbors (KNN), Ridge Regression, Sum of Squared Distances (SSD), and 1D-Subspace Analysis (1D-SSA).
  3. 1D-SSA (The Winner): This novel application for genomic data calculates the "spectral discrepancy" between a test sample and the primary singular vector of the training classes. It is particularly attractive for clinical use because it requires no hyperparameter tuning and no "negative" OOD samples during training.
Fig. 1. The schematic diagram of the out-of-distribution (OOD) pipeline analysis systems consists of data preparation, learning and representation, OOD analysis, and visualization phases. We used a similar pipeline in both the SARC (65 classes) and the BT GSE-91 (91 classes) datasets. We conducted two sets of experiments. First, we considered SARCOMA as the training (IN-distribution) and GSE-91 (OUT-distribution) for testing in OOD analysis. We considered GSE-91 (IN-distribution) for training and SARC (OUT-distribution) for testing the models in the second setup. The total samples were 1086 and 2801 for the SARC and BT datasets, respectively. For both datasets, 80 percent of examples were used for training, 10 percent for validation, and 10 percent for testing, with equal numbers per class. We trained the DNN model using selected probes 25K, 50K, and 408K (after discarding sex-related probes) for the SARCOMA-based OOD detection system. The deep feature representation from the DNN models' bottleneck layers was used for out of distribution analysis (ODA). We evaluated performance across different feature embedding spaces (500 and 200). Finally, we evaluated the proposed models with independent clinical datasets.

Datasets

The study utilized two large-scale, publicly available reference cohorts and one independent clinical set:

  • Sarcoma (SARC): 1,086 samples across 65 classes (GSE140686).
  • Brain Tumor (BT): 2,801 samples across 91 classes (GSE90496).
  • Independent Clinical Samples: 33 samples from St. Jude Children’s Research Hospital, specifically chosen because they were known to be outside the training distribution and had previously caused "false positive" calls in deployed clinical models.

Key Insights and Ideas

  • Confidence $\neq$ Competence: The study confirms that standard DNN SoftMax probabilities are unreliable indicators of whether a sample is "in-distribution." OOD samples often receive high confidence scores despite being completely foreign to the model.
  • The "Goldilocks" Probe Count: The researchers tested different numbers of DNAm probes (25K, 50K, and 408K). They found that 50,000 probes provided the best signal-to-noise ratio. Using all 408K probes actually degraded performance by introducing uninformative noise.
  • Geometry Matters: 1D-SSA outperformed distance-based metrics like Mahalanobis Distance. This suggests that the direction and alignment of feature vectors in the deep embedding space are more informative for OOD detection than simple Euclidean distance, which often fails in high-dimensional spaces.

Key Results

The 1D-SSA method emerged as the top performer across all experiments:

  • Cross-Dataset Validation: When trained on Sarcoma and tested on Brain Tumors (as OOD), the model achieved an AUROC of 0.975. In the reverse setup (BT-IND/SARC-OOD), it achieved an AUROC of 0.9569.
  • Clinical Generalizability: On the independent set of 33 challenging clinical samples, the framework maintained a mean AUROC of 0.976.
  • Error Reduction: The system achieved a True Negative Rate (TNR) of 0.93 at a 95% True Positive Rate, meaning it could catch 93% of OOD samples while only misflagging 5% of valid samples.
Comparison of OOD detection performance across different methods, highlighting the superiority of 1D-Subspace Analysis.

Limitations and Future Work

While the results are promising, the authors note several areas for further development:

  • Dependency on the Classifier: The OOD detector's performance is inherently tied to the quality of the underlying DNN classifier's representations.
  • Cohort Specificity: The study focused on two large cohorts (Sarcoma and Brain Tumors). Future work is needed to confirm if the optimal probe selection (50K) holds true for smaller or more specialized datasets.
  • Workflow Integration: The next step is moving from a research framework to a real-time clinical pipeline that can prompt pathologists for additional workup (like genomic profiling) whenever a sample is flagged as OOD.

Summary updated

Abstract

DNA methylation (DNAM) array-based tumor classification is a powerful clinical diagnostic tool, but models trained on fixed reference cohorts can produce faulty predictions for tumor types not represented in the training distribution. We propose an end-to-end deep representation learning-based out-of-distribution (OOD) detection framework for DNAm array data. Deep neural network (DNN) classifiers were trained on public sarcoma (SARC) (GSE140686) and brain tumor (BT) (GSE90496) cohorts, and feature vectors were extracted from bottleneck layers. Five OOD methods, including 1dimension (1D)-Subspace Analysis (1D-SSA), K-Nearest Neighbors (KNN), Ridge Regression, Mahalanobis Distance (MD), and Sum of Squared Distances (SSD), were explored with 200 and 500-dimensional embeddings. Spectral discrepancy was used to discriminate in-distribution (IND) from OOD samples. Performance was measured via cross-validation, holdout samples, and an independent clinical dataset. 1D-SSA was the most effective approach. In the sarcoma-IND/brain tumor-OOD setting, the framework achieved an AUROC of 0.975 and True Negative Rate (TNR)@95TPR of 0.930, and an AUROC of 0.9569 and TNR@95TPR of 0.8660 for the brain tumor-IND/sarcoma-OOD setting. On the independent clinical test set, the method yielded a mean AUROC of 0.976, a DE of 0.032, an FPR@95TPR of 0.065, and a TNR@95TPR of 0.935. These results show deep representation-based OOD detection as a practical quality-control layer for clinical-grade methylation-based tumor classification systems.
BibTeX
@misc{alom2026enhancing,
  author = {Md Zahangir Alom and Quynh T. Tran and Breuer Alexandar and Brent A. Orr},
  title = {{Enhancing Clinical Classifier Robustness with Deep Representation Learning Based OOD Detection on DNA Methylation Data}},
  year = {2026},
  eprint = {2610.36344},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.36344},
}
Figure