Literature DB >> 31699079

ThalPred: a web-based prediction tool for discriminating thalassemia trait and iron deficiency anemia.

V Laengsri1,2, W Shoombuatong3, W Adirojananon2, C Nantasenamat3, V Prachayasittikul4, P Nuchnoi5,6.   

Abstract

BACKGROUND: The hypochromic microcytic anemia (HMA) commonly found in Thailand are iron deficiency anemia (IDA) and thalassemia trait (TT). Accurate discrimination between IDA and TT is an important issue and better methods are urgently needed. Although considerable RBC formulas and indices with various optimal cut-off values have been developed, distinguishing between IDA and TT is still a challenging problem due to the diversity of various anemic populations. To address this problem, it is desirable to develop an improved and automated prediction model for discriminating IDA from TT.
METHODS: We retrospectively collected laboratory data of HMA found in Thai adults. Five machine learnings, including k-nearest neighbor (k-NN), decision tree, random forest (RF), artificial neural network (ANN) and support vector machine (SVM), were applied to construct a discriminant model. Performance was assessed and compared with thirteen existing discriminant formulas and indices.
RESULTS: The data of 186 patients (146 patients with TT and 40 with IDA) were enrolled. The interpretable rules derived from the RF model were proposed to demonstrate the combination of RBC indices for discriminating IDA from TT. A web-based tool 'ThalPred' was implemented using an SVM model based on seven RBC parameters. ThalPred achieved prediction results with an external accuracy, MCC and AUC of 95.59, 0.87 and 0.98, respectively.
CONCLUSION: ThalPred and an interpretable rule were provided for distinguishing IDA from TT. For the convenience of health care team experimental scientists, a web-based tool has been established at http://codes.bio/thalpred/ by which users can easily get their desired screening test result without the need to go through the underlying mathematical and computational details.

Entities:  

Keywords:  Decision making; Discrimination; Iron deficiency anemia; Machine learning; Random forest; Support vector machine; Thalassemia trait

Mesh:

Year:  2019        PMID: 31699079      PMCID: PMC6836478          DOI: 10.1186/s12911-019-0929-2

Source DB:  PubMed          Journal:  BMC Med Inform Decis Mak        ISSN: 1472-6947            Impact factor:   2.796


Background

Anemia is the condition of decreased number of red blood cells (RBCs) or of the concentration of hemoglobin (Hb). Anemia is a health problem affecting both developing and developed countries. The global prevalence of anemia in 2010 was 32.9% and it was especially common in Central Africa, the Middle East, the Mediterranean and Southeast Asia [1]. It can occur from one of three causes, acute blood loss, increased hemolysis or ineffective hematopoiesis. In Thailand, both iron deficiency anemia (IDA) and thalassemia trait (TT) are highly prevalent. Iron is an important element in our body, being a component of many enzymes and playing a role in hemoglobin synthesis. Therefore, a lack of iron can lead to IDA. The prevalence of IDA among Thai people is estimated to be 1.5–8% [2]. Thalassemia is an inherited hematological disorder that is caused by abnormal production of alpha (α)- or beta (β)- globin chains. The prevalence of TT is approximately 20–25% in the Thai population [3]. The levels of serum ferritin, serum iron, total iron binding capacity and percentage of transferrin saturation are the most commonly used assays to confirm IDA [4]. Meanwhile, Hb testing via high performance liquid chromatography or capillary electrophoresis to detect abnormal Hb levels or DNA analysis are the assays commonly used for TT diagnosis [5-7]. In practice, these latter techniques are not available in routine laboratories as they require special machines, and are time- and cost-consuming. Basically, when patients were assumed to be TT or IDA, clinician often prescribed the cassette of hematological tests covering both TT and IDA diagnosis. These laboratory work-ups consume personnel work load and governmental budget. This leads to financial crisis for national health care of low-middle income countries. In order to guide clinician for rational lab use, we therefore developed web-based tool for assisting clinician to prescribe rational and cost-effective laboratory testing for TT and IDA diagnosis. Multiple formulas and indices have been proposed for such discrimination including the Bessman index (BI) [8], Ehsani formula (EF) [9], England & Fraser index (E&F) [10], Green & King index (G&K) [11], Mentzler index (MI) [12], Red Cell Distribution Width index (RDWI) [13], Ricerca index (RI) [14], Shine and Lal index (S&L) [15], Siridah index (SI) [16], Srivastava formula (SF) [17], Sirachainan formula (SiF) [18], Kandhro 1 formula (KF1) [19] and Kandhro 2 formula (KF2) [19]. The aforementioned discriminant indices and formulas yielded quite encouraging prediction results. However, the prediction results across different populations, especially in sensitivity and specificity, are still unsatisfactory. Some of studies are contentious due to difference of gender, age or ethnicity [20-22]. In order to improve prediction results, the computation of optimal cut-off values for specific populations in different countries is needed [23, 24]. The potential of machine learning techniques has been demonstrated for near-term translational impact. For instance, in the case of the biomedicine, major applications of machine learning are medical/radiological diagnosis and drug discovery. Thus, it may be possible to develop discriminant models based on machine learning techniques for providing effective large-scale analyses of laboratory data. To the best of our knowledge, only one discriminant model has been proposed to differentiate IDA and TT in the Thai population [18]. In this study, we exerted an effort to develop a powerful model to discriminate IDA from TT using a support vector machine (SVM) which we named ThalPred. The previous works had demonstrated the meaningful of data mining and the increasing of computational power in various aspect of biomedical application [25-28]. The present study aims to establish a reliable and interpretable computational model. Therefore, the important procedures as the following are considered: (i) collect clear and reliable laboratory dataset for training and validating; (ii) demonstrate characteristic or descriptor of dataset for intrinsic properties prediction; (iii) identify feature of importance for improving interpretability; (iv) develop a simple and interpretable model; (v) perform rigorous cross validation for analyzing internal and external predictive power; (vi) develop affordable and user friendly based web tool for implementation in the healthcare community.

Material and methods

Data collection

