An Experimental Analysis of Data Leakage in Machine Learning: Impact on Model Performance and Prevention Techniques

Data leakage is a methodological error in machine learning in which information unavailable at the intended prediction time, or information from the evaluation data, influences model development. It can produce misleading estimates of generalization performance and weaken the reproducibility of research. This paper studies data leakage, its common forms, its impact on model evaluation, and practical prevention methods. A controlled educational experiment is implemented using the Wisconsin Diagnostic Breast Cancer dataset available through scikit-learn. Logistic Regression and Random Forest are compared under a correct workflow, in which scaling and feature selection are fitted only on training data, and a deliberately leaky workflow, in which preprocessing and supervised feature selection are fitted before the train-test split. Across five stratified 75:25 splits, mean accuracy for Logistic Regression was 94.41% with the correct workflow and 93.99% with the leaky workflow; for Random Forest, mean accuracy was 93.71% and 93.43%, respectively. These results illustrate that leakage is a methodological flaw, but it does not guarantee that every metric will increase in every experiment: its effect depends on the dataset, leakage mechanism, split, and model. The paper concludes with a practical checklist for leakage prevention and reproducible reporting.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-10-30
DOI
https://doi.org/10.5281/zenodo.23802094
Primary Topic
Machine Learning and Data Classification
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An Experimental Analysis of Data Leakage in Machine Learning: Impact on Model Performance and Prevention Techniques

Yuvraj Nagnath Pawar
2 links
Zenodo (CERN European Organization for Nuclear Research)
Machine Learning and Data Classification
article

An Experimental Analysis of Data Leakage in Machine Learning: Impact on Model Performance and Prevention Techniques

Yuvraj Nagnath Pawar
article en

Abstract

Data leakage is a methodological error in machine learning in which information unavailable at the intended prediction time, or information from the evaluation data, influences model development. It can produce misleading estimates of generalization performance and weaken the reproducibility of research. This paper studies data leakage, its common forms, its impact on model evaluation, and practical prevention methods. A controlled educational experiment is implemented using the Wisconsin Diagnostic Breast Cancer dataset available through scikit-learn. Logistic Regression and Random Forest are compared under a correct workflow, in which scaling and feature selection are fitted only on training data, and a deliberately leaky workflow, in which preprocessing and supervised feature selection are fitted before the train-test split. Across five stratified 75:25 splits, mean accuracy for Logistic Regression was 94.41% with the correct workflow and 93.99% with the leaky workflow; for Random Forest, mean accuracy was 93.71% and 93.43%, respectively. These results illustrate that leakage is a methodological flaw, but it does not guarantee that every metric will increase in every experiment: its effect depends on the dataset, leakage mechanism, split, and model. The paper concludes with a practical checklist for leakage prevention and reproducible reporting.

Zenodo (CERN European Organization for Nuclear Research)
JSPM University (IN)
Openalex Percentile: Top 13%
Machine Learning and Data Classification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon