arXiv:2610.13350cs.LGOct 2026

Manuscript Offprint

arXiv:2610.13350

Hidden Data Challenges in Clinical Machine Learning

Carolin Cissée, Dennis Fast, Raneen Younis, Alexander Löser, Wolfgang Nejdl, Zahra Ahmadi

Abstract

Widely reused preprocessing pipelines for electronic health records can encode assumptions about when information became available, what clinical episode a label represents, and what missingness means. These assumptions are rarely audited systematically and may propagate across subsequent studies when preprocessing pipelines are reused or adapted. Using MIMIC-IV as a case study, we identify and quantify violations of three complementary forms of preprocessing alignment, i.e., temporal, semantic, and population alignment, which manifest as temporal leakage, feature-task misalignment, and biased imputation. We show how ambiguities in timestamp semantics, episode definitions, endpoint construction, modality selection, and missingness handling can alter the information available to a model and affect the interpretation of its predictions. Through analyses of MIMIC-IV data and empirical case studies, we demonstrate that such choices may remain largely invisible in aggregate predictive performance while changing the signals on which models rely. We derive practical recommendations for temporally valid, clinically aligned, and reproducible preprocessing of MIMIC-IV and related electronic health record datasets. The code for our experiments, including our proposed preprocessing, is available at: https://github.com/m2l-lab/mimic-iv-preprocess.

Keywords: Multimodal Data, Data Preprocessing, Machine Learning, Electronic Health Record, MIMIC IV

1 Introduction

Machine learning has significant potential to advance medical research and clinical decision-making, with applications spanning diagnostics, treatment personalization, and prognostic modeling (e.g., Di et al. (2023); Jabbour et al. (2022); Kodali (2023); Cirillo and Valencia (2019); Zhang et al. (2026)). Nevertheless, medical data present distinct challenges. Routine

©2026 Cissée et al..

clinical data are often affected by inconsistent documentation practices, changes in available features over time, high rates of missingness, redundant entries, and documentation errors, among other issues. These issues arise in part because such data are frequently extracted from hospital information systems originally designed for billing and operational workflows rather than research. Moreover, the sensitive nature of medical data and strict privacy regulations constrain data-sharing. As a result, publicly available medical datasets play an indispensable role in enabling reproducible, comparable, and accelerated research, leading to the development of numerous benchmarks based on such data. Despite their importance, even widely used benchmarks are susceptible to preprocessing pitfalls. Importantly, since these preprocessing pipelines are frequently reused without sufficient evaluation, errors and questionable assumptions can be propagated across studies and become embedded in the scientific literature. In this work, we use the widely used MIMIC-IV dataset (Johnson et al., 2023c), which contains de-identified electronic health record (EHR) data, to highlight preprocessing pitfalls that are frequently overlooked and to discuss strategies for mitigating or eliminating them.

Previous research has identified several important sources of error in MIMIC and EHR datasets more broadly. Boag et al. (2022) cataloged issues in MIMIC-III, including heart rate anomalies caused by the inclusion of neonates, artifacts such as duplicate notes, and inconsistencies in documentation resulting from nurse shift changes or departmental workflow differences, such as discharge timestamps that conflict with ICU stay records. They also emphasized the risks of assuming that data are missing at random, given that clinical judgment influences which measurements are taken and when, as well as the potential for model bias and the underrepresentation of certain groups due to issues with out-of-hospital mortality data. Although these concerns remain valid, their analysis was based solely on MIMIC-III. Certain issues, such as the inclusion of neonatal data, have since been addressed in the current version, MIMIC-IV. Ghassemi et al. (2020) provide a broader analysis of challenges in EHR data, emphasizing that the absence of certain data values may reflect a patient's condition, clinician assessments, or underlying societal biases. They also caution against information leakage between prediction tasks and input features that may occur if all available data is used without careful validation. Similarly, Khaled et al. (2025) highlight technical challenges such as heterogeneity in data granularity, high-cardinality features, and limited label precision in the MIMIC database. Sauer et al. (2022) highlight the need to incorporate knowledge from relevant healthcare providers to verify preprocessing pipelines and study design for EHR data. They also warn of potential sample selection bias due to exclusion and inclusion criteria, information leakage between the train and test sets, and differences in inter- and intraphysician decision-making affecting causal inference. They also discuss the need for precise variable and endpoint definitions that consider clinical context, as well as deployment and generalization issues, when training on data collected within the workflow and cohort of one hospital. Kapoor and Narayanan (2023) address how leakage and irreproducible results can arise generally in scientific research, exploring how the absence of a methodologically clear separation between training and test data leads to information from the test set leaking into the training data.

While these studies have substantially improved awareness of preprocessing challenges in general and within MIMIC pipelines specifically, several important concerns remain unaddressed, impacting the validity of methodologies, results, and conclusions in subsequent research. In this work, we extend this line of research by investigating failures of temporal, semantic, and population alignment that persist in current MIMIC-IV pipelines and manifest as temporal leakage, feature-task misalignment, selection bias, or unintended noise injection. MIMIC provides an instructive case study because it illustrates the dual-edged nature of large-scale EHR datasets. Its extensive scale and multimodal structure, including time series measurements, tabular information on patient stays, free-text notes from the MIMIC-IV-Note module (Johnson et al., 2023b), and imaging within the MIMIC-CXR module (Johnson et al., 2019), make it a valuable resource for diverse medical machine learning applications. At the same time, this scale amplifies the complexity of dataset preprocessing, permitting subtle errors or mistaken assumptions to remain hidden among the multitude of decisions and steps required during pipeline implementation. Specifically, we (i) quantify discrepancies between event time and information availability across MIMIC-IV workflows, (ii) identify temporal and semantic mismatches between commonly used features and prediction endpoints, (iii) distinguish patient-level from structural module-level missingness and examine their implications for imputation, and (iv) demonstrate these effects in mortality and phenotype-prediction case studies and derive a reproducible preprocessing checklist.

More broadly, we argue that preprocessing validity in EHR data is not an intrinsic property of a variable, timestamp, or modality, but depends on the modeling perspective, clinical episode, prediction anchor, and information state being represented. This yields three complementary forms of alignment considered throughout the paper: (i) temporal alignment, between event occurrence and information availability; (ii) semantic alignment, between the evidence contained in a data source and the claimed endpoint; and (iii) population alignment, between the population in which a feature or modality is observed and the population to which preprocessing is applied. MIMIC-IV serves as a case study for showing how violations of these alignments can remain hidden despite apparently reasonable predictive performance.

References (87)