Next Article in Journal
Zinner Syndrome: A Narrative Review of Imaging Findings with an Illustrative Case Report
Next Article in Special Issue
Performance of Multimodal Large Language Models in Detection and Position Assessment of Thoracic Devices on Chest Radiographs
Previous Article in Journal
Dermoscopic Interface Features in Melanoma–Seborrheic Keratosis Collision Tumors: A Scoping Review with an Illustrative Case Report on Wood’s Lamp Dermoscopy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Adaptive Deep Learning Framework for Multi-Label Chest X-Ray Diagnosis Using a Hybrid CNN–Transformer Architecture and Class-Wise Ensemble Fusion

1
Department of Biomedical Engineering and Environmental Sciences, National Tsing Hua University, Hsinchu 300, Taiwan
2
Department of Medical Imaging, China Medical University Hsinchu Hospital, Hsinchu 302, Taiwan
3
Department of Management Science, National Yang Ming Chiao Tung University, Hsinchu 300, Taiwan
4
Department of Medical Imaging, China Medical University Hospital, Taichung 404, Taiwan
5
Graduate Institute of Biomedical Electronics and Bioinformatics, National Taiwan University, Taipei 106, Taiwan
6
Department of Radiology, Tri-Service General Hospital and National Defense Medical University, Taipei 114, Taiwan
7
Department of Radiology, School of Medicine, College of Medicine, China Medical University, Taichung 406, Taiwan
8
Department of Computer Science and Information Engineering, National Taiwan University, Taipei 106, Taiwan
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Diagnostics 2026, 16(8), 1227; https://doi.org/10.3390/diagnostics16081227
Submission received: 12 March 2026 / Revised: 10 April 2026 / Accepted: 16 April 2026 / Published: 20 April 2026
(This article belongs to the Special Issue Artificial Intelligence in Diagnostic Imaging)

Abstract

Background/Objectives: To develop and externally evaluate a deep learning framework for multi-label thoracic disease classification on chest radiographs using hybrid convolutional neural network (CNN)–transformer architectures, hierarchical scalar-weighted fusion, and ensemble strategies. Methods: This retrospective, multi-center study utilized publicly available datasets: NIH ChestX-ray14 (112,120 images; 30,805 patients) for model development and internal testing, and CheXpert (223,415 images) plus ChestX-Det10 (3578 images) for external validation. Nine CNN–transformer hybrids were systematically benchmarked, and the proposed model incorporated multi-scale DenseNet121 features, scalar-weighted fusion, positional encodings, and cross-attention. Four post hoc ensemble methods were explored, including a class-wise Top-3 Grid Search. Performance was evaluated using AUROC as the primary metric, along with precision, recall, F1-score, accuracy, specificity, positive predictive value, and negative predictive value. Statistical comparisons were performed using bootstrapped resampling and appropriate parametric or non-parametic tests. Results: On the NIH internal test set, the proposed hybrid model achieved a mean AUROC of 0.8495, which was significantly higher than that of the DenseNet121 baseline (0.8441, p = 0.032). The Top-3 Grid Search ensemble further improved internal performance, achieving a mean AUROC of 0.8577 (p < 0.00001). On external validation, the ensemble consistently outperformed DenseNet121, achieving mean AUROCs of 0.6500 on CheXpert (p < 0.001) and 0.6592 on ChestX-Det10 (p < 0.001). Per-class analysis revealed significant improvements for clinically important conditions such as cardiomegaly, mass, and pneumothorax. Grad-CAM visualizations demonstrated the strong alignment of predicted abnormalities with radiologically relevant regions. Conclusions: This CNN–transformer framework, particularly when combined with class-wise ensemble strategies, provided modest but statistically significant improvements in multi-label chest X-ray classification. External validation suggested partial generalizability across datasets, although performance remained moderate under domain shift.

1. Introduction

Chest radiography (CXR) remains one of the most widely utilized imaging modalities in clinical practice owing to its accessibility, rapid acquisition, and diagnostic versatility [1]. However, increasing imaging volumes and persistent shortages of radiologists contribute to diagnostic delays, inter-reader variability, and overlooked abnormalities [2,3,4]. These challenges are particularly evident in high-throughput environments such as emergency departments and under-resourced healthcare systems.
Artificial intelligence (AI) has emerged as a promising adjunct in radiological workflows, with recent studies demonstrating its potential as a second reader. For instance, Topff et al. showed that AI-assisted double reading enabled the detection of clinically relevant missed findings, including lung nodules, pneumothoraces, and consolidations, in routine reporting [5]. Likewise, Schalekamp et al. reported that AI could safely exclude up to 53% of normal CXRs at a conservative threshold, reducing radiologist workload by 15% while maintaining a 98% negative predictive value for urgent findings [6].
Despite these advances, most prior deep learning approaches rely on conventional convolutional neural networks (CNNs) [7,8,9,10,11] or adopt transformer-based modules [12,13,14] in relatively straightforward manners. These strategies often underuse complementary local and global feature representations, which are critical for capturing fine-grained lesion details and broader contextual patterns. To address this limitation, we systematically designed and evaluated nine CNN–transformer hybrid architectures incorporating diverse fusion strategies, including sequential and parallel integration, scalar-weighted multi-stage feature fusion, and cross-attention mechanisms.
The aim of this study is not to replicate clinical triage systems or to propose workflow replacement, but rather to advance AI-based diagnostic modeling by improving multi-label thoracic disease classification. We prioritized sensitivity to minimize the risk of missed abnormalities, thereby aligning with the concept of AI-assisted double reading. This emphasis is particularly relevant in settings where radiologist expertise is limited, and where AI tools may potentially serve as preliminary screening or second-reader support systems to flag suspicious cases for closer review [5,15].
We therefore hypothesized that hybrid architectures integrating local lesion detection with global contextual reasoning would enhance diagnostic performance compared with standard CNN baselines. To test this, we trained and validated our models on the large-scale NIH ChestX-ray14 dataset and assessed external generalizability using two independent datasets (CheXpert and ChestX-Det10) without additional fine-tuning by systematically benchmarking multiple architectural strategies. This study aims to provide insights into the design principles that may improve robustness, sensitivity, and clinical relevance in AI-assisted chest radiograph interpretation.

2. Materials and Methods

