An Explainable Stacked Deep Ensemble Framework for Robust Multi-Class Thyroid Disease Classification Using Heterogeneous Convolutional Neural Networks

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.

Authors

Institutions

Publication Details

Journal
Mathematical and Computational Applications
Published
2026-11-24
DOI
https://doi.org/10.3390/mca31060270
Primary Topic
AI in cancer detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

An Explainable Stacked Deep Ensemble Framework for Robust Multi-Class Thyroid Disease Classification Using Heterogeneous Convolutional Neural Networks

Muhammad Aman, Suhardi Azliy Junoh, Zahid Ullah Khan, Hafiz Muhammad Usman Ghani et al.
Mathematical and Computational Applications
AI in cancer detection
article

An Explainable Stacked Deep Ensemble Framework for Robust Multi-Class Thyroid Disease Classification Using Heterogeneous Convolutional Neural Networks

Muhammad Aman, Suhardi Azliy Junoh, Zahid Ullah Khan, Hafiz Muhammad Usman Ghani, Javed Khan, Faheem Khan
article en

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.

Mathematical and Computational ApplicationsVol. 31(6)
Shanxi Agricultural University (CN), Universiti Sains Malaysia (MY), Harbin Engineering University (CN), University of Science and Technology Bannu (PK), University of Engineering and Technology Peshawar (PK)
AI in cancer detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon