Next Article in Journal
Peripheral Pulsed Radiofrequency for Trigeminal Neuralgia: Early Efficacy with Limited Durability in a Real-World Cohort
Previous Article in Journal
A Comprehensive Evaluation of Mobility: Validation of the Functional Ambulation and Stair Test in Older Adults
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predicting Iron Deficiencies Using Routine Complete Blood Cell Count Parameters: A Machine Learning Approach and Evaluation

by
Davide Negrini
,
Laura Pighi
,
Simone Mignolli
,
Gian Luca Salvagno
and
Giuseppe Lippi
*
Section of Clinical Biochemistry, University of Verona, 37134 Verona, Italy
*
Author to whom correspondence should be addressed.
J. Clin. Med. 2026, 15(12), 4783; https://doi.org/10.3390/jcm15124783 (registering DOI)
Submission received: 30 March 2026 / Revised: 11 June 2026 / Accepted: 16 June 2026 / Published: 19 June 2026

Abstract

Background/Objectives: Iron deficiency remains a prevalent condition, needing specific laboratory tests for diagnosis. This study aimed to evaluate whether routine complete blood cell count (CBC) parameters can be used within a machine learning framework to predict low ferritin and low transferrin saturation, used as biochemical markers of altered iron status, potentially supporting more targeted laboratory test utilization. Methods: In this single-center retrospective outpatient study, we analyzed 32,437 records from subjects undergoing both complete blood cell count and iron metabolism testing between 2023 and 2026. Low ferritin and low transferrin saturation were defined using sex-specific thresholds. Low ferritin was present in 14,344 subjects (44.2%), whereas low transferrin saturation was present in 7791 subjects (24.0%). After cleaning data and excluding incomplete records, demographic variables and CBC indices were tested as potential predictors. The dataset was split into training and test sets with stratified sampling. Multiple supervised machine learning models, including logistic regression, decision tree, random forest, XGBoost, support vector machine, k-nearest neighbors, and Naive Bayes, were trained. Hyperparameter tuning and model selection were performed using repeated stratified 10-fold cross-validation, optimizing the area under the curve (AUC). Model performance was assessed by AUC, sensitivity, and specificity, and validated on an independent test set. Results: All models showed predictive capability for low ferritin and low transferrin saturation using CBC parameters alone. Ensemble methods, especially random forest and XGBoost, reached the best performance (AUC values of 0.80–0.87 for ferritin and 0.85–0.96 for transferrin saturation). Sensitivity and specificity were balanced, supporting clinical screening applicability. Results were maintained across validation and confirmed in the test set. Prediction of transferrin saturation showed slightly higher accuracy than ferritin. Feature importance analysis identified mean corpuscular volume (MCV), mean corpuscular hemoglobin (MCH), and red blood cell distribution width (RDW) as key predictors. Conclusions: CBC-based machine learning models may help identify subjects with low ferritin or low transferrin saturation, supporting subsequent targeted assessment of iron status.

1. Introduction

Anemia is a significant public health problem worldwide, affecting both high- and low-income countries, and is characterized by decreased hemoglobin (HB) levels and a reduced number of circulating red blood cells (RBCs), resulting in an insufficient erythrocyte mass to meet physiological demands. Laboratory findings typically include decreased HB, hematocrit (HT), and RBC count. Rather than a disease in itself, anemia represents a manifestation of an underlying disorder. In this context, iron deficiency represents one of the most relevant underlying conditions and remains among the most common nutritional deficiencies in Europe, affecting a substantial proportion of the population [1]. Older adults are at increased risk of iron deficiency, as aging is frequently associated with inadequate dietary intake, reduced gastrointestinal absorption often related to proton pump inhibitor use, and chronic blood loss due to angiodysplasia, gastrointestinal malignancies, or concomitant antithrombotic therapy [2].
Laboratory investigations for diagnosing iron deficiency and anemia include a variety of tests, such as complete blood count (CBC), serum iron, ferritin, transferrin, and transferrin saturation. The diagnostic workup of anemia should follow a stepwise approach in which the CBC serves as the initial investigation and guides further laboratory testing, whereas iron studies, including ferritin and transferrin parameters, are performed only when anemia or microcytosis is detected, to ensure appropriate and cost-effective use of laboratory resources [3,4].
CBC parameters are inexpensive, widely available, and routinely used in clinical practice. Importantly, erythrocyte indices such as mean corpuscular volume (MCV), mean corpuscular hemoglobin (MCH), and RBC distribution width (RDW) reflect alterations in erythropoiesis and may hence provide indirect evidence of iron-restricted erythropoiesis even before biochemical abnormalities become evident.
Machine learning methods have been applied in laboratory medicine to analyze laboratory data and to support diagnostic decision-making [5]. The large volume of laboratory data generated in clinical practice has allowed the development of models for earlier detection and more efficient use of laboratory resources. Previous studies have shown that machine learning can be integrated into laboratory medicine to support diagnostics and improve test utilization. Laboratory data are highly standardized and quantitative, which makes them suitable for machine learning applications. These approaches can improve test interpretation, support risk stratification, and contribute to more appropriate use of laboratory tests [6]. The value of this approach has been demonstrated in different diagnostic settings, where machine learning models based on routinely available laboratory and biochemical parameters have shown good performance in disease detection and classification [7,8]. The same analytical approach has also been applied to routine laboratory data to identify conditions that may not be easily detected by conventional procedures, including laboratory errors and preanalytical interferences such as wrong-blood-in-tube events and contamination from intravenous fluids [9,10].
These studies clearly show that laboratory data obtained in clinical practice can reveal patterns that are hardly detectable with conventional analytical approaches. Based on these considerations, the aim of our study was to evaluate the feasibility of a machine learning approach using only CBC parameters to identify subjects at risk of iron deficiency.