This was a retrospective study of encoded and unlinked clinical laboratory data obtained from the Center of Medical Laboratory Services, the Faculty of Medical Technology, Mahidol University from the period July 2014 to September 2016. The abbreviations of hematological laboratory testing were listed in Table 1. We collected 237 sets of hematological data from Thai subjects, age 18 to 60 years, that showed hypochromic microcytic anemia (HMA) and were diagnosed as reflecting IDA or TT by two independent medical technologists. Other causes of HMA, such as hypothyroidism, anemia of chronic disorders, hepatitis B / C / or D infection, or Helicobacter pylori infection, were excluded from the study in order to specify IDA and TT only. Hemoglobin electrophoresis and serum ferritin results were analyzed to discriminate TT and IDA, respectively. The level of ferritin was determined by electrochemiluminescence method (Cobas® 2014© Roche, Switzerland). Variant hemoglobin testing was performed using low pressure liquid chromatography (Bio-Rad Laboratories, USA). The final dataset consisted of 186 subjects (146 TT and 40 IDA cases) which were used for internal and external analyses. The study was conducted under the approval of the Mahidol University Central Institutional Review Board (MU-CIRB; CODE No. MU-CIRB 2016/084.0311). We received a participant consent waiver from MU-CIRB. All information of subjects was de-identified prior data analysis.
Table 1

List of laboratory testing abbreviation used in this study

Full NameAbbreviation
HemoglobinHb
HematocritHct
Hypochromic microcytic anemiaHMA
Iron deficiency anemiaIDA
Mean corpuscular volumeMCV
Mean corpuscular hemoglobinMCH
Mean corpuscular hemoglobin concentrationMCHC
Red blood cellRBC
Red blood cell distribution widthRDW
Thalassemia traitTT
List of laboratory testing abbreviation used in this study

Statistical analyses

The statistical analysis of this study was computed using SPSS software, version 20 (SPSS Inc., New York, Armonk, USA). As an exploratory statistical analysis, univariate statistical analysis using mean and standard deviation (SD) was performed to investigate the different patterns and trends of individual hematological parameters between the data of groups TT and IDA. The Kolmogorov-Smirnov test was used for normality testing. Since the data of this study was not normally distributed. The comparison between groups TT and IDA was performed by using the Mann-Whitney U test. A p-value < 0.05 was considered significant. Furthermore, in order to perform multivariate statistical analyses amongst RBC indices, principal component analysis (PCA) was performed. PCA has probably been the most popular technique to perform multivariate statistical analysis for the tasks of data exploration and pattern recognition. The advantages of PCA are to: (i) extract the most important information and represent it with only a few dimensions, called principal components (PCs); (ii) compress the dimensions of the dataset by keeping only the important information; and (iii) analyze the characteristics and structure of the data set. In this study, PCA was performed by using the FactoMineR package [29] in R program to represent the distributions of IDA and TT cases, and identify the RBC indices important for distinguishing IDA and TT cases.

Models construction

The following five popular computational models, namely k-nearest neighbor (k-NN), decision tree (DT), random forest (RF), artificial neural network (ANN) and support vector machine learning (SVM), were applied to develop discriminant models for effectively distinguishing TT from IDA. The fundamental and associated parameter optimization for the five classifiers are briefly described (Fig. 1).
Fig. 1

The workflow of the computation model of ThalPred for discriminating IDA from TT and providing the set of interpretable rules