This retrospective, multi-center study utilized three publicly available chest radiograph (CXR) datasets: NIH ChestX-ray14 (n = 112,110; USA) [16], CheXpert (n = 224,316; USA) [17], and ChestX-Det10 (n = 3533; China) [18]. All the datasets used in this study were publicly available and fully de-identified, and no identifiable personal information was accessible to the authors. No interaction or intervention with human subjects was involved. According to the Declaration of Helsinki, 45 CFR 46, and the official government notices issued by the Department of Health, Executive Yuan, Taiwan—Scope of Human Research Cases Exempt from Review by the Research Ethics Committee and Scope of Human Research Cases Exempt from Obtaining the Research Subject’s Consent [19,20]—this type of study is exempt from ethics committee review and from the requirement for informed consent. Therefore, this study was exempt from obtaining ethical approval at the present institution. The NIH ChestX-ray14 dataset was used for model development and internal testing, whereas CheXpert and ChestX-Det10 served as external test sets to evaluate cross-institutional generalizability.
The overall dataset allocation is illustrated in Figure 1. After excluding non-frontal images, 112,110 CXRs from NIH ChestX-ray14, 224,316 from CheXpert, and 3533 from ChestX-Det10 were included. The NIH dataset was split on a patient-wise basis into training (70%), validation (10%), and internal test (20%) sets. CheXpert and ChestX-Det10 were used exclusively for external testing.
The study workflow is depicted in Figure 2. The input images were preprocessed by resizing them to 224 × 224 pixels, converting them to RGB, and applying ImageNet normalization. Random resized cropping was applied only to the training set for data augmentation. We then constructed multiple model architectures, including a DenseNet121 baseline, two sequential hybrids, five parallel fusion variants, and the proposed CNN–transformer model. Each model generated class-wise sigmoid probabilities, which were further combined through four post hoc ensemble strategies, including soft voting, class-wise weighted fusion, top 3 soft voting, and logistic regression stacking. Model performance was evaluated on the internal test set and validated externally on the CheXpert and ChestX-Det10 datasets using AUROC as the primary metric, along with threshold-dependent measures.
The architectural details of the comparative models are provided in Supplementary S1. A densely connected CNN (DenseNet121, DNS) was used as the baseline (Figure S1). Eight hybrid CNN–transformer models were developed: two sequential hybrids—Sequential Hybrid V1 (SH1), appending a transformer module after DNS (Figure S2), and Sequential Hybrid V2 (SH2), inserting the transformer module before Dense Block 3 (Figure S3)—and six parallel fusion variants (PF1–PF6) with independent transformer branches or cross-attention modules (Figure 3 and Figures S4–S8). These variants enabled the systematic evaluation of fusion timing, feature encoding, and attention mechanisms.
The proposed CNN–transformer architecture (Figure 3) integrates DenseNet121 [21] with a lightweight transformer encoder [22]. Six feature maps, extracted from the input and transition layers TL1–TL4, were projected into a shared 256-dimensional space using 1 × 1 convolutions and downsampled to 7 × 7 resolution. Adaptive scalar-weighted fusion with learned stage-wise coefficients dynamically balanced semantic contributions across feature hierarchies [23]. The fused tensor was tokenized, enriched with 2D sinusoidal positional encodings, and processed by transformer encoder layers for global contextual reasoning. A CNN-derived global vector was aligned with transformer outputs through cross-attention to refine representation learning. Mathematical formulations are provided in Supplementary S2.
To exploit complementary model strengths, four post hoc ensemble strategies were applied. Soft voting averaged sigmoid predictions across all models. Class-wise weighted fusion optimized per-class weights by grid search to maximize AUROC. Logistic regression stacking trained a meta-classifier on concatenated model outputs to capture non-linear prediction combinations. Top-3 Grid Search ensemble selected the three best-performing models per-class based on validation AUROC, combined via soft voting. All ensemble strategies were evaluated on NIH, CheXpert, and ChestX-Det10 datasets without additional fine-tuning.
The primary metric was the area under the receiver operating characteristic curve (AUROC), reported per-class and as a macro-average [24]. Threshold-dependent metrics included precision, recall (sensitivity), F1-score, accuracy, specificity, and negative predictive value (NPV) [25]. For multi-label classification, each disease class was treated as an independent binary prediction task, and class-specific probability thresholds were determined using Youden’s Index [26] on the validation set to balance sensitivity and specificity. These fixed thresholds were then applied to the corresponding test set predictions to convert sigmoid probabilities into binary labels. Notably, AUROC was used as the primary metric because it is threshold-independent, whereas the threshold-based metrics were used to evaluate classification performance at the selected operating points. Formal definitions of all metrics are provided in Supplementary S3.
The models were trained on the NIH ChestX-ray14 using patient-wise splits: 70% training, 10% validation, and 20% internal testing. DenseNet backbones were initialized with ImageNet weights, whereas transformer modules were randomly initialized. Training employed AdamW (learning rate = 1 × 10−4, weight decay = 1 × 10−4, batch size = 32). The hybrid models used a two-phase learning rate schedule: 5-epoch warm-up (GradualWarmupScheduler) followed by cosine annealing with warm restarts (T0 = 10, Tmult = 2, ηmin = 1 × 10−6) [27]. DenseNet used standard cosine annealing. Training continued for up to 100 epochs, saving checkpoints when validation loss improved. A class-balanced binary cross-entropy loss [28], weighted by class frequencies, mitigated imbalance. For ensemble evaluation, models were trained independently and fused post hoc. Interpretability was assessed using Grad-CAM and attention visualizations. All experiments were implemented in PyTorch (v1.12) on an NVIDIA RTX 4090 GPU (24 GB VRAM).
Statistical analyses were conducted using Scikit-learn (v1.0), SciPy (v1.9), and Statsmodels (v0.13). Variability and statistical significance were assessed using a non-parametric bootstrapping (100 resamples per-class) for AUROC and recall distributions. Normality was tested with the Shapiro–Wilk test [29]. For normally distributed data, one-way ANOVA [30] was used to compare models; otherwise, the Kruskal–Wallis test [31] was applied. Significant group differences were further analyzed with Tukey’s HSD [32] or paired t-tests. Bonferroni correction was applied for multiple comparisons. A p-value of less than 0.05 was considered statistically significant.

3. Results

3.1. Dataset Characteristics

The NIH ChestX-ray14 dataset comprised 30,805 patients and 112,110 frontal-view chest radiographs. Following the predefined patient-wise split, 78,800 images were allocated for training, 11,212 for validation, and 22,108 for internal testing. External validation was performed using CheXpert (224,316 radiographs from 65,240 patients, USA) and ChestX-Det10 (3533 radiographs from a distinct clinical cohort in China). Demographic distributions included balanced sex representation and broad age ranges (18–90 years). Pathological prevalence varied across datasets: for example, cardiomegaly was present in 2.5% of NIH cases, while infiltration was observed in 17%. These heterogeneous patient populations provided a rigorous setting for assessing model robustness and cross-institutional generalizability.

3.2. Evaluation on the Internal Test Set

3.2.1. Performance of Individual Models

Table S1 presents the overall diagnostic performance of nine individual models on the NIH ChestX-ray14 test set. Among these models, the proposed PF6 model achieved the highest mean AUROC, at 0.8495 (95% confidence interval [CI], 0.7130–0.9495). Its performance was significantly higher than that of DenseNet121 (0.8441; 95% CI, 0.8412–0.8470) and those of the other hybrid models (p < 0.05), with the exception of PF3, for which the difference was not statistically significant (p = 0.209).

3.2.2. Ensemble Strategies

