CoDeSwiT: an efficient multi-stream hybrid architecture for global–local feature fusion via dynamic gating in medical image analysis

Medical image analysis plays a vital role in the early diagnosis of diseases. However, current deep learning approaches in this field have certain structural limitations. Although Convolutional Neural Networks (CNNs) demonstrate superior performance in extracting local features thanks to inductive bias, they fall short in capturing the global context. On the other hand, Vision Transformer (ViT) architectures are powerful in modeling global relationships; however, they have disadvantages such as loss of local detail, excessive data requirements, and high computational costs. CNN-ViT hybrid models typically use multi-branch structures that combine the outputs of independent and large backbones. This significantly increases the model's computational load and number of parameters, reducing efficiency and making it difficult to use in clinical applications. To overcome these limitations, this study proposes the original and efficient CoDeSwiT architecture. CoDeSwiT integrates local and global features into a low-cost architecture through its parallel arms designed on a single data stream and weighted fusion capability, unlike computationally intensive hybrid structures. The proposed architecture effectively reduces dimensions using the modern ConvNeXt stem for rich feature representation, while integrating the Swin Transformer encoder to model the global context hierarchically and computationally efficiently. The Depthwise Separable Convolution (DWS) and Squeeze-and-Excitation (SE) local attention branch, designed in parallel with the Transformer stream in the architecture, ensures the capture of fine texture details and local features. The outputs of these heterogeneous branches are fused through a learnable gating mechanism, unlike standard static fusion operations in the literature. The gating mechanism dynamically determines and weights the diagnostic importance of local or global information for each image sample, enabling the model to adaptively focus on critical findings. The effectiveness of the proposed architecture was evaluated on three comprehensive datasets with different modalities: the Alzheimer MRI dataset, the Chest X-Ray dataset, and the Tuberculosis dataset. Experimental results show that CoDeSwiT outperforms state-of-the-art (SOTA) transfer learning models based on CNN and ViT, achieving accuracy rates of 96.46% on the Alzheimer MRI dataset, 96.84% on the Chest X-Ray dataset, and 99.67% on the Tuberculosis dataset. CoDeSwiT, which contains approximately 28 million parameters, exhibits a computationally efficient structure compared to large-scale architectures in the literature. The model, which achieves a processing time of 2.21 ms per image, has been observed to have the potential to offer an effective solution for supporting fast and accurate diagnosis processes in clinical environments with limited hardware resources.

Authors

Institutions

Publication Details

Journal
Journal of King Saud University - Computer and Information Sciences
Published
2026-04-22
DOI
https://doi.org/10.1007/s44443-026-00726-2
Primary Topic
Advanced Image Fusion Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

CoDeSwiT: an efficient multi-stream hybrid architecture for global–local feature fusion via dynamic gating in medical image analysis

Kazım Kılıç, Gökalp Çınarer
Journal of King Saud University - Computer and Information Sciences
Advanced Image Fusion Techniques
article

CoDeSwiT: an efficient multi-stream hybrid architecture for global–local feature fusion via dynamic gating in medical image analysis

Kazım Kılıç, Gökalp Çınarer
article en

Abstract

Medical image analysis plays a vital role in the early diagnosis of diseases. However, current deep learning approaches in this field have certain structural limitations. Although Convolutional Neural Networks (CNNs) demonstrate superior performance in extracting local features thanks to inductive bias, they fall short in capturing the global context. On the other hand, Vision Transformer (ViT) architectures are powerful in modeling global relationships; however, they have disadvantages such as loss of local detail, excessive data requirements, and high computational costs. CNN-ViT hybrid models typically use multi-branch structures that combine the outputs of independent and large backbones. This significantly increases the model's computational load and number of parameters, reducing efficiency and making it difficult to use in clinical applications. To overcome these limitations, this study proposes the original and efficient CoDeSwiT architecture. CoDeSwiT integrates local and global features into a low-cost architecture through its parallel arms designed on a single data stream and weighted fusion capability, unlike computationally intensive hybrid structures. The proposed architecture effectively reduces dimensions using the modern ConvNeXt stem for rich feature representation, while integrating the Swin Transformer encoder to model the global context hierarchically and computationally efficiently. The Depthwise Separable Convolution (DWS) and Squeeze-and-Excitation (SE) local attention branch, designed in parallel with the Transformer stream in the architecture, ensures the capture of fine texture details and local features. The outputs of these heterogeneous branches are fused through a learnable gating mechanism, unlike standard static fusion operations in the literature. The gating mechanism dynamically determines and weights the diagnostic importance of local or global information for each image sample, enabling the model to adaptively focus on critical findings. The effectiveness of the proposed architecture was evaluated on three comprehensive datasets with different modalities: the Alzheimer MRI dataset, the Chest X-Ray dataset, and the Tuberculosis dataset. Experimental results show that CoDeSwiT outperforms state-of-the-art (SOTA) transfer learning models based on CNN and ViT, achieving accuracy rates of 96.46% on the Alzheimer MRI dataset, 96.84% on the Chest X-Ray dataset, and 99.67% on the Tuberculosis dataset. CoDeSwiT, which contains approximately 28 million parameters, exhibits a computationally efficient structure compared to large-scale architectures in the literature. The model, which achieves a processing time of 2.21 ms per image, has been observed to have the potential to offer an effective solution for supporting fast and accurate diagnosis processes in clinical environments with limited hardware resources.

Journal of King Saud University - Computer and Information Sciences
Yozgat Bozok Üniversitesi (TR), Samsun University (TR)
Openalex Percentile: Top 7%
Advanced Image Fusion Techniques
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.