arXiv:2610.36344q-bio.GNOct 2026

Manuscript Offprint

arXiv:2610.36344

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. Orr

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Md Zahangir Alom, Quynh T. Tran, Breuer Alexandar, and Brent A. Orr ∗^{*}

Abstract—DNA methylation (DNAM) array-based tumor classification has established itself as a powerful clinical diagnostic tool, with machine learning models achieving high performance accuracy to classify a wide range of tumor types. However, these models are trained on fixed reference cohorts and can produce faulty predictions when applied to tumor types which are not represented in the training distribution, a critical vulnerability for clinical deployment. To address this, we propose the first end-to-end deep representation learning-based out-of-distribution (OOD) detection framework expressly designed for DNAm array data. Deep neural network (DNN) classifiers were trained on publicly available sarcoma (SARC) (GSE140686) and brain tumor (BT) (GSE90496) cohorts, and feature vectors were extracted from the 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 and independent testing using holdout samples and an independent clinical dataset. We found 1D-SSA was the most effective approach applied to this task. In the sarcoma-IND/brain tumor-OOD setting, the proposed 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, confirming strong generalizability to real-world clinical samples. These results show deep representation-based out-of-distribution detection as a practical, principled quality-control layer for clinical-grade methylation-based tumor classification systems.

Index Terms—Out of Distribution (OOD), deep neural network, machine learning, DNA methylation, Brain tumor, Sarcoma classification, computer-aided diagnosis.

I. INTRODUCTION

Due to the remarkable success of deep learning (DL) models, they have become essential problem-solving tools in Bioinformatics and computational pathology. Deep learning models demonstrate state-of-the-art performance in image classification [1], gene expression profiling [2, 3], and clinical diagnostics [4]. These models also can extract meaningful representations from complex biological data [5]. DNA methylation (DNAM) arrays have emerged as a powerful platform for clinical tumor classification. Models built on differentially methylated probes from reference tumor cohorts can be applied to diagnostic samples achieving high performance accuracy, across diverse biological contexts [6-9]. The standard classifiers report a calibrated score (e.g., random forest (RF) vote fraction or deep neural network (DNN) SoftMax probability as an indirect confidence indicator. However, this score does not reliably indicate whether a sample is truly in the distribution of the reference data. In rare instances, a sample representing a tumor type outside the training data may still receive a high-confidence prediction due to overconfident extrapolation of the model outside their training domain, a particularly dangerous failure mode in clinical diagnostics.

Classical machine learning approaches assume that the training and test data are independent and identically distributed (i.i.d.), a condition known as in-distribution (ID) learning [10]. One of the main challenges in deploying robust AI models for clinical applications is ensuring that models do not blindly predict based on unfamiliar or non-representative inputs. Shifts in the distribution of test examples relative to the training distribution, a phenomenon known as out-of-distribution (OOD) testing, can yield inappropriate classification results [10]. In the clinical environment, the consequences of misclassification may be significant as it may result in inappropriate subsequent therapy or alter clinical surveillance. Recent studies have emphasized that the reliable detection of out-of-distribution (OOD) inputs is increasingly recognized as a precondition for deploying machine learning systems for critical applications [11].

OOD sample detection offers substantial benefit when used in biomedical applications, where model reliability can have profound clinical and scientific implications. First, it can serve as a safeguard against false biomarker discovery and its

Aluthors of this paper are affiliated with St. Jude Children's Research Hospital, Memphis, TN 38105 USA(e-mail: malom@stjude.org, qtran@stjude.org, abreuer@stjude.org, and Brent.Orr@STJUDE.ORG). The corresponding author is Brent A. Orr, MD, PhD. He is now with the Department of Pathology, St. Jude Children's Research Hospital, Memphis, TN 38105 USA. (e-mail: author@lamar.colostate.edu).

Supplemental materials are added in the Appendix Section of the paper.

association with different diseases. Secondly, OOD detection helps identify batch effects or sample contamination. Thirdly, OOD detection ability helps ensure the generalization validity of biomedical machine learning models to external cohorts. Finally, an OOD-aware model adaptively allows for rejection of uncertain predictions, ultimately improving performance, transparency, and maintenance of regulatory compliance in clinical diagnostics.

Hence, developing robust OOD learning algorithms is essential for advancing computational medicine. We propose an OOD analysis method that leverages deep feature representations, applying quality control for test samples in addition to applying classifiers. The contribution of the proposed model can be summarized as follows:

  • We develop and evaluate a novel OOD analysis method for DNA methylation data using the deep learned representations of brain tumor and sarcoma classification models.

  • The number of probes (25K, 50K, 408K) and embedding dimensions (200, 500, 1K) were optimized for OOD detection.

  • Five different OOD detection methods were evaluated for OOD analysis, including 1-D subspace analysis (1D-SSA) [17], Mahalanobis distance (MD) [12], K-Nearest Neighbors (KNN) [16], Ridge Regression (RR) self-reconstruction [25], and sum of squared distances (SSD) [23].

  • Completely independent clinical samples, including those yielding false positive classification scores on clinically deployed DNA methylation-based models, were tested and showed promising performance in consistently identifying OOD samples.

The remainder of the paper is summarized as follows. Section II discusses the related works of this study. The methods are described in Section II. Section III demonstrates the results and discussion. Finally, section IV concludes the work with future directions.