Comparisons of four post hoc ensemble strategies with the DenseNet121 baseline and the proposed hybrid CNN–transformer on the NIH ChestX-ray14 test set are presented in Table 1. All the ensemble approaches significantly outperformed both DenseNet121 and PF6 (all p < 0.01). Best per-class model selection achieved a mean AUROC of 0.851, significantly higher than PF6 (p < 0.01). AUROC-based weighted fusion (0.853) and logistic regression stacking (0.857) achieved further gains, each significantly superior to PF6 (p < 0.001). The Top-3 Grid Search ensemble achieved the highest overall performance with a mean AUROC of 0.858 (95% CI, 0.719–0.966), statistically superior to all other strategies (p < 0.001). These results demonstrate that post hoc ensemble learning consistently leveraged complementary model strengths to improve robustness.

3.2.3. Per-Class Performance on Internal Test Set

The ROC curves for the 14 thoracic disease classes predicted by the proposed model are shown in Figure 4. The AUROC values ranged from 0.714 for infiltration to 0.943 for hernia, indicating variable but generally good discriminative performance across disease categories.
To further evaluate the effect of architectural enhancements, we compared bootstrapped per-class AUROC distributions across model variants. For readability, six representative disease classes are shown (Figure 5), while the complete results for all 14 classes are provided in Supplementary Figure S9. In these representative classes, the proposed model (PF6) generally outperformed DenseNet121, particularly for cardiomegaly, emphysema, and mass.
Table 2 presents a per-class AUROC comparison between the proposed model and the DenseNet baseline. The proposed method significantly outperformed the DenseNet baseline in atelectasis, cardiomegaly, consolidation, effusion, emphysema, infiltration, mass, and pneumothorax, but underperformed in fibrosis and pleural thickening.
Table 3 presents a per-class AUROC comparison between the Top-3 ensemble strategy and the DenseNet baseline. The Top-3 ensemble significantly improved AUROC across all 14 thoracic disease classes relative to DenseNet121 (all p < 0.001). The largest gains were observed in pneumonia (from 0.7558 to 0.7855; ΔAUROC = 0.0297), mass (from 0.8532 to 0.8734; ΔAUROC = 0.0202), and nodule (from 0.7888 to 0.8045; ΔAUROC = 0.0158). Clinically important conditions also showed marked improvement, including cardiomegaly (from 0.9056 to 0.9186; ΔAUROC = 0.0129), hernia (from 0.9455 to 0.9605; ΔAUROC = 0.0150), fibrosis (from 0.8395 to 0.8515; ΔAUROC = 0.0120), and pleural thickening (from 0.7818 to 0.7976; ΔAUROC = 0.0157). Even for infiltration, which had a relatively low baseline AUROC, the ensemble improved performance from 0.7073 to 0.7212 (ΔAUROC = 0.0139; p < 0.001).

3.2.4. Failure Analysis: Proposed Model vs. Ensemble Strategy

To further elucidate the strengths and limitations of the proposed hybrid model, we performed a per-class comparison with the Top-3 Grid Search ensemble across multiple diagnostic metrics (Table 4).
The ensemble achieved an overall higher recall (0.79) than the proposed method (0.77) at the expense of lower accuracy (0.78 vs. 0.79) and specificity (0.79 vs. 0.80). Specifically, the ensemble demonstrated statistically significant improvements in sensitivity for atelectasis, infiltration, nodule, pneumothorax, and pleural thickening (all p < 0.001), as well as modest improvements for consolidation (p < 0.01) and hernia (p < 0.05). These gains were accompanied by consistent reductions in specificity and accuracy. In contrast, cardiomegaly, edema, and fibrosis showed the opposite trend: the proposed model achieved higher sensitivity (0.86, 0.93, and 0.78, respectively), whereas the ensemble achieved higher accuracy and specificity (0.850/0.850, 0.788/0.786, and 0.798/0.799, respectively). This finding highlights a class-specific trade-off between the proposed model and the Top-3 Grid ensemble strategy.

3.3. External Validation

3.3.1. Per-Class Comparison Across Models and External Datasets

Cross-dataset validation was performed to assess the generalizability of the proposed framework (Table 5). To assess cross-domain generalizability, five models with internal-test AUROC values higher than 0.84 were selected, including DenseNet121, PF6, PF2, SH2, and PF1. Additionally, the Top-3 ensemble using soft voting, where model fusion weights were optimized via grid search, was added for comparison. Per-class and mean AUROC scores were computed using 100-trial bootstrapping.
In CheXpert, the Top-3 ensemble achieved a mean AUROC of 0.650, significantly higher than the DenseNet121 baseline (0.6318, p < 0.001). The largest improvements were observed in pneumothorax (from 0.5974 to 0.6366; ΔAUROC = 0.0392), effusion (from 0.4419 to 0.4799; ΔAUROC = 0.0380), and infiltration (from 0.7736 to 0.7950; ΔAUROC = 0.0214). Performance gains were also evident for pneumonia, from 0.6194 to 0.6403 (ΔAUROC = 0.0209), despite differences in labeling protocols between datasets. In ChestX-Det10, the Top-3 ensemble achieved a mean AUROC of 0.6592, compared with 0.6476 for DenseNet121 (p < 0.001). Substantial improvements were seen for atelectasis (from 0.6461 to 0.6862; ΔAUROC = 0.0401), consolidation (from 0.5862 to 0.6118; ΔAUROC = 0.0256), and mass (from 0.6994 to 0.7214; ΔAUROC = 0.0221). In contrast, performance decreased for nodule, from 0.6532 to 0.6174 (ΔAUROC = −0.0358; p < 0.001), likely reflecting variations in annotation quality and class prevalence. For emphysema, performance differences were not statistically significant (p = 0.407). Together, these results indicate that ensemble methods improved performance relative to the DenseNet121 baseline on both external datasets, although the absolute external AUROC values remained moderate and generalizability varied across disease classes.

3.3.2. Model Interpretability via Grad-CAM

Representative Gradient-weighted Class Activation Mapping (Grad-CAM) visualizations are displayed in Figure 6, providing insight into the spatial regions contributing to model predictions. In correctly classified cases of cardiomegaly, pulmonary mass and nodule, the heatmaps demonstrated strong correspondence with clinically relevant anatomical regions, thereby supporting the interpretability of predictions. In addition, the heatmaps showed consistent localization in cases with dual disease classes, including pleural effusion and pneumothorax, further highlighting the model’s ability to capture coexisting pathologies. However, occasional diffuse or ambiguous activations were observed, suggesting that interpretability should be contextualized with clinical expertise to avoid potential misinterpretation.

4. Discussion

