Skip to Content
  • Article
  • Open Access

24 November 2026

35 Pages

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

,
,
,
,
and
1
College of Information and Communication Engineering, Harbin Engineering University, Harbin 150001, China
2
Department of Software Engineering, University of Science and Technology Bannu, Bannu 28100, Pakistan
3
Department of Electrical Engineering, University of Engineering and Technology, Peshawar 25000, Pakistan
4
School of Software, Shanxi Agricultural University, Taigu, Jinzhong 030801, China
Math. Comput. Appl.2026, 31(6), 270;https://doi.org/10.3390/mca31060270 
(registering DOI)
This article belongs to the Special Issue Artificial Intelligence, Machine Learning, and Deep Learning: Innovations and Real-World Applications

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.

1. Introduction

Thyroid diseases are a major public health problem because of their rising prevalence and the complexity of diagnosis. Thyroid abnormalities include many pathological conditions, benign and malignant, that frequently share similar visual features in medical images. Proper treatment planning requires timely and accurate diagnosis [1,2,3]. Diagnosis has traditionally depended on the clinician’s experience, the interpretation of the image and laboratory work, and manual interpretation is affected by observer experience, the complexity of the diagnosis and image quality. These restrictions stimulated computer-aided diagnosis (CAD) systems that can provide accurate, consistent and efficient medical image analysis [4,5]. With the widespread use of high-throughput imaging, artificial intelligence (AI) has shown great promise in medical image analysis, where deep learning (DL) extracts complex hierarchical features automatically from large image collections [6]. Convolutional neural networks (CNNs) learn discriminative spatial representations without manual feature engineering and have been effective for disease detection, classification and segmentation [7]. Their diagnostic value depends on the complexity of the disease pattern, the CNN architecture and its representational capacity [8]. Different architectures emphasize different aspects of an image, so the accuracy of a single classifier can vary from one disease class to another, and one model may not learn all relevant characteristics of thyroid abnormalities [9].
Ensemble learning combines several learners to improve robustness, reduce model bias and stabilize classification [10,11,12]. Fixed rules such as majority voting and probability averaging are simple, but they treat every member as equally reliable and cannot exploit systematic differences between members [13]. Stacked generalization [14,15] instead trains a second-level model on the members’ outputs, so that the combination rule is learned from data. One further requirement in medical AI is explainability: CNNs classify well, but their internal representations make decisions hard to inspect [16], and clinicians need to see what drove a prediction before trusting it [17].
Deep learning (DL) approaches for thyroid scintigraphy have predominantly focused on individual convolutional neural networks (CNNs) and relatively limited classification tasks, including three- or four-class differentiation of Graves’ disease, Hashimoto’s disease, subacute thyroiditis, and normal thyroid glands [18,19,20]; classification of six uptake patterns [21]; binary detection of hypofunctioning lesions [22]; and four-class diagnosis incorporating generative data augmentation [23,24]. Our previous study investigated the same seven diagnostic categories using a modified DenseNet-201 architecture [25]. Although ensemble learning has been explored in thyroid ultrasound classification [26,27], including probability-level averaging [27], and in machine-learning applications involving tabular thyroid data [28,29], the application of heterogeneous CNN stacking to multiclass Tc-99m thyroid scintigraphy has not been identified in the literature reviewed in Section 2. This study therefore addresses an empirical research question: whether learned fusion of heterogeneous CNN predictions provides a measurable improvement over the best individual architecture and fixed probability-averaging strategies when evaluated under a consistent cross-validation framework, and whether the observed improvements exceed the associated sampling uncertainty.
Eight ImageNet-pretrained CNN architectures were selected to represent complementary feature-extraction paradigms rather than being ranked according to their evaluation performance. These include conventional deep architectures (VGG16 and VGG19), an early shallow architecture (AlexNet), multi-scale feature extraction networks (InceptionV3 and GoogLeNet), residual learning (ResNet50), dense feature reuse (DenseNet201), and lightweight inverted-residual learning (MobileNetV2). Their selection was motivated by architectural diversity, availability of pretrained weights for transfer learning, and their relevance to previously investigated scintigraphy classification approaches [18,19,20,22,25]. All models were implemented using MATLAB R2025a on a workstation equipped with an AMD Ryzen 9 7950X processor (16 cores, 32 threads, up to 5.7 GHz), 64 GB Kingston DDR5-6000 RAM, and an NVIDIA GeForce RTX 4080 SUPER GPU with 16 GB memory and 10,240 CUDA cores. The present study extends our previous investigation [25], which classified the same seven thyroid conditions using a modified DenseNet-201 and reported an accuracy of 91.48 ± 2.79% under five-fold cross-validation. In contrast, the present work systematically evaluates eight heterogeneous CNN architectures and three probability-fusion strategies, soft voting, weighted voting, and stacking, using stratified 10-fold cross-validation and pooled out-of-fold (OOF) predictions. The DenseNet-201 baseline achieves a pooled OOF accuracy of 91.98% under the present evaluation protocol, providing a reference for assessing the contribution of ensemble learning. The principal contributions of this study are summarized as follows:
  • A protocol-matched evaluation of eight heterogeneous ImageNet-pretrained CNN architectures for seven-class Tc-99m thyroid scintigraphy, establishing their comparative classification performance.
  • Implementation and evaluation of a multinomial logistic-regression meta-learner trained exclusively on OOF class probabilities, with direct comparisons against soft and weighted voting. The contribution lies in applying and systematically evaluating established stacked generalization for this imaging modality rather than introducing a new learning algorithm.
  • Recalculation of classification metrics from pooled OOF confusion matrices, accompanied by confidence intervals and statistical bounds for paired comparisons, together with explicit reporting of dataset composition and potential sources of evaluation bias.
  • Integration of Grad-CAM visualizations across diagnostic categories and a normalized post hoc confidence score to examine model attention patterns and classification confidence, while distinguishing qualitative interpretability from clinically validated localization.
The rest of the paper is organized as follows. Section 2 reviews related work. Section 3 describes the data, the protocol, the ensemble methods and the statistics. Section 4 presents and discusses the results and the limitations. Section 5 concludes.

3. Materials and Methods

This section describes the data, the pre-processing, the base learners, the validation protocol, the fusion methods, the confidence score, the explanation method and the statistics used to analyze the results.

3.1. Problem Formulation

Let D = { x i , y i } i = 1 N be a set of thyroid scintigraphs xi with expert-assigned diagnostic labels yi ∈ {1,…,C}, where C = 7 is the number of diagnostic classes, including cold nodule, hot nodule, MNG, nodular goiter, thyroiditis, toxic diffuse goiter, and normal. The aim is to learn a mapping f : X → { 1 , … , C } that reproduces the expert label from the image. The base learners are K = 8 pretrained CNNs h1,…,hK. Each one produces a class-probability vector through a SoftMax output layer:
p k c ∣ x = exp s k , c x ∑ c ′ = 1 C exp s k , c ′ x ,     s k x = W k   ϕ k x + b k
where ϕ k x is the feature vector produced by the convolutional part of network k and Wk,bk are the weights and bias of its new, task-specific classification layer. The hard decision of network k is h ^ k x = argmax c p k c ∣ x . The overall workflow is shown in Figure 1 and the ensemble architecture in Figure 2. The probabilities of all networks are concatenated into the meta-feature vector:
z x = [   p 1 x ⊤ ,   p 2 x ⊤ , … , p K x ⊤ ] ⊤ ∈ R KC ,     KC = 8 × 7 = 56 , with   p k x = p k 1 ∣ x , … , p k C ∣ x ⊤
Figure 1. Study design. Solid boxes: steps performed in the reported experiments. Dashed boxes: steps required by the revised protocol that are not yet available.
Figure 2. Stacking architecture. Each of the eight CNNs gives a seven-class SoftMax vector; the vectors form 56 meta-features, from which logistic regression gives the class and the confidence. Soft and weighted voting average the same vectors.

