A retrospective evaluation of an explainable machine learning model demonstrates that eight standard Complete Blood Count parameters can distinguish recorded iron deficiency anemia from non-anemic controls in adult laboratory datasets. Iron deficiency anemia remains the most prevalent nutritional anemia globally and represents a chronic public health challenge, disproportionately affecting young children and women of reproductive age. In resource-limited clinical environments, access to confirmatory iron panels such as serum ferritin, transferrin saturation, soluble transferrin receptors, and hepcidin is frequently restricted by high reagent costs and demanding laboratory infrastructure, prompting clinicians to depend primarily on universal, inexpensive complete blood count panels to guide diagnostic decisions.
To establish the screening architecture, the investigators analyzed a publicly available dataset of 15,300 retrospective records gathered between 2013 and 2018 by the Faculty of Medicine at Tokat GaziosmanpaÅŸa University in Turkey. The original dataset comprised five distinct diagnostic categories, including non-anemia, general hemoglobin-anemia, iron deficiency anemia, folate deficiency anemia, and vitamin B12 deficiency anemia. For the binary classification task, records labeled with folate deficiency, vitamin B12 deficiency, and unclassified hemoglobin-anemia were excluded rather than pooled into controls. The study design maintained an 80:20 stratified split with a fixed random seed of 42, creating a development cohort of 11,077 observations and an untouched internal hold-out evaluation set of 2,770 observations.
Addressing the class imbalance inherent in the training partition, the synthetic minority over-sampling technique, known as SMOTE, was configured with five nearest neighbors and applied exclusively to the training folds. The algorithm generated synthetic observations by interpolating between existing minority class samples and their nearest neighbors along uniform random coefficients. To avoid data leakage, neither the internal hold-out test set nor the validation folds during hyperparameter assessment received synthetic over-sampling. Standard scaling and SMOTE were embedded within each cross-validation fold rather than applied globally. Model selection focused on a Random Forest architecture comprising 50 decision trees, a maximum tree depth of 10, a minimum requirement of five samples for internal node splitting, and a minimum of one sample per terminal leaf, operating at a default classification probability threshold of 0.50.
Although exploratory evaluations examined models incorporating demographic, biochemical, and derived iron variables alongside blood indices, the final primary formulation was strictly constrained to eight routine complete blood count predictors. These eight variables were hemoglobin, hematocrit, mean corpuscular hemoglobin, red blood cell count, mean corpuscular volume, red cell distribution width, mean corpuscular hemoglobin concentration, and platelet count. All biochemical assays, such as serum iron and ferritin, along with demographic indicators like biological sex, were deliberately eliminated from the final model input vector.
On the untouched internal hold-out set of 2,770 observations, which included 1,935 controls and 835 iron deficiency anemia cases, the final eight-variable Random Forest model demonstrated robust internal discrimination. The model achieved an overall accuracy of 97.00 percent, alongside a precision of 98.33 percent, a sensitivity of 91.62 percent, a specificity of 99.33 percent, and an F1-score of 94.85 percent. Cross-validation across five stratified folds within the development cohort yielded comparable stability, averaging 97.06 percent accuracy, 98.90 percent precision, 91.26 percent sensitivity, 99.56 percent specificity, and a mean area under the receiver operating characteristic curve of 0.9906. Confusion matrix analysis on the hold-out evaluation revealed 1,922 true negative classifications, 765 true positive classifications, 13 false positive classifications, and 70 false negative classifications, reflecting a low rate of erroneous positive identifications in the internal hospital-derived sample.
To provide transparent interpretations of individual and global feature influences, the authors implemented TreeExplainer within the SHapley Additive exPlanations framework on the internal hold-out test set. SHAP values were calculated on the predicted probability scale for the positive iron deficiency anemia class without altering the background distribution. Global feature attribution identified hemoglobin as the dominant predictor, exhibiting a mean absolute SHAP value of 0.2978, followed by hematocrit at 0.0928, mean corpuscular hemoglobin at 0.0403, red blood cell count at 0.0281, mean corpuscular hemoglobin concentration at 0.0260, and red cell distribution width at 0.0238. Platelet count and mean corpuscular volume contributed marginally, with values of 0.0083 and 0.0062, respectively. Lower values of red cell production indices consistently increased predicted anemia probability, whereas elevated red cell distribution width contributed positively to the probability of classification.
Ablation experiments highlighted the structural dependency of the model on primary hematological indicators and justified the exclusion of non-CBC variables. Evaluating a model trained exclusively on hemoglobin yielded an accuracy of 97.40 percent and an area under the curve of 0.9859, whereas removing hemoglobin from the complete blood count ensemble reduced overall accuracy to 96.03 percent, F1-score to 93.27 percent, and the area under the curve to 0.9887. McNemar paired tests demonstrated statistically significant performance differences across these configurations. Furthermore, removing sex from the preliminary complete-feature model induced 72 additional misclassifications, confirming that demographic indicators could introduce potential reference-label dependencies or baseline bias rather than generalizable pathophysiological signals, thereby supporting the decision to omit demographic features from the operational screening tool.
External transportability was evaluated using independent data from the National Health and Nutrition Examination Survey 2017 to 2018, linking complete blood counts, participant demographics, and laboratory ferritin measurements via unique identification numbers. In a restricted reference cohort of 4,654 non-pregnant adults comparing 155 iron deficiency anemia cases against 4,499 iron-replete, non-anemic controls, the unchanged model achieved an accuracy of 99.61 percent, a sensitivity of 95.48 percent, a specificity of 99.76 percent, and an area under the curve of 0.9971. In this restricted setting, the model accurately identified 148 of the 155 clinical cases while producing only 11 false positive classifications. However, because both the case and control reference definitions incorporated sex-specific hemoglobin criteria, the authors noted that this restricted cohort comparison provided an intrinsically favorable validation framework for classifiers containing hemoglobin predictors.
When external testing was broadened to encompass all 5,163 eligible NHANES participants, including 509 diagnostically discordant individuals exhibiting either low hemoglobin with normal ferritin or low ferritin with normal hemoglobin, model precision decreased markedly. While overall sensitivity remained stable at 95.48 percent with 148 detected cases and an accuracy of 94.33 percent, precision dropped to 34.10 percent due to 286 false positive classifications. In comparison, applying a standard sex-specific hemoglobin cutoff identified all 155 cases but generated 383 false positive predictions. The multivariable complete blood count algorithm achieved higher specificity and precision than the baseline hemoglobin cutoff at the expense of seven false negative results, illustrating a defined clinical operating trade-off when encountering complex, heterogeneous outpatient populations.
Important methodological and clinical limitations restrict immediate translation to health care practice. The initial hospital dataset lacked unique patient identification numbers, preventing independent confirmation of patient-level data independence or repeated sampling. Several extreme physiological outliers, such as recorded hematocrit levels of 7.21 percent alongside mean corpuscular hemoglobin of 139.0 picograms, were retained in the historical analytical dataset without manual correction or physiological filtering. Moreover, external subgroup evaluation across biological sex in the restricted NHANES cohort included only 22 male iron deficiency cases, resulting in wide confidence intervals for male sensitivity estimates. The authors emphasize that this machine learning model functions solely as an investigative screening aid and risk triage framework, requiring subsequent biochemical confirmation and physician oversight rather than replacing standard clinical assessment.
Subject of Research: Explainable machine learning screening for iron deficiency anemia using complete blood count parameters
Article Title: Iron deficiency anemia screening using routine complete blood count parameters: An explainable machine learning approach
Article References: Iftikhar, S., Qadeer, A., Nosheen, F., Fatima, J., & Sultan, N. (2026). Iron deficiency anemia screening using routine complete blood count parameters: An explainable machine learning approach. Systems and Soft Computing, 9, Article 200680. https://doi.org/10.1016/j.sasc.2026.200680
Image Credits: AI Generated
DOI: 10.1016/j.sasc.2026.200680
Keywords: iron deficiency anemia, complete blood count, machine learning, random forest, explainable artificial intelligence, SHAP analysis, hemoglobin, hematocrit, mean corpuscular volume, red cell distribution width, NHANES, diagnostic screening, erythropoiesis, ferritin, biochemical testing, hematology
News Source: Blake Davidson. (November 25, 2026). Machine Learning Screens Iron Deficiency Anemia Using Routine Complete Blood Counts. Scienmag.



