1. Introduction
Breast cancer remains one of the most prevalent cancers worldwide and a leading cause of cancer-related mortality among women. According to the World Health Organization, breast cancer accounts for a substantial proportion of new cancer cases globally (2.3 million women diagnosed in 2022, resulting in 670,000 deaths), emphasizing the need for improved diagnostic methods and predictive modelling techniques [
1]. Advances in medical technologies, including genomic sequencing, radiomics, and electronic health records, have resulted in the generation of large volumes of biomedical data that can be used to support early detection and personalized treatment strategies. Many breast cancer diagnostic studies now rely on datasets, such as gene expression profiles, imaging features, and clinical variables, where thousands of predictors may be measured for each patient [
2]. While these datasets provide valuable insights for disease prediction, they also introduce several analytical challenges, one of the most important being the presence of missing data.
Missing values are a common occurrence in breast cancer datasets due to various factors such as incomplete clinical records, equipment failure during diagnostic procedures, data entry errors, and patient attrition during clinical studies. In high-throughput technologies such as microarray and RNA-sequencing experiments used to identify breast cancer biomarkers, missing entries may also arise from technical limitations or measurement noise during data acquisition [
3]. The presence of missing data complicates statistical analysis and machine learning modelling, as many algorithms require complete datasets for accurate parameter estimation. If missing values are not handled appropriately, they can lead to biased model estimates, reduced statistical power, and unreliable predictive performance [
4].
Traditional approaches for handling missing data include deletion methods and simple statistical imputation techniques. For example, complete case analysis removes observations containing missing values before analysis. Although this approach is simple to implement, it often results in significant loss of information and may introduce bias when the missingness is not completely random. Similarly, basic imputation methods such as mean or median substitution fail to capture the complex relationships among variables and may distort the underlying data distribution [
5]. Consequently, these conventional approaches are often inadequate for analysing complex biomedical datasets such as those used in breast cancer prediction.
Machine learning techniques have increasingly been adopted to overcome the limitations of traditional imputation approaches [
6,
7,
8]. Unlike simple statistical methods, machine learning-based imputation algorithms are capable of capturing complex nonlinear relationships among variables and leveraging correlations within high-dimensional datasets. Common machine learning imputation techniques include k-Nearest Neighbor (kNN) imputation, Random Forest-based imputation (MissForest), decision tree models, and neural network-based methods. These algorithms estimate missing values by learning patterns from observed data and predicting plausible values for missing entries [
9]. Several studies have demonstrated that machine learning imputation approaches often outperform traditional statistical methods in terms of imputation accuracy and predictive model performance in biomedical applications [
10].
The problem of missing data becomes even more challenging in breast cancer datasets, especially those derived from genomic studies or clinical settings. Gene expression datasets may contain thousands of features, while the number of patient samples remains relatively small. This “large p, small n” problem increases the difficulty of accurately estimating missing values and may lead to unstable model estimation, multicollinearity, and increased risk of overfitting [
11]. Consequently, effective missing data handling techniques are essential for maintaining the reliability and robustness of machine learning models used in breast cancer prediction.
Another critical characteristic of breast cancer datasets is class imbalance, where the number of samples in one class significantly exceeds the number in another. In many diagnostic datasets, benign cases greatly outnumber malignant cases, or non-cancer cases outnumber cancer cases. This imbalance presents a challenge for machine learning models because most algorithms tend to favour the majority class during training, which may reduce the ability of the model to accurately detect cancer cases that are clinically more important [
12]. Imputation methods that do not account for class imbalance may further exacerbate this problem by reconstructing missing values based primarily on patterns from the majority class.
In addition to these challenges, the validity of imputation methods depends heavily on the mechanism underlying the missing data process. Rubin’s missing data framework classifies missingness into three mechanisms: Missing Completely at Random (MCAR), Missing At Random (MAR), and Missing Not At Random (MNAR) [
5]. Most statistical and machine learning imputation techniques assume that missing data follow the MAR mechanism, where the probability of missingness depends only on observed variables. However, in clinical datasets this assumption may not always hold. When the MAR assumption is violated, imputation models may produce biased estimates that affect the performance of downstream predictive models. As a result, sensitivity analysis is often required to evaluate how imputation results change when the MAR assumption is relaxed [
4].
Given the increasing reliance on machine learning techniques for breast cancer diagnosis, it is important to systematically evaluate the effectiveness of imputation algorithms in datasets that are often characterized by class imbalance and complex missingness patterns. Machine learning-based imputation techniques provide promising solutions, but their performance can vary depending on the data structure, level of missingness, and underlying missing data mechanism. Therefore, robust evaluation of these techniques is necessary to identify appropriate strategies for handling missing values in breast cancer diagnostic datasets.
While numerous studies have evaluated individual imputation methods, relatively few have systematically compared traditional statistical approaches, machine learning algorithms, and regularized learning methods under multiple missing-data mechanisms while simultaneously assessing their downstream impact on breast cancer classification performance. Moreover, existing studies often assume the Missing at Random (MAR) mechanism without examining the robustness of imputation algorithms when this assumption is violated. To address these limitations, this study develops a comprehensive simulation framework for evaluating statistical and machine learning-based imputation methods using two publicly available breast cancer datasets representing complementary clinical settings. The framework evaluates imputation performance under MCAR, MAR, and MNAR mechanisms across multiple missingness levels and examines the effect of the imputation methods on downstream breast cancer classification using Logistic Regression, Random Forest, and LightGBM classifiers within a repeated nested cross-validation framework.
This paper focuses on the application of machine learning methods for handling missing data in breast cancer prediction datasets. Specifically, the paper addresses the following objectives:
To compare the performance of statistical and machine learning-based imputation methods under MCAR, MAR, and MNAR mechanisms across different levels of missingness in breast cancer datasets.
To evaluate the impact of the imputation methods on downstream breast cancer classification using Logistic Regression, Random Forest, and LightGBM classifiers.
By addressing these objectives, the paper contributes to the development of reliable data preprocessing frameworks that improve the performance and interpretability of machine learning models for breast cancer prediction.
2. Materials and Methods
2.1. Datasets
To evaluate the robustness and generalizability of statistical and machine learning-based imputation methods, two publicly available breast cancer datasets representing complementary clinical settings were used. The Wisconsin Diagnostic Breast Cancer (WDBC) dataset [
13] served as a benchmark diagnostic dataset with independent observations, while the Longitudinal Breast Cancer Cohort (LBCC) dataset [
14] provided a longitudinal population-based cohort with repeated participant measurements. The use of heterogeneous datasets enabled assessment of imputation performance across different sample sizes, predictor characteristics and data structures.
2.1.1. Wisconsin Diagnostic Breast Cancer Dataset
The WDBC dataset was obtained from the UCI Machine Learning Repository [
13]. It comprises 569 breast tissue samples classified as malignant (212) or benign (357), with 30 continuous cytological features extracted from digitized fine-needle aspiration images used as predictors and diagnosis as the binary outcome. The patient identifier was excluded from analysis. Since the dataset contains no missing values, artificial missingness was introduced under controlled experimental conditions.
2.1.2. Longitudinal Breast Cancer Cohort Dataset
The LBCC dataset was derived from the openly available pooled cohort reported by McDonnell et al. [
14]. It comprises 5038 women followed longitudinally, including 77 incident breast cancer cases. Predictor variables include demographic, anthropometric, lifestyle and biochemical measurements, while breast cancer status (BC_Case) served as the binary outcome. Because the dataset contains repeated observations for individual participants, all observations from the same participant were retained within the same cross-validation partition to prevent information leakage.
2.1.3. Data Pre-Processing
Data pre-processing was undertaken to establish complete reference datasets prior to artificial missing-data generation. Variables serving only as unique identifiers were excluded from model development, while outcome variables remained fully observed throughout the study. Continuous predictors were retained on their original scales, and categorical predictors were encoded as required by the respective machine learning algorithms. For the WDBC dataset, the patient identifier was removed, leaving 30 predictor variables and one binary outcome. For the LBCC dataset, participant identifiers were retained solely for grouped data partitioning and excluded from model training. To preserve the longitudinal structure and eliminate information leakage, all observations from the same participant were assigned to the same cross-validation fold during model development and evaluation. The characteristics of the datasets are summarized in
Table 1.
The two datasets were intentionally selected to represent complementary breast cancer applications. The WDBC dataset provides a widely used benchmark for diagnostic classification using high-dimensional continuous cytological features, whereas the LBCC dataset represents a large longitudinal cohort with demographic, lifestyle and biochemical risk factors. Evaluating imputation methods across these heterogeneous datasets enables assessment of their robustness under different predictor characteristics, sample sizes and clinical settings.
2.2. Experimental Design and Missing Data Simulation
A simulation-based experimental framework was employed to evaluate the performance of statistical and machine learning-based imputation methods under controlled missing-data conditions. Complete reference datasets were first established for each breast cancer dataset, after which artificial missing values were introduced according to predefined missing-data mechanisms and proportions. The resulting incomplete datasets were subsequently imputed using the candidate imputation methods before downstream breast cancer classification was performed. The complete experimental pipeline, including missing-data generation, imputation, hyperparameter optimisation, model training and evaluation, was executed within a repeated stratified 5-fold nested cross-validation framework to minimise optimism bias and ensure reproducibility.
2.2.1. Artificial Missing Data Generation
Artificial missing values were generated exclusively in predictor variables, while the outcome variable remained fully observed throughout all experiments. This ensured that imputation performance could be evaluated against known reference values without introducing bias into the class labels. Missingness was simulated under the three mechanisms proposed by Rubin [
15]: Missing Completely at Random (MCAR), Missing at Random (MAR), and Missing Not at Random (MNAR). Separate missingness patterns were generated independently for each dataset at 5%, 10% and 20% missingness [
5]. The experimental workflow is shown in
Figure 1.
In medical settings, incomplete data may arise from patient non-response, variations in diagnostic procedures, equipment limitations, or loss to follow-up. Understanding the mechanism underlying missingness is critical for selecting appropriate imputation methods and ensuring valid predictive modelling.
Let the complete dataset be denoted as:
where
represents observed values and
represents missing values. Let
be a missingness indicator matrix defined as:
The missing data mechanism is described by the conditional probability:
where
represents parameters governing the missingness process.
Missing Completely at Random (MCAR)
In breast cancer prediction, MCAR occurs when missing values arise independently of patient characteristics or disease status. For example, missing laboratory results due to random equipment failure or accidental data entry omissions would satisfy the MCAR assumption. Under MCAR, missing values were introduced independently of both observed and unobserved data. Predictor values were randomly selected with equal probability and replaced with missing values according to the predefined missingness proportion.
Missing at Random (MAR)
The probability of missingness was modelled using a logistic function:
Implementation of Logistic Missingness Models.
Logistic missingness models were implemented using standardized predictor variables to improve numerical stability and ensure comparable effect sizes across variables. Continuous predictors entering the missingness models were standardized as
where
and
denote the sample mean and standard deviation, respectively. For the WDBC dataset, MAR missingness was generated using two logistic models:
while MNAR missingness was generated as
For the LBCC dataset, MAR missingness in BMI was conditioned on standardized age, whereas missingness in 25-hydroxyvitamin D was conditioned jointly on Current Smoker and GRH Cohort. Specifically,
Under MNAR, self-dependent missingness was induced using
and
where
indicates that the corresponding observation was set to missing.
MAR is more realistic in clinical settings. In breast cancer prediction, missingness often depends on observed variables such as age, tumour size, or stage of diagnosis. For instance, certain diagnostic tests (e.g., advanced imaging or biomarker assays) may be more likely to be conducted for patients with severe or suspicious clinical presentations. Thus, the probability of missing data in specific variables can be explained by other observed patient characteristics. Most statistical and machine learning imputation methods, including Multiple Imputation by Chained Equations (MICE), Random Forest-based imputation, and gradient boosting approaches, rely on the MAR assumption. When this assumption holds and relevant predictors are included, unbiased estimation and reliable prediction are achievable.
To simulate realistic clinical scenarios, missingness was induced using clinically plausible relationships between predictors. For the WDBC dataset, missingness was generated using highly correlated morphometric features. For example, the probability of missing values in texture_mean depended on the observed value of radius_mean, while missingness in area_mean depended on perimeter_mean. These relationships reflect the strong biological correlations among tumour morphology characteristics. For the LBCC dataset, missingness was generated using observed demographic and clinical characteristics. Specifically, missingness in 25-hydroxyvitamin D measurements was modelled as a function of Age, missingness in BMI depended on Current Smoker status, and missingness in Calcium depended on Cohort membership, representing differences in participant characteristics and data collection protocols commonly encountered in longitudinal studies.
Intercept Calibration and Missingness Generation.
For each predefined missingness proportion (5%, 10%, and 20%), the logistic intercept (
) was numerically calibrated so that the expected average probability of missingness equalled the target rate. The intercept was obtained by solving
where
denotes the target missingness proportion and
represents the linear predictor for observation
. Calibration was performed using the base
R function uniroot() over the interval
with a numerical tolerance of
. Missingness indicators were subsequently generated as independent Bernoulli random variables using the calibrated probabilities. Consequently, the expected proportion of missing values matched the target level, while the realised proportion varied slightly across random seeds because of stochastic sampling.
Missing Not at Random (MNAR)
MNAR arises when missingness depends on unobserved values, which is common in sensitive or clinically severe cases. In breast cancer prediction, patients with advanced disease or poor prognosis may be less likely to complete follow-up assessments or undergo certain diagnostic procedures. Similarly, missing genomic or biomarker data may occur more frequently in cases where tumour characteristics are extreme or difficult to measure. Under MNAR, the missingness mechanism is non-ignorable, and standard imputation techniques may lead to biased estimates because the missing values are systematically related to the unobserved data. Addressing MNAR typically requires specialized modelling approaches or sensitivity analysis.
Under MNAR, missingness depended on the value of the variable itself. Logistic missingness models were used to generate self-dependent missingness. For the WDBC dataset, larger values of selected morphometric features (e.g., texture_mean) were assigned progressively higher probabilities of becoming missing. For the LBCC dataset, missingness was induced directly within clinically relevant variables, including BMI and 25-hydroxyvitamin D, such that participants with extreme values were more likely to have missing observations. This reflects situations frequently encountered in biomedical research where the likelihood of a measurement being missing depends on its underlying value.
Artificial missing values were introduced only into continuous predictor variables. For the WDBC dataset, missingness was induced in continuous morphometric features, whereas for the LBCC dataset, missingness was induced only in BMI and 25-hydroxyvitamin D. The categorical variables Current Smoker and GRH Cohort were used solely as conditioning variables within the MAR logistic models and were never subjected to artificial missingness. Consequently, MAE, RMSE, and NRMSE were computed exclusively for continuous variables with induced missing values.
2.2.2. Implications for Breast Cancer Prediction Models
In breast cancer prediction, the choice of imputation method is closely tied to assumptions about the missing data mechanism. While MCAR provides an ideal but rare scenario, MAR is commonly assumed in practice and forms the basis for most imputation techniques. However, the presence of MNAR can significantly degrade model performance, particularly in high-stakes clinical predictions where missingness may be linked to disease severity. Therefore, robust evaluation of imputation methods across MCAR, MAR, and MNAR scenarios is essential to ensure that predictive models remain reliable under realistic clinical conditions.
2.3. Imputation Models
Missing value imputation in this study is formulated as a statistical learning problem in which the objective is to estimate the unobserved components of a data matrix using the observed information. Let
denote the dataset with missing entries, partitioned as
. The imputation problem consists of estimating
through a mapping:
where
represents the imputation model and
denotes its parameters.
From a probabilistic perspective, the optimal imputation under squared error loss corresponds to the conditional expectation:
which is generally unknown and must be approximated using statistical or machine learning models. The methods employed in this study can be interpreted as different approximations to this conditional expectation, each imposing distinct structural assumptions on the data-generating process. The selection of the methods was based on a prior study by Nyakundi et al. [
8] that systematically explored the application of machine learning methods in breast cancer prediction.
2.3.1. Statistical Models
- i.
Mean Imputation
Mean imputation represents the simplest estimator, replacing missing values with the marginal expectation:
This approach assumes independence among variables and ignores the joint distribution
. Consequently, it underestimates variance and distorts covariance structure:
- ii.
MultipleImputation by Chained Equations (MICE)
MICE adopts a Fully Conditional Specification (FCS) framework, modelling each variable conditionally on all others:
Imputation proceeds iteratively:
forming a Markov chain whose stationary distribution approximates the joint distribution
.
MICE is asymptotically valid under MAR and correct model specification. Its strength lies in capturing multivariate dependence, although it is sensitive to model misspecification.
2.3.2. Distance-Based Models
- iii.
k-Nearest Neighbors (kNN)
kNN imputation is a nonparametric method that estimates missing values through local averaging:
This method approximates the conditional expectation via a kernel smoother:
Its performance depends critically on the distance metric and the choice of .
2.3.3. Kernel-Based Models
- iv.
Support Vector Machine (SVM)
SVM imputation treats missing value estimation as a regression problem in a reproducing kernel Hilbert space (RKHS). The model is:
where
is an implicit feature mapping induced by a kernel
.
The optimization problem is:
This yields a flexible nonlinear estimator of:
with regularization controlling overfitting.
2.3.4. Tree-Based Ensemble Models
- v.
Random Forest
Random Forest approximates the conditional expectation using an ensemble of decision trees:
where each tree
is trained on a bootstrap sample with random feature selection.
RF is a consistent, nonparametric estimator under certain conditions and captures complex interactions without requiring parametric assumptions.
- vi.
MissForest
MissForest extends RF into an iterative imputation framework. Starting with an initial guess
, updates are defined as:
The procedure iteratively refines imputations until convergence, effectively performing a fixed-point iteration:
MissForest is particularly effective for mixed-type data and complex nonlinear dependencies.
- vii.
Extreme Gradient Boosting (XGBoost)
XGBoost constructs an additive model:
by minimizing:
with:
Missing values are handled internally by assigning optimal default directions during tree splitting, effectively learning:
This allows XGBoost to integrate imputation within model training, yielding strong performance in structured datasets.
2.3.5. Regularized Regression Models
- viii.
Lasso Regression
The L1 penalty induces sparsity:
making Lasso suitable for variable selection and imputation.
- ix.
Ridge Regression
Ridge regression solves:
with solution:
Ridge stabilizes estimates under multicollinearity and provides smooth approximations of the conditional expectation.
2.3.6. Repeated Nested Cross-Validation
Model development and evaluation were conducted using a repeated stratified 5-fold nested cross-validation framework. During each repetition, the datasets were partitioned into five folds while preserving the distribution of the outcome classes. For the LBCC dataset, all observations from the same participant were allocated to the same fold to maintain the longitudinal structure and prevent information leakage. Within each outer training fold, artificial missing values were generated, followed by imputation using the candidate methods. Hyperparameter optimisation for each classification algorithm was subsequently performed using only the corresponding inner training data. The optimised model was then evaluated on the unseen outer test fold. To improve the stability and reproducibility of the results, the complete experimental pipeline—including data partitioning, missing-data generation, imputation, hyperparameter optimisation, model training and evaluation—was repeated 10 times using different random seeds. Performance metrics were averaged across all repetitions, and their corresponding standard deviations were reported.
Table 2 summarizes the missing data generation and underlying assumptions.
Artificial missing-data generation and imputation evaluation were performed independently across ten missingness seeds (101, 202, 303, 404, 505, 606, 707, 808, 909, and 1010). The resulting imputation performance metrics (MAE, RMSE, and NRMSE) were therefore summarised across all simulated datasets. In contrast, downstream breast cancer classification was conducted using the representative imputed datasets generated with seed 101. This design separated the comprehensive evaluation of imputation performance from the computationally intensive classification analyses while maintaining a consistent downstream validation framework.
The variables selected to induce MAR and MNAR mechanisms were chosen to reflect clinically plausible dependency structures while ensuring reproducibility of the simulation framework across datasets. These assumptions were introduced solely for simulation purposes and should not be interpreted as reflecting the true missing-data mechanisms in the original datasets.
Table 3A,B summarizes the implementation details and hyperparameter settings for the evaluated imputation methods, including the software package, key hyperparameters, search space or predefined settings, tuning strategy, and training-fold implementation. Methods requiring minimal user specification were implemented using established settings, whereas tunable algorithms were optimised within the training folds.
2.4. Performance Evaluation and Comparison of Imputation Methods
2.5. Evaluation of Classification Performance
After imputation, classification models were constructed using the imputed datasets to evaluate the impact of the imputation methods on breast cancer diagnostic performance. Five performance metrics were used for this purpose: Accuracy, Sensitivity, Specificity, Precision, and Cohen’s Kappa statistic.
2.5.1. Classification Models
To evaluate the impact of different imputation strategies on downstream breast cancer classification, three complementary classifiers were employed: Logistic Regression (LR), Random Forest (RF), and Light Gradient Boosting Machine (LightGBM). These algorithms represent statistical learning, bagging-based ensemble learning, and gradient boosting paradigms, respectively, providing increasing modelling complexity and enabling assessment of whether the effectiveness of the imputation methods is consistent across different classification approaches.
Logistic Regression estimates the probability that an observation belongs to the malignant class using the logistic function
where
denotes the predictor vector,
is the intercept, and
represents the regression coefficients estimated by maximum likelihood. LR provides a simple and interpretable statistical baseline against which the performance of more complex ensemble classifiers can be evaluated.
- ii.
Random Forest
Random Forest is an ensemble learning algorithm that combines multiple decision trees constructed using bootstrap samples and random feature selection. The final prediction is obtained through majority voting,
where
denotes the prediction from the
decision tree and
is the total number of trees in the ensemble. RF captures nonlinear relationships and higher-order feature interactions without requiring parametric assumptions. Its ensemble structure also improves robustness to noisy predictors and overfitting, making it a suitable benchmark for structured biomedical datasets.
- iii.
Light Gradient Boosting Machine
LightGBM is a gradient boosting algorithm that constructs an additive ensemble of decision trees,
where
represents the prediction from the
boosting tree. Model parameters are estimated by minimizing the regularized objective function
where
is the classification loss function and
penalizes model complexity. LightGBM was selected because previous work by Nyakundi et al. [
8] demonstrated its strong predictive performance for breast cancer prediction. Its histogram-based learning and leaf-wise tree growth provide high predictive accuracy while maintaining computational efficiency for structured biomedical datasets.
- iv.
Model Development
Model development was embedded within the repeated stratified 5-fold nested cross-validation framework described above. For each outer training fold, missing values were first imputed using the selected imputation method, after which classifier hyperparameters were optimized within the corresponding inner cross-validation loop. The optimized models were subsequently retrained on the complete outer training fold and evaluated on the unseen outer test fold. This procedure ensured that encoding, imputation, hyperparameter optimisation, and classifier training were performed independently within each training fold, thereby preventing information leakage. Because the LBCC dataset was severely imbalanced, Borderline-SMOTE was applied exclusively to the analysis portion of each inner cross-validation fold during hyperparameter tuning. Inner validation folds and outer test folds retained their original class distributions. After selection of the optimal hyperparameters, Borderline-SMOTE was applied to the complete outer training fold before fitting the final classifier.
2.5.2. Classification Performance Metrics
Classification performance was evaluated using Accuracy, Sensitivity, Specificity, Precision, and Cohen’s Kappa.
Sensitivity measures the ability of the classification model to correctly identify malignant/BC cases. In clinical diagnostic applications, sensitivity is a critical metric because failing to detect malignant/BC cases may lead to delayed treatment and severe health consequences.
Sensitivity is defined as:
where
represents the number of true positive cases correctly classified as malignant/BC cases, and
represents the number of false negative cases where malignant/BC cases are incorrectly classified as benign/non-BC cases.
A higher sensitivity indicates that the diagnostic model is more effective in detecting malignant/BC cases.
- ii.
Accuracy
Accuracy measures the overall proportion of correctly classified observations and is defined as
Although accuracy provides an overall measure of predictive performance, it should be interpreted together with sensitivity and specificity, particularly when class distributions are imbalanced.
- iii.
Cohen’s Kappa Statistic
The Cohen’s Kappa statistic was used to assess the agreement between the predicted classification results and the true diagnostic labels while accounting for agreement occurring by chance. The Kappa statistic is defined as:
where
represents the observed agreement, and
represents the expected agreement by chance.
Higher Kappa values indicate stronger agreement between predicted and actual outcomes and therefore greater reliability of the classification model.
- iv.
Specificity
Specificity measures the ability of a classifier to correctly identify negative cases (benign tumors/non-BC cases) and is particularly important for minimizing false-positive diagnoses in breast cancer screening. It is defined as the proportion of true negatives among all actual negative cases:
where
and
denote the numbers of true negatives and false positives, respectively. Higher specificity indicates better discrimination of benign cases, reducing unnecessary follow-up investigations and improving the clinical utility of the diagnostic model.
- v.
Precision
Precision measures the ability of a classifier to correctly identify positive cases by quantifying the proportion of predicted positive cases that are truly positive. It is particularly important in breast cancer diagnosis because it minimizes false-positive predictions, thereby reducing unnecessary diagnostic procedures and patient anxiety. It is defined as the proportion of true positives among all cases predicted as positive:
where
and
denote the numbers of true positives and false positives, respectively. Higher precision indicates that a greater proportion of patients classified as having breast cancer are correctly diagnosed, enhancing the reliability and clinical usefulness of the diagnostic model.
2.6. Statistical Significance Testing
Statistical analyses were conducted to determine whether differences in imputation performance among the evaluated methods were statistically significant across repeated experiments. Since performance measures did not necessarily satisfy the assumptions of normality and homoscedasticity, non-parametric statistical tests were employed. The experimental unit for all statistical analyses was one independently generated incomplete dataset. Each unit corresponded to a unique combination of missingness mechanism (MCAR, MAR, or MNAR), missingness level (5%, 10%, or 20%), and random seed. Imputation performance metrics obtained from the nine imputation methods were compared within these predefined experimental conditions.
The Friedman test was first used to compare the imputation methods across multiple experimental conditions using average ranks. The Friedman statistic is given by
where
is the number of experimental runs,
is the number of imputation methods, and
is the average rank of the
method. A significant Friedman test indicates that at least one imputation method differs from the others. Complete Friedman test results for each dataset, missingness mechanism, and missingness level are presented in
Appendix A and
Appendix B.
When the Friedman test was significant (), pairwise comparisons were performed using the Wilcoxon signed-rank test with Holm’s correction to control the family-wise error rate associated with multiple comparisons. Effect sizes were quantified using the rank-biserial correlation to assess the magnitude of pairwise differences. Mean performance values across the repeated simulation experiments were reported to quantify both predictive performance and variability. All statistical tests were two-sided and conducted at a significance level of 5%.
4. Discussion
This study systematically evaluated nine statistical and machine learning-based imputation methods under three missing-data mechanisms (MCAR, MAR and MNAR) using two publicly available breast cancer datasets representing complementary clinical settings. Unlike many previous studies that evaluate imputation methods solely on reconstruction accuracy, this study simultaneously assessed their impact on downstream breast cancer classification within a repeated nested cross-validation framework. The findings demonstrate that the performance of imputation methods depended on both the characteristics of the dataset and the missing-data mechanism. Across both datasets, advanced machine learning and regularized regression methods generally achieved lower reconstruction errors than conventional deterministic approaches, although the optimal imputation method differed between datasets. These findings support recent evidence that no single imputation method is universally optimal and that method performance should be evaluated within the context of the data structure, missingness mechanism and intended downstream analytical task [
16,
17].
A notable finding was the contrasting behaviour of the evaluated methods across the two study datasets. For the WDBC dataset, Lasso consistently achieved the best overall reconstruction performance, followed by XGBoost and Ridge. In contrast, XGBoost ranked first for the LBCC dataset, with SVM and MissForest also demonstrating competitive performance. This difference is consistent with the distinct characteristics of the two datasets. The WDBC dataset comprises highly correlated continuous morphometric features extracted from digitised breast cell images, whereas the LBCC dataset contains heterogeneous demographic, anthropometric, lifestyle and biochemical variables collected from a longitudinal cohort. Regularized regression methods such as Lasso are particularly effective when predictors exhibit substantial correlation because coefficient shrinkage reduces estimation variance while simultaneously selecting informative variables [
18,
19]. Conversely, gradient boosting methods such as XGBoost are capable of modelling nonlinear relationships and complex interactions without requiring explicit model specification [
17]. The present findings therefore suggest that the observed differences between datasets are more likely to reflect differences in predictor structure than inherent superiority of one imputation algorithm over another. Similar conclusions have been reached in recent comparative reviews, which emphasize that the relative performance of imputation methods depends strongly on data characteristics rather than on algorithm class alone [
20].
The influence of the missing-data mechanism was evident throughout the study. Under MCAR, where missingness was generated independently of the observed and unobserved data, several advanced imputation methods produced relatively similar reconstruction accuracy, particularly at lower levels of missingness. This behaviour is expected because MCAR does not introduce systematic bias into the estimation process and therefore represents the least challenging missing-data scenario [
5]. Nevertheless, Mean imputation consistently produced substantially larger reconstruction errors than all model-based approaches across both datasets. Although computationally simple, Mean imputation ignores multivariate relationships among predictors and reduces data variability, which can distort covariance structures and attenuate associations between variables [
16]. The consistently poor performance of Mean imputation observed in this study therefore reinforces longstanding recommendations that deterministic single-value substitution should be avoided when more informative model-based alternatives are available.
Performance differences became more pronounced under MAR, where missingness depended on observed variables. For the WDBC dataset, Lasso maintained the highest overall performance, while XGBoost, Ridge and MissForest also produced comparatively low reconstruction errors. In the LBCC dataset, Lasso, Ridge and XGBoost formed a group of similarly high-performing methods. These findings are broadly consistent with the theoretical assumptions underlying MAR, under which observed predictors contain information that can be exploited to estimate missing values [
15]. Regularized regression methods benefit from stable estimation when predictor correlation is high, whereas ensemble learning methods exploit nonlinear dependencies and interaction effects among predictors. Interestingly, MICE did not consistently rank among the strongest methods despite its widespread recommendation for MAR data. This does not contradict the theoretical validity of multiple imputation under MAR but rather reflects that predictive performance depends on model specification and the complexity of the underlying relationships. Previous methodological studies have similarly reported that MICE may be less competitive than machine learning approaches when predictor interactions are highly nonlinear or when data contain heterogeneous feature distributions [
9,
20].
The simulated MNAR scenarios represented the most challenging conditions because missingness depended directly on the values being imputed. Although advanced methods continued to outperform simpler approaches, the leading algorithms differed between datasets. Lasso remained the best-performing method for the WDBC dataset, whereas SVM and XGBoost achieved the lowest reconstruction errors for the LBCC dataset. These findings should be interpreted carefully. The present study simulated MNAR using predefined logistic mechanisms to create controlled experimental conditions rather than reproducing naturally occurring clinical missingness. Consequently, the results demonstrate comparative robustness under the specified simulation framework rather than establishing that these methods are universally superior under MNAR conditions. This distinction is important because MNAR mechanisms are inherently untestable from the observed data alone, and no general-purpose imputation method can guarantee unbiased estimation without additional assumptions regarding the missing-data process [
5]. Nevertheless, the results suggest that flexible nonlinear learning algorithms and regularized regression methods may retain greater predictive capability than deterministic approaches when missingness departs from the standard MAR assumption.
The statistical analyses provide further support for these observations. Across both datasets, Friedman tests identified statistically significant differences among the nine imputation methods under every missing-data mechanism and missingness level, while Kendall’s coefficients of concordance indicated strong agreement in the rankings across repeated simulation runs. Moreover, the pairwise Wilcoxon signed-rank tests showed that many of the observed differences remained statistically significant after Holm correction, particularly when comparing the highest-ranked methods with Mean imputation. However, several comparisons among the leading machine learning methods were not statistically significant, particularly under MCAR and MAR for the LBCC dataset. These findings indicate that although advanced methods generally outperformed simpler approaches, differences among the best-performing algorithms were often relatively modest. Consequently, practical considerations such as computational efficiency, implementation complexity and model interpretability may influence method selection when reconstruction performance is comparable. This observation is consistent with recent recommendations advocating evidence-based selection of imputation methods rather than assuming the universal superiority of any single algorithm [
9,
20].
An important contribution of the present study is the simultaneous evaluation of imputation accuracy and downstream classification performance. Many comparative imputation studies conclude after reporting reconstruction error, implicitly assuming that more accurate imputations necessarily produce better predictive models. The results of this study demonstrate that the relationship is more nuanced. For the WDBC dataset, LightGBM achieved the highest classification performance using the complete data and remained the best-performing classifier in seven of the nine missing-data scenarios following imputation, while Random Forest achieved the highest performance in the remaining two MNAR scenarios. Although modest reductions in classification accuracy, sensitivity and Cohen’s Kappa were observed after introducing missingness, the decreases were relatively small, indicating that the best-performing imputation methods preserved much of the predictive information contained within the complete data. These findings suggest that reconstruction accuracy provides a useful, although incomplete, indicator of downstream predictive performance.
The LBCC dataset illustrates this distinction even more clearly. Before class balancing, all baseline classifiers achieved very high overall accuracy but failed to identify any breast cancer cases, resulting in zero sensitivity and a Cohen’s Kappa coefficient of zero. This outcome reflects the severe class imbalance present in the cohort rather than poor model implementation. Following imputation and application of Borderline-SMOTE within the training folds, Random Forest consistently achieved the highest classification performance across all missing-data scenarios. The improvement in sensitivity and Kappa demonstrates that evaluation based solely on overall accuracy would have produced misleading conclusions regarding classifier effectiveness. Consequently, the present findings reinforce the importance of assessing downstream predictive performance using multiple complementary metrics, particularly when analysing imbalanced clinical datasets where accurate identification of minority cases is of primary clinical interest. Similar recommendations have been made in recent machine learning studies emphasising that reconstruction accuracy alone is insufficient for selecting imputation strategies intended for predictive modelling [
21,
22].
This study possesses several methodological strengths. Two complementary breast cancer datasets representing diagnostic and longitudinal epidemiological settings were analysed using a common experimental framework. Artificial missingness was generated under three distinct mechanisms and multiple missingness levels, enabling systematic comparison of imputation performance under controlled conditions. The evaluation combined reconstruction error metrics with downstream classification, while repeated simulation and nested cross-validation reduced the likelihood of optimistic performance estimates arising from information leakage. Together, these design features provide a comprehensive assessment of imputation performance under conditions relevant to biomedical prediction studies.
The study also has limitations that should be considered when interpreting the findings. First, the missing-data mechanisms were simulated rather than observed and therefore cannot fully capture the complexity of missingness encountered in routine clinical practice. Second, although two datasets with contrasting characteristics were analysed, the findings should not be extrapolated to all breast cancer datasets or other biomedical domains without additional validation. Finally, only three classification algorithms were evaluated. Future research should investigate whether the observed performance patterns remain consistent across additional clinical datasets, alternative machine learning algorithms and naturally occurring missing-data scenarios.
Overall, the present study contributes to the methodological literature on missing-data handling by demonstrating that rigorous evaluation should extend beyond reconstruction error to include downstream predictive performance. Rather than identifying a universally superior imputation method, the findings indicate that method selection should be informed by dataset characteristics, the assumed missing-data mechanism and the objectives of the subsequent predictive analysis. This evidence supports a more context-specific approach to imputation method selection in breast cancer prediction studies, while highlighting the importance of validating imputation strategies within the analytical framework for which they are intended.
5. Conclusions
This study systematically compared nine statistical and machine learning-based imputation methods under simulated MCAR, MAR and MNAR missing-data mechanisms using two breast cancer datasets with distinct characteristics. By combining reconstruction accuracy with downstream classification performance within a repeated nested cross-validation framework, the study provides a comprehensive evaluation of imputation methods that extends beyond the conventional assessment based solely on reconstruction error. This dual evaluation framework offers a more complete assessment of the practical implications of missing-data handling for predictive modelling in breast cancer research.
The results demonstrated that no single imputation method consistently achieved the best performance across both datasets. For the WDBC dataset, Lasso produced the most accurate overall reconstruction, followed by XGBoost and Ridge, whereas XGBoost ranked highest for the LBCC dataset, with SVM and MissForest also demonstrating competitive performance. These findings indicate that imputation performance depends on the interaction between the characteristics of the dataset and the underlying missing-data mechanism rather than the choice of algorithm alone. Conventional Mean imputation consistently yielded the poorest reconstruction accuracy across both datasets, reinforcing previous recommendations that deterministic single-value substitution should be avoided when more informative model-based alternatives are available.
Evaluation of downstream classification further demonstrated that effective imputation can preserve predictive performance despite the presence of missing data. LightGBM remained the best-performing classifier for most WDBC scenarios, while Random Forest consistently achieved the highest classification performance for the LBCC dataset following imputation and class balancing. Importantly, the study showed that reconstruction accuracy alone is insufficient for selecting imputation methods intended for predictive modelling, as methods producing similar reconstruction errors may differ in their ability to preserve clinically relevant classification performance.
The findings should be interpreted within the scope of the experimental design. The missing-data mechanisms were generated through simulation, and the evaluated datasets represent only two breast cancer populations with distinct predictor characteristics. Consequently, the results should not be interpreted as establishing a universally optimal imputation method. Instead, they provide empirical evidence that imputation method selection should be guided by dataset characteristics, assumptions regarding the missing-data mechanism and the intended downstream analytical objective. Future studies should extend this evaluation to additional clinical datasets with naturally occurring missingness, investigate emerging deep learning-based imputation approaches, and examine the generalisability of these findings across other biomedical prediction tasks.