2. Materials and Methods

2.1. Dataset and Targeted Markers

We extracted anonymized data from the local Laboratory Information System (LIS) of all outpatients referred to our Laboratory who had complete blood count (CBC), serum iron, ferritin, and transferrin requested from the same blood collection between 1 January 2023 and 31 January 2026. Because inclusion required the simultaneous availability of CBC and iron metabolism tests, the study population represents a selected outpatient testing population rather than a general population undergoing CBC alone.
Outpatients were included if they were aged 10–99 years and had CBC, serum iron, ferritin, and transferrin measured from the same blood collection. Subjects with missing or incomplete socioeconomic or laboratory data, age outside the predefined range, or absence of paired CBC and iron metabolism testing from the same blood collection were excluded. No imputation was hence needed, and only patients aged 10–99 (inclusive) were kept. The age range was selected to obtain a broad outpatient laboratory cohort rather than a group limited to patients with an established diagnosis of iron deficiency anemia. This approach was considered appropriate for a machine-learning model aimed to evaluate whether routine CBC parameters can identify biochemical evidence of iron deficiency in daily laboratory practice.
CBC tests were performed using a Sysmex XN hematological system (Sysmex Corp., Kobe, Japan), while iron, ferritin, and transferrin in plasma were measured on Cobas c701 with proprietary test kits (Roche Diagnostics AG, Risch-Rotkreuz, Switzerland).
The final dataset was completely anonymized and included only the following columns: age (years), sex (Male or Female), RBC (×1012/L) count, HB (g/L), HT (L/L), MCV (fL), MHC (pg), mean corpuscular hemoglobin concentration (MCHC, g/L), RDW (%), plasma iron concentration (µmol/L), plasma ferritin concentration (µg/L), plasma transferrin concentration (g/L). Transferrin saturation in % was calculated using the following formula [(iron × 5.5845)/(transferrin × 138.9)] [11,12].
Targeted biomarkers for iron deficiency identification were (A) low ferritin concentration, considered as lower than 30 µg/L in females and 50 µg/L in males, and (B) low transferrin saturation, considered as lower than 15% in females and 20% in males.
These thresholds were used as biochemical criteria to define low ferritin and low transferrin saturation in the present analysis. Ferritin concentrations below 30 µg/L have been reported as indicative of reduced iron stores, whereas higher decision limits, about 45–50 µg/L, have been proposed to increase diagnostic sensitivity, especially in settings in which ferritin may be influenced by inflammation [13,14]. Low transferrin saturation was used as an index of reduced circulating iron availability; values below about 15–16% have been associated with iron-restricted erythropoiesis [15], while a threshold below 20% is used in clinical guidelines and reviews [16]. For this reason, the two targets were interpreted as biochemical classifications of iron status rather than as definitive clinical diagnoses of iron deficiency anemia.

2.2. Pipeline Implementation