3.2. Dataset

Source and Ethics

The scintigraphs were acquired in the Nuclear Medicine Department of the Bannu Institute of Nuclear Medicine, Oncology and Radiotherapy (BINOR), Bannu, Pakistan, between 2013 and 2023, after approval by the Institutional Ethical Committee under the approval number BINOR-E4 (40)/12, as reported in [25]. All data come from one center and one gamma camera, GE Infinia dual head. Subjects referred for thyroid scintigraphy were assessed by medical experts on the basis of clinical history, thyroid function tests in terms of TSH, T3, T4 and, when necessary, sonography before inclusion. Each patient received 3 to 5 mCi of eluted technetium-99m (Tc-99m) pertechnetate intravenously 30 min before the scan. The protocol collected 300 to 500 k counts to build a 128 × 128-pixel image, stored in DICOM format. Each scan was assigned to one of the seven classes by two nuclear-medicine physicians with more than five years of experience at BINOR, who read the scan together with the clinical and laboratory information. Histopathology or fine-needle aspiration was not used as the reference, so the labels are expert clinical–scintigraphy classifications and not pathological ground truth, and inter-reader agreement was not computed. The origin of the 55 normal studies is not described in the source documents. There are exactly seven classes as depicted in Table 2: cold nodule, hot nodule, multinodular goiter (MNG), nodular goiter, thyroiditis, toxic diffuse goiter and normal. There is no additional or “other” class, and the seven names above are used throughout. Table 2 gives the number of scans per class and the demographic distribution recorded for the patients; the demographic counts are those of [25]. The cohort comprises 1546 scintigraphs of patients with the six thyroid disorders and 55 normal studies, 1601 in total.
Table 2. Composition of the dataset BINOR, Bannu, demographic counts as reported in [25], and class sizes after balancing. “-” means the value is not reported.
The demographic counts are given per patient, and their class totals equal the number of scans per class, which indicates one scintigraph per patient. Image-level fold construction is equivalent to patient-level construction only under this condition.

3.3. Pre-Processing, Class Balancing and Augmentation

Each grayscale image was converted to three channels by replicating the gray values and resized by bilinear interpolation to the input size of each network as illustrated in Table 3 [25]. Intensity normalization was the fixed normalization of the pretrained network’s input layer, so no statistics were computed from other images. Data augmentation was applied to training images only, on the fly: random rotation ± 10°, translation ± 5 pixels, scaling 0.9–1.1, and reflection, as in [25]. The original class sizes are unequal, ranging from 55 to 453 scans, as shown in Table 2. The classes were balanced to 228 images each, the mean class size, by random hybrid resampling: random under-sampling of the larger classes’ cold nodule, MNG, nodular goiter and random over-sampling of the smaller one’s hot nodule, thyroiditis, normal. This gives 7 × 228 = 1596 images, which is the number of images in every confusion matrix of this paper; every row sums to 228. Over-sampling therefore added 96 images to hot nodule 42% of the class, about 120 to thyroiditis 53% and 173 to normal 76%.

3.4. Base Learners

The eight base learners are ImageNet-pretrained CNNs [42] fine-tuned by transfer learning: VGG16 and VGG19 [43], ResNet50 [44], DenseNet201 [45], InceptionV3 [46], GoogLeNet [47], MobileNetV2 [48] and AlexNet [49]. In each network, the last fully connected layer and the classification layer were replaced by a new layer with seven outputs and SoftMax. Table 3 lists their design principle, depth, size and input size. The designs differ in depth, connectivity and receptive-field structure, which is the reason for expecting partly different errors.
Table 3. The eight pretrained CNNs: design principle, depth, number of parameters and input size.

3.5. Validation Protocol and Out-of-Fold Predictions

The protocol is the same for every experiment in this paper and uses ten folds throughout our previous single-network study [25], which used five. These predictions are as follows:
  • Partition. The 1596 images are divided into 10 class-stratified folds of about 160 images, about 23 per class; see the fold-wise matrices in Figure A1 and Figure A2.
  • Out-of-fold probabilities. For every fold f and every network k, the network is trained on the other nine folds and the softmax probabilities are computed for the images of fold f only. Each image receives exactly one probability vector per network from a model that never saw it, giving the meta-feature matrix:
    Z = z 1 OOF ; … ; z N OOF ∈ R N × KC ,     N = 1596 ,   KC = 56 .
  • Hyperparameters. The same recipe in Table 4 was used for every network and every fold. The values were fixed after preliminary trials and were not tuned per fold; the network after the final epoch was used, with no checkpoint selection on the held-out fold.
    Table 4. Training recipe used for every network and every fold.
  • Meta-learner. The meta-learner is fitted on Z and the labels. To keep its evaluation free of optimistic bias, it must itself be applied to rows it was not fitted on: for each fold f it is fitted on the OOF rows of the other nine folds and applied to the OOF rows of fold f.
  • Soft and weighted voting. The soft and weighted voting need no second-level training; weighted voting uses fixed weights, where all the metrics are computed from the pooled OOF predictions.

3.6. Fusion Strategies

Three fusion rules are compared. Each is defined on probabilities or on hard labels, and the symbols are used consistently throughout. Hard (majority) voting operates on discrete labels:
y ^ HV x = argmax c ∑ k = 1 K 𝟙 h ^ k x = c
Soft voting averages the class probabilities, which is a different operation from counting votes:
p ‾ c ∣ x = 1 K ∑ k = 1 K p k c ∣ x ,     y ^ SV x = argmax c   p ‾ c ∣ x
Weighted voting uses non-negative weights that sum to one:
p ~ c ∣ x = ∑ k = 1 K w k   p k c ∣ x ,     w k ≥ 0 ,   ∑ k w k = 1 ,     y ^ WV x = argmax c   p ~ c ∣ x
Stacking replaces the fixed rule by a learned one. The meta-learner is a multinomial (SoftMax) logistic regression on the 56 meta-features,
P y = c ∣ z = exp w c ⊤ z + b c ∑ c ′ = 1 C exp w c ′ ⊤ z + b c ′ ,     y ^ ST = argmax c P y = c ∣ z
fitted by minimizing the regularized cross-entropy on the OOF matrix:
L meta = − 1 N ∑ i = 1 N log P y i ∣ z i OOF + λ ∑ c ∥ w c ∥ 2 2
The model has C(KC + 1) = 7 × 57 = 399 free parameters for 1596 training rows. Equations (1)–(8) apply established components: transfer learning of CNNs, SoftMax classification, out-of-fold prediction and stacked generalization [14,15]. None of the equations is a new mathematical result. The contribution of this paper is the application of these components to seven-class thyroid scintigraphy and their evaluation under one protocol. Training is staged and no joint multi-objective problem is solved. The base CNNs minimize the cross-entropy of their SoftMax output; the meta-learner minimizes L meta ; the confidence score below is computed after prediction and is not part of any training loss.

3.7. Confidence Score

