An Explainable Stacked Deep Ensemble Framework for Robust Multi-Class Thyroid Disease Classification Using Heterogeneous Convolutional Neural Networks
Zahid Ullah Khan, Javed Khan, Faheem Khan, Aman Muhammad, Hafiz Muhammad Usman Ghani, Suhardi Azliy Junoh
Key points
From the paper's conclusion- This study proposes a stacked ensemble of eight convolutional neural networks (CNNs), comprising DenseNet201, ResNet50, VGG16, VGG19, MobileNetV2, InceptionV3, GoogLeNet, and AlexNet, for the classification of seven thyroid conditions: cold nodule, hot nodule, multinodular goiter (MNG), nodular goiter, thyroiditis, toxic diffuse goiter, and normal thyroid.
Abstract
Accurate classification of thyroid disorders on technetium-99m (99mTc) scintigraphy remains challenging because of substantial visual overlap among disease phenotypes and the limitations of individual deep-learning (DL) architectures in capturing complementary image features. This study proposes a stacked ensemble of eight convolutional neural networks (CNNs), comprising DenseNet201, ResNet50, VGG16, VGG19, MobileNetV2, InceptionV3, GoogLeNet, and AlexNet, for the classification of seven thyroid conditions: cold nodule, hot nodule, multinodular goiter (MNG), nodular goiter, thyroiditis, toxic diffuse goiter, and normal thyroid. The dataset comprised 1601 scintigraphy images collected at the Bannu Institute of Nuclear Medicine, Oncology and Radiotherapy (BINOR), Pakistan, of which 1596 balanced images (228 per class) were included in the evaluation. Stratified 10-fold cross-validation generated out-of-fold (OOF) class probabilities from each base CNN, which were concatenated into 56-dimensional meta-features for training a multinomial logistic-regression meta-learner. The proposed approach was compared with soft voting, weighted voting, and individual CNN classifiers, with performance metrics computed from pooled OOF confusion matrices. The stacked ensemble achieved an accuracy of 95.24%, outperforming voting-based ensembles (93.61%) and the best individual CNN, VGG19 (±92.17%). It also achieved macro-averaged specificity, precision, and F1-score of 99.21%, 95.23%, and 95.19%, respectively, with a Cohen’s κ of 0.9444 and an AUC of 0.9939. Exact McNemar analysis across all error-overlap patterns compatible with the pooled counts confirmed significant improvements over individual CNNs (p ≤ 7 × 10−4), whereas the smaller advantage over voting requires paired testing using per-image predictions. Grad-CAM visualizations qualitatively highlighted thyroid regions, although their localization accuracy was not validated against expert annotations. These findings demonstrate the potential of probability-level stacking to improve multiclass thyroid scintigraphy classification by exploiting complementary representations across CNN architectures. However, the single-center, single-scanner dataset and the absence of demonstrated patient-level independence and external validation limit the generalizability of the results, warranting independent multicenter evaluation before clinical deployment.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Deep learning-based classification of thyroid nodules using uncertainty-aware multi-modal ultrasound imagingScientific Reports · 2026
- An integrated meta-learning and explainable analytics approach for clinical thyroid disease classificationHealthcare Analytics · 2026
- Benign and Malignant Classification of Thyroid Nodules Based on Bilinear Convolutional Neural Network.Journal of imaging informatics in medicine · 2026
- Enhancing automatic diagnosis of thyroid nodules from ultrasound scans leveraging deep learning modelsScientific Reports · 2025
- Deep-Learning Algorithm for Indeterminate Thyroid Nodules: Comparison and Combination with Molecular TestingarXiv · 2026
- A novel hybrid deep learning and chaotic dynamics approach for thyroid cancer classificationScientific Reports · 2025