A supervised machine learning approach was adopted to develop and compare binary classification models for predicting two distinct iron-deficiency biomarkers using routine CBC parameters alone. Two separate but methodologically identical analysis pipelines were implemented, one for each target biomarker.
For each pipeline, only the parameters age, sex, RBC, HB, HT, MCV, MCH, MCHC, and RDW were given as input, removing the values of the iron metabolism biomarkers, and including only a binary label as the prediction target (presence or absence of the low value).
To implement the desired pipeline, we created two R scripts (R Core Team (2025). R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria) differing only in the biomarker targeted, written in Visual Studio Code 1.119 (Microsoft Corp., Redmond, WA, USA) and reviewed for optimization using GitHub Copilot with Claude Opus 4.6 (Anthropic PBC, San Francisco, CA, USA).
The R script was then run on R 4.5.2 (31 October 2025) with RStudio Pro 2025.09.1. (Posit Software PBC, Boston, MA, USA) on a x64-pc-linux-gnu platform.
First of all, the dataset was split into a training set (70%) and a held-out test set (30%) using stratified random sampling via the createDataPartition function of “caret” package [17], which preserves the original class distribution in both subsets. A constant random seed was used for all analyses to ensure comparable splits.
Most models (all except XGBoost and Naive Bayes) were trained and tuned using a unified framework via the “caret” package, while the independent test set was used only for final performance assessment. A repeated stratified 10-fold cross-validation scheme (3 repeats, 30 total resampling iterations) was applied on the training set. The optimization metric was the area under the receiver operating characteristics (ROC) curve (AUC). Cross-validated estimates of AUC, sensitivity, and specificity (mean ± standard deviation across folds) were recorded for all models using the twoClassSummary function. Class probability estimation was enabled for all classifiers to support ROC analysis.

2.3. Classifiers Evaluation

Nine classifiers spanning different algorithmic families were trained and evaluated:
(a)
Logistic Regression (caret method “glm”, predictions obtained by applying a 0.5 probability threshold to the predicted probabilities).
(b)
Basic Decision Tree (caret method “rpart”, fixed complexity parameter cp = 0.01).
(c)
Optimized Decision Tree (caret method “rpart”, with hyperparameter tuning of the complexity parameter (cp) over a grid ranging from 0.001 to 0.05 in steps of 0.005. The optimal cp was selected as the value maximizing the cross-validated AUC).
(d)
Basic Random Forest (caret method “rf”, with 500 trees and fixed mtry = 5).
(e)
Tuned Random Forest: (caret method “rf”, with 500 trees with hyperparameter tuning of mtry (values: 2, 3, 4, 5, 6) to maximize cross-validated AUC).
(f)
XGBoost (Extreme Gradient Boosting) (trained using “xgboost” package, with a custom repeated cross-validation procedure (10-fold × 3 repeats) implemented using createMultiFolds, ensuring methodological consistency with the other models; grid search was performed over the following hyperparameters: number of boosting rounds (nrounds: 50, 100, 150), maximum tree depth (max_depth: 3, 6), learning rate (eta: 0.1, 0.3)).
(g)
Support Vector Machine (SVM) with a radial basis function (caret method “svmRadial”, trained with automatic tuning of the sigma and cost (C) parameters with tuneLength = 5; features were centered and scaled as part of the caret preprocessing pipeline).
(h)
k-Nearest Neighbors (k-NN): A k-NN classifier (caret method “knn”, trained with hyperparameter tuning of k over odd values from 3 to 25, optimal k selected by maximizing cross-validated AUC on the training set; features were centered and scaled as part of the caret preprocessing pipeline).
(i)
Naive Bayes, assuming Gaussian feature distributions (trained using the “e1071” package, with a custom repeated cross-validation procedure (10-fold × 3 repeats), was implemented using createMultiFolds, ensuring methodological consistency with the other models).
Each model was evaluated on the held-out test set (30% of data, never used during training or tuning). The following metrics were computed from the confusion matrix with the positive class set to “1”: Accuracy, Balanced Accuracy (average of sensitivity and specificity), Sensitivity, Specificity, Positive Predictive Value, Negative Predictive Value, F1-score (harmonic mean of precision and sensitivity).
For all models providing class probability estimates, ROC curves were constructed on the test set, and the AUC was computed using the “pROC” package [18]. The 95% confidence interval for each AUC was estimated using the DeLong method [19].
To determine whether the discriminative performance of the best-performing model was statistically significantly different from each of the other models, pairwise DeLong tests (roc.test function, “pROC” package) were performed on the test-set ROC curves. Statistical significance was assessed at alpha = 0.05. The best model was identified as the one with the highest test-set AUC and served as the reference for all pairwise comparisons. Moreover, although the current models are not yet directly applicable in current clinical practice, the Brier score was calculated to evaluate model calibrations.