For the final class-probability vector q(x) (the averaged probabilities for voting, P(y∣z) for stacking), the Shannon entropy is normalised by its maximum lnC so that it lies in [0,1], and the confidence is its complement:
U ~ x = − 1 ln C ∑ c = 1 C q c x ln q c x ,     κ conf x = 1 − U ~ x
and the output of the system is the pair y ^ , κ conf . The factor 1/lnC is needed because the entropy of seven classes can reach ln7 = 1.95, so that the unnormalised 1 − U could become negative. The score is a descriptive, post hoc quantity. A proper evaluation requires the OOF probabilities and consists of the mean confidence of correct versus incorrect predictions, the AUROC of U ~ for detecting errors, the expected calibration error with a reliability diagram [50,51], and a risk–coverage curve [52]. This evaluation is not part of the present results. Deep ensembles are a standard route to better uncertainty estimates [53], but agreement between members is not by itself a calibrated probability.

3.8. Explainability: Grad-CAM and Alternatives

Grad-CAM [54] weights the feature maps Ak of a chosen convolutional layer by the spatially averaged gradient of the class score yc:
α k c = 1 Z ∑ i ∑ j ∂ y c ∂ A ij k ,     L Grad − CAM c = ReLU ∑ k α k c A k ,
and the map is up-sampled to the image size. Table 5 compares it with the main alternatives. Grad-CAM was chosen because it needs no change to the network, takes one backward pass per image, is class-discriminative, and is widely used for CNNs on medical images. The 128 × 128 scintigraphs contain a few smooth uptake regions, so coarse maps are less of a limitation than for high-resolution anatomical images. Its weaknesses are real: low spatial resolution, dependence on the chosen layer, and the possibility that maps look plausible without being faithful [40,41].
Table 5. Grad-CAM compared with common alternatives for explaining CNN predictions.
For the revised analysis, the maps are scored against thyroid masks drawn by a physician who did not label the data, using four measures: the pointing game, in which the peak of the map must lie inside the mask [59]; the share of map energy inside the mask; the Dice coefficient and intersection over union of the map thresholded at 50% of its maximum; and deletion and insertion curves, in which the most highlighted pixels are removed or added and the class probability is followed [60]. Correctly and incorrectly classified cases are scored and shown separately. The cases are drawn at random within each class, a fixed number per class and outcome, so that the figure is not a selection of the best-looking maps. These measures are implemented in the supplied script (gradcam_eval.py).

3.9. Evaluation Metrics and Statistical Analysis

From the pooled OOF confusion matrix, every class is scored one-versus-rest (OvR) with TPc, FPc, TNc, FNc:
Sens c = T P c T P c + F N c ,   Spec c = T N c T N c + F P c ,   Prec c = T P c T P c + F P c ,   F 1 c = 2 T P c 2 T P c + F P c + F N c .
All overall sensitivity, specificity, precision and F1 values are macro averages, the unweighted mean over the seven classes. Accuracy is the micro-average, ∑ c T P c / N . Because every class has 228 images, accuracy equals macro-sensitivity and the weighted average equals the macro average. The agreement beyond chance is Cohen’s κ [61] (interpreted with [62]) and the multi-class Matthews correlation coefficient (MCC) [63]. The accuracy columns reported per class are the OvR accuracies (TPc + TNc)/N. For the individual CNNs, mean ± SD over the ten folds is also given. Accuracy is given with a 95% Wilson score interval [64]. Macro-averaged measures are given with a 95% percentile bootstrap interval [65], obtained by resampling each true class from its observed row of the confusion matrix 4000 replicates for each model. Both intervals treat images as independent samples, which is only approximately true if some images are replicas or come from the same patient. Two classifiers evaluated on the same images should be compared with McNemar’s test [66,67], which needs the number of images on which exactly one of them is correct. Per-image predictions are not available for this revision, but the pooled counts of correct decisions constrain the test: given nA and nB correct decisions out of N, the discordant counts b (only A correct) and c (only B correct) satisfy b − c = nA − nB, b ≤ min(nA,N − nB) and c ≤ min(nB,N − nA). The exact two-sided McNemar p-value was computed for every admissible (b,c), which gives the best and the worst case over all possible overlaps of the two classifiers’ errors. If even the worst case is below 0.05 the difference is significant whatever the overlap. The unpaired two-proportion test is also reported; it ignores the pairing. A paired test on the saved predictions, with Holm correction for multiple comparisons, supersedes these bounds.

3.10. Leakage Control, Patient-Level Splitting and Independent Testing

The ten folds of the reported experiments were formed at the image level, stratified by class. Patient identifiers are not part of the files available for this revision, and the demographic counts equal the class totals, which recommends one scan per patient. If that is so, an image-level and a patient-level partition are the same partition, and no patient appears in two folds. This is an inference, not a demonstration. The meta-learner was fitted on out-of-fold probabilities. The reported results include no independent test set and no external dataset. They are cross-validated estimates and are described as such in this paper and not as test-set performance. All images from one patient are stored in one-fold. When a patient has several scans, the folds are built on the patient identifier, stratified by class stratified group k-fold [68], and the partition is checked by counting the patients that occur in more than one-fold, which must be zero. The supplied script make_splits.py builds the partition and performs this check.

Order of Operations That Prevents Leakage:

(1)
An independent test set is held out first, by patient, and stratified by class, and is never used for training, balancing, tuning or the choice of any threshold.
(2)
The remaining development patients are divided into ten patient-level folds.
(3)
Class balancing, intensity normalization and augmentation are fitted or applied inside each training part only, never on the held-out fold.
(4)
The out-of-fold probabilities of the eight CNNs are produced for the development set.
(5)
The meta-learner is fitted exclusively on these out-of-fold rows, and its regularization is chosen by an inner cross-validation over folds.
(6)
For the final evaluation, the CNNs are retrained on the whole development set, the meta-learner is fitted on all development out-of-fold rows, and the system is applied once to the independent test set. Table 6 summarizes the two designs.
Table 6. Data splitting, training, tuning and evaluation: reported experiments and the revised protocol.

4. Results and Discussion

4.1. Experimental Setting

The experiments were implemented in MATLAB R2025a on a workstation equipped with an AMD Ryzen 9 7950X processor, 64 GB RAM, and an NVIDIA GeForce RTX 4080 SUPER GPU (16 GB). Eight CNN architectures, including ResNet50, InceptionV3, DenseNet201, MobileNetV2, VGG16, GoogLeNet, AlexNet, and VGG19, together with soft-voting, weighted-voting, and stacking ensembles, were evaluated using a stratified 10-fold out-of-fold (OOF) validation protocol. The corresponding model training configurations are summarized in Table 4.

4.2. Individual CNNs

