Enhancing Thyroid Disease Diagnosis With Machine Learning and Counterfactual Explainable AI
Open Access
- 26 February 2026
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 14, 80346-80370
Abstract
Thyroid disease affects millions worldwide and is often underdiagnosed due to complex symptom overlaps and reliance on laboratory interpretation. Machine learning (ML) offers promise for automated diagnosis, but model transparency remains a barrier to clinical adoption. In this study, we develop an interpretable ML framework for thyroid disease classification using a real-world dataset from the UCI repository. We evaluate five classifiers—including Random Forest, CatBoost, and Support Vector Classifier—under a rigorous nested cross-validation scheme to ensure unbiased performance estimation. Our best models achieve near-perfect accuracy (up to 99.7%) and AUC (1.000) on a reduced set of ten consensus physiological features, demonstrating that high performance can be maintained with parsimonious inputs. To enhance trust and clinical utility, we integrate dual explainable AI (XAI) techniques: SHAP for local feature attribution and counterfactual analysis for actionable "what-if" reasoning. These explanations align closely with known endocrine physiology (e.g., TSH and FTI as primary drivers), supporting their face validity. While limited by class imbalance and lack of external validation, our approach combines strong predictive power with transparent decision-making, offering a foundation for trustworthy clinical decision support systems in thyroid care.Keywords
This publication has 55 references indexed in Scilit:
- Detecting Thyroid Disease Using Optimized Machine Learning Model Based on Differential EvolutionInternational Journal of Computational Intelligence Systems, 2024
- Midline Neck Swellings2024
- Best Practices in Large Database Clinical Epidemiology Research in Hepatology: Barriers and OpportunitiesLiver Transplantation, 2021
- Performance Analysis of Machine Learning Algorithms for Thyroid DiseaseArabian Journal for Science and Engineering, 2021
- Thyroid Disease Prediction Using Machine Learning ApproachesNational Academy Science Letters, 2020
- Machine Learning Techniques for Thyroid Disease Diagnosis: A Systematic Review2020
- Thyroid prediction using ensemble data mining techniquesInternational Journal of Information Technology, 2019
- Executive Functioning Heterogeneity in Pediatric ADHDJournal of Abnormal Child Psychology, 2018
- A novel hybrid decision support system for thyroid disease forecastingSoft Computing, 2018
- Boosting Algorithms: A Review of Methods, Theory, and Applications2012