3. Results

The final dataset had a total of 32,437 rows with complete data about the 9 prediction factors (age, sex, RBC, HB, HT, MCV, MCH, MCHC, RDW) and the selected biomarkers, of which 15,917 for males and 16,520 for females; age range 10–99 years, median age 65 (25–75° percentile: 48–78). With a 70:30 split, we had 22,707 rows in the training set and 9730 in the test set.
For the low ferritin, we had a target distribution of 18,093 negative (non-low value, 55.8%) and 14,344 positive (low value, 44.2%) cases; results of the different classifiers on the holdout test set are reported in Table 1. In Figure 1 a graphical AUC comparison is reported.
Given the low transferrin saturation, we set a target distribution of 24,646 negative (non-low value, 76.0%) and 7791 positive (low value, 24.0%) cases. Results of the different classifiers on the holdout test set are reported in Table 2. In Figure 2 a graphical AUC comparison is reported.
For both targets, XGBoost achieved the highest AUC, and the model, compared with all others evaluated using the DeLong test, always had a p-value < 0.05; ROC curves are displayed in Figure 3 and Figure 4.
As an additional evaluation, feature importance was extracted from the tuned Random Forest model (although it may not be the best-performing model, it is favored due to the greater ease of data retrieval) using the Mean Decrease Gini index, which quantifies the total decrease in node impurity (Gini impurity) attributable to each feature across all trees in the ensemble. Features were ranked in descending order of importance and are presented graphically for the two targets in Figure 5 and Figure 6. For the ferritin and transferrin saturation targets, the most important predictors were MCH and MCV, respectively.

4. Discussion