The workflow of the computation model of ThalPred for discriminating IDA from TT and providing the set of interpretable rules k-NN is one of the most popular and lazy machine learning algorithms for a variety of problem domains [25, 30, 31]. This algorithm is conceptually based on a distance function, such as the Euclidean distance, to measure the similarity between a pair of training and unknown datasets. For obtaining the best k-NN model, the suitable number of neighbors (k ∈ {5, 7, 9,..., 43} was determined by using the caret package [28, 32] over 5-fold cross-validation (5-fold CV) scheme. DT model can be used in the classification and regression tasks by constructing a model in the form of a tree structure. Herein, we constructed the DT model by implementing the J48 algorithm from the RWeka package in R program (version 3.3.2) [33] using default parameters. Briefly, the J48 algorithm is a re-implementation of the C4.5 algorithm [34] based on Javascript. The feature with the highest information gain is select to build a model. Finally, because of its built-in feature selector, the DT model will provide the feature usage score for ranking the feature importance. RF is an ensemble classification and regression tree (CART) classifier [34, 35]. The RF model is a classifier derived from gathering many weak CART trees for improving the prediction performance. To construct the model, RF takes advantage of two well-known machine learning algorithms, i.e. bagging and random feature selection. To estimate informative features, RF model utilizes two measures, i.e. mean decrease in accuracy and Gini index [35]. In this study, the RF classifier was implemented using the randomForest R package [34]. To obtain an optimal RF model, two parameters, namely, ntree (i.e., the number of trees used for constructing the RF classifier) and mtry (i.e., the number of random candidate features), were tuned by using a grid search procedure based on 5-fold cross-validation (5-fold CV), where ntree ∈ {100, 200, 300, 400, 500} was determined, while mtry was estimated using the tuneRF function in the randomForest R package [34]. ANN is computing systems originally inspired by the way biological nervous systems process information [36]. Previously, many researchers reported that ANN accomplished well in many domains, such as protein sequence analysis, image recognition, speech recognition, and natural language processing [27, 37, 38]. In practice, there are two important types of ANN, i.e. the perceptron and the sigmoid neuron, while stochastic gradient descent is known as the standard estimating parameter algorithm for ANN. For achieving the best ANN model, two parameters, namely, size (i.e., the number of hidden nodes) and decay (i.e., the number of weight decay), were subjected to optimization. Particularly, size ∈ {1, 2, 3,..., 10} and decay ∈ {0.1, 0.2, 0.3, 0.4, 0.5} were determined by using the caret package [28, 32] over a 5-fold CV scheme. SVM is a statistical learning approach based on the principle of structure-risk minimization and a kernel method (as proposed by Vapnik [39]) which are used to construct a maximum-margin-separating hyperplane for distinguishing the two classes of interest. The radial basis function kernel was used to transform the original feature space into a higher dimensional space in which the SVM classifier can linearly separate the inherent classes of the dependent variable via a maximum separating hyperplane [40]. Optimization of the SVM parameters consisting of the cost ∈ {2 8, 2 7, 2 6,..., 27, 28} and γ ∈ {2 8, 2 7, 2 6,..., 27, 28} were determined via a grid search spanning the search space evaluated by 5-fold CV scheme using the e1071R package [41].

Cross-validation for identification of discriminant capability

The validation of an empirical predictive model is essential. In order to train and evaluate the discriminant models, the data set of this study was randomly partitioned into internal and external sets with 80 and 20%, respectively, of the data set from both TT and IDA. The internal set was evaluated using the 5-fold CV scheme [42] to confirm the reliability and robustness of the proposed discriminative model. The external set was used to assess the generalizability of the model when extrapolating to unknown samples. To avoid the possibility of bias arising from a single data split upon model training, data splitting was performed for 100 independent iterations. The final prediction performances of the 5-fold CV and external validation tests of the proposed discriminative model were reported by using the mean and standard deviation values of analyzed parameters (Fig. 1).

Rule extraction

In addition to model accuracy and ability to discriminate IDA from TT, there is a possibility that a simple and meaningful rule may be extracted from an RF model. From the nroot to a leaf node is a rule for a tree. The main purpose of extraction rules is to ease utilization and make the model more interpretable compared to black-box approaches [25] such as SVM. In this study, the extraction rules were obtained by using the R package inTrees (interpretable trees) [34] and only 100 decision trees were established for each encoding to train the RF model. InTrees is a powerful package for extracting, measuring, pruning, selecting and summarizing from an RF model (Fig. 1).

Performance assessment

Performance assessment is important step for developing reliable and useful predictor. In order to discriminate TT from IDA, pattern recognition is applied for classification concept. Five standard statistical parameters, namely, accuracy (Ac), sensitivity (Sn), specificity (Sp), Matthew’s correlation coefficient (MCC), and Youden’s index (YI), were addressed to evaluate the predictive performance of the proposed methods. These five parameters were computed as follows [43-46]: where TP, FP, TN and FN are true positive, false positive, true negative and false negative, respectively. Furthermore, the receiver operating characteristic (ROC) curve, which plots the true positive rate (Sn) against the false positive rate (1-Sp) at different thresholds, was also used for model evaluation. A predictor with perfect classification has a ROC curve passing through the top-left corner, i.e. Sn = 100% and Sp = 100%. To plot the ROC curve and calculate the value of area under the curve (AUC), the ROCR package [47] was used.

Results

Differences in hematological data of TT and IDA using univariate and multivariate analyses

HMA data was classified into two groups: 146 TT cases and 40 IDA cases. The characteristics and hematological data of both groups of IDA and TT are summarized in Table 2. Age of two groups was not significantly different (p-value 0.435). All RBC parameters were significantly different between the two groups (p < 0.05). All averages of parameters in TT group were higher than IDA group except RDW. Furthermore, PCA was applied as multivariate analysis was presented as scores (Fig. 2a) and loadings plots (Fig. 2b). The percentage of variance explained by the first two PCs (83. 33%) were considered sufficient in describing the behavior of the data. The graphs of Fig. 2a and Fig. 2b also revealed that RDW contributes greatly to IDA, while the remaining RBC parameters contribute to TT. These results were well reflected by the mean values of IDA (15.88 ± 1.13) and TT (20. 48 ± 3.23). Interestingly, the outputs of two analyses were consistent. Therefore, these suggested that all RBC indices may be important to discriminate between patients with IDA and those with TT.
Table 2

The age and red blood cell parameters of study subjects with thalassemia trait or iron deficiency anemia

ParametersTT (N = 146)IDA (N = 40)p-value
Age (yrs.)37.79 ± 7.86 (18.00–50.00)39.15 ± 9.61 (23.00–58.00)0.435
RBC (106/μL)5.32 ± 0.48 (4.35–6.83)4.03 ± 0.96 (1.69–5.77)<  0.001*
Hb (g/dL)11.99 ± 1.11 (8.10–14.60)7.97 ± 2.26 (2.50–10.90)<  0.001*
Hct (%)36.46 ± 4.10 (34.10–42.40)26.19 ± 6.63 (9.90–34.30)<  0.001*
MCV (fL)69.49 ± 6.14 (52.30–79.70)65.12 ± 9.32 (48.70–81.00)0.010*
MCH (pg)22.71 ± 2.25 (17.70–26.60)19.65 ± 3.33 (12.50–25.70)<  0.001*
MCHC (%)32.67 ± 1.14 (30.10–35.70)30.13 ± 1.93 (24.90–35.70)<  0.001*
RDW (%)15.88 ± 1.13 (13.50–22.00)20.48 ± 3.23 (14.90–26.70)<  0.001*

The data are shown as mean ± standard deviation

Hb Hemoglobin; Hct Hematocrit; IDA Iron deficiency anemia; MCH mean corpuscular hemoglobin; MCHC mean corpuscular hemoglobin concentration; MCV mean corpuscular volume; RBC red blood cell count; RDW red blood cell distribution width; TT Thalassemia trait

* Mann-Whitney U test p-value < 0.05

Fig. 2

Multivariate analysis using principal component analysis (PCA) of our laboratory data consisting of 146 TT cases (red circles) and 40 IDA cases (blue circles) derived from PCA scores (a) and loadings (b) plots

The age and red blood cell parameters of study subjects with thalassemia trait or iron deficiency anemia The data are shown as mean ± standard deviation Hb Hemoglobin; Hct Hematocrit; IDA Iron deficiency anemia; MCH mean corpuscular hemoglobin; MCHC mean corpuscular hemoglobin concentration; MCV mean corpuscular volume; RBC red blood cell count; RDW red blood cell distribution width; TT Thalassemia trait * Mann-Whitney U test p-value < 0.05 Multivariate analysis using principal component analysis (PCA) of our laboratory data consisting of 146 TT cases (red circles) and 40 IDA cases (blue circles) derived from PCA scores (a) and loadings (b) plots

Evaluation of existing discriminant formulas and indices

To objectively evaluate the performance of our proposed discriminant model and fairly compare it with existing discriminant formulas and indices including BI [8], EF [9], E&F [10], G&K [11], MI [12], RDWI [13], RI [14], S&L [15], SI [16], SF [17], SiF [18], KF1 [19] and KF2 [19], the same dataset was used for evaluation of each. Their cut-off, Ac, Sn, Sp, MCC, YI, and AUC were shown in Table 3.
Table 3

Performance comparisons of existing discriminant formulas and indices proposed for differentiation of iron deficiency anemia from thalassemia trait

Indices/ formulasCut-offAc (%)Sn (%)Sp (%)MCCYIAUC
BI = RDW1536.0219.1897.500.190.170.71
EF = MCV – 10 × RBC1552.1545.8975.000.170.210.70
E&F = MCV - RBC – 5Hb - 6.4067.4260.9592.500.440.540.91
G&K = MCV2×RDW/100Hb7284.9582.8892.500.660.750.93
MI = MCV/RBC1354.3047.9577.500.210.250.75
RDWI = MCV ×RDW/RBC22067.2060.9690.000.420.510.92
RI = RDW/RBC3.387.6386.3092.500.700.790.98
S&L = MCV2×MCH/100153074.1992.477.50−0.010.000.31
SI = MCV – RBC - 3Hb2753.7645.2185.000.260.3020.80
SF = MCH/RBC3.837.6326.7177.500.040.040.68
SiF = 1.5Hb – 0.05MCV1424.7331.510.00−0.56−0.690.02
KF1 = RBC/Hct + 0.5RDW8.270.9764.3895.000.490.590.93
KF2 = 5RDW/RBC16.889.7989.0492.500.740.820.98

Ac Accuracy; AUC Area under receiver operating curve; Hb Hemoglobin; Hct Hematocrit; IDA Iron deficiency anemia; MCC Matthew’s correlation coefficient; MCH mean corpuscular hemoglobin; MCV mean corpuscular volume; RBC red blood cell count; RDW red blood cell distribution width; Sn Sensitivity; Sp Specificity; TT Thalassemia trait; YI Youden’s index

Performance comparisons of existing discriminant formulas and indices proposed for differentiation of iron deficiency anemia from thalassemia trait Ac Accuracy; AUC Area under receiver operating curve; Hb Hemoglobin; Hct Hematocrit; IDA Iron deficiency anemia; MCC Matthew’s correlation coefficient; MCH mean corpuscular hemoglobin; MCV mean corpuscular volume; RBC red blood cell count; RDW red blood cell distribution width; Sn Sensitivity; Sp Specificity; TT Thalassemia trait; YI Youden’s index As noticed in Fig. 3, most existing formulas and indices achieved an AUC value that was greater than 0.5 [except for S&L (0. 31) and SiF (0.02)]. The highest MCC and AUC of 0.74 and 0.98, respectively, were achieved by the KF2 formula. Meanwhile, RI and G&K formulas performed well with the second and third highest MCC/AUC of 0.70/0.98 and 0.66/0.93, respectively. Meanwhile, the formulas and indices with the lowest values of MCC/AUC were SiF, S&L and EF (-05.6/0.02, 0.01/0. 31 and 0.17/0.70, respectively). These prediction performances indicated that only a few formulas and indices, e.g. G&K, RI and KF2, performed well on our dataset.
Fig. 3

Performance comparison of existing discriminant formulas and indices using ROC curves

Performance comparison of existing discriminant formulas and indices using ROC curves

Evaluation of the proposed discriminant model

To develop a machine learning-based discriminating model, prediction performance depends on the parameter(s) used. In this study, five popular classifiers were considered, e.g. k-NN, DT, RF, ANN and SVM. To make fair comparison with existing formulas and indices, the same dataset was used. Furthermore, a 5-fold CV and external validation tests were carried out. As described above, the internal and external datasets were constructed with a random sampling procedure. To objectively evaluate the impact of the random sampling procedure, we repeated this construction 100 times. Table 4 and Fig. 4 list performance comparisons of various models using different methods over the 5-fold CV and external validation schemes.
Table 4

Performance comparisons between DT, RF and SVM models in differentiation of iron deficiency anemia from thalassemia trait

ClassifierValidationAc (%)Sp (%)Sn (%)MCCYIAUC
k-NN5-fold CV92.36 ± 1.6790.48 ± 3.6292.80 ± 1.760.76 ± 0.060.83 ± 0.040.81 ± 0.07
External92.54 ± 4.2690.09 ± 10.7993.35 ± 4.220.77 ± 0.140.83 ± 0.130.80 ± 0.10
Independent90.2083.33100.000.820.830.85
DT5-fold CV98.03 ± 0.9196.15 ± 3.4098.54 ± 0.990.94 ± 0.0260.93 ± 0.061.00 ± 0.00
External93.83 ± 4.1086.86 ± 11.1696.22 ± 3.770.82 ± 0.120.82 ± 0.040.92 ± 0.06
Independent92.1686.21100.000.850.851.00
RF5-fold CV94.17 ± 1.2688.15 ± 3.4995.75 ± 0.950.83 ± 0.040.83 ± 0.040.97 ± 0.01
External94.62 ± 3.2990.07 ± 8.9996.13 ± 3.190.84 ± 0.100.84 ± 0.070.98 ± 0.02
Independent92.1686.21100.000.850.851.00
ANN5-fold CV94.11 ± 1.3186.75 ± 3.5896.14 ± 1.060.83 ± 0.040.83 ± 0.040.97 ± 0.02
External93.78 ± 3.7186.81 ± 10.8496.22 ± 3.300.82 ± 0.110.83 ± 0.110.98 ± 0.02
Independent94.1289.29100.000.890.891.00
SVM5-fold CV95.05 ± 1.0689.81 ± 2.6696.45 ± 0.960.85 ± 0.030.85 ± 0.040.97 ± 0.01
External95.59 ± 2.7692.49 ± 8.4796.74 ± 2.590.87 ± 0.080.87 ± 0.100.98 ± 0.03
Independent96.0892.59100.000.920.921.00

The data are shown as mean ± standard deviation (100 times)

Ac Accuracy; ANN Artificial neural network; AUC Area under receiver operating curve; DT Decision tree; k-NN k-nearest neighbor; MCC Matthew’s correlation coefficient; RF Random forest; Sn Sensitivity; Sp Specificity; SVM Support vector machine; YI Youden’s index; 5-fold CV 5-fold cross validation

Parameters of k-NN (k), RF (ntree, mtry), ANN (size, decay) and SVM (cost, γ) were optimized by a 5-fold CV procedure. Values of k, ntree, mtry, size, decay, cost and γ are 5, 200, 2, 4, 0.5, 8 and 0.5

Fig. 4

Performance comparisons among k-NN, DT, RF, ANN and SVM models using ROC curves over 5-fold CV (a) external test (b) and independent test (c), where k-NN, DT, RF, ANN and SVM models are represented by pink, green, red, black and blue, respectively

Performance comparisons between DT, RF and SVM models in differentiation of iron deficiency anemia from thalassemia trait The data are shown as mean ± standard deviation (100 times) Ac Accuracy; ANN Artificial neural network; AUC Area under receiver operating curve; DT Decision tree; k-NN k-nearest neighbor; MCC Matthew’s correlation coefficient; RF Random forest; Sn Sensitivity; Sp Specificity; SVM Support vector machine; YI Youden’s index; 5-fold CV 5-fold cross validation Parameters of k-NN (k), RF (ntree, mtry), ANN (size, decay) and SVM (cost, γ) were optimized by a 5-fold CV procedure. Values of k, ntree, mtry, size, decay, cost and γ are 5, 200, 2, 4, 0.5, 8 and 0.5 Performance comparisons among k-NN, DT, RF, ANN and SVM models using ROC curves over 5-fold CV (a) external test (b) and independent test (c), where k-NN, DT, RF, ANN and SVM models are represented by pink, green, red, black and blue, respectively As seen in Table 4, the DT model yielded the highest prediction results over the 5-fold CV with a mean Ac, Sp, Sn, MCC, YI, and AUC of 98.03, 96.15, 98.54%, 0.94, 0.93, and 1.00, respectively, while the SVM and RF models performed well with the second and third best prediction results. On the other hand, the SVM model was more effective than the DT model over the external validation test with a mean Ac, Sp, Sn, MCC, YI, and AUC of 95.59, 92. 49%, 96.74%, 0.87, 0.87, and 0.98, respectively. Interestingly, the SVM model still achieved levels of discrimination between IDA and TT on the independent dataset with means of Ac, Sp, Sn, MCC, YI, and AUC being 96.08, 92.59, 100.00%, 0.92, 0.92, and 1.00, respectively. As mentioned in the section Data collection, the dataset used in this study is imbalance among IDA and TT samples. Thus, we utilized a resampling approach to randomly generate a balanced internal set consisting of 32 IDA and 32 TT samples, the remaining samples consisting of 8 IDA and 114 TT sample were used as an external set. To objectively evaluate the impact of random sampling, we repeated this process with 100 independent iterations to generate the balanced internal and new external sets for constructing SVM models. The average prediction results (Ac and MCC) performed on the balanced internal and new external sets were (92.75%, 0.88) and (94. 30%, 0.77), respectively. These results indicated that SVM model can tackle the imbalanced dataset problem and provide desirable prediction results [48]. By observing the performance comparisons in Table 4 and Fig. 4, we conclude that DT model shows the highest performance level when evaluated by 5-fold CV, while SVM model outperform that other conventional models over the external validation test and independent dataset. This observation is consistent with the previous works [28, 49]. Furthermore, many studies have mentioned that the overfitting is the major problem of DT model [50, 51]. For convenience, this best predictor for discriminating between IDA and TT (based on SVM model) will be referred to as ‘ThalPred’. For convenience, this best predictor for discriminating between IDA and TT (based on SVM model) will be referred to as ‘ThalPred’.

Extracted important rules obtained from the RF model

The interpretable rules were established by using the RF model to demonstrate the combination of RBC indices for discriminating IDA from TT. Table 5 presents the eight interpretable rules as conditions in a simple linguistic manner, where Frequency (%) is the percentage of a data satisfying a condition, Error is the error percentage of a rule and Prediction is the outcome of a rule.
Table 5

The extracted interpretable rules derived from RF model in differentiation of iron deficiency anemia from thalassemia trait

LengthFrequency (%)Error (%)ConditionPrediction
163.980.00Hb > 10.95TT
215.050.00RBC ≤ 4.5 and Hb ≤ 10.45IDA
111.290.00RDW ≤ 17.15TT
34.840.00RBC > 4.59 and Hb ≤ 10.95 and RDW > 17.7IDA
42.150.00RBC > 4.28 and MCHC ≤32.15 and RDW > 17.15 and RDW ≤ 17.7TT
31.080.00Hb ≤ 11.45 and MCHC > 31.35 and RDW > 17.4IDA
11.6133.00ElseTT

Hb Hemoglobin; IDA Iron deficiency anemia; MCHC mean corpuscular hemoglobin concentration; RBC red blood cell count; RDW red blood cell distribution width; TT Thalassemia trait

The extracted interpretable rules derived from RF model in differentiation of iron deficiency anemia from thalassemia trait Hb Hemoglobin; IDA Iron deficiency anemia; MCHC mean corpuscular hemoglobin concentration; RBC red blood cell count; RDW red blood cell distribution width; TT Thalassemia trait The first rule, which covers 63.98% of the whole data, was constructed with single RBC indices, e.g. Hb. This rule has one criterion: if the value of Hb is larger than 10.95 g/dL, then the prediction is TT. The second rule, which covers 15.05% of whole data, was constructed with two RBC indices, e.g. RBC and Hb. This rule has two criteria: if (i) the value of RBC is equal to or less than 4.5 × 106/μL and (ii) the value of Hb is equal to or less than 10.45 g/dL, then the prediction is IDA. The third rule, which covers 11.19% of the whole data, was depicted with single RBC indices, e.g. RDW. This rule has one criterion: if the value of RDW is equal or less than 17.15%, then the prediction is TT. The fourth rule, which covers 4.84% of the whole data, is constructed with three RBC indices, e.g. RBC, Hb and RDW. This rule has three criteria: if (i) the value of RBC is greater than 4.59 × 106/μL and (ii) the value of Hb is equal to or less than 10.95 g/dL and (iii) the value of RDW is greater than 17.7%, then the prediction is IDA. The fifth rule, which covers 2.15% of whole data, was constructed with three RBC indices, e.g. RBC, MCHC and RDW. This rule has four criteria: if (i) the value of RBC is greater than 4.28 × 106/μL and (ii) the value of MCHC is equal to or less than 32.15 g/dL and (iii) the value of RDW is greater than 17.15% and (iv) the value of RDW is greater than 17.7%, then the prediction is TT. The sixth rule, which covers 1.08% of whole data, was constructed with three RBC indices, e.g. Hb, MCHC and RDW. This rule has three criteria: if (i) the value of Hb is equal to or less than 11.45 g/dL, (ii) the value of MCHC is greater than 31. 35 g/dL, and (iii) the value of RDW is greater than 17.4%, then the prediction is IDA. The seventh rule covers 1. 61% of the whole data. If a query has RBC indices which do not satisfy any of the seven interpretable rules, then it is classified as TT with an error of 33.00%.

Web-based tool implementation

For the convenience of health care team, based on the best model (e.g. SVM model) proposed in the present work, a publicly accessible web-based tool for ThalPred has been established. A screenshot of the ThalPred is shown in Fig. 5. Furthermore, to maximize user’s convenience, a step-by-step walkthrough of the procedures for using the ThalPred web based tool is provided below.
Fig. 5

Screenshots of the ThalPred web-based tool before (a) and after (b, c) submission of laboratory data, which is available at http://codes.bio/thalpred/

Screenshots of the ThalPred web-based tool before (a) and after (b, c) submission of laboratory data, which is available at http://codes.bio/thalpred/ Step 1. Open the web-based tool at http://codes.bio/thalpred/. Step 2. There are two options for prediction: 1) Key the single data in the input parameters panel. 2) Upload the query patient’s RBC indices (RBC, Hb, Hct, MCV, MCH, MCHC and RDW) into the input box by clicking on the Choose file button. The input data should be in CSV format. For example, of patient’s RBC indices in CSV format, click the insert example data above the input box. Finally, press on the Submit button to initiate the prediction process. Step 3. Prediction results are automatically displayed in a grey box found below the Status/Output heading. Users can also download the prediction results as a CSV file by pressing on the Download results bottom.

Discussion

Anemia is crucial problem occurring with population in Thailand and affecting to health and economic system. HMA, such as TT and IDA, are found commonly in clinical laboratory. Discrimination between TT and IDA group is essential for correct genetic counseling and effective treatment. RBC indices, consisting of RBC, Hb, Hct, MCV, MCH, MCHC and RDW, are generated from complete blood count (CBC) analysis using automated instruments. Therefore, using parameters from the CBC result for differentiation is of much interest. Generally, the RBC count, Hb, MCV, MCH and RDW are used to formulate a new index. As a result of the anemic condition, subjects with TT are found to have an increased RBC count [22, 52, 53]. While blood films from individuals with TT or IDA have shown different levels of anisocytosis (a condition of variation in sizes of RBC). Most of IDA patients appeared to have higher RDW than TT patients [22, 54]. The results of both univariate (Table 2) and multivariate (Fig. 2) analyses are agreeable with previous studies. Hence, one parameter is not enough to discriminate between these two conditions and all RBC parameters have potential role on the differentiation. Previously, several discriminant formulas and indices have been proposed by different researchers for discrimination between IDA from TT [8-19]. However, these formulas and indices are not appropriate for every population. In Thailand, many researchers attempted to utilize these existing formulas and indices with different interest groups, e.g. school children [55], adults [56], anemic vegetarians [57], etc. In this study, the group of dataset composed of adults between 18 to 50 years old. Our finding showed that G&K, RI and KF2 performed well on our dataset. Interestingly, the top- three formulas and indices demonstrated the highest performance harboring of RDW and 2 of 3 consisting of RBC parameter. Prior studies utilizing data from Thai people also found that most formulas containing RBC and RDW yielded a high performance. Pornprasert et al. suggested that SI and SF are the most reliable formulas [55], whereas RI was found to be most efficient in studies by Plengsuree et al. [56] and Sirachainan et al [18]. Conversely, S&L (which does not contain RBC and RDW) was proposed as a suitable index for differentiation in young Asians. It achieved 100% Sn and high Sp in Indian and Taiwanese [22, 54]. Our findings demonstrated consistent results to the previous publications that RBC and RDW play key roles in accurately distinguishing these two diseases. However, 89.8% Ac is not sufficient for medical decision making [58, 59]. Therefore, we attempted to increase the efficiency and accuracy of discrimination between TT and IDA in Thai adults by constructing a new model from hematological indices via machine learning approach. As seen in Table 3 and Fig. 3, the prediction performances of the existing formulas and indices are still not satisfactory and there is room for improvement. Computational models based on machine learning approaches may further enhance prediction performance as well as provide effective large-scale analysis of available clinical data. The final prediction performances of the 5-fold CV and external validation tests were obtained by averaging the 100 corresponding performances of the internal and external sets, respectively. Furthermore, an independent dataset (Table 6) was used to assess the true predictive power of our proposed discriminating model.
Table 6

The prediction results derived from DT, RF and SVM models in differentiation of iron deficiency anemia (IDA) from thalassemia trait (TT)

No.RBCHbHctMCVMCHMCHCRDWDiagnosisPrediction
k-NNDTRFANNSVM
15.3510.633.061.719.832.113.7TTTTTTTTTTTT
25.4010.934.163.220.232.014.5TTTTTTTTTTTT
35.4010.333.061.119.131.214.2TTTTTTTTTTTT
46.0112.338.363.720.532.113.2TTTTTTTTTTTT
55.5511.033.460.219.832.913.2TTTTTTTTTTTT
66.0412.939.665.621.432.613.5TTTTTTTTTTTT
75.9013.140.067.822.232.812.7TTTTTTTTTTTT
85.9512.639.065.621.232.313.4TTTTTTTTTTTT
96.1112.739.564.720.832.213.7TTTTTTTTTTTT
105.4511.836.667.121.732.314.0TTTTTTTTTTTT
115.4011.034.063.020.432.412.8TTTTTTTTTTTT
125.4011.034.063.020.432.414.0TTTTTTTTTTTT
136.2012.437.260.020.033.312.6TTTTTTTTTTTT
145.4010.733.061.119.832.413.6TTTTTTTTTTTT
156.1112.338.062.220.132.412.6TTTTTTTTTTTT
163.407.724.170.922.732.020.1IDAIDAIDAIDAIDAIDA
174.6611.334.473.824.332.921.0IDATTTTTTIDATT
184.5410.632.872.323.432.321.0IDAIDAIDAIDAIDAIDA
193.507.925.272.022.631.421.2IDAIDAIDAIDAIDAIDA
204.159.929.069.923.934.120.2IDATTIDAIDAIDAIDA
213.908.928.071.822.831.820.2IDAIDAIDAIDAIDAIDA
224.179.929.069.523.734.121.1IDAIDAIDAIDAIDAIDA
233.858.527.571.422.130.921.3IDAIDAIDAIDAIDAIDA
244.249.830.571.923.132.120.2IDAIDAIDAIDAIDAIDA
254.8311.134.070.423.032.719.0IDATTTTTTTTTT
264.6410.633.071.122.832.120.5IDAIDAIDAIDAIDAIDA
274.019.529.072.323.732.820.4IDAIDAIDAIDAIDAIDA
284.8011.034.070.822.932.421.1IDATTTTTTIDAIDA
293.658.426.071.223.032.320.4IDAIDAIDAIDAIDAIDA
304.009.228.070.023.032.920.1IDAIDAIDAIDAIDAIDA
314.4510.231.470.622.932.519.8IDAIDAIDAIDAIDAIDA
324.4410.332.072.123.232.221.3IDAIDAIDAIDAIDAIDA
334.5610.432.070.222.832.519.4IDAIDAIDAIDAIDAIDA
344.8411.034.070.322.732.420.7IDATTTTTTIDAIDA
363.838.727.070.522.7232.2220.0IDAIDAIDAIDAIDAIDA
373.68.725.069.4424.1734.819.3IDAIDAIDAIDAIDAIDA
383.528.025.071.0222.733221.1IDAIDAIDAIDAIDAIDA
393.989.027.869.8522.6132.3720.7IDAIDAIDAIDAIDAIDA
404.029.028.570.922.3931.5821.1IDAIDAIDAIDAIDAIDA
414.4310.131.470.8822.832.1719.8IDAIDAIDAIDAIDAIDA
424.249.630.070.7522.6432.021.0TTTTTTTTTTTT
435.9412.639.065.721.232.313.0TTIDATTTTIDATT
445.8011.736.362.620.232.213.1TTIDATTTTIDATT
455.4511.435.064.220.932.613.0TTIDATTTTIDATT
465.4011.033.762.420.432.612.5TTIDATTTTIDATT
476.1112.638.563.020.632.714.3TTIDATTTTIDATT
485.8012.236.462.821.033.514.0TTIDATTTTIDATT
495.4410.834.062.519.931.812.7TTIDATTTTIDATT
505.4010.833.061.120.032.713.6TTTTTTTTTTTT
516.0512.338.062.820.332.414.0TTTTTTTTTTTT

ANN Artificial neural network; DT Decision tree; Hb Hemoglobin; Hct Hematocrit; IDA Iron deficiency anemia; k-NN k-nearest neighbor; MCH mean corpuscular hemoglobin; MCHC mean corpuscular hemoglobin concentration; MCV mean corpuscular volume; RBC red blood cell count; RDW red blood cell distribution width; RF Random forest; SVM Support vector machine; TT Thalassemia trait. Parameters of k-NN (k), RF (ntree, mtry), ANN (size, decay) and SVM (cost, γ) were optimized by a 5-fold CV procedure. Values of k, ntree, mtry, size, decay, cost and γ are 5, 200, 2, 4, 0.5, 8 and 0.5

The prediction results derived from DT, RF and SVM models in differentiation of iron deficiency anemia (IDA) from thalassemia trait (TT) ANN Artificial neural network; DT Decision tree; Hb Hemoglobin; Hct Hematocrit; IDA Iron deficiency anemia; k-NN k-nearest neighbor; MCH mean corpuscular hemoglobin; MCHC mean corpuscular hemoglobin concentration; MCV mean corpuscular volume; RBC red blood cell count; RDW red blood cell distribution width; RF Random forest; SVM Support vector machine; TT Thalassemia trait. Parameters of k-NN (k), RF (ntree, mtry), ANN (size, decay) and SVM (cost, γ) were optimized by a 5-fold CV procedure. Values of k, ntree, mtry, size, decay, cost and γ are 5, 200, 2, 4, 0.5, 8 and 0.5 As noticed in Table 6, the four or five prediction models give the prediction results on samples 17 and 25 as TT case, but the correct result is IDA case. These results might be due to the distribution of samples 17 and 25 is close to TT case, as illustrated in Fig. 6. Another reason supported our results is that thalassemia and IDA are most common etiologies of hypochromic microcytic anemia in Thailand therefore, both of them are close differential diagnosis and can coexist together. Prior studies showed that there is frequent occurrence of IDA in TT [60, 61]. Interestingly, this finding inspires us to perform future research for construction new efficient model to distinguish three groups including TT, IDA and coexisting of these two conditions.
Fig. 6

Multivariate analysis using principal component analysis (PCA) of internal (square) and external (circles) sets, where red and blue represent TT and IDA cases, respectively

Multivariate analysis using principal component analysis (PCA) of internal (square) and external (circles) sets, where red and blue represent TT and IDA cases, respectively As shown in Table 4, SVM and RF models perform well with the highest and second highest prediction results, respectively, for correctly discriminating IDA from TT. However, SVM models do not lend themselves as easily to interpretability. SVM is classified as black box model that could work perfectly with unknown data [62] because it overcame the problem of overfitting from DT [63]. According to DT model showed good performance on the training dataset but poor classification to other dataset in case the data is various detail and complex. RF could solve this limitation of DT [64]. Therefore, the seven interpretable rules (Table 5) extracting from RF were provided to represent criteria of each parameters for discrimination. By observing the prediction results listed in Tables 3 and 4, we can clearly find that ThalPred (based on SVM model) has good discriminating power and outperforms all existing formulas and indices with the highest values of MCC (0.92), AUC (1.00) and YI (0.92). Improvements of MCC/YI with 18%/10 and 22%/12% for MCC and YI, respectively, were observed when compared with the best (KF2) and second-best (RI) existing formulas. Hence, ThalPred had better generalization capability for discrimination between IDA from TT than the existing formulas and indices. Further, ThalPred developed in the web server using SVM model [65] is stable and reliable to assist health care team for discrimination. This study is based on the small size [66, 67] of IDA and performed unbalancing dataset [68, 69]. So, the predictor may not be robust enough to apply on a very diverse dataset. As soon as more patients’ data require retraining as the new independent dataset to make the predictor more robust. This suggested that partition of the patients’ age for training dataset to make more sensitive and specific should be considered for the future development of effective models. The mobile application also be one choice for more convenient and available for all users.

Conclusion

Discrimination between patients with IDA and TT is still a challenging problem due to the diversity of populations with anemia. Computational models can accelerate the process of screening HMA patients and save a lot of expenses and time. In this study, we have extracted an interpretable rule and established a web-based tool for discriminating IDA from TT. The prediction results for both cross-validation and independent validation tests on our laboratory data demonstrate the superiority of ThalPred over existing indices and formulas. Furthermore, a user-friendly web-based tool for ThalPred was established at http://codes.bio/thalpred/, by which users can easily obtain the prediction result without the need to follow the mathematical and computational details. We believe that the proposed ThalPred will supplement the existing indices and formulas as well as facilitate the health care provider.
  52 in total

1.  Random forest: a classification and regression tool for compound classification and QSAR modeling.

Authors:  Vladimir Svetnik; Andy Liaw; Christopher Tong; J Christopher Culberson; Robert P Sheridan; Bradley P Feuston
Journal:  J Chem Inf Comput Sci       Date:  2003 Nov-Dec

2.  Evaluation of the diagnostic reliability of different RBC indices and formulas in the differentiation of the beta-thalassaemia minor from iron deficiency in Palestinian population.

Authors:  M Sirdah; I Tarazi; E Al Najjar; R Al Haddad
Journal:  Int J Lab Hematol       Date:  2008-08       Impact factor: 2.877

3.  Differentiation of iron deficiency from thalassaemia trait: a new approach.

Authors:  B M Ricerca; S Storti; G d'Onofrio; S Mancini; M Vittori; S Campisi; G Mango; B Bizzi
Journal:  Haematologica       Date:  1987 Sep-Oct       Impact factor: 9.941

Review 4.  Prevention and control of anemia: Thailand experiences.

Authors:  Pattanee Winichagoon
Journal:  J Nutr       Date:  2002-04       Impact factor: 4.798

5.  Elevated hemoglobin A2 as a marker for β-thalassemia trait in pregnant women.

Authors:  Zhanhui Ou; Qing Li; Weiqiang Liu; Xiaofang Sun
Journal:  Tohoku J Exp Med       Date:  2011-03       Impact factor: 1.848

6.  Discrimination indices as screening tests for beta-thalassemic trait.

Authors:  George Ntaios; Anastasia Chatzinikolaou; Zoi Saouli; Fotios Girtovitis; Maria Tsapanidou; Georgia Kaiafa; Zisis Kontoninas; Androula Nikolaidou; Christos Savopoulos; Ifigenia Pidonia; Stiliani Alexiou-Daniel
Journal:  Ann Hematol       Date:  2007-05-03       Impact factor: 3.673

7.  Reliability of Different RBC Indices and Formulas in Discriminating between β-Thalassemia Minor and other Microcytic Hypochromic Cases.

Authors:  Elahe Bordbar; Mehdi Taghipour; Beth E Zucconi
Journal:  Mediterr J Hematol Infect Dis       Date:  2015-02-20       Impact factor: 2.576

8.  Understanding and using sensitivity, specificity and predictive values.

Authors:  Rajul Parikh; Annie Mathai; Shefali Parikh; G Chandra Sekhar; Ravi Thomas
Journal:  Indian J Ophthalmol       Date:  2008 Jan-Feb       Impact factor: 1.848

9.  Navigating the chemical space of dipeptidyl peptidase-4 inhibitors.

Authors:  Watshara Shoombuatong; Veda Prachayasittikul; Nuttapat Anuwongcharoen; Napat Songtawee; Teerawat Monnor; Supaluk Prachayasittikul; Virapong Prachayasittikul; Chanin Nantasenamat
Journal:  Drug Des Devel Ther       Date:  2015-08-10       Impact factor: 4.162

10.  Part 1: Simple Definition and Calculation of Accuracy, Sensitivity and Specificity.

Authors:  Alireza Baratloo; Mostafa Hosseini; Ahmed Negida; Gehad El Ashal
Journal:  Emerg (Tehran)       Date:  2015
View more
  6 in total

1.  Multi-class classification algorithms for the diagnosis of anemia in an outpatient clinical setting.

Authors:  Rajan Vohra; Abir Hussain; Anil Kumar Dudyala; Jankisharan Pahareeya; Wasiq Khan
Journal:  PLoS One       Date:  2022-07-06       Impact factor: 3.752

2.  Extremely-randomized-tree-based Prediction of N6-Methyladenosine Sites in Saccharomyces cerevisiae.

Authors:  Rajiv G Govindaraj; Sathiyamoorthy Subramaniyam; Balachandran Manavalan
Journal:  Curr Genomics       Date:  2020-01       Impact factor: 2.236

3.  Correction to: ThalPred: a web-based prediction tool for discriminating thalassemia trait and iron deficiency anemia.

Authors:  V Laengsri; W Shoombuatong; W Adirojananon; C Nantasenamat; V Prachayasittikul; P Nuchnoi
Journal:  BMC Med Inform Decis Mak       Date:  2019-11-19       Impact factor: 2.796

4.  A machine learning-based predictor for the identification of the recurrence of patients with gastric cancer after operation.

Authors:  Chengmao Zhou; Junhong Hu; Ying Wang; Mu-Huo Ji; Jianhua Tong; Jian-Jun Yang; Hongping Xia
Journal:  Sci Rep       Date:  2021-01-15       Impact factor: 4.379

5.  Role of Red Cell Indices in Screening for Beta Thalassemia Trait: an Assessment of the Individual Indices and Application of Machine Learning Algorithm.

Authors:  Aarzoo Jahan; Garima Singh; Ruchika Gupta; Namrata Sarin; Sompal Singh
Journal:  Indian J Hematol Blood Transfus       Date:  2020-10-27       Impact factor: 0.915

6.  iQSP: A Sequence-Based Tool for the Prediction and Analysis of Quorum Sensing Peptides via Chou's 5-Steps Rule and Informative Physicochemical Properties.

Authors:  Phasit Charoenkwan; Nalini Schaduangrat; Chanin Nantasenamat; Theeraphon Piacham; Watshara Shoombuatong
Journal:  Int J Mol Sci       Date:  2019-12-20       Impact factor: 5.923

  6 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.