stat.COApr 13, 2026

bioLeak: Leakage-Aware Modeling and Diagnostics for Machine Learning in R

Authors: Selçuk Korkmaz

Organizations: Department of Biostatistics and Medical Informatics, Faculty of Medicine, Trakya University, 22030 Edirne, Türkiye

Abstract

Data leakage remains a recurrent source of optimistic bias in biomedical machine learning studies. Standard row-wise cross-validation and globally estimated preprocessing steps are often inappropriate for data with repeated measurements, study-level heterogeneity, batch effects, or temporal dependencies. This paper describes bioLeak, an R package for constructing leakage-aware resampling workflows and for auditing fitted models for common leakage mechanisms. The package provides leakage-aware split construction, train-fold-only preprocessing, cross-validated model fitting, nested hyperparameter tuning, post hoc leakage audits, and HTML reporting. The implementation supports binary classification, multiclass classification, regression, and survival analysis, with task-specific metrics and S4 containers for splits, fits, audits, and inflation summaries. The simulation artifacts show how apparent performance changes under controlled leakage mechanisms, and the case study illustrates how guarded and leaky pipelines can yield materially different conclusions on multi-study transcriptomic data. The emphasis throughout is on software design, reproducible workflows, and interpretation of diagnostic output.

Figures & tables

Explore similar work

CardsList
  1. fastml: Guarded Resampling Workflows for Safer Automated Machine Learning in R

    Apr 6, 2026Selcuk Korkmaz, Dincer Goksuluk, Eda KaraismailogluAutomated Machine Learning

  2. A prior-free blind detection of information leakage from model predictions

    Jun 9, 2026Laurence A. JacobsData LeakageBlack-Box Model Auditing