Machine learning methods have recently been used in laboratory medicine for analyzing complex quantitative datasets. Supervised models are trained on predefined laboratory variables to generate classifications or quantitative estimates, using structured input features derived from standardized analytical procedures [20]. The large volume of numerical data generated in laboratory testing provides a suitable basis for developing such models. Within hematological testing, CBC parameters represent a well-standardized, numerically structured set of measurements, making them appropriate for multivariable modeling. Tepakhan and colleagues applied combined decision-tree models to RBC indices to differentiate iron deficiency anemia from thalassemia, providing an example of computational models developed exclusively from laboratory variables [21].
In the present study, we evaluated whether CBC parameters could predict low ferritin and low transferrin saturation in a selected outpatient testing population. Two parallel supervised classification pipelines were developed for identifying low ferritin concentration and low transferrin saturation using exclusively hematological variables as input features. Among the evaluated classifiers, XGBoost achieved the highest AUC for both targets and remained significantly superior in direct ROC comparisons using the DeLong test. For the ferritin-based model, the positive predictive value was 0.79, indicating that a substantial proportion of subjects classified as positive had reduced ferritin concentrations. Conversely, the transferrin saturation model yielded a negative predictive value of 0.83, supporting its ability to reliably exclude reduced transferrin saturation. Considered together, these performance characteristics suggest that the two models may provide complementary information when interpreted within the same laboratory framework, one contributing to rule-in performance and the other to rule-out capability.
The consistently higher discriminative performance of tree-based boosting methods, particularly for the ferritin target, indicates that the association between erythrocyte indices and iron stores is likely characterized by nonlinear interactions that are not fully captured by linear approaches. This interpretation is further supported by the feature importance analysis. For the ferritin model, MCH emerged as the most influential predictor. This finding is biologically coherent and supported by previous evidence demonstrating a significant association between serum ferritin and MCH levels in patients with iron-deficiency anemia [22]. Reduced iron availability directly limits HB synthesis, leading to a decrease in HB content per erythrocyte before more pronounced changes in cell size occur. In this context, MCH may reflect iron-restricted erythropoiesis at an earlier or more quantitatively sensitive stage than other RBC indices. For the transferrin saturation model, MCV ranked highest in importance. This observation is consistent with the progressive reduction in erythrocyte size observed in iron-deficient states, in which sustained impairment of HB synthesis ultimately leads to microcytosis. The differential ranking of MCH and MCV across the two targets suggests that distinct hematological expressions of iron deficiency may be preferentially captured depending on whether the biochemical reference marker reflects iron stores or circulating iron availability.
Our findings are also in line with those reported by Garduno-Rapp and colleagues, who developed deep learning models for early identification of iron-deficiency anemia using 52 longitudinal laboratory parameters and achieved an AUROC of 0.89 with a gated recurrent unit architecture [23]. Although their approach incorporated a substantially broader panel of laboratory variables and a time-series structure, the overall discriminative performance observed in our study was comparable, despite using only age, sex, and routine CBC indices. This comparison suggests that a limited but biologically coherent hematological dataset may contain information associated with low ferritin and low transferrin saturation, even without extended biochemical panels or longitudinal data. Because the models are based only on age, sex, and routine CBC indices, they may be suitable for further evaluation in different laboratory settings. Their use in laboratories with limited access to iron studies, or as part of Laboratory Information System (LIS) workflows, cannot be inferred from the present pilot study. External validation, prospective assessment, and implementation studies are required before considering these applications in routine practice. At this stage, the models should be interpreted as tools for identifying hematological patterns that may prompt targeted biochemical assessment, not as substitutes for iron studies.
Recent studies have applied gradient-boosted decision tree models to routinely collected clinical and laboratory variables to identify iron deficiency in subjects without overt anemia [24]. These observations are concordant with the present findings and indicate that biochemical iron depletion may already be reflected in quantitative alterations of hematological indices before HB levels decline below the diagnostic threshold for anemia. The ability to capture these early changes through multivariable analysis supports the biological plausibility of the approach adopted in this study.
In the present analysis, hyperparameter tuning was explicitly performed to maximize AUC as the primary optimization criterion. Future studies may reasonably explore alternative tuning strategies tailored to specific laboratory applications, for example, prioritizing sensitivity in screening-oriented settings or specificity in confirmatory contexts. The results of the present analysis must be interpreted in light of the specific methodological framework in which the models were developed. Although performance was assessed on a held-out test subset, all data originated from a single institutional setting. As previously discussed, an independent validation on external cohorts, ideally generated on different analytical platforms and reflecting heterogeneous patient populations, may be advisable to determine the stability and broader applicability of the proposed models. It is also essential to clarify that the analytical strategy described herein is not conceived as a replacement for established diagnostic pathways. Iron deficiency remains a condition requiring biochemical confirmation and clinical contextualization. The potential contribution of a model based exclusively on CBC parameters lies in its ability to highlight hematological patterns that may warrant targeted second-line investigations, thereby supporting a more focused use of iron studies in routine laboratory practice. Although a post hoc power analysis showed high statistical power, the absence of an external validation cohort prevents assuming generalizability of the present findings to other clinical settings. Therefore, prospective validation on independent datasets remains necessary before clinical implementation. The study cohort was selected by design, since the inclusion required paired CBC and iron metabolism testing from the same blood collection; as a result, it may include a higher proportion of subjects investigated for suspected iron disorders, anemia, chronic disease, inflammatory conditions, or follow-up assessment. Performance may therefore differ in unselected CBC populations. The broad age range, together with the absence of clinical data and inflammatory markers, may have influenced target classification and model generalizability. Further studies should include external cohorts, age-stratified analyses, inflammatory markers such as C-reactive protein, and should be prospectively validated before considering screening or reflex-testing applications.

5. Conclusions

The present study provides a basis for the development of laboratory-based diagnostic support strategies for identifying low ferritin and low transferrin saturation from routine CBC parameters. This analysis is a widely available, standardized, and low-cost test routinely performed across different clinical settings. The observation that hematological parameters alone provide meaningful discriminatory performance suggests that information derived from routine hematological testing may assist in recognizing patterns associated with altered iron status, including contexts in which iron studies are not included in the initial test panel, are selectively requested, or are unavailable at the time of evaluation. This may also be relevant in low-resource settings, where a single routine analysis may provide an initial interpretation of the hematological profile and help identify patients who may require further evaluation of iron status. In this context, the CBC may help guide the use of dedicated iron studies and enhance the interpretive value of routine laboratory testing. Future integration of this approach into laboratory information systems may facilitate its use in routine clinical practice.

Author Contributions

Conceptualization D.N., L.P., G.L.S. and G.L.; software, D.N. and S.M.; validation, D.N. and S.M.; formal analysis, D.N. and L.P.; data curation, D.N., S.M. and L.P.; writing—original draft preparation, D.N. and L.P.; writing—review and editing, L.P., G.L.S. and G.L.; supervision, G.L.S. and G.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Ethical review and approval were not required for this study because it used only aggregated, completely anonymized historical data.

Informed Consent Statement

Informed consent was waived because it used only aggregated, completely anonymized historical data.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

