Reimplementing TransUNet: A Ground-Up Approach to Medical Image Segmentation with Transformers and CNNs

Accurate segmentation of abdominal organs in computed tomography (CT) scans is a fundamental task in medical image analysis. Traditional convolutional neural networks (CNNs), such as U-Net, are effective in capturing local spatial features but struggle with modeling long-range dependencies, which are crucial for multi-organ segmentation. To address this, hybrid architectures like TransUNet combine convolutional encoders with Transformer-based global attention. In this work, we present a from-scratch implementation of TransUNet, built entirely without relying on pre-trained weights or external libraries beyond the core deep learning framework. Our implementation includes custom modules for patch embedding, Transformer encoding, and U-Net-style decoding with skip connections. We evaluate our model on the Synapse Multi-Organ Segmentation dataset, focusing on the segmentation of eight abdominal organs. Our approach achieves a mean Dice coefficient of 77.89%, mean IoU of 66.86%, and mean pixel accuracy of 98.37%. Notably, our model demonstrates high accuracy in segmenting the liver (Dice = 94.07%) and left kidney (Dice = 88.32%), while showing room for improvement on smaller and harder-to-segment organs like the pancreas and gallbladder. To enhance interpretability, we incorporate Gradient-weighted Class Activation Mapping (Grad-CAM) visualizations, highlighting the regions where the model focuses during segmentation. These results validate the effectiveness of our fully custom TransUNet pipeline and provide insights into both performance and model decision-making, making our approach well-suited for clinical applications.segmentation

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-08-10
DOI
https://doi.org/10.5281/zenodo.16788040
Primary Topic
Forensic Fingerprint Detection Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Reimplementing TransUNet: A Ground-Up Approach to Medical Image Segmentation with Transformers and CNNs

Zenodo (CERN European Organization for Nuclear Research)
Forensic Fingerprint Detection Methods
article

Reimplementing TransUNet: A Ground-Up Approach to Medical Image Segmentation with Transformers and CNNs

article en

Abstract

Accurate segmentation of abdominal organs in computed tomography (CT) scans is a fundamental task in medical image analysis. Traditional convolutional neural networks (CNNs), such as U-Net, are effective in capturing local spatial features but struggle with modeling long-range dependencies, which are crucial for multi-organ segmentation. To address this, hybrid architectures like TransUNet combine convolutional encoders with Transformer-based global attention. In this work, we present a from-scratch implementation of TransUNet, built entirely without relying on pre-trained weights or external libraries beyond the core deep learning framework. Our implementation includes custom modules for patch embedding, Transformer encoding, and U-Net-style decoding with skip connections. We evaluate our model on the Synapse Multi-Organ Segmentation dataset, focusing on the segmentation of eight abdominal organs. Our approach achieves a mean Dice coefficient of 77.89%, mean IoU of 66.86%, and mean pixel accuracy of 98.37%. Notably, our model demonstrates high accuracy in segmenting the liver (Dice = 94.07%) and left kidney (Dice = 88.32%), while showing room for improvement on smaller and harder-to-segment organs like the pancreas and gallbladder. To enhance interpretability, we incorporate Gradient-weighted Class Activation Mapping (Grad-CAM) visualizations, highlighting the regions where the model focuses during segmentation. These results validate the effectiveness of our fully custom TransUNet pipeline and provide insights into both performance and model decision-making, making our approach well-suited for clinical applications.segmentation

Zenodo (CERN European Organization for Nuclear Research)
Peace, Justice and strong institutions
Openalex Percentile: Top 51%
Forensic Fingerprint Detection Methods
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.