Anemia is a health problem that negatively affects both medical outcomes and social well-being, highlighting the need for accurate early detection. This study applies a machine learning approach to classify anemia subtypes to support clinical intervention and further examination. The Extra Trees method employs a hierarchical decision-tree structure with extreme randomization, making it robust to overfitting and capable of good generalization on small to medium datasets. Accelerated Particle Swarm Optimization (APSO) is utilized as an efficient optimization technique to improve classification performance. The novelty of this study lies in integrating Extra Trees with APSO to optimize anemia subtype classification. The dataset consists of 385 records collected from a regional hospital in East Java, Indonesia, covering four classes: thalassemia, iron deficiency anemia, anemia of chronic disease, and non-anemia. The features include patient initials, gender, age, and hematological parameters (Hb, HCT, RBC, MCV, MCH, MCHC, RDW). The optimized model achieved 85% accuracy, 87% precision, 85% recall, 85% F1-score, 95% specificity, and 94% AUC, outperforming the non-optimized model. These results indicate that the proposed approach is effective for anemia subtype classification.
Copyrights © 2026