During the preparation of this manuscript/study, the author(s) used GitHub Copilot with Claude Opus 4.6 for the purposes of code review and optimization. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AUCArea Under the Curve
CBCComplete Blood Cell Count
CIConfidence interval
F1-scoreHarmonic mean of precision and sensitivity
HBHemoglobin
HTHematocrit
K-NNk-nearest neighbors
LISLaboratory Information System
MCHMean Corpuscular Hemoglobin
MCHC Mean Corpuscular Hemoglobin Concentration
MCVMean Corpuscular Volume
NPVNegative Predictive Value
PPVPositive Predictive Value
RBCRed Blood Cell
RDWRed blood cell distribution width
ROCReceiver Operating Characteristics
SVMSupport vector machine
TSATTransferrin saturation
XGBoost Extreme gradient boosting

References

  1. Hercberg, S.; Preziosi, P.; Galan, P. Iron deficiency in Europe. Public Health Nutr. 2001, 4, 537–545. [Google Scholar] [CrossRef] [PubMed]
  2. Girelli, D.; Marchi, G.; Camaschella, C. Anemia in the Elderly. Hemasphere 2018, 2, e40. [Google Scholar] [CrossRef] [PubMed]
  3. Wang, D.Y.; Sra, M.; Glaeser-Khan, S.; Moshashaian-Asl, R.; Ito, S.; Cuker, A.; Goshua, G. Cost-Effectiveness of Ferritin Screening Thresholds for Iron Deficiency in Reproductive-Age Women. Am. J. Hematol. 2025, 100, 1132–1140. [Google Scholar] [CrossRef] [PubMed]
  4. Sholzberg, M.; Hillis, C.; Crowther, M.; Selby, R. Diagnosis and management of iron deficiency in females. Can. Med. Assoc. J. 2025, 197, E680–E687. [Google Scholar] [CrossRef] [PubMed]
  5. Lippi, G.; Plebani, M. Lights and shadows of artificial intelligence in laboratory medicine. Adv. Lab. Med. 2025, 6, 1–3. [Google Scholar] [CrossRef] [PubMed]
  6. Rabbani, N.; Kim, G.Y.E.; Suarez, C.J.; Chen, J.H. Applications of machine learning in routine laboratory medicine: Current state and future directions. Clin. Biochem. 2022, 103, 1–7. [Google Scholar] [CrossRef] [PubMed]
  7. Ning, W.; Wang, Z.; Gu, Y.; Huang, L.; Liu, S.; Chen, Q.; Yang, Y.; Hong, G. Machine learning models based on routine blood and biochemical test data for diagnosis of neurological diseases. Sci. Rep. 2025, 15, 27857. [Google Scholar] [CrossRef] [PubMed]
  8. Negrini, D.; Zecchin, P.; Ruzzenente, A.; Bagante, F.; De Nitto, S.; Gelati, M.; Salvagno, G.L.; Danese, E.; Lippi, G. Machine Learning Model Comparison in the Screening of Cholangiocarcinoma Using Plasma Bile Acids Profiles. Diagnostics 2020, 10, 551. [Google Scholar] [CrossRef] [PubMed]
  9. Farrell, C.J.; Makuni, C.; Keenan, A.; Maeder, E.; Davies, G.; Giannoutsos, J. A Machine Learning Model for the Routine Detection of “Wrong Blood in Complete Blood Count Tube” Errors. Clin. Chem. 2023, 69, 1031–1037. [Google Scholar] [CrossRef] [PubMed]
  10. Spies, N.C.; Hubler, Z.; Azimi, V.; Zhang, R.; Jackups, R.; Gronowski, A.M.; Farnsworth, C.W.; Zaydman, A.M. Automating the Detection of IV Fluid Contamination Using Unsupervised Machine Learning. Clin. Chem. 2024, 70, 444–452. [Google Scholar] [CrossRef] [PubMed]
  11. Auerbach, M.; Adamson, J.W. How we diagnose and treat iron deficiency anemia. Am. J. Hematol. 2016, 91, 31–38. [Google Scholar] [CrossRef] [PubMed]
  12. Cook, J.D. Clinical evaluation of iron deficiency. Semin. Hematol. 1982, 19, 6–18. [Google Scholar] [PubMed]
  13. Short, M.W.; Domagalski, J.E. Iron Deficiency Anemia: Evaluation and Management. Am. Fam. Physician 2013, 87, 98–104. [Google Scholar] [PubMed]
  14. Ko, C.W.; Siddique, S.M.; Patel, A.; Harris, A.; Sultan, S.; Altayar, O.; Falck-Ytter, Y. AGA Clinical Practice Guidelines on the Gastrointestinal Evaluation of Iron Deficiency Anemia. Gastroenterology 2020, 159, 1085–1094. [Google Scholar] [CrossRef] [PubMed]
  15. Scientific Advisory Committee on Nutrition. Iron and Health; Stationery Office: London, UK, 2010; ISBN 9780117069923.
  16. Peyrin-Biroulet, L.; Williet, N.; Cacoub, P. Guidelines on the Diagnosis and Treatment of Iron Deficiency across Indications: A Systematic Review. Am. J. Clin. Nutr. 2015, 102, 1585–1594. [Google Scholar] [CrossRef] [PubMed]
  17. Kuhn, M. Building Predictive Models in R Using the caret Package. J. Stat. Softw. 2008, 28, 1–26. [Google Scholar] [CrossRef]
  18. Robin, X.; Turck, N.; Hainard, A.; Tiberti, N.; Lisacek, F.; Sanchez, J.C.; Müller, M. pROC: An open-source package for R and S+ to analyze and compare ROC curves. BMC Bioinform. 2011, 12, 77. [Google Scholar] [CrossRef] [PubMed]
  19. DeLong, E.R.; DeLong, D.M.; Clarke-Pearson, D.L. Comparing the areas under two or more correlated receiver operating characteristic curves: A nonparametric approach. Biometrics 1988, 44, 837–845. [Google Scholar] [CrossRef] [PubMed]
  20. Rashidi, H.H.; Tran, N.; Albahra, S.; Dang, L.T. Machine learning in health care and laboratory medicine: General overview of supervised learning and Auto-ML. Int. J. Lab. Hematol. 2021, 43, 15–22. [Google Scholar] [CrossRef] [PubMed]
  21. Tepakhan, W.; Srisintorn, W.; Penglong, T.; Saelue, P. Machine learning approach for differentiating iron deficiency anemia and thalassemia using random forest and gradient boosting algorithms. Sci. Rep. 2025, 15, 16917. [Google Scholar] [CrossRef] [PubMed]
  22. Barton, J.C.; Barton, J.C.; Acton, R.T. Factors related to mean corpuscular volume in HFE p.C282Y homozygotes. EJHaem 2024, 6, e1063. [Google Scholar] [CrossRef] [PubMed]
  23. Garduno-Rapp, N.E.; Ng, Y.S.; Weon, J.L.; Saleh, S.N.; Lehmann, C.U.; Tian, C.; Quinn, A. Early identification of patients at risk for iron-deficiency anemia using deep learning techniques. Am. J. Clin. Pathol. 2024, 162, 243–251. [Google Scholar] [CrossRef] [PubMed]
  24. Efros, O.; Soffer, S.; Mudrik, A.; Robinson, R.; Kenet, G.; Nadkarni, G.N.; Klang, E. Predictive machine-learning model for screening iron deficiency without anaemia: A retrospective cohort study. BMJ Open 2025, 15, e097016. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Graphical comparison of AUCs of the different classifiers for the low ferritin target. AUC, area under the curve.