This study presents a systematically evaluated deep learning framework for multi-label chest X-ray classification based on hybrid CNN–transformer architectures and ensemble strategies. Rather than introducing a fundamentally new model family, the main contribution of this work lies in the structured comparison of multiple integration designs, including sequential and parallel fusion strategies, as well as post hoc ensemble methods, under both internal and external evaluation settings. The results suggest that hierarchical multi-stage fusion and class-wise ensemble selection can provide measurable performance gains over a DenseNet121 baseline.
The main contributions of this study are threefold. First, unlike previous works that primarily coupled CNNs and transformers in a linear fashion [33,34,35], we systematically explored multiple integration strategies and demonstrated that hierarchical multi-scale fusion with cross-attention achieves superior performance. Second, the use of scalar-weighted stage-wise fusion enabled the adaptive balancing of shallow and deep features, thereby improving sensitivity to subtle findings such as consolidation and infiltration. Third, we extended beyond single-model prediction by incorporating post hoc ensemble strategies. The Top-3 Grid Search ensemble achieved the best performance, reaching a mean AUROC of 0.8577 on the NIH internal test set, which was significantly higher than both the DenseNet121 baseline (0.8441; p < 0.001) and PF6 (0.8495; p < 0.001). On external validation, the Top-3 ensemble achieved statistically significant improvements over the DenseNet121 baseline on both CheXpert and ChestX-Det10. However, the absolute external AUROC values remained moderate (0.6500 and 0.6592, respectively), indicating that cross-dataset transferability was only partial. These findings suggest that, although the proposed framework improved robustness relative to the baseline, substantial domain shift remained across datasets. Possible contributors include differences in label definitions, annotation procedures, disease prevalence, image acquisition protocols, and population characteristics.
When benchmarked against prior methods, our Top-3 ensemble surpassed CNN-only architectures such as Thorax-Net (AUROC = 0.787) [36], DenseNet121 (0.79) [37], DCXNet (0.82) [38], CheXNet (0.8413) [8], CheXNet-PFN (0.846) [39], and CONVFCMAE (0.8523) [7], all of which rely primarily on localized feature extraction. Its performance was also comparable to Z-Net (0.858) [40], which represents one of the strongest CNN-based designs. Beyond CNNs, the ensemble outperformed transformer-only approaches, including DeiT-B (0.78) [37], SwinCheX (0.810) [41], and the Vision Transformer (0.837) [14], which emphasize global context modeling but often underperform in fine-grained lesion detection. These results support the potential value of combining local texture-sensitive CNN features with transformer-based global contextual modeling for chest X-ray classification. Furthermore, our ensemble exceeded other reported hybrid frameworks such as SA-DenseNet (0.8357) [33] and SynthEnsemble (0.854) [34], although it remained slightly below LungMaxVit (0.932) [35].
Unlike many prior studies restricted to internal evaluation, our framework was externally tested on two independent datasets, providing evidence of relative robustness across datasets, although the absolute external performance remained moderate. From a clinical perspective, the hybrid framework showed class-specific performance gains in several clinically important conditions, such as cardiomegaly, emphysema, mass, and pneumothorax. Ensemble strategies significantly improved sensitivity for atelectasis, infiltration, and pleural thickening, whereas the proposed model preserved relatively higher accuracy and specificity for some classes, including cardiomegaly and edema. These results demonstrate statistically significant but quantitatively modest improvements over the baseline and suggest that hybrid fusion and ensemble strategies may improve model robustness. However, the moderate external AUROC values indicate that further refinement and prospective validation are still required before clinical deployment can be considered.
Furthermore, interpretability remains a critical prerequisite for clinical translation. Our Grad-CAM visualizations demonstrated that the proposed framework consistently highlighted disease-relevant anatomical regions, thereby improving the technical interpretability of the model outputs. Nevertheless, mislocalized or ambiguous activations suggest that these attention maps should be interpreted cautiously and regarded as supportive visual aids rather than definitive evidence of clinical reasoning.
Nonetheless, several limitations warrant acknowledgment. First, persistent variability in categories such as infiltration and pleural thickening reflects labeling noise and overlapping radiographic features. Confidence calibration or expert-in-the-loop refinement may help address this issue. Second, our study focused on frontal-view CXRs, limiting applicability to lateral projections; future work should incorporate multi-view training. Third, clinical and demographic metadata (e.g., age, sex, or comorbidities) were not included, although such information could improve personalization and disease priors. Finally, the current model was optimized for research purposes; real-time deployment will require computational refinements such as quantization, pruning, or model distillation.
Future research should extend toward multimodal frameworks that integrate imaging with clinical metadata, laboratory tests, and longitudinal imaging. Federated learning approaches could further enhance generalizability while preserving data privacy. Most critically, prospective clinical trials are needed to evaluate workflow integration, interpretability, and radiologist–AI collaboration in real-world practice.

5. Conclusions

In conclusion, hybrid CNN–transformer architectures combined with multi-scale fusion and ensemble strategies provided modest but statistically significant improvements in multi-label chest X-ray classification compared with a DenseNet121 baseline. The external validation results suggest partial generalizability across datasets, although performance remained moderate under domain shift. These findings support the methodological potential of hybrid and ensemble designs, while further robustness testing and prospective clinical validation are needed before real-world implementation.

Supplementary Materials

The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/diagnostics16081227/s1, Figure S1: DenseNet-121 model; Figure S2: Sequential Hybrid V1 (SH1); Figure S3: Sequential Hybrid V2 (SH2); Figure S4: Parallel Fusion V1 (PF1); Figure S5: Parallel Fusion V2 (PF2); Figure S6: Parallel Fusion V3 (PF3); Figure S7: Parallel Fusion V4 (PF4); Figure S8: Parallel Fusion V5 (PF5); Figure S9: AUROC distributions per disease class for all model variants; Table S1: Mean AUROC comparison of model variants on the NIH ChestX-ray14 test set. Supplementary S1. Architectural Overview of Baseline and Comparative Models; Supplementary S2. Model Formulation and Attention Mechanism; Supplementary S3. Evaluation Metrics; Supplementary S4. Model-Wise Mean AUROC Comparison.

Author Contributions

Conceptualization, C.-J.J. and H.-H.H.; methodology, Y.-H.T.; software, Y.-H.T.; validation, C.-F.H., H.-H.P.; formal analysis, Y.-H.T.; investigation, C.-J.J. and H.-H.P.; resources, C.-C.C. and H.-H.P.; data curation, Y.-H.T. and C.-C.C.; writing—original draft preparation, C.-F.H. and H.-H.P.; writing—review and editing, C.-H.J., C.-J.J. and H.-H.H.; visualization, C.-H.J.; supervision, C.-J.J. and H.-H.H.; project administration, C.-C.C.; funding acquisition, C.-J.J. and H.-H.H. All authors have read and agreed to the published version of the manuscript.

Funding

C.-F.H. received financial support partly from China Medical University Hsinchu Hospital (CMUHCH-DMR-112-023). C.-J.J. received financial support partly from China Medical University Hsinchu Hospital (CMUHCH-DMR-112-001 and CMUHCH-DMR-112-003). H.-H.H. received financial support partly from the Taiwan National Science and Technology Council (NSTC 113-2314-B-016-027-MY2).

Institutional Review Board Statement

This study used only fully de-identified, publicly available datasets (NIH ChestX-ray14, CheXpert, and ChestX-Det10) and was exempt from ethical approval in the present institution.

Informed Consent Statement

Patient consent was waived because this study used only fully de-identified, publicly available datasets.