The class-wise results of the eight CNNs are given in Table 7, Table 8, Table 9, Table 10, Table 11, Table 12, Table 13 and Table 14 as mean ± SD over the ten folds. Printed standard deviations that are not possible for a proportion are marked with specific symbol which are present at the end of each table, and their means are kept. Class labels follow Section 3.2. The confusion matrices of the ten folds and the pooled OOF matrix are shown for VGG19 Figure A1 and Figure 3, as well as DenseNet-201 Figure A2 and Figure 4, the two networks with the highest pooled accuracy. Their class-wise sensitivities in Table 7 and Table 10 agree with these pooled matrices to within rounding, which was checked for every class.
Table 7. Class-wise performance of VGG19 (mean ± SD over the ten folds).
Table 8. Class-wise performance of ResNet50 (mean ± SD over the ten folds).
Table 9. Class-wise performance of InceptionV3 (mean ± SD over the ten folds), where ‡ marks a mean that was corrected against the pooled matrixand “-” means the value is not reported.
Table 10. Class-wise performance of DenseNet-201 (mean ± SD over the ten folds), where ‡ marks a mean that was corrected against the pooled matrix.
Table 11. Class-wise performance of MobileNetV2 (mean ± SD over the ten folds).
Table 12. Class-wise performance of VGG16 (mean ± SD over the ten folds), where ‡ marks a mean that was corrected against the pooled matrix and “-” means the value is not reported.
Table 13. Class-wise performance of GoogLeNet (mean ± SD over the ten folds), where ‡ marks a mean that was corrected against the pooled matrix and “-” means the value is not reported.
Table 14. Class-wise performance of AlexNet (mean ± SD over the ten folds), where ‡ marks a mean that was corrected against the pooled matrix and “-” means the value is not reported.
Figure 3. Pooled out-of-fold confusion matrix of VGG19 (accuracy 92.17%).
Figure 4. Pooled out-of-fold confusion matrix of DenseNet-201 (accuracy 91.98%).
For all networks, the highest class-wise performance is obtained for normal and thyroiditis F1-scores above 0.95, whose uptake patterns are visually distinct, and the lowest for MNG and nodular goiter, which share overlapping morphology. For VGG19, MNG sensitivity is 0.82, and nodular goiter sensitivity is 0.80; for DenseNet-201, they are 0.78 and 0.84; the weakest values among the eight networks are 0.72 for AlexNet, MNG, and 0.76 for GoogLeNet and AlexNet, nodular goiter.
The fold-wise ROC curves in Figure A3 and Figure A4 show curves close to the upper-left corner for normal, thyroiditis and toxic diffuse goiter in nearly all folds AUC about 0.99 to 1.00, cold and hot nodules with AUC about 0.97 to 1.00, and more variable curves for MNG AUC about 0.95 to 0.99 and nodular goiter mostly above 0.95 for VGG19 and above 0.96 for DenseNet-201. The variation across folds is largest for these two classes, as expected from the overlap of their uptake patterns. Fold-wise AUC values were read from the legends of the curves and not recomputed.

4.3. Overall Performance of the Individual CNNs

Table 15 gives the overall performance of the eight CNNs. Sensitivity, specificity, precision and F1-score are macro averages over the seven classes, shown as mean ± SD of the tenfold-wise values. The accuracy column reports the pooled OOF accuracy over all 1596 images, with its Wilson interval. This is the same quantity as in the bar chart in Figure 5. The intervals of the six networks without a printed matrix are approximate, because their counts are back-calculated from one-decimal accuracies.
Table 15. Overall performance of the eight CNNs: macro-averaged measures (mean ± SD over the ten folds, as printed) and pooled out-of-fold accuracy with its Wilson interval.
Figure 5. Effectiveness comparison of the models and ensemble techniques (accuracy, %).
DenseNet201 and VGG19 are the two best single networks, with pooled accuracies of 91.98% and 92.17%. Their dense connectivity and deep plain hierarchy, respectively, preserve fine texture information that matters for faint uptake differences. ResNet50, InceptionV3 and VGG16 are close behind, at 91.0 to 91.7%. The lightweight MobileNetV2 89.8%, GoogLeNet 88.4% and AlexNet 88.8% trail, consistent with their smaller capacity, but they keep high specificity 0.98. The 95% intervals of the eight networks overlap broadly, so the ranking among the top five should not be over-interpreted.

4.4. Fusion of the CNNs: Voting and Stacking

Figure 6 and Figure 7 show the pooled OOF confusion matrices of soft voting identical to weighted voting and of stacking. The separate matrix of weighted voting and the repeated matrix of the best ensemble in the original submission are omitted to reduce the number of figures. Soft voting and weighted voting produced the same matrix: 1494 of 1596 correct, 93.61%. Voting makes 102 errors, 76 of them in MNG (40) and nodular goiter (36): MNG samples are confused with hot nodule (13), nodular goiter (10) and cold nodule (9), and nodular goiter with toxic diffuse goiter (17). Stacking reduces the errors to 76, with an accuracy of 95.24%. Of the 26 errors removed, 23 are in these two classes: MNG −12, nodular goiter −11; cold nodule (−3) and toxic diffuse goiter (−2) improve slightly, while hot nodule (+1) and thyroiditis (+1) each gain one error.
Figure 6. Confusion matrix of soft voting, identical to that of weighted voting (pooled out-of-fold).
Figure 7. Confusion matrix of the stacked ensemble (pooled out-of-fold).
Every class-wise and overall value of the ensembles was recomputed from the matrices in Figure 6 and Figure 7. Table 16 gives the overall results with confidence intervals.
Table 16. Overall performance of the best single CNNs and the ensembles, recomputed from the pooled out-of-fold confusion matrices.
The averaging is stated for every reported figure. Table 17 gives the micro, macro and weighted averages for the best networks and the ensembles, to separate them clearly: accuracy is the micro average; precision, recall, sensitivity, specificity and F1 are macro averages unless a class is named; and weighted averages are listed only to show that they equal the macro averages for balanced classes. Table 18 gives the soft and weighted voting results, which share one matrix; and Table 19 gives the class-wise results. The last column of these tables is the balanced accuracy (Sens + Spec)/2. A class-wise AUC cannot be derived from a confusion matrix; the overall AUC values of 0.99 for the single CNNs and 0.9939 for stacking are those produced by the evaluation code from the probability outputs and are reported as such.
Table 17. Micro-, macro- and weighted-average metrics (%), recomputed from the pooled confusion matrices.
Table 18. Class-wise performance of soft voting, which is identical to weighted voting (%), recomputed from the pooled confusion matrix.
Table 19. Class-wise performance of the stacked ensemble (%), recomputed from the pooled confusion matrix.
The accuracy of the stacked ensemble 95.24%, 95% CI 94.08 to 96.18 lies above the interval of the best single CNN, VGG19 90.75 to 93.39, whereas its interval overlaps slightly with that of voting 92.30 to 94.71 as shown in Figure 8. Table 20 gives the formal comparisons. The gain of stacking over each single CNN is significant, whatever the overlap of the errors; worst-case exact McNemar p = 3.3 × 10−4 and 6.7 × 10−4. The gain of stacking over voting +1.63 points, 26 images is at the margin: the unpaired test gives p = 0.045, and the exact paired p-value lies between 3 × 10−8 and 0.061 depending on how much the two systems’ errors overlap, so it cannot be declared significant at the 5% level from the pooled counts alone. The gain of voting over the best single CNN is not significant by the unpaired test p = 0.075–0.113. A paired McNemar test on the saved per-image predictions with Holm correction is required to settle the stacking–voting comparison. All p-values treat images as independent.
Figure 8. Accuracy of the single CNNs and the ensembles with 95% Wilson intervals. The intervals of the six networks without a printed matrix are approximate.
Table 20. Paired and unpaired comparison of accuracies.
Mean ± SD over folds is given for the single CNNs as mentioned in Table 15. Fold-wise ensemble metrics require the per-fold predictions of the meta-learner and cannot be derived from the pooled matrix. They are produced by the supplied script, and in this manuscript the variability of the ensemble estimates is expressed by the Wilson and bootstrap intervals above.

4.5. Why Fusion Helps: Complementarity of the CNNs

