A calibration-aware hierarchical CNN-SWIN fusion framework for robust Cross-Dataset brain MRI analysis

Introduction: Deep learning approaches have become central to brain MRI analysis; however, their reliability under dataset shift remains a critical barrier to safe and scalable deployment in neuroscience and clinical research. While convolutional neural networks (CNNs) provide strong locality-driven inductive biases for robust feature extraction, they lack global contextual awareness. Conversely, transformer-based architectures capture long-range dependencies but often exhibit reduced robustness and miscalibrated confidence when applied to heterogeneous medical imaging data, particularly in Cross-Dataset settings. Methods: hierarchical CNN-Transformer fusion framework designed for robust brain MRI analysis under dataset shift. The architecture integrates a pretrained multi-scale CNN backbone with a hierarchical transformer branch and performs scale-aligned fusion through cross-attention mechanisms. By allowing local convolutional features to selectively query global contextual representations, the proposed design maintains stable feature contributions during fusion and mitigates overconfident reliance on transformer features when generalization degrades across datasets. The framework is evaluated using a strict Cross-Dataset protocol, where models are trained on one dataset and tested on a distinct dataset. Results: Experimental results demonstrate that the proposed fusion model achieves competitive classification performance while substantially improving probabilistic calibration relative to both CNN-only and transformer-only baselines. Specifically, the model attains an average accuracy of 99.20% and achieves lower Expected Calibration Error (ECE = 0.0041), Brier score (0.0028), and Negative Log-Likelihood (NLL = 0.0277) compared to a standalone Swin Transformer and a strong ResNet50 baseline. Discussion: These findings demonstrate that calibration-aware hierarchical CNN-Transformer fusion enhances both predictive reliability and robustness under Cross-Dataset evaluation. By improving the alignment between predictive confidence and empirical correctness, the proposed method supports safer large-scale analysis of heterogeneous brain MRI data, with important implications for multi-center neuroscience studies and trustworthy clinical decision support.

Authors

Institutions

Publication Details

Journal
Frontiers in Neuroscience
Published
2026-04-14
DOI
https://doi.org/10.3389/fnins.2026.1782306
Primary Topic
Advanced Neural Network Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A calibration-aware hierarchical CNN-SWIN fusion framework for robust Cross-Dataset brain MRI analysis

李锵 Li Qiang, Mohammed Jajere Adamu, Ayesha Younis, Halima Bello Kawuwa et al.
Frontiers in Neuroscience
Advanced Neural Network Applications
article

A calibration-aware hierarchical CNN-SWIN fusion framework for robust Cross-Dataset brain MRI analysis

李锵 Li Qiang, Mohammed Jajere Adamu, Ayesha Younis, Halima Bello Kawuwa, Abdur Rehman, Hamid Hussain
article en

Abstract

Introduction: Deep learning approaches have become central to brain MRI analysis; however, their reliability under dataset shift remains a critical barrier to safe and scalable deployment in neuroscience and clinical research. While convolutional neural networks (CNNs) provide strong locality-driven inductive biases for robust feature extraction, they lack global contextual awareness. Conversely, transformer-based architectures capture long-range dependencies but often exhibit reduced robustness and miscalibrated confidence when applied to heterogeneous medical imaging data, particularly in Cross-Dataset settings. Methods: hierarchical CNN-Transformer fusion framework designed for robust brain MRI analysis under dataset shift. The architecture integrates a pretrained multi-scale CNN backbone with a hierarchical transformer branch and performs scale-aligned fusion through cross-attention mechanisms. By allowing local convolutional features to selectively query global contextual representations, the proposed design maintains stable feature contributions during fusion and mitigates overconfident reliance on transformer features when generalization degrades across datasets. The framework is evaluated using a strict Cross-Dataset protocol, where models are trained on one dataset and tested on a distinct dataset. Results: Experimental results demonstrate that the proposed fusion model achieves competitive classification performance while substantially improving probabilistic calibration relative to both CNN-only and transformer-only baselines. Specifically, the model attains an average accuracy of 99.20% and achieves lower Expected Calibration Error (ECE = 0.0041), Brier score (0.0028), and Negative Log-Likelihood (NLL = 0.0277) compared to a standalone Swin Transformer and a strong ResNet50 baseline. Discussion: These findings demonstrate that calibration-aware hierarchical CNN-Transformer fusion enhances both predictive reliability and robustness under Cross-Dataset evaluation. By improving the alignment between predictive confidence and empirical correctness, the proposed method supports safer large-scale analysis of heterogeneous brain MRI data, with important implications for multi-center neuroscience studies and trustworthy clinical decision support.

Frontiers in NeuroscienceVol. 20
Lovely Professional University (IN), Tianjin University (CN), National University of Computer and Emerging Sciences (PK), Yobe State University (NG), Research Institute of Precision Instruments (Russia) (RU), Zhejiang University (CN)
Openalex Percentile: Top 26%
Advanced Neural Network Applications
AI Navigator

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

Summarize Papers & Methodologies

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

Benchmark Rankings & Visual Analytics

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

Connect Distant Disciplines

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