Data Availability Statement

The original contributions presented in this study are included in the article/Supplementary Material. Further inquiries can be directed to the corresponding authors.

Acknowledgments

During the preparation of this manuscript/study, the authors used OpenAI’s ChatGPT (version 5) for the purposes of assistance with grammar and language refinement. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
AIArtificial Intelligence
AUROCArea Under the Receiver Operating Characteristic Curve
CNNConvolution Neural Network
CXRChest X-ray
DNSDenseNet121
NPVNegative Predictive Value
PF1Parallel Fusion V1 (Simple Fusion)
PF2Parallel Fusion V2 (Cross Stage)
PF3Parallel Fusion V3 (Cross Stage + PE + Weights)
PF4Parallel Fusion V4 (Single Cross-Attention)
PF5Parallel Fusion V5 (Double Cross-Attention)
PF6Proposed Parallel Fusion V6
PPVPositive Predictive Value (Precision)
SH1Sequential Hybrid V1
SH2Sequential Hybrid V2

References

  1. Broder, J. Imaging the Chest: The Chest Radiograph. In Diagnostic Imaging for the Emergency Physician; Sanders, R., Goodloe, D., Eds.; Elsevier: Philadelphia, PA, USA, 2011; Volume 5, pp. 185–296. [Google Scholar]
  2. Lantsman, C.D.; Barash, Y.; Klang, E.; Guranda, L.; Konen, E.; Tau, N. Trend in radiologist workload compared to number of admissions in the emergency department. Eur. J. Radiol. 2022, 149, 110195. [Google Scholar] [CrossRef]
  3. Mirak, S.A.; Tirumani, S.H.; Ramaiya, N.; Mohamed, I. The Growing Nationwide Radiologist Shortage: Current Opportunities and Ongoing Challenges for International Medical Graduate Radiologists. Radiology 2025, 314, e232625. [Google Scholar] [CrossRef]
  4. Elemraid, M.A.; Muller, M.; Spencer, D.A.; Rushton, S.P.; Gorton, R.; Thomas, M.F.; Eastham, K.M.; Hampton, F.; Gennery, A.R.; Clark, J.E.; et al. Accuracy of the interpretation of chest radiographs for the diagnosis of paediatric pneumonia. PLoS ONE 2014, 9, e106051. [Google Scholar] [CrossRef]
  5. Topff, L.; Steltenpool, S.; Ranschaert, E.R.; Ramanauskas, N.; Menezes, R.; Visser, J.J.; Beets-Tan, R.G.H.; Hartkamp, N.S. Artificial intelligence-assisted double reading of chest radiographs to detect clinically relevant missed findings: A two-centre evaluation. Eur. Radiol. 2024, 34, 5876–5885. [Google Scholar] [CrossRef] [PubMed]
  6. Schalekamp, S.; van Leeuwen, K.; Calli, E. Performance of AI to exclude normal chest radiographs to reduce radiologists’ workload. Eur. Radiol. 2024, 34, 7255–7263. [Google Scholar] [CrossRef] [PubMed]
  7. Xiong, K.; Tu, Y.; Rao, X.; Zou, X.; Du, Y. Multi-Label Disease Detection in Chest X-Ray Imaging Using a Fine-Tuned ConvNeXtV2 with a Customized Classifier. Informatics 2025, 12, 80. [Google Scholar] [CrossRef]
  8. Rajpurkar, P.; Irvin, J.; Zhu, K.; Yang, B.; Mehta, H.; Duan, T.; Ding, D.; Bagul, A.; Langlotz, C.; Shpanskaya, K.; et al. CheXNet: Radiologist-Level Pneumonia Detection on Chest X-Rays with Deep Learning. arXiv 2017, arXiv:1711.05225. [Google Scholar]
  9. Tekerek, A.; Al-Rawe, I.A.M. A Novel Approach for Prediction of Lung Disease Using Chest X-ray Images Based on DenseNet and MobileNet. Wirel. Pers. Commun. 2023. [Google Scholar] [CrossRef]
  10. Bukhari, M.A.S.; Bukhari, F.; Asif, M.; Aljuaid, H.; Iqbal, W. A multi-scale CNN with atrous spatial pyramid pooling for enhanced chest-based disease detection. PeerJ Comput. Sci. 2025, 11, e2686. [Google Scholar] [CrossRef]
  11. Gtifa, W.; Mhaouch, A.; Alsharif, N.; Althobaiti, T.; Sakly, A. Nature-Inspired Multi-Level Thresholding Integrated with CNN for Accurate COVID-19 and Lung Disease Classification in Chest X-Ray Images. Diagnostics 2025, 15, 1500. [Google Scholar] [CrossRef]
  12. Rana, N.; Coulibaly, Y.; Noor, A.; Noor, T.H.; Alam, I.; Khan, Z.; Tahir, A.; Khan, M.Z. Improved swin transformer-based thorax disease classification with optimal feature selection using chest X-ray. PLoS ONE 2025, 20, e0327099. [Google Scholar] [CrossRef]
  13. Padmavathi, V.; Ganesan, K. LungNet-ViT: Efficient lung disease classification using a multistage vision transformer model from chest radiographs. J. Xray Sci. Technol. 2025, 33, 742–759. [Google Scholar] [CrossRef] [PubMed]
  14. Huang, L.; Ma, J.; Yang, H.; Wang, Y. Research and implementation of multi-disease diagnosis on chest X-ray based on vision transformer. Quant. Imaging Med. Surg. 2024, 14, 2539–2555. [Google Scholar] [CrossRef] [PubMed]
  15. Essa, M.E.A. Diagnostic accuracy of AI in chest radiography for pneumonia and lung cancer: A meta-analysis. Eur. J. Radiol. Open 2025, 15, 100701. [Google Scholar] [CrossRef]
  16. Wang, X.; Peng, Y.; Lu, L.; Lu, Z.; Bagheri, M.; Summers, R.M. ChestX-Ray8: Hospital-Scale Chest X-Ray Database and Benchmarks on Weakly-Supervised Classification and Localization of Common Thorax Diseases. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 3462–3471. [Google Scholar]
  17. Irvin, J.; Rajpurkar, P.; Ko, M.; Yu, Y.; Ciurea-Ilcus, S.; Chute, C.; Marklund, H.; Haghgoo, B.; Ball, R.; Shpanskaya, K.; et al. CheXpert: A large chest radiograph dataset with uncertainty labels and expert comparison. In Proceedings of the 33rd AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; AAAI Press: Washington, DC, USA, 2019; pp. 590–597. [Google Scholar]
  18. Liu, J.; Lian, J.; Yu, Y. ChestX-Det10: Chest X-ray dataset on detection of thoracic abnormalities. arXiv 2020, arXiv:2006.10550. [Google Scholar]
  19. Scope of Human Research Cases Exempt from Review by the Research Ethics Committee: Wei-Shu-Yi-Zi No. 1010265075. 2012. Available online: https://gazette.nat.gov.tw/EG_FileManager/eguploadpub/eg018127/ch08/type1/gov70/num35/Eg.htm (accessed on 21 January 2025).
  20. Scope of Human Research Cases Exempt from Obtaining the Research Subject’s Consent: Wei-Shu-Yi-Zi No. 1010265083. 2012. Available online: https://gazette.nat.gov.tw/EG_FileManager/eguploadpub/eg018127/ch08/type1/gov70/num36/Eg.pdf (accessed on 21 January 2025).
  21. Huang, G.; Liu, Z.; Maaten, L.V.D.; Weinberger, K.Q. Densely Connected Convolutional Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 4700–4708. [Google Scholar]
  22. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. arXiv 2017, arXiv:1706.03762. [Google Scholar]
  23. Chen, J.; Lu, Y.; Yu, Q.; Luo, X.; Adeli, E.; Wang, Y.; Lu, L.; Yuille, A.L.; Zhou, Y. TransUNet: Transformers make strong encoders for medical image segmentation. arXiv 2021, arXiv:2102.04306. [Google Scholar] [CrossRef]
  24. Linden, A. Measuring diagnostic and predictive accuracy in disease management: An introduction to receiver operating characteristic (ROC) analysis. J. Eval. Clin. Pract. 2006, 12, 132–139. [Google Scholar] [CrossRef]
  25. Sokolova, M.; Lapalme, G. A systematic analysis of performance measures for classification tasks. Inf. Process. Manag. 2009, 45, 427–437. [Google Scholar] [CrossRef]
  26. Youden, W.J. Index for rating diagnostic tests. Cancer 1950, 3, 32–35. [Google Scholar] [CrossRef]
  27. Loshchilov, I.; Hutter, F. SGDR: Stochastic gradient descent with warm restarts. arXiv 2016, arXiv:1608.03983. [Google Scholar]
  28. Lin, T.Y.; Goyal, P.; Girshick, R.; He, K.; Dollar, P. Focal loss for dense object detection. In Proceedings of the IEEE Int Conf. Comput Vis (ICCV), Venice, Italy, 22–29 October 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 2980–2988. [Google Scholar] [CrossRef]
  29. Shapiro, S.S. An analysis of variance test for normality (complete samples). Biometrika 1965, 52, 591–611. [Google Scholar] [CrossRef]
  30. Fisher, R.A. Statistical methods for research workers. In Breakthroughs in Statistics Volume II; Kotz, S., Johnson, N.L., Eds.; Genesis Publishing Pvt Ltd.: New Delhi, India, 1925; pp. 66–70. [Google Scholar]
  31. Kruskal, W.H.; Wallis, W.A. Use of ranks in one-criterion variance analysis. J. Am. Stat. Assoc. 1952, 47, 583–621. [Google Scholar] [CrossRef]
  32. Tukey, J.W. Comparing individual means in the analysis of variance. Biometrics 1949, 5, 99–114. [Google Scholar] [CrossRef] [PubMed]
  33. Singh, S. Computer-Aided Diagnosis of Thoracic Diseases in Chest X-rays using hybrid CNN-Transformer Architecture. arXiv 2024, arXiv:2404.11843. [Google Scholar]
  34. Ashraf, S.N.; Mamun, M.A.; Abdullah, H.M.; Alam, M.G.R. SynthEnsemble: A Fusion of CNN, Vision Transformer, and Hybrid Models for Multi-Label Chest X-Ray Classification. arXiv 2023, arXiv:2311.07750. [Google Scholar]
  35. Fu, X.; Lin, R.; Du, W.; Tavares, A.; Liang, Y. Explainable hybrid transformer for multi-classification of lung disease using chest X-rays. Sci. Rep. 2025, 15, 6650. [Google Scholar] [CrossRef]
  36. Wang, H.; Jia, H.; Lu, L.; Xia, Y. Thorax-Net: An Attention Regularized Deep Neural Network for Classification of Thoracic Diseases on Chest Radiography. IEEE J. Biomed. Health Inform. 2020, 24, 475–485. [Google Scholar] [CrossRef]
  37. Murphy, Z.R.; Venkatesh, K.; Sulam, J.; Yi, P.H. Visual Transformers and Convolutional Neural Networks for Disease Classification on Radiographs: A Comparison of Performance, Sample Efficiency, and Hidden Stratification. Radiol. Artif. Intell. 2022, 4, e220012. [Google Scholar] [CrossRef]
  38. Karna, A.; Jha, A.; Dahal, A.; Pandey, A.; Jha, T.N. Chest X-Ray Classification using DenseNet. In Proceedings of 13th IOE Graduate Conference; Tribhuvan University: Kathmandu, Nepal, 2023; Volume 13, pp. 64–67. [Google Scholar]
  39. Hasanah, U.; Avian, C.; Darmawan, J.T.; Bachroin, N.; Faisal, M.; Prakosa, S.W.; Leu, J.-S.; Tsai, C.-T. CheXNet and feature pyramid network: A fusion deep learning architecture for multilabel chest X-Ray clinical diagnoses classification. Int. J. Cardiovasc. Imaging 2024, 40, 709–722. [Google Scholar] [CrossRef]
  40. Ahmad, Z.; Malik, A.K.; Qamar, N.; Islam, S.U. Efficient Thorax Disease Classification and Localization Using DCNN and Chest X-ray Images. Diagnostics 2023, 13, 3462. [Google Scholar] [CrossRef]
  41. Taslimi, S.; Taslimi, S.; Fathi, N.; Salehi, M.; Rohban, M.H. SwinCheX: Multi-label classification on chest X-ray images with transformers. arXiv 2022, arXiv:2206.04246. [Google Scholar]