Averaging or stacking can only improve on the best member if the members’ errors are not identical [69,70,71]. The following evidence is available from the results at hand: (i) The members rank differently by class as listed in Table 21: for MNG the single-network sensitivity ranges from 0.72 to 0.82, for nodular goiter from 0.76 to 0.84, for toxic diffuse goiter from 0.85 to 0.95, and the best network is not the same one for every class VGG19 for cold nodule and MNG, ResNet50 for hot nodule and toxic diffuse goiter, DenseNet-201 for nodular goiter. (ii) Simple averaging already improves on the best member, 93.61% against 92.17%, which could not happen if the errors were identical. (iii) Stacking improves on the pooled sensitivity of both VGG19 and DenseNet-201 in MNG 87.7% against 81.6% and 78.5%, nodular goiter 89.0% against 80.3% and 83.8%, and cold nodule 97.4% against 96.1% and 94.7%, while normal and thyroiditis are already at 99 to 100% for all methods.
Table 21. Per-class sensitivity: range over the eight single CNNs (mean over folds), best single CNN, and pooled sensitivity of voting and stacking.
The evidence also shows the limits of complementarity. The pooled off-diagonal error counts of the two best networks, VGG19 and DenseNet-201, are strongly correlated Pearson r = 0.87 over the 42 off-diagonal cells: both mainly confuse MNG with hot and cold nodules and nodular goiter with toxic diffuse goiter. The members are therefore complementary only in part, which is consistent with the moderate size of the gain of +1.4 to +3.3 points. Direct diversity measures pairwise disagreement, Q-statistic, double-fault, and oracle accuracy require per-image predictions; they are computed by the supplied script and should be added when it has been run.

4.6. Contribution of Each Component

The step from the best single CNN to the final system can be separated into two components using the pooled results: averaging the eight probability vectors adds +1.44 points 92.17% → 93.61%, and replacing the average with the learned meta-learner adds a further +1.63 points 93.61% → 95.24%. Learned fusion thus accounts for a little more than half of the total gain +3.07 points over VGG19, and nearly all of it comes from the two hardest classes. A leave-one-network-out and forward-selection ablation, which would show the contribution of each individual CNN, needs the OOF probability matrix and has not been run for this revision. It is implemented in the supplied script.

4.7. Explainability with Grad-CAM

Figure 9 shows one Grad-CAM map per class. The maps are centered on the thyroid region and not on the background. For normal and thyroiditis, the activation is broad, which fits a diffuse process, and for the nodular classes it is more compact. The maps are coarse, as expected from a final convolutional layer of 7 × 7 or similar size that is up-sampled to the image, and they do not resolve individual nodules. They therefore support the statement that the networks use the thyroid region, but they do not show that a specific nodule or uptake pattern was identified, and the maps should not be read as evidence that specific nodules or “biologically meaningful” features were detected. Such maps can look plausible and still fail localization tests [40] or be insensitive to the trained weights [41].
Figure 9. Grad-CAM heat maps for the classes.
The confusion matrices show where errors occur: MNG is mistaken for hot nodule, nodular goiter and cold nodule, and nodular goiter for toxic diffuse goiter. The map of Figure 9 is one example per class and does not show these errors. A figure that serves the purpose requires the per-image maps, which are not part of the files available for this revision. The design of the figure is fixed as follows: for each of the two hardest class pairs, MNG and nodular goiter, three correctly and three incorrectly classified images are drawn at random, shown with the predicted class, the probability and the map, and scored against the physician mask with the four measures. Readers who are not authors rate, for each map, whether the highlighted region is the diagnostic region, the gland, the nodule, or the area of reduced uptake. To establish that highlighted regions correspond to clinically meaningful features, four checks are needed: (i) a reader study in which nuclear-medicine physicians who did not label the data rate, for a random sample stratified by class and by correct and incorrect prediction, whether the highlighted region is the diagnostic region; (ii) a quantitative overlap (pointing-game or Dice score) of thresholded maps against physician-drawn thyroid and lesion masks; (iii) deletion and insertion curves, in which the most-highlighted pixels are removed or added and the class probability is followed; and (iv) the randomization sanity checks of [41].

4.8. Comparison with Previous Studies, Generalizability and Limitations

Table 1 lists the datasets, models, fusion strategies, validation protocols, explainability and limitations of the relevant studies. Only one of them used the same data: our earlier DenseNet-201 study, 91.48 ± 2.79% under five-fold cross-validation [25]. The DenseNet-201 baseline of the present study, 91.98% pooled OOF, is consistent with it, and the eight CNNs of this paper are compared with each other under one protocol as depicted in Table 15, which is the only strictly comparable evaluation. The other studies address different tasks with two to six classes, data SPECT, ultrasound, tabular data, and protocols, so their percentages indicate the range of reported results and not a ranking. The stacked ensemble reports a higher accuracy than the scintigraphy studies listed, but it addresses seven classes, including nodular and goiter categories that most of those studies do not separate, and its evaluation is single-center and balanced; the figures are therefore not directly comparable.
The two classes enlarged most by over-sampling, normal (+76% of the class) and thyroiditis (+53%), have the highest sensitivities stacked: 100.0% and 99.6%, whereas the two visually most similar classes, which were only under-sampled MNG and nodular goiter, have the lowest (87.7% and 89.0%). The third enlarged class, hot nodule (+42%), shows no such pattern (96.5%), below the under-sampled cold nodule (97.4%). The pattern for normal and thyroiditis is what the repeated presence of the same image in training and validation folds would produce. It is equally what the visual distinctiveness of normal and thyroiditis scans would produce, and the present data cannot separate the two explanations. If resampling was done before the folds were formed, the accuracies of the minority classes, and therefore the overall accuracy, are probably optimistic. The leakage-free design is to form the folds on the original images by patient, to balance the training folds only, and to evaluate on the unbalanced held-out folds, reporting class-wise metrics together with the original prevalences. Image-level or slice-level splits can inflate accuracy by tens of percentage points [38]. Some other limitations are listed as follows: (i) All images come from one center, one gamma camera and one acquisition protocol, and the patients come from three districts (Bannu, Karak, North Waziristan). Performance on other scanners, count rates, collimators, reconstruction settings and populations is unknown and is likely to be lower. No independent external test set was available. (ii) Labels are expert clinical–scintigraphy classifications by two readers, without histological confirmation or a reported inter-reader agreement. The reported agreement between model and experts (κ = 0.9444) is therefore agreement with these labels. (iii) Balanced evaluation sets of 228 per class do not reflect clinical prevalence; at the real prevalence of each disorder, the positive predictive values will differ from the precision reported here. (iv) The 128 × 128 images are low-resolution, and the explanation maps are coarse. (v) Statistical tests and intervals treat images as independent. (vi) The confidence score is not yet evaluated, and hyperparameter selection, ablation and fold-wise ensemble statistics are listed above as outstanding. Before clinical use the system would need (a) external, preferably multi-center and prospective, validation on several scanner types; (b) calibration of the output probabilities and a threshold for deferring low-confidence cases to a physician; (c) a reader study comparing physician accuracy with and without the system; (d) integration into the reporting workflow with the DICOM header, patient-level aggregation and a record of model version; and (e) regulatory and ethical clearance for a decision-support device. The study supports the use of the ensemble as a research prototype for second-reader support; it does not demonstrate readiness for diagnosis.

4.9. Comparison with Modern Architectures and Ablation Design

