Efficient medical image segmentation using RepSegNet lightweight reparameterized neural network

Rashid Juraev, Il-Min Kim, Sangseok Yun, Jae‐Mo KangScientific 2026

Abstract

Medical image segmentation requires both high accuracy and computational efficiency, especially in resource-constrained environments. This paper introduces RepSegNet, a novel deep-learning model optimized for medical image segmentation. RepSegNet integrates convolutional neural networks with reparameterization techniques, effectively capturing both local and long-range features while simplifying complex structures during inference. Extensive experiments on diverse medical imaging datasets demonstrate RepSegNet’s superior performance over state-of-the-art models in key segmentation metrics. The model’s lightweight architecture ensures scalability and real-time applicability on edge devices, significantly reducing parameters and computational cost during inference. RepSegNet represents a significant advancement in medical image segmentation, offering a robust, efficient, and scalable solution across diverse clinical applications. Its ability to maintain high accuracy while reducing computational demands paves the way for improved diagnostic processes and potential integration into real-time medical imaging systems. Comprehensive ablation studies validate both architectural components, with reparameterization providing 80.5% parameter reduction and MultiPathMobileBlocks contributing 8.7 F1 points average improvement across all medical imaging modalities.

Introduction

Medical image segmentation—the precise pixel-level outlining of anatomical structures like tumors, polyps, or cells—is a cornerstone of modern diagnostics. While deep learning models like U-Net and transformer-based architectures (e.g., TransUNet) have achieved remarkable accuracy, their increasing size and computational demands pose a significant barrier to clinical deployment. Many medical environments rely on resource-constrained edge devices, such as portable ultrasound machines or real-time endoscopy monitors, which cannot support heavy models without prohibitive latency.

RepSegNet addresses this trade-off by utilizing "structural reparameterization." This approach allows the network to maintain a high learning capacity during training while collapsing into an ultra-lightweight, high-speed model for inference. By decoupling training complexity from deployment efficiency, RepSegNet achieves state-of-the-art accuracy while reducing its parameter count by over 80%.

Methodology

RepSegNet is built upon an encoder-decoder backbone similar to the U-Net architecture, enhanced with skip connections to preserve spatial information. The primary innovations lie in its internal processing blocks.

The overall RepSegNet architecture, featuring an encoder-decoder structure with skip connections and specialized MultiPathMobileBlocks.

Structural Reparameterization: The RepMobileUnit

The core of RepSegNet is the RepMobileUnit. During the training phase, this unit employs a multi-branch architecture consisting of parallel 3x3 convolutions, 1x1 convolutions, and identity mappings. This rich structure provides a broad hypothesis space and facilitates better gradient flow. However, because convolution is a linear operation, these parallel branches can be algebraically merged into a single 3x3 convolutional layer once training is complete. The resulting inference model is mathematically identical in output but significantly faster and smaller.

Illustration of the RepMobileUnit showing the complex multi-branch structure used during training (left) and the simplified single-branch structure used for inference (right).

MultiPathMobileBlock

To capture features at multiple scales—essential for distinguishing between fine cellular boundaries and larger organ structures—the authors introduced the MultiPathMobileBlock. Unlike traditional parallel "Inception" blocks that are parameter-heavy, this design uses a sequential approach. By chaining 3x3 RepMobileUnits and reusing intermediate outputs, the model simulates larger receptive fields (equivalent to 5x5 and 7x7 convolutions) at a fraction of the computational cost.

Experimental Results

The model was evaluated across three diverse datasets: ISIC-2018 (skin lesions), CVC-ClinicDB (polyps), and SegPC-2021 (plasma cells).

Performance and Efficiency

RepSegNet outperformed eight baseline models, including Attention U-Net and TransUNet, in both accuracy and efficiency:

  • Accuracy: Achieved top-tier mean Intersection over Union (mIoU) scores: 0.8616 (ISIC), 0.9145 (CVC), and 0.8598 (SegPC).
  • Parameter Reduction: Reparameterization allowed the model to shrink from 2.66 million parameters during training to just 0.52 million during inference—an 80.5% reduction.
  • Computational Load: The model requires only 1.51 GMACs and occupies 4.68 MB of disk space, making it significantly lighter than Attention U-Net (51.06 GMACs, 133 MB).

Key Insights

Ablation studies confirmed that the MultiPathMobileBlocks were critical for fine-grained tasks. Removing these blocks significantly degraded performance on the cellular dataset (SegPC-2021), while the impact on macroscopic tasks like skin lesion segmentation was less severe. This highlights the importance of multi-scale feature extraction in microscopic medical imaging.

Conclusion and Future Work

RepSegNet demonstrates that reparameterization is a powerful tool for bridging the gap between high-capacity training and efficient deployment. While currently optimized for 2D imaging, the authors aim to extend this architecture to 3D volumetric data (e.g., CT and MRI scans) and integrate explainability mechanisms to enhance clinical trust. Future iterations may also explore multi-task learning, such as simultaneous segmentation and classification of pathologies.

Summary updated

BibTeX
@inproceedings{juraev2026efficient,
  author = {Rashid Juraev and Il-Min Kim and Sangseok Yun and Jae‐Mo Kang},
  title = {{Efficient medical image segmentation using RepSegNet lightweight reparameterized neural network}},
  booktitle = {Scientific},
  year = {2026},
  doi = {10.1038/s41598-025-34973-6},
}
Figure