Figure 1. Patient flow diagram of dataset selection and allocation. Blue boxes represent dataset cohorts (e.g., NIH ChestX-ray14, ChestXpert, ChestX-Det10); light yellow boxes represent exclusion steps; Gray boxes represent data splitting or evaluation protocols.
Figure 1. Patient flow diagram of dataset selection and allocation. Blue boxes represent dataset cohorts (e.g., NIH ChestX-ray14, ChestXpert, ChestX-Det10); light yellow boxes represent exclusion steps; Gray boxes represent data splitting or evaluation protocols.
Diagnostics 16 01227 g001
Figure 2. Study pipeline. Workflow includes dataset preparation, image preprocessing, model development (DenseNet121 baseline, hybrid CNN–transformer variants, and the proposed model), ensemble strategies, performance evaluation, and statistical analysis.
Figure 2. Study pipeline. Workflow includes dataset preparation, image preprocessing, model development (DenseNet121 baseline, hybrid CNN–transformer variants, and the proposed model), ensemble strategies, performance evaluation, and statistical analysis.
Diagnostics 16 01227 g002
Figure 3. Schematic overview of the proposed convolutional neural network (CNN)–transformer hybrid architecture for multi-label chest X-ray classification. Input radiographs are processed in parallel through a DenseNet backbone and a transformer encoder branch. Multi-scale features are integrated via scalar-weighted fusion and refined using cross-attention, enabling the model to capture both localized and global contextual information. Final outputs are class-wise sigmoid predictions for thoracic diseases.
Figure 3. Schematic overview of the proposed convolutional neural network (CNN)–transformer hybrid architecture for multi-label chest X-ray classification. Input radiographs are processed in parallel through a DenseNet backbone and a transformer encoder branch. Multi-scale features are integrated via scalar-weighted fusion and refined using cross-attention, enabling the model to capture both localized and global contextual information. Final outputs are class-wise sigmoid predictions for thoracic diseases.
Diagnostics 16 01227 g003
Figure 4. The receiver operating characteristic (ROC) curves of the proposed hybrid model for 14 thoracic disease classes on the NIH ChestX-ray14 test set. AUROC values ranged from 0.714 for infiltration to 0.943 for hernia. The highest AUROC values were observed for hernia (0.943), emphysema (0.938), and cardiomegaly (0.916), indicating strong discriminative performance for these disease classes.
Figure 4. The receiver operating characteristic (ROC) curves of the proposed hybrid model for 14 thoracic disease classes on the NIH ChestX-ray14 test set. AUROC values ranged from 0.714 for infiltration to 0.943 for hernia. The highest AUROC values were observed for hernia (0.943), emphysema (0.938), and cardiomegaly (0.916), indicating strong discriminative performance for these disease classes.
Diagnostics 16 01227 g004
Figure 5. Bootstrapped AUROC distributions for six representative thoracic disease classes across the nine individual models on the NIH ChestX-ray14 test set. Each boxplot represents 100 bootstrap resamples. For readability, only six representative classes are shown here. The proposed model (PF6) is shown at the far right of each panel (green box). Box colors indicate the statistical significance of the comparison between PF6 and DenseNet121, with blue representing p < 0.0001 and gray representing p ≥ 0.05. Circles represent outliers, defined as values lying beyond 1.5× the interquartile range (IQR).
Figure 5. Bootstrapped AUROC distributions for six representative thoracic disease classes across the nine individual models on the NIH ChestX-ray14 test set. Each boxplot represents 100 bootstrap resamples. For readability, only six representative classes are shown here. The proposed model (PF6) is shown at the far right of each panel (green box). Box colors indicate the statistical significance of the comparison between PF6 and DenseNet121, with blue representing p < 0.0001 and gray representing p ≥ 0.05. Circles represent outliers, defined as values lying beyond 1.5× the interquartile range (IQR).
Diagnostics 16 01227 g005
Figure 6. Gradient-weighted Class Activation Mapping (Grad-CAM) visualizations from the proposed hybrid model on representative cases from the NIH ChestX-ray14 dataset. Each row presents the original chest radiograph (left) followed by Grad-CAM heatmaps for the top predicted disease classes. The warmer regions (red/yellow) indicate stronger model attention, generally aligning with disease-relevant anatomical areas. The visual markers include: (1) yellow arrows indicating suspected mass regions, (2) red arrows marking pulmonary nodules, (3) blue arrow highlighting pleural effusion, and (4) green arrows identifying pneumothorax locations.
Figure 6. Gradient-weighted Class Activation Mapping (Grad-CAM) visualizations from the proposed hybrid model on representative cases from the NIH ChestX-ray14 dataset. Each row presents the original chest radiograph (left) followed by Grad-CAM heatmaps for the top predicted disease classes. The warmer regions (red/yellow) indicate stronger model attention, generally aligning with disease-relevant anatomical areas. The visual markers include: (1) yellow arrows indicating suspected mass regions, (2) red arrows marking pulmonary nodules, (3) blue arrow highlighting pleural effusion, and (4) green arrows identifying pneumothorax locations.
Diagnostics 16 01227 g006
Table 1. The mean AUROC of ensemble strategies on the NIH ChestX-ray14 test set with statistical comparison against the DenseNet121 baseline and the proposed model.
Table 1. The mean AUROC of ensemble strategies on the NIH ChestX-ray14 test set with statistical comparison against the DenseNet121 baseline and the proposed model.
StrategyMean AUROC (95% CI)p-Value vs. DenseNet121p-Value vs. Proposed Method
DenseNet121 (Baseline)0.8441 [0.8412, 0.8470]***
Proposed Method (PF6)0.8495 [0.7130, 0.9495]***
Best Model Per-Class0.8512 [0.7138, 0.9591]*****
AUROC-Based Weighted Fusion0.8530 [0.7170, 0.9636]******
Stacking (Logistic Regression)0.8567 [0.7192, 0.9709]******
Top-3 Grid Search Fusion0.8577 [0.7186, 0.9664]******
Note: Values represent mean AUROC with 95% confidence intervals derived from 100 bootstrap resamples. p-values were obtained using two-tailed paired t-tests comparing bootstrapped AUROC distributions. Significance thresholds: p < 0.01 (**), p < 0.001 (***).
Table 2. Per-class AUROC comparison between the DenseNet121 baseline and the proposed hybrid CNN–transformer model on the NIH ChestX-ray14 test set.
Table 2. Per-class AUROC comparison between the DenseNet121 baseline and the proposed hybrid CNN–transformer model on the NIH ChestX-ray14 test set.
Disease ClassAUROC (DenseNet)AUROC
(Proposed)
∆AUROC
(Proposed − DenseNet)
p-Value
Atelectasis0.82150.82920.0078***
Cardiomegaly0.89570.91450.0189***
Consolidation0.81100.81620.0052***
Edema0.89560.89550.00010.9576
Effusion0.88140.88470.0110**
Emphysema0.92650.93890.0079***
Fibrosis0.84880.8404−0.0084***
Hernia0.94680.9442−0.00260.0663
Infiltration0.70500.71420.0092***
Mass0.85010.87130.0213***
Nodule0.79240.79540.00300.0598
Pleural Thickening0.78890.7871−0.00180.2155
Pneumonia0.76880.76990.00110.4069
Pneumothorax0.87540.88690.0115***
Note: ∆AUROC = AUROC (Proposed) − AUROC (DenseNet). Significance levels: ** p < 0.01, *** p < 0.001. Exact p values are reported for non-significant differences.
Table 3. Per-class AUROC comparison between DenseNet121 baseline and the Top-3 Grid Search ensemble on the NIH ChestX-ray14 test set.
Table 3. Per-class AUROC comparison between DenseNet121 baseline and the Top-3 Grid Search ensemble on the NIH ChestX-ray14 test set.
Disease ClassAUROC
(DenseNet)
AUROC
(Top-3 Grid)
∆AUROC
(Top-3 Grid − DenseNet)
p-Value
Atelectasis0.82880.83600.0072***
Cardiomegaly0.90560.91860.0129***
Consolidation0.81230.82170.0094***
Edema0.89370.90350.0098***
Effusion0.88230.88910.0068***
Emphysema0.93160.94340.0118***
Fibrosis0.83950.85150.0120***
Hernia0.94550.96050.0150***
Infiltration0.70730.72120.0139***
Mass0.85320.87340.0202***
Nodule0.78880.80450.0158***
Pleural Thickening0.78180.79760.0157***
Pneumonia0.75580.78550.0297***
Pneumothorax0.88410.89440.0103***
Note: ∆AUROC = AUROC (Top-3 Grid Ensemble) − AUROC (DenseNet121). p-values were derived from Tukey’s HSD test applied to bootstrapped AUROC distributions (n = 100). Significance thresholds: p < 0.001 (***).
Table 4. Comparison of diagnostic performance metrics between the proposed hybrid CNN–transformer model and the Top-3 Grid Search ensemble across 14 disease classes on the NIH ChestX-ray14 test set, using Youden’s thresholds for binary classification.
Table 4. Comparison of diagnostic performance metrics between the proposed hybrid CNN–transformer model and the Top-3 Grid Search ensemble across 14 disease classes on the NIH ChestX-ray14 test set, using Youden’s thresholds for binary classification.
Disease ClassProposed ModelTop-3 Ensemble Strategyp-Value
PPVSensitivityF1AccuracySpecificityNPVPPVSensitivityF1AccuracySpecificityNPV
Atelectasis0.260.780.390.73360.72790.96480.240.840.380.69830.68120.9724***
Cardiomegaly0.110.860.200.82250.82160.99540.130.830.220.84960.85010.9948**
Effusion0.380.810.520.81460.81500.96870.380.810.520.81400.81430.96870.914
Infiltration0.330.560.410.72000.75360.88990.290.660.400.65650.65520.9012***
Mass0.160.820.270.77740.77520.98770.160.820.270.77670.77450.98770.862
Nodule0.170.670.270.78930.79690.97440.160.700.270.77070.77500.9763***
Pneumonia0.030.660.060.76980.77100.99520.040.620.070.82040.82260.99500.102
Pneumothorax0.200.790.320.83870.84110.98760.200.820.320.83020.83050.9893***
Consolidation0.110.760.200.73380.73260.98560.110.780.200.72850.72610.9868**
Edema0.060.930.110.72040.71640.99820.070.900.130.78800.78600.9975**
Emphysema0.130.850.230.87090.87120.99610.160.850.270.89660.89770.99610.532
Fibrosis0.050.780.090.74740.74690.99520.060.750.110.79790.79880.9948*
Pleural Thickening0.100.620.180.81380.82030.98460.090.710.160.75270.75420.9872***
Hernia0.030.860.050.94430.94450.99970.011.000.020.78800.78761.0000*
Average0.150.770.240.79200.79570.98110.150.790.240.78360.78510.9848
Note: Metrics include precision (PPV), sensitivity, F1-score, accuracy, specificity, and negative predictive value (NPV). Significance levels: * p < 0.05, ** p < 0.01, *** p < 0.001.
Table 5. Per-class and mean AUROC scores on external datasets (CheXpert and ChestX-Det10) for DenseNet121 baseline, hybrid models, and the Top-3 Grid Search ensemble.
Table 5. Per-class and mean AUROC scores on external datasets (CheXpert and ChestX-Det10) for DenseNet121 baseline, hybrid models, and the Top-3 Grid Search ensemble.
DatasetDisease ClassDenseNet121Proposed PF6PF2SH2PF1Top-3
Ensemble
∆AUROCp-Value
CheXpertAtelectasis0.54890.56370.56770.45290.48090.5640+0.0151***
Cardiomegaly0.68220.66330.65570.53320.62580.6850+0.0028***
Effusion0.44190.48950.49100.56040.50030.4799+0.0380***
Infiltration0.77360.78450.78400.56010.60020.7950+0.0214***
Pneumonia0.61940.61100.61040.41280.43960.6403+0.0209***
Pneumothorax0.59740.58470.57160.51120.53120.6366+0.0392***
Consolidation0.76170.77310.77570.43870.60150.7802+0.0185***
Edema0.65200.64520.63870.50010.49050.6702+0.0182**
Pleural Thickening0.47160.46510.47410.43270.46240.4982+0.0266***
Mean AUROC0.63180.62920.62750.47020.50770.6500+0.0182***
ChestX-Det10Atelectasis0.64610.64330.63970.43850.44770.6862+0.0401***
Consolidation0.58620.61540.61540.40380.54140.6118+0.0256***
Effusion0.70930.71230.71560.49650.48970.7333+0.0240***
Emphysema0.88620.87920.87910.51550.58600.8905+0.00430.4068
Fibrosis0.58230.58080.58150.51220.57340.5912+0.0089**
Mass0.69940.71920.71290.49490.47780.7214+0.0221***
Nodule0.65320.61030.61000.50320.49280.6174−0.0358***
Pneumothorax0.88330.89050.89510.44870.43670.8997+0.0164***
Mean AUROC0.64760.64660.64580.48010.52160.6592+0.0116***
Note: ∆AUROC = AUROC (Top-3 Ensemble)—AUROC (DenseNet121). p-values were derived from paired t-tests comparing bootstrapped AUROC distributions (n = 100) against the DenseNet121 baseline. Significance thresholds: p < 0.01 (**), p < 0.001 (***). Non-significant exact values are reported.
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.