Stronger and more recent architectures than the eight CNNs used here exist, including vision transformers [72], Swin transformers [73], ConvNeXt [74] and EfficientNetV2 [75]. A fair comparison trains each of them with the same patient-level folds, the same balancing inside the training folds, the same augmentation and the same metrics, and then fuses them with the same meta-learner. These networks were not trained for this revision, so no result is reported, and no statement is made about their relative performance on this task. Modern models are not guaranteed to outperform CNNs on 128 × 128 grey-scale images of about 1400 training images, and the comparison should be reported whichever way it falls. Table 22 defines the ablation, states the question each comparison answers, and says what is available. The pooled results already separate the single CNN, voting and stacking. The contribution of each network, of heterogeneity and of the confidence score needs the out-of-fold probabilities and is produced by reanalysis_oof.py leave-one-network-out, forward selection, selective prediction.
Table 22. Ablation design: what each comparison measures and its status.

4.10. Reproducibility, Computational Cost and Clinical Applicability

Table 23 lists what is needed to reproduce the work and what is still to be reported. The eight networks have 423 million parameters in total, as illustrated in Table 3, so one prediction needs eight forward passes, plus one backward pass for a Grad-CAM map. Training requires eight networks in each of ten folds, 80 training runs, plus the meta-learner, which has 399 parameters and trains in seconds. Wall-clock times were not recorded in the files available for this revision.
Table 23. Reproducibility checklist for the reported experiments.
This study is based on one center, one gamma camera and one acquisition protocol, with labels from two readers and no histological confirmation. Robustness and generalizability cannot be claimed from these data. They require external validation on an independent dataset, preferably from a different center and camera, with the pipeline applied unchanged, and prospective evaluation against physician reading. No external dataset was available to us for this revision, so the results are limited to the population and device of the present data, and the system is a research prototype.

5. Conclusions

This study evaluated a stacked ensemble of eight heterogeneous CNNs for seven-class Tc-99m thyroid scintigraphy under a ten-fold out-of-fold protocol and recomputed every metric from the pooled confusion matrices. The stacked ensemble reached an accuracy of 95.24%, and κ = 0.9444, against 93.61% for soft or weighted voting and 92.17% for the best single CNN. The improvement over single CNNs is robust to the overlap of errors; the improvement over voting is smaller and needs a paired test, and nearly all of the gain comes from the two visually similar classes, MNG and nodular goiter. Grad-CAM shows that the networks attend to the thyroid region, but the maps are coarse and not validated against expert annotations. The results come from one center, balanced by resampling, with unconfirmed patient-level independence; resampling inside the training folds, patient-level folds, external validation, an ablation of the individual networks, paired significance tests and an evaluation of the confidence score are the necessary next steps.

Author Contributions

Conceptualization, Z.U.K. and J.K.; methodology, Z.U.K. and J.K.; software, Z.U.K. and J.K.; validation, Z.U.K., J.K., F.K., A.M., S.A.J. and H.M.U.G.; formal analysis, Z.U.K., J.K., F.K., A.M., S.A.J. and H.M.U.G.; investigation, Z.U.K., J.K. and F.K.; resources, J.K. and F.K.; data curation, Z.U.K., J.K., F.K., A.M., S.A.J. and H.M.U.G.; writing—original draft preparation, Z.U.K., J.K. and F.K.; writing—review and editing, Z.U.K., J.K., F.K., A.M., S.A.J. and H.M.U.G.; visualization, Z.U.K., J.K., F.K., A.M., S.A.J. and H.M.U.G.; supervision, J.K. and F.K.; project administration, J.K.; funding acquisition, A.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

The study used scintigraphs acquired at BINOR, Bannu, Pakistan, with approval of the Institutional Ethical Committee approval number BINOR-E4 (40)/12).

Data Availability Statement

The data will be available upon reasonable request to the corresponding author. The out-of-fold probability matrices and the analysis script (reanalysis_oof.py) can be deposited with the revised version.

Acknowledgments

The authors extend their appreciation to Javed Khan and Faheem Khan for supervising this project.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Class-Wise Results of All Models

The tables give, for each class, the fold-mean sensitivity, specificity, precision and F1-score of the eight CNNs (mean ± SD over the ten folds; † and ‡ as in Section 4.9) and the pooled-matrix values of voting and stacking.
Table A1. Class-wise results of all models: cold nodule, where ‡ marks a mean that was corrected against the pooled matrix, and “-” means the value is not reported.
Table A2. Class-wise results of all models: hot nodule, where ‡ marks a mean that was corrected against the pooled matrix and “-” means the value is not reported.
Table A3. Class-wise results of all models: mng.
Table A4. Class-wise results of all models: nodular goiter, where ‡ marks a mean that was corrected against the pooled matrix and “-” means the value is not reported.
Table A5. Class-wise results of all models: normal, where ‡ marks a mean that was corrected against the pooled matrix and “-” means the value is not reported.
Table A6. Class-wise results of all models: thyroiditis.
Table A7. Class-wise results of all models: toxic diffuse goiter, where ‡ marks a mean that was corrected against the pooled matrix.

Appendix B. Fold-Wise Figures

The fold-wise confusion matrices and ROC curves of VGG19 and DenseNet-201, and the ROC curves of the first class, are reproduced unchanged from the original submission. They were moved out of the main text to reduce the number of figures.
Figure A1. VGG19 confusion matrices for the ten folds.
Figure A2. DenseNet-201 confusion matrices for the ten folds.
Figure A3. Fold-wise ROC curves of VGG19 for the different classes.
Figure A4. Fold-wise ROC curves of DenseNet-201 for the different classes.
Figure A5. Performance of the first-class best ensemble and the models using ROC curves.

References

  1. Razvi, S. The public health burden of diabetes mellitus and thyroid disease: Twin epidemics. Nat. Rev. Endocrinol. 2026, 22, 242–254. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Zhang, Y. The role of thyroid hormones in neurodegenerative disorders: Opportunities and challenges. Mol. Neurobiol. 2026, 63, 217. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Zhong, J. Enhancing thyroid disease prediction using machine learning: A comparative study of ensemble models and class balancing techniques. Res. Sq. 2025. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Almutairi, S. Advancing thyroid diagnosis: Integrating AI-driven CAD framework with numerical data and ultrasound images. PeerJ Comput. Sci. 2025, 11, e3063. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Mian, Q. Role of artificial intelligence in thyroid disorders. In Recent Advances in Thyroid Disorders; IntechOpen: London, UK, 2025; p. 217. [Google Scholar]
  6. Zhao, H. Artificial intelligence in the diagnosis of thyroid diseases: Applications and challenges. Front. Radiol. 2026, 6, 1740915. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Andreou, K. A machine learning and deep learning approach for the classification of thyroid disorders using multi-source clinical data. BioMedInformatics 2026, 6, 34. [Google Scholar] [CrossRef] [Scilit]
  8. Kustiawan, Y.A. Artificial intelligence techniques for thyroid cancer classification: A systematic review. Mach. Learn. Knowl. Extr. 2026, 8, 27. [Google Scholar] [CrossRef] [Scilit]
  9. Anjum, M.; Arora, M. Deep learning-based multi-channel CNN framework for early detection of thyroid cancer from CT images. In 2026 International Conference on Smart Electronic Devices and Intelligent Systems (ICSEDIS); IEEE: Piscataway, NJ, USA, 2026; pp. 1240–1245. [Google Scholar]
  10. Abed, S.E.; Saji, S.; Alshayeji, M.H. Predictive analysis of early thyroid disorders using integration of data mining and ensemble intelligence approaches. Int. J. Intell. Syst. 2026, 2026, 6746134. [Google Scholar] [CrossRef] [Scilit]
  11. Sagi, O.; Rokach, L. Ensemble learning: A survey. WIREs Data Min. Knowl. Discov. 2018, 8, e1249. [Google Scholar] [CrossRef] [Scilit]
  12. Ganaie, M.A.; Hu, M.; Malik, A.K.; Tanveer, M.; Suganthan, P.N. Ensemble deep learning: A review. Eng. Appl. Artif. Intell. 2022, 115, 105151. [Google Scholar] [CrossRef] [Scilit]
  13. Saleem, M. An ensemble learning framework for reliable multiclass thyroid disorder diagnosis using clinical data. ICTACT J. Data Sci. Mach. Learn. 2026, 7, 1083–1090. [Google Scholar] [CrossRef] [Scilit]
  14. Wolpert, D.H. Stacked generalization. Neural Netw. 1992, 5, 241–259. [Google Scholar] [CrossRef] [Scilit]
  15. Breiman, L. Stacked regressions. Mach. Learn. 1996, 24, 49–64. [Google Scholar] [CrossRef] [Scilit]
  16. Alam, M.Z. Enhancing thyroid disease diagnosis with machine learning and counterfactual explainable AI. IEEE Access 2026, 14, 80346–80370. [Google Scholar] [CrossRef] [Scilit]
  17. Abiodun, E. Trustworthy clinical decision support in endocrinology: A multi-class machine learning framework with coun-terfactual explainability for thyroid nodules and metabolic dysfunction. Sci. Post 2026, 2. Available online: https://www.thesciencepostjournal.com/index.php/tsp/article/view/207 (accessed on 10 November 2026).
  18. Qiao, T.; Liu, S.; Cui, Z.; Yu, X.; Cai, H.; Zhang, H.; Sun, M.; Lv, Z.; Li, D. Deep learning for intelligent diagnosis in thyroid scintigraphy. J. Int. Med. Res. 2021, 49, 1–11. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Ma, L.; Ma, C.; Liu, Y.; Wang, X.; Xie, W. Diagnosis of thyroid diseases using SPECT images based on convolutional neural network. J. Med. Imaging Health Inform. 2018, 8, 1684–1689. [Google Scholar] [CrossRef] [Scilit]
  20. Zhao, H.; Zheng, C.; Zhang, H.; Rao, M.; Li, Y.; Fang, D.; Huang, J.; Zhang, W.; Yuan, G. Diagnosis of thyroid disease using deep convolutional neural network models applied to thyroid scintigraphy images: A multicenter study. Front. Endocrinol. 2023, 14, 1224191. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Yang, P.; Pi, Y.; He, T.; Sun, J.; Wei, J.; Xiang, Y.; Jiang, L.; Li, L.; Yi, Z.; Zhao, Z.; et al. Automatic differentiation of thyroid scintigram by deep convolutional neural network: A dual center study. BMC Med. Imaging 2021, 21, 179. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  22. Medhus, J.B. Development of an artificial intelligence model based on the VGG19 network for automated detection of hypofunctioning lesions in thyroid scintigraphy. J. Nucl. Med. 2022, 63, 3236. [Google Scholar]
  23. Hajianfar, G.; Sabouri, M.; Manesh, A.S.; Bagheri, S.; Arabi, M.; Zakavi, S.R.; Askari, E.; Rasouli, A.; Asadzadeh, A.; Aghaee, A.; et al. Stable diffusion model-based scintigraphy image synthesis: Data augmentation toward enhanced multiclass thyroid diagnosis. In 2024 12th European Workshop on Visual Information Processing (EUVIP); IEEE: Piscataway, NJ, USA, 2024; pp. 1–6. [Google Scholar]
  24. Sabouri, M.; Hajianfar, G.; Rafiei Sardouei, A.; Yazdani, M.; Asadzadeh, A.; Bagheri, S.; Arabi, M.; Zakavi, S.R.; Askari, E.; Aghaee, A.; et al. AI-augmented thyroid scintigraphy for robust classification of disease. Phys. Med. 2026, 148, 105854. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  25. Ghani, H.M.U.; Khan, J.; Khan, N.U.; Khan, Z.U.; Khan, S.U.; Alturki, N.; Awasthi, S.; Ayouni, S. Deep learning-based multi-class classification of thyroid disorders on Tc-99m scintigraphy using modified DenseNet-201. Digit. Health 2026, 12, 1–20. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  26. Wei, X.; Gao, M.; Yu, R.; Liu, Z.; Gu, Q.; Liu, X.; Zheng, Z.; Zheng, X.; Zhu, J.; Zhang, S. Ensemble deep learning model for multicenter classification of thyroid nodules on ultrasound images. Med. Sci. Monit. 2020, 26, e926096. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  27. Hung, W.-C.; Chang, Y.-K.; Chang, C.-M.; Cheng, P.-W.; Lo, W.-C.; Cheng, P.-C.; Liao, L.-J. Thyroid nodule detection and classification on small datasets: An ensemble deep learning approach with attention mechanism and focal loss. Diagnostics 2026, 16, 825. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Islam, M.R. Enhanced thyroid disease prediction using ensemble machine learning: A high-accuracy approach with feature selection and class balancing. Discov. Artif. Intell. 2025, 5, 9. [Google Scholar] [CrossRef] [Scilit]
  29. Habiby, A.T.; Bushra, A.; Assaduzzaman, M.; Hossan, M.E.; Mahamud, E.; Fahad, N.; Liew, T.H.; Ohidujjaman, O. A high-accuracy stacking ensemble model for precise thyroid disease detection with SHAP and LIME explanations. Inform. Med. Unlocked 2026, 63, 101764. [Google Scholar] [CrossRef] [Scilit]
  30. Currie, G.M. Remodeling 99mTc-pertechnetate thyroid uptake: Statistical, machine learning, and deep learning approaches. J. Nucl. Med. Technol. 2022, 50, 143–152. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  31. Peng, S. Deep learning-based artificial intelligence model to assist thyroid nodule diagnosis and management: A multicentre diagnostic study. Lancet Digit. Health 2021, 3, e250–e259. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Song, J.; Chai, Y.J.; Masuoka, H.; Park, S.-W.; Kim, S.-J.; Choi, J.Y.; Kong, H.-J.; Lee, K.E.; Lee, J.; Kwak, N.; et al. Ultrasound image analysis using deep learning algorithm for the diagnosis of thyroid nodules. Medicine 2019, 98, e15133. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  33. He, L.-T. A comparison of the performances of artificial intelligence system and radiologists in the ultrasound diagnosis of thyroid nodules. Curr. Med. Imaging Rev. 2022, 18, 1369–1377. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  34. Kim, H.L. Real-world performance of computer-aided diagnosis system for thyroid nodules using ultrasonography. Ultrasound Med. Biol. 2019, 45, 2672–2678. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Park, V.Y.; Han, K.; Seong, Y.K.; Park, M.H.; Kim, E.-K.; Moon, H.J.; Yoon, J.H.; Kwak, J.Y. Diagnosis of thyroid nodules: Performance of a deep learning convolutional neural network model vs. radiologists. Sci. Rep. 2019, 9, 17843. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  36. Nguyen, D.T. Ultrasound image-based diagnosis of malignant thyroid nodule using artificial intelligence. Sensors 2020, 20, 1822. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  37. Thomas, J.; Haertling, T. AIBx, artificial intelligence model to risk stratify thyroid nodules. Thyroid 2020, 30, 878–884. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  38. Yagis, E.; Atnafu, S.W.; García Seco de Herrera, A.; Marzi, C.; Scheda, R.; Giannelli, M.; Tessa, C.; Citi, L.; Diciotti, S. Effect of data leakage in brain MRI classification using 2D convolutional neural networks. Sci. Rep. 2021, 11, 22544. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  39. Kaufman, S.; Rosset, S.; Perlich, C.; Stitelman, O. Leakage in data mining: Formulation, detection, and avoidance. ACM Trans. Knowl. Discov. Data 2012, 6, 15. [Google Scholar]
  40. Arun, N.; Gaw, N.; Singh, P.; Chang, K.; Aggarwal, M.; Chen, B.; Hoebel, K.; Gupta, S.; Patel, J.; Gidwani, M.; et al. Assessing the trustworthiness of saliency maps for localizing abnormalities in medical imaging. Radiol. Artif. Intell. 2021, 3, e200267. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  41. Adebayo, J.; Gilmer, J.; Muelly, M.; Goodfellow, I.; Hardt, M.; Kim, B. Sanity checks for saliency maps. In Advances in Neural Information Processing Systems; Curran Associates: New York, NY, USA, 2018; pp. 9505–9515. [Google Scholar]
  42. Deng, J.; Dong, W.; Socher, R.; Li, L.-J.; Li, K.; Fei-Fei, L. ImageNet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2009; pp. 248–255. [Google Scholar]
  43. Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar]
  44. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR); Curran Associates: New York, NY, USA, 2016; pp. 770–778. [Google Scholar]
  45. Huang, G.; Liu, Z.; van der Maaten, L.; Weinberger, K.Q. Densely connected convolutional networks. In 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2017; pp. 4700–4708. [Google Scholar]
  46. Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.; Wojna, Z. Rethinking the Inception architecture for computer vision. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2016; pp. 2818–2826. [Google Scholar]
  47. Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2015; pp. 1–9. [Google Scholar]
  48. Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; Chen, L.-C. MobileNetV2: Inverted residuals and linear bottlenecks. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: Piscataway, NJ, USA, 2018; pp. 4510–4520. [Google Scholar]
  49. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems; Curran Associates: New York, NY, USA, 2012; pp. 1097–1105. [Google Scholar]
  50. Cawley, G.C.; Talbot, N.L.C. On over-fitting in model selection and subsequent selection bias in performance evaluation. J. Mach. Learn. Res. 2010, 11, 2079–2107. [Google Scholar]
  51. Guo, C.; Pleiss, G.; Sun, Y.; Weinberger, K.Q. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning, PMLR vol. 70; ACM: New York, NY, USA, 2017; pp. 1321–1330. [Google Scholar]
  52. Kurz, A.; Hauser, K.; Mehrtens, H.A.; Krieghoff-Henning, E.; Hekler, A.; Kather, J.N.; Fröhling, S.; von Kalle, C.; Brinker, T.J. Uncertainty estimation in medical image classification: Systematic review. JMIR Med. Inform. 2022, 10, e36427. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  53. Lakshminarayanan, B.; Pritzel, A.; Blundell, C. Simple and scalable predictive uncertainty estimation using deep ensembles. In Advances in Neural Information Processing Systems 30; Curran Associates: New York, NY, USA, 2017. [Google Scholar]
  54. Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual explanations from deep networks via gradient-based localization. In 2017 IEEE International Conference on Computer Vision (ICCV); IEEE: Piscataway, NJ, USA, 2017; pp. 618–626. [Google Scholar]
  55. Chattopadhay, A.; Sarkar, A.; Howlader, P.; Balasubramanian, V.N. Grad-CAM++: Generalized gradient-based visual explanations for deep convolutional networks. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV); IEEE: Piscataway, NJ, USA, 2018; pp. 839–884. [Google Scholar]
  56. Wang, H.; Wang, Z.; Du, M.; Yang, F.; Zhang, Z.; Ding, S.; Mardziel, P.; Hu, X. Score-CAM: Score-weighted visual explanations for convolutional neural networks. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW); IEEE: Piscataway, NJ, USA, 2020; pp. 111–119. [Google Scholar]
  57. Ribeiro, M.T.; Singh, S.; Guestrin, C. ‘Why should I trust you?’: Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD ‘16); ACM: New York, NY, USA, 2016; pp. 1135–1144. [Google Scholar]
  58. Lundberg, S.M.; Lee, S.-I. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems 30; Curran Associates: New York, NY, USA, 2017; pp. 4765–47744. [Google Scholar]
  59. Zhang, J.; Bargal, S.A.; Lin, Z.; Brandt, J.; Shen, X.; Sclaroff, S. Top-down neural attention by excitation backprop. Int. J. Comput. Vis. 2018, 126, 1084–1102. [Google Scholar] [CrossRef] [Scilit]
  60. Petsiuk, V.; Das, A.; Saenko, K. RISE: Randomized input sampling for explanation of black-box models. In Proceedings of the British Machine Vision Conference (BMVC), Newcastle upon Tyne, UK, 3–6 September 2018. [Google Scholar]
  61. Cohen, J. A coefficient of agreement for nominal scales. Educ. Psychol. Meas. 1960, 20, 37–46. [Google Scholar] [CrossRef] [Scilit]
  62. Landis, J.R.; Koch, G.G. The measurement of observer agreement for categorical data. Biometrics 1977, 33, 159–174. [Google Scholar] [CrossRef] [Scilit]
  63. Gorodkin, J. Comparing two K-category assignments by a K-category correlation coefficient. Comput. Biol. Chem. 2004, 28, 367–374. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  64. Wilson, E.B. Probable inference, the law of succession, and statistical inference. J. Am. Stat. Assoc. 1927, 22, 209–212. [Google Scholar] [CrossRef]
  65. Efron, B. Bootstrap methods: Another look at the jackknife. Ann. Stat. 1979, 7, 1–26. [Google Scholar] [CrossRef] [Scilit]
  66. McNemar, Q. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika 1947, 12, 153–157. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  67. Dietterich, T.G. Approximate statistical tests for comparing supervised classification learning algorithms. Neural Comput. 1998, 10, 1895–1923. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  68. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  69. Krogh, A.; Vedelsby, J. Neural network ensembles, cross validation, and active learning. In Advances in Neural Information Processing Systems 7; Curran Associates: New York, NY, USA, 1995; pp. 231–238. [Google Scholar]
  70. Hansen, L.K.; Salamon, P. Neural network ensembles. IEEE Trans. Pattern Anal. Mach. Intell. 1990, 12, 993–1001. [Google Scholar] [CrossRef] [Scilit]
  71. Kuncheva, L.I.; Whitaker, C.J. Measures of diversity in classifier ensembles and their relationship with the ensemble accuracy. Mach. Learn. 2003, 51, 181–207. [Google Scholar] [CrossRef] [Scilit]
  72. Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An image is worth 16×16 words: Transformers for image recognition at scale. In Proceedings of the International Conference on Learning Representations (ICLR), Virtual, 3–7 May 2021. [Google Scholar]
  73. Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin Transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: Piscataway, NJ, USA, 2021; pp. 10012–10022. [Google Scholar]
  74. Liu, Z.; Mao, H.; Wu, C.-Y.; Feichtenhofer, C.; Darrell, T.; Xie, S. A ConvNet for the 2020s. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: Piscataway, NJ, USA, 2022; pp. 11976–11986. [Google Scholar]
  75. Tan, M.; Le, Q. EfficientNetV2: Smaller models and faster training. In Proceedings of the 38th International Conference on Machine Learning, PMLR vol. 139; ACM: New York, NY, USA, 2021; pp. 10096–10106. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Article metric data becomes available approximately 24 hours after publication online.