Explainable Machine Learning With Hybrid Feature Selection for Thyroid Disease Classification: A Case Study in Bangladesh
ABSTRACT Thyroid disease is a prevalent endocrine disorder that requires early and accurate diagnosis for effective treatment. Machine learning (ML) techniques have demonstrated remarkable potential in this domain, offering accurate and efficient diagnostic tools. This study explores a systematic approach involving Exploratory Data Analysis (EDA), feature engineering, and extensive model evaluation to detect thyroid disease. A total of 348 patient records collected at the National Institute of Nuclear Medicine and Allied Sciences (NINMAS), Dhaka, Bangladesh, between October and December 2024 were analyzed. The dataset comprised 217 euthyroid, 51 clinical hyperthyroid, 33 subclinical hyperthyroid, 28 clinical hypothyroid, and 19 subclinical hypothyroid cases. The dataset was partitioned into 70% training and 30% testing sets, with 10‐fold stratified cross‐validation performed on the training set for robust model development and evaluation. This study evaluates conventional and ensemble algorithms for multiclass thyroid disease diagnosis, encompassing euthyroid, hyperthyroid, hypothyroid, subclinical hypothyroid, and subclinical hyperthyroid categories. Validation employed patient‐disjoint partitioning, stratified cross‐validation, and an independent hold‐out set for robust generalization. In the full‐feature baseline, CatBoost and Bagging Ensemble classifiers attained a test accuracy of 96.15%, with macro‐averaged F1 of 94.90%, weighted F1 of 96.09%, Cohen's kappa of 93.29%, and Matthews correlation coefficient of 93.37%. A Variance Threshold (VT) with Mutual Information Gain (MI) feature selection framework preserved these metrics for the Bagging Ensemble while reducing dimensionality, enhancing interpretability without compromising accuracy. Explainable AI (XAI) techniques, SHAP and LIME, were used to interpret feature importance and model behavior, ensuring transparency in decision‐making. Interpretability analysis revealed TSH and free thyroxine (FT4) as the most influential biomarkers driving model outputs. Although constrained by limited sample size and single‐center data acquisition, the framework achieved robust internal validation metrics. These results, while promising, remain provisional and require external validation on larger, multi‐institutional cohorts to establish clinical generalizability.
Authors
- Md. Minhajul Abedin
- M. R. C. Mahdy (ORCID: https://orcid.org/0000-0003-3737-0315)
- Manoshi Das Turjo (ORCID: https://orcid.org/0000-0002-3431-1419)
- Aditta Chowdhury (ORCID: https://orcid.org/0000-0002-8610-8287)
- Sawrav Das
- Arka Chakraborty
Institutions
- Chittagong University of Engineering & Technology (BD)
- North South University (BD)
- Bangladesh Academy of Sciences (BD)
Publication Details
- Journal
- Engineering Reports
- Published
- 2026-07-27
- DOI
- https://doi.org/10.1002/eng2.70980
- Primary Topic
- Thyroid Cancer Diagnosis and Treatment
- Type
- article
- Field-Weighted Citation Impact
- 0.00