Share and Cite

MDPI and ACS Style

Hsieh, C.-F.; Peng, H.-H.; Tsai, Y.-H.; Chang, C.-C.; Juan, C.-H.; Hsu, H.-H.; Juan, C.-J. An Adaptive Deep Learning Framework for Multi-Label Chest X-Ray Diagnosis Using a Hybrid CNN–Transformer Architecture and Class-Wise Ensemble Fusion. Diagnostics 2026, 16, 1227. https://doi.org/10.3390/diagnostics16081227

AMA Style

Hsieh C-F, Peng H-H, Tsai Y-H, Chang C-C, Juan C-H, Hsu H-H, Juan C-J. An Adaptive Deep Learning Framework for Multi-Label Chest X-Ray Diagnosis Using a Hybrid CNN–Transformer Architecture and Class-Wise Ensemble Fusion. Diagnostics. 2026; 16(8):1227. https://doi.org/10.3390/diagnostics16081227

Chicago/Turabian Style

Hsieh, Chi-Feng, Hsu-Hsia Peng, Yu-Hsiang Tsai, Chia-Ching Chang, Cheng-Hsuan Juan, Hsian-He Hsu, and Chun-Jung Juan. 2026. "An Adaptive Deep Learning Framework for Multi-Label Chest X-Ray Diagnosis Using a Hybrid CNN–Transformer Architecture and Class-Wise Ensemble Fusion" Diagnostics 16, no. 8: 1227. https://doi.org/10.3390/diagnostics16081227

APA Style

Hsieh, C.-F., Peng, H.-H., Tsai, Y.-H., Chang, C.-C., Juan, C.-H., Hsu, H.-H., & Juan, C.-J. (2026). An Adaptive Deep Learning Framework for Multi-Label Chest X-Ray Diagnosis Using a Hybrid CNN–Transformer Architecture and Class-Wise Ensemble Fusion. Diagnostics, 16(8), 1227. https://doi.org/10.3390/diagnostics16081227

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop