1. INTRODUCTION
accurate algorithms and diagnostic methods. Diagnosis involves identifying the diseases or conditions responsible for a patient’s signs and symptoms [3]. Despite advances, unmet needs remain in early disease detection, particularly when signals are complex and patients exhibit diverse underlying symptoms, challenging healthcare professionals developing diagnostic tools [4].
Anemia is a widespread condition characterized by a lowerthan-normal hemoglobin concentration in the blood. It can affect overall health and well-being, causing fatigue, weakness, dizziness, shortness of breath, and an increased risk of infections [1]. Anemia is a major public health concern affecting a large portion of the global population. It can result from nutrient deficiencies, genetic disorders, chronic diseases, and certain medications. Early and accurate diagnosis and treatment are therefore essential to preventing complications and improving the quality of life of those affected [2].
Creating an efficient and accurate AI model requires data preprocessing to enhance inputs and improve model precision. Feature scaling and selection are important for prediction efficiency [5]. Their combined use can enhance diagnosis [6, 7]. Integrating RCNN aims to combine the strengths of RNN and CNN with XGBoost; the latter can handle diverse datasets,
In medicine, artificial intelligence (AI) focuses on designing perform well across different challenges, and produce accurate predictions at low computational cost [8, 9].
2. LITERATURE REVIEWS
Anemia is a widespread condition characterized by a lowerthan-normal hemoglobin concentration in the blood. It can cause fatigue, weakness, dizziness, shortness of breath, and an increased risk of infections. As a major public health concern, anemia can result from nutrient deficiencies, genetic disorders, chronic diseases, or medications. Early diagnosis and treatment are essential to preventing complications and improving quality of life [2].
AI research in medicine aims to develop accurate algorithms and diagnostic methods. Despite advances, early disease detection remains challenging when signals are complex and patients have diverse symptoms [10]. Preprocessing, feature scaling, and feature selection work together to improve model inputs and diagnostic performance. Combining RCNN with XGBoost is intended to leverage the strengths of recurrent and convolutional networks while maintaining efficient classification.
3. THEORETICAL BACKGROUND
This section introduces concepts that support the design of an AI model for disease detection and provide context for the research process.
3.1 Data Preprocessing
Feature scaling and selection are applied to preprocess data before it is fed into the proposed model.
3.1.1 Feature Scaling
Feature scaling adjusts data values to a defined range so that a model can perform more effectively. Depending on the data and the problem, common techniques include [15, 16]:
- Min–Max scaling: Scales features to a defined range, typically 0 to 1.
- Robust scaling: Uses the interquartile range, improving resistance to outliers.
- Normalization: Scales features to equal unit norms. It is useful when feature magnitude is irrelevant and only direction matters, as in some clustering algorithms.
3.1.2 Feature Selection
Feature selection identifies the features that contribute most to prediction and reduces the number of input variables. Common techniques include [13, 17]:
- Filter methods: Select features using statistical tests such as chi-squared, correlation, mutual information, SelectKBest, or variance threshold.
- Wrapper methods: Evaluate feature subsets by model performance using recursive feature elimination, forward selection, or backward elimination.
- Embedded methods: Integrate selection into model training, as in Lasso regression, decision trees, and random forests.
- Dimensionality reduction: Map high-dimensional data to a lower-dimensional space while retaining information, using methods such as PCA and t-SNE.
3.2 Machine Learning and Deep Learning Models
AI has the potential to improve disease diagnosis through more accurate and efficient methods [18]. Several pivotal models can be used to address this challenge.
3.2.1 Machine Learning Models
Machine learning (ML) analyzes samples and draws conclusions using mathematical and statistical methods. Random Forest (RF) and Multilayer Perceptron (MLP) can analyze large datasets, identify patterns, and generate predictions. Their use in anemia diagnosis has been studied [19, 20]. Ensemble methods such as XGBoost have also been applied to disease prediction [14].
3.2.2 Deep Learning Models
Deep learning (DL), a subfield of ML, uses neural-network architectures and is applied in healthcare, visual recognition, and text analytics [21, 12, 22]. Real-world data for DL modeling may be sequential, two-dimensional (such as images), or tabular. Recurrent Neural Networks (RNNs) and Convolutional Neural Networks (CNNs) are widely used; a Recurrent Convolutional Neural Network (RCNN) combines convolutional and recurrent layers, using convolutional features to model temporal relationships [11, 23].
Long Short-Term Memory (LSTM) units capture temporal dependencies using forget, input, and output gates. Optimization algorithms further support efficient training, including Stochastic Gradient Descent (SGD), Adam, and AdaDelta [24, 25, 26].
4. PROPOSED MODEL DESIGN
Machine learning algorithms that learn to assign instances to classes are central to classification in diagnostic and prediction systems. We first evaluated 11 algorithms: LogitBoost, Random Forest (RF), Decision Tree (DT), XGBoost (XGB), Gradient Boosting (GB), Multilayer Perceptron (MLP), AdaBoost, Logistic Regression (LR), Support Vector Machine (SVM), CatBoost, and K-Nearest Neighbor (KNN). These algorithms process datasets, detect patterns and correlations, and produce predictions.
4.1 Algorithm Selection and Refinement
Experiments with parameter values, feature scales, and selection criteria were used to refine the algorithms. LogitBoost, RF, XGBoost, LR, and MLP were identified as promising candidates. Robust Scaler was used for feature scaling and SelectKBest with the F-score for feature selection. Hyperparameters were tuned to improve performance.
4.2 Deep Learning Model Comparison
CNN, RNN, and RCNN were evaluated on the datasets described in Section 5.1. RCNN was selected as the candidate for the hybrid model based on its testing results.
Proposed automated anemia diagnosis and reported 96.09% accuracy for Naive Bayes.
Identified algorithms for blood-data prediction to support diagnosis.
Alsheref [13] 2019 LogitBoost, Random Forest, Decision Tree, regression, KNN, Bayesian Network, MLP, Naive Bayes, and SVM
Reported training and testing results and used hidden trends in disease signatures.
Compared ML algorithms and filter, wrapper, and embedded feature-selection methods.
4.3 Proposed Hybrid Model: RCNNX
The proposed model combines RCNN, feature scaling, feature selection, and XGBoost. RCNN generates predicted class probabilities, which are used to train XGBoost to refine the predictions. This approach uses RCNN for feature extraction and XGBoost for classification.
4.4 RCNNX Algorithm
Input: Dataset in an Excel file. Output: Training and testing loss/accuracy plots and saved models.
1. Load the data and split it into feature matrix X and target vector y.
2. Encode labels and handle missing values.
3. Split the data into training, testing, and validation sets.
4. Scale the data using Robust Scaler.
5. Select the top K features using SelectKBest with the F-score function, and remove unselected features.
6. Reshape the inputs for the RCNN model.
7. Build the RCNN with a bidirectional LSTM layer, convolutional layer, pooling layer, flatten layer, and Softmax output layer.
8. Compile the RCNN using Adam, categorical crossentropy loss, and accuracy metrics.
9. Define callbacks for early stopping, model checkpointing, and learning-rate reduction.
10. Train and validate the RCNN model.
11. Extract and reshape the RCNN predicted probabilities into a two-dimensional matrix.
12. Define a custom XGBoost objective function using the gradient and Hessian.
13. Train and evaluate XGBoost using the RCNN probabilities, then save both trained models.
14. Plot the accuracy and loss results.
4.5 Proposed Model Architecture
The RCNNX architecture incorporates a bidirectional LSTM layer, convolutional and pooling layers, flattening, and output layers. Figure 1 shows how the design combines CNN and RNN technologies. XGBoost is used to handle highdimensional data efficiently and produce accurate predictions at low computational cost.
5. EXPERIMENTAL RESULTS AND DISCUSSION
This section reports results from combining ML and DL methods and compares the performance of the evaluated models.
5.1 Dataset Description
Two CBC datasets were used to train and test the proposed model. Dataset2 is a private dataset containing encoded and unlinked clinical laboratory data from 2012–2015, obtained
Jaiswal et al. [12]
2019 Naive Bayes, Random Forest, and Decision Tree
Selecting an appropriate algorithm for CBC data
96.09% 200 records.
Selecting an algorithm for CBC data
98.16% 668 records.
Haider et al. [14]
2022 Artificial Neural Network Diagnosing hematological emergencies
83.1% training; 89.47% testing Clinical usefulness limited.
Vohra et al. [8]
2022 Decision Tree, Logistic Regression, MLP, Naive Bayes, Random Forest, and SVM
Detecting anemia at different stages
94.44% 400 records.
from the Healthcare Molecular and Diagnostic Laboratory in Hyderabad, Pakistan. Table 3 summarizes the datasets.
1,442 samples 5 features Open access Dataset2 Kandhro et al. [11]
2017 Anemia Pakistan
410 samples 21 features Closed access
5.2 Machine Learning Comparative Results
The Anemia Diagnosis Dataset contains two classes (anemia and non-anemia) and 1,442 records. Figure 2 shows the training-phase accuracy metrics using 10-fold crossvalidation; Table 4 reports test results for 25% of the dataset.
Dataset2 contains 410 records and 21 features. Figure 3 presents training-phase accuracy metrics, and Table 5 shows the test results.
5.3 Deep Learning Comparative Results
The Sequential model was trained for 100 epochs. Preprocessing used Standard Scaler and SelectKBest; Adam was used with a learning rate of 0.001. The RNN and RCNN models used LSTM layers with 64 units. Table 6 summarizes the test accuracy.
Algorithm Accuracy Recall Score TNP TRP NPV PPV LogitBoost 1 1 66.66 1 1 1 1 RF 1 1 66.66 1 1 1 1 DT 1 1 66.66 1 1 1 1 NB 93.82 96.95 65.97 89.93 96.95 95.97 92.27 XGB 1 1 66.66 1 1 1 1 GB 1 1 66.66 1 1 1 1 CatBoost 99.43 99.04 66.45 1 99.04 98.65 1 SVM 99.71 1 66.66 99.33 1 1 99.51 KNN 97.19 99.00 66.44 94.83 99.00 98.65 96.13 LR 99.43 1 66.66 98.67 1 1 99.03 MLP 1 1 66.66 1 1 1 1 AdaBoost 1 1 66.66 1 1 1 1
RCNN achieved the highest accuracy for both datasets.
5.4 Proposed Model Results
RCNNX was designed to achieve high accuracy with low execution time. The model explored Min–Max scaling, Robust scaling, and normalization, alongside filter, wrapper,
dimensionality-reduction, and embedded feature-selection methods. Final results used 70% of data for training, 10% for validation, and 20% for testing. Table 7 summarizes the accuracy and recall.
Dataset Accuracy (%) Recall (%) Anemia Diagnosis Dataset 100.00 100.00 Dataset2 95.12 94.64
5.5 Comparison with Prior Studies
Table 8 compares RCNNX with prior studies. The reported results show higher accuracy for the proposed model on the two evaluated datasets.
5.6 Visualization of Model Performance
Training and validation accuracy and loss were monitored for both datasets. Figure 4 shows the recorded curves.
6. CONCLUSIONS
Healthcare systems have advanced substantially, and analysis of pathological reports using deep learning (DL) and machine learning (ML) is a growing research area. This paper exam-
Algorithm Accuracy Recall Score TNP TRP NPV PPV LogitBoost 52.04 52.71 51.32 51.03 52.71 41.67 61.91 RF 47.16 48.89 49.44 42.43 48.89 23.34 69.85 DT 49.51 52.45 51.20 45.23 52.45 39.58 58.18 XGB 54.36 58.57 53.94 45.45 58.57 34.09 69.49 NB 53.39 53.46 51.67 50.00 53.46 20.83 69.18 GB 51.45 53.84 51.85 47.36 53.84 37.50 63.63 CatBoost 45.63 49.33 49.66 35.71 49.33 20.83 67.27 SVM 48.54 51.21 50.60 38.09 51.21 16.66 76.36 KNN 46.60 50.00 50.00 38.70 50.00 25.00 65.45 LR 52.42 53.57 51.72 47.36 53.57 18.75 81.81 MLP 52.33 54.16 52.00 48.57 54.16 34.00 68.42 AdaBoost 52.42 54.28 52.05 48.48 54.28 33.33 69.09
Alsheref [13] (2022) 1,577 records; ANN 89.47
Vohra et al. [8] (2022) 400 records; cross-validation with ML models 94.44
Proposed model (2023) 1,442 and 410 records; Robust Scaler, SelectKBest, RCNN, XGBoost
100.00; 95.12
ined DL and ML approaches for analyzing complete blood count (CBC) test data to support anemia diagnosis.
The developed hybrid model combines RCNN with XGBoost to balance accuracy and processing time. Random Forest was used to determine feature importance and inform featureselection thresholds, while XGBoost was applied as an ensemble classifier. This approach was selected for its flexibility and scalability and for reducing preprocessing requirements. RCNNX integrates Robust Scaler and SelectKBest for scaling and feature selection, RCNN for extracting patterns, and XGBoost for classification of high-dimensional data.
RCNNX achieved accuracies of 100% and 95.12% on the Anemia Diagnosis Dataset and Dataset2, respectively, as reported in Table 7. These results indicate that integrating XGBoost with RCNN can help manage high-dimensional datasets and produce accurate predictions.
6.1 Future Work
Although RCNNX achieved strong results, several directions merit further study:
- Dataset diversity: Add larger and more diverse datasets to improve generalization across populations.
- Feature engineering: Explore advanced featureengineering methods to improve classification accuracy.
- Real-time applications: Investigate deployment for real-time anemia diagnosis in clinical settings.
- Explainability: Improve interpretability to provide healthcare professionals with clearer insights into predictions.
This research highlights the potential of hybrid AI models for disease diagnosis by combining ML and DL techniques. RCNNX provides a framework for CBC data analysis and improved diagnostic support.