Figure 1. Graphical comparison of AUCs of the different classifiers for the low ferritin target. AUC, area under the curve.
Jcm 15 04783 g001
Figure 2. Graphical comparison of AUCs of the different classifiers for the low transferrin saturation target. AUC, area under the curve.
Figure 2. Graphical comparison of AUCs of the different classifiers for the low transferrin saturation target. AUC, area under the curve.
Jcm 15 04783 g002
Figure 3. ROC curves of the different classifiers for the low ferritin target. ROC, Receiver Operating Characteristics.
Figure 3. ROC curves of the different classifiers for the low ferritin target. ROC, Receiver Operating Characteristics.
Jcm 15 04783 g003
Figure 4. ROC curves of the different classifiers for the low transferrin saturation target. ROC, Receiver Operating Characteristics.
Figure 4. ROC curves of the different classifiers for the low transferrin saturation target. ROC, Receiver Operating Characteristics.
Jcm 15 04783 g004
Figure 5. Feature importance extracted from the tuned Random Forest model using the Mean Decrease Gini index for the low ferritin target.
Figure 5. Feature importance extracted from the tuned Random Forest model using the Mean Decrease Gini index for the low ferritin target.
Jcm 15 04783 g005
Figure 6. Feature importance extracted from the tuned Random Forest model using the Mean Decrease Gini index for the low transferrin saturation target.
Figure 6. Feature importance extracted from the tuned Random Forest model using the Mean Decrease Gini index for the low transferrin saturation target.
Jcm 15 04783 g006
Table 1. Results of the different classifiers on the holdout test for the low ferritin target.
Table 1. Results of the different classifiers on the holdout test for the low ferritin target.
ModelAccuracyBalanced AccuracySensitivitySpecificityPPVNPVF1-ScoreAUCAUC 95% CIBrier Score
Logistic Regression0.6340.6200.4580.7810.6240.6450.5280.6630.652–0.6740.228
Basic Decision Tree0.7680.7660.7460.7860.7340.7960.7400.8110.802–0.8190.171
Optimized Decision Tree0.7950.7880.7300.8460.7900.7980.7590.8350.827–0.84400.156
Basic Random Forest0.7900.7850.7400.8300.7750.8010.7570.8500.842–0.8580.153
Tuned Random Forest0.7940.7890.7480.8310.7780.8060.7630.8530.845–0.8610.151
XGBoost0.8020.7960.7490.8430.7910.8090.7700.8580.851–0.8660.147
SVM0.6690.6510.5010.8020.6670.6690.5720.7120.702–0.7220.213
k-NN (tuned as k = 25)0.6560.6430.5250.7600.6350.6690.5750.6960.685–0.7060.218
Naive Bayes0.6400.6240.4820.7660.6200.6510.5430.6650.654–0.6760.237
AUC, Area under the curve; PPV, positive predictive value; NPV, negative predictive value.
Table 2. Results of the different classifiers on the holdout test for the low transferrin saturation target.
Table 2. Results of the different classifiers on the holdout test for the low transferrin saturation target.
ModelAccuracyBalanced AccuracySensitivitySpecificityPPVNPVF1-ScoreAUCAUC 95% CIBrier Score
Logistic Regression0.7810.5900.2210.9580.6270.7960.3270.7500.7383–0.76100.154
Basic Decision Tree0.7760.5890.2290.9490.5880.7960.3300.6760.6644–0.68740.162
Optimized Decision Tree0.7980.6520.3710.9330.6360.8240.4680.7420.7299–0.75390.151
Basic Random Forest0.8020.6590.3850.9330.6460.8280.4820.7770.7663–0.78820.145
Tuned Random Forest0.8000.6470.3530.9410.6530.8210.4580.7800.7692–0.79090.144
XGBoost0.8060.6650.3930.9370.6630.8300.4940.8010.7911–0.81150.139
SVM0.7950.6090.2520.9660.7020.8030.3700.7280.7150–0.74060.155
k-NN (tuned as k = 25)0.7940.6310.3170.9440.6430.8140.4250.7680.7574–0.77950.148
Naive Bayes0.75030.6200.3690.8710.4740.8140.4150.7270.7151–0.73820.193
AUC, Area under the curve; PPV, positive predictive value; NPV, negative predictive value.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Negrini, D.; Pighi, L.; Mignolli, S.; Salvagno, G.L.; Lippi, G. Predicting Iron Deficiencies Using Routine Complete Blood Cell Count Parameters: A Machine Learning Approach and Evaluation. J. Clin. Med. 2026, 15, 4783. https://doi.org/10.3390/jcm15124783

AMA Style

Negrini D, Pighi L, Mignolli S, Salvagno GL, Lippi G. Predicting Iron Deficiencies Using Routine Complete Blood Cell Count Parameters: A Machine Learning Approach and Evaluation. Journal of Clinical Medicine. 2026; 15(12):4783. https://doi.org/10.3390/jcm15124783

Chicago/Turabian Style

Negrini, Davide, Laura Pighi, Simone Mignolli, Gian Luca Salvagno, and Giuseppe Lippi. 2026. "Predicting Iron Deficiencies Using Routine Complete Blood Cell Count Parameters: A Machine Learning Approach and Evaluation" Journal of Clinical Medicine 15, no. 12: 4783. https://doi.org/10.3390/jcm15124783

APA Style

Negrini, D., Pighi, L., Mignolli, S., Salvagno, G. L., & Lippi, G. (2026). Predicting Iron Deficiencies Using Routine Complete Blood Cell Count Parameters: A Machine Learning Approach and Evaluation. Journal of Clinical Medicine, 15(12), 4783. https://doi.org/10.3390/jcm15124783

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop