This study presents a lightweight U-Net variant with improved segmentation accuracy using hybrid convolution and channel attention, achieving state-of-the-art results on MoNuseg and GlaS with fewer parameters.
Method Article
This study presents a lightweight U-Net variant with improved segmentation accuracy using hybrid convolution and channel attention, achieving state-of-the-art results on MoNuseg and GlaS with fewer parameters.
Artificial neural network-based computer image processing technology has rapidly developed in recent years and found widespread applications across multiple fields. In medical image processing, UNet and its variants have shown great success in lesion detection, cell segmentation, and polyp segmentation tasks. This research presents a modified U-shaped network with reduced network parameters achieved by decreasing the network depth and increasing the network channels to enhance the model's learning ability. To counteract the reduction in learning capacity caused by depth compression, a hybrid-channel convolutional module is introduced to replace the original network's convolutional module. The model introduces a channel attention mechanism between the layer and the point convolution layer to improve the practical channel feature extraction ability. The article also concludes that using mixed-depth convolution can effectively solve the size span of the segmentation target, making it difficult for one model to be fit for multiple data sets. The proposed model achieves state-of-the-art results on two popular public datasets, MoNuseg and GlaS, with a mean dice increase of 1.0% and 1.37%, respectively. The total parameters of the modified model are reduced to 1.71M, representing a 38.6x reduction compared to UCtransNet, with 65.6M parameters.
Medical image segmentation is critical in various clinical applications, including diagnosis, treatment planning, and disease monitoring. Traditional image processing methods based on feature engineering algorithms are no longer suitable for handling the large volumes of data generated in modern healthcare environments. Fortunately, the advancement of artificial neural network technology and improvements in computer hardware capabilities have made it possible to train and deploy large-scale neural network models. As a result, computer vision processing algorithms based on machine learning models are continuously being developed and applied in various fields.
The most representative model structure in the semantic segmentation of medical images is UNet1 with an encoding-decoding architecture. The model first uses a multi-level encoder to extract features of different scales from the input image. Then, the decoder up-samples step by step while combining the semantic features output by the encoder of the corresponding level as a skip connection. However, the performance of the UNet architecture can be further improved by applying several methods. For instance, attention mechanisms have been shown to be effective in enhancing the performance of convolutional neural networks. These mechanisms can selectively emphasize the essential features in the input data, leading to better representation learning and segmentation accuracy.
At present, many researchers focus on effectively fusing the features extracted by the encoder in the decoding stage. Some of the most common variants of UNet include Attention UNet2, Recurrent UNet3, and V-Net4. These approaches employ attention mechanisms5, such as spatial attention, to highlight informative regions of the feature maps and suppress the non-informative regions. Additionally, some variants incorporate recurrent neural networks to model the sequential nature of the medical images and improve the feature representations. Pre-training models, such as VGG6, ResNet7, and DenseNet8, have been widely used to improve the performance of U-shaped networks by leveraging their rich knowledge learned from large-scale datasets. Additionally, transformer mechanisms, such as self-attention and multi-head attention, have been introduced to long-range model dependencies and capture global contextual information, leading to better segmentation performance.
However, while these variants have improved over the original UNet1, they still have certain limitations in handling complex medical images with varying scales and shapes. Moreover, the increased complexity of these variants often leads to higher computational costs and longer training times, which limits their applicability in practical settings.
To enhance the UNet1 architecture, a modified model named MixKNet (Mix Kernel Size U-shape Net) is proposed, which reduces network depth while increasing the number of channels to improve learning capacity. However, the reduction in depth can lead to a decline in overall performance. To mitigate this issue, a hybrid-channel convolutional module is introduced, replacing the original convolutional neural module. This module incorporates a channel attention mechanism between the depthwise and point-wise convolution layers, aiming to strengthen the model's ability to extract effective channel features.
To guide practical applicability, it is important to note that the proposed method was evaluated on relatively small-scale medical image datasets, with individual image resolutions ranging from 500 × 500 to 1000 × 1000 pixels. For model training, all images were resized to 224 × 224 pixels. The implementation was carried out using PyTorch on a single NVIDIA RTX 3090 GPU. These operational parameters suggest that the method is computationally feasible for moderate experimental setups and adaptable to limited dataset sizes.
In conclusion, this article presents a novel modification to the U-shaped network structure and introduces a hybrid channel convolution module along with a channel attention mechanism, both of which improve segmentation performance on medical image datasets. The main contributions of this work are as follows: (1) Proposing a modified U-shaped network structure with a hybrid deep-wised convolution module that replaces the original convolutional neural module. (2) Introducing a channel attention mechanism between the deep-wised and the point-wised convolution layer to improve the model's effective channel feature extraction ability. (3) Achieving state-of-the-art results simultaneously on two popular public datasets in the MoNuseg9 nuclear segmentation dataset with significantly fewer model parameters (compared to UCtransNet10 with 64M parameters) and improved performance on the GlaS11 gland segmentation dataset.
The rest of this article is organized as follows. Step 2 provides a comprehensive review of previous studies on UNet1 and its variations in medical image segmentation. The strengths and limitations of existing approaches are examined, along with related work on attention mechanisms, mixed-depthwise convolutional networks, and their applications in segmentation models. Step 3 details the architecture of the proposed MixKNet model, including modifications to the UNet structure, the integration of a channel attention mechanism, and the use of mixed-depth convolution. Step 4 reports the results of extensive experiments, accompanied by a discussion and an ablation study to evaluate the contributions of each component. Finally, step 5 concludes the paper and outlines potential directions for future research.
This section begins with a review of prior studies on UNet and its variants in medical image segmentation, outlining the strengths and limitations of existing methods. In addition, related research on attention mechanisms and their applications in segmentation models is discussed. Recent developments involving depthwise convolution techniques for enhancing segmentation performance are also examined. A comparative analysis of the proposed MixKNet (c) and other models is presented in Figure 1, where dashed lines indicate skip connections.
UNet and its variations
The UNet architecture was first proposed by Ronneberger et al. in 20151 and has since been widely used in medical image segmentation. The model consists of an encoding path and a decoding path. The encoder extracts high-level features from the input image while the decoder up-samples and combines the features to generate a segmentation map. Since then, various modifications have been made to the UNet architecture to improve its performance in medical image segmentation. One of the most common modifications is the introduction of skip connections, which have been shown to improve the accuracy of the segmentation. Zhou et al.12 proposed a UNet variant that uses dense skip connections, allowing the model to preserve spatial information better.
Another popular modification to the UNet architecture is the addition of attention mechanisms. These mechanisms can help the model selectively emphasize the most important features, leading to better representation learning and segmentation accuracy. Some examples of variants with attention mechanisms include Attention UNet2, ResUNet with attention gates13, and Dense-UNet with attention gates14. In addition to the above modifications, many other variants of the UNet architecture have been proposed for medical image segmentation. UCTransNet10 is a variant of the U-Net architecture that incorporates skip connections and a Transformer module. The skip connections in UCTransNet10 are rethought from a channel-wise perspective, which allows for better feature reuse and reduces the number of parameters. The Transformer module is added to capture long-range dependencies and improve translation quality. UCTransNet10 has been shown to achieve state-of-the-art results on several machine translation benchmarks. Zihan et al. proposed a deep learning model called LViT15, which they applied to medical image analysis tasks. To extend the semi-supervised version of LViT15 and compensate for the quality deficiency in image data, they proposed the Exponential Pseudo Label Iteration mechanism (EPI). Additionally, to preserve the local features of images, they proposed the Pixel-Level Attention Module (PLAM), which selectively focuses on important image features.
Attention mechanism
Attention mechanisms have been widely studied in machine learning, particularly in natural language processing and computer vision. In recent years, attention mechanisms have also been applied to medical image analysis tasks, including image segmentation. Bahdanau et al.16 introduced an attention mechanism in neural machine translation to improve the quality of translation. The mechanism allows the model to selectively focus on relevant parts of the input sequence, improving the translation quality. Since then, various attention mechanisms have been proposed for image analysis tasks. One common type of attention mechanism is the spatial attention mechanism, which involves applying a weight to each pixel in the feature map based on its importance. For example, Guo et al.17proposed a spatial attention mechanism for the task of retinal vessel segmentation. The mechanism uses a gating mechanism to adjust the weighting of the spatial features, improving the model's ability to distinguish between the vessel and non-vessel pixels. Another type of attention mechanism is channel attention, which focuses on adjusting the weights of feature maps across channels. Hu et al.18 proposed a squeeze-and-excitation network (SENet) that applies channel-wise attention to the feature maps, improving the performance of the image classification task. More recently, attention mechanisms have been combined with convolutional neural networks (CNNs) for image segmentation tasks. For example, Chen et al.19 proposed an attention-guided network for brain tumor segmentation that combines spatial and channel-wise attention mechanisms.
Recent advances in semi-supervised and multimodal learning for medical image analysis and remote sensing have demonstrated promising performance improvements. Yang et al.20 proposed UMSCS, a novel unpaired multimodal segmentation framework that leverages cross-modality generative learning and semi-supervised strategies. Zhang et al. introduced several cutting-edge techniques: an evidential-enhanced tri-branch consistency model for semi-supervised segmentation21, a self-aware and cross-sample prototypical learning framework for medical image segmentation22, and a time-frequency-aware hierarchical feature optimization approach for synthetic aperture radar (SAR) jamming recognition in the aerospace domain23. These works collectively highlight the importance of hybrid supervision and domain-aware feature modeling in both medical and engineering imaging tasks.
Depth-wised convolution
Depth-wise convolution is designed to capture channel-wise correlations in the input feature maps and has been shown to improve the efficiency and accuracy of convolutional neural networks.
One of the earliest and most influential depth-wise convolution models is MobileNet24, proposed by Howard et al. in 2017. MobileNet uses depth-wise separable convolution, which applies a depth-wise convolution followed by a point-wise convolution, to reduce the number of parameters and computation required for convolutional layers. This allows MobileNet to achieve state-of-the-art accuracy on image classification tasks while using significantly fewer parameters than traditional convolutional neural networks. Since the introduction of MobileNet, a number of other depth-wise convolution architectures have been proposed, including ShuffleNet25, Xception26, and ResNeXt27. These models vary in their specific implementation of deep-wise convolution, but all share the goal of reducing the computational complexity of convolutional layers while maintaining or improving accuracy. Deep-wise convolution has also been applied to the task of semantic segmentation, with models such as PSPNet28 using depth-wise separable convolution to reduce the computation and memory requirements of large-scale convolutional layers. MixNet29 further extends the idea of deep-wise convolution by introducing a mixed depth-wise convolution, which utilizes multiple kernel sizes to capture features at different scales. It has been shown to outperform other state-of-the-art models while maintaining comparable parameters and FLOPs. These models have demonstrated significant improvements in accuracy and efficiency over traditional convolutional neural networks on various semantic segmentation tasks.
Access restricted. Please log in or start a trial to view this content.
This section describes the proposed MixKNet architecture for medical image segmentation. The MixKNet model extends the UNet architecture, incorporating attention mechanisms and mixed depthwise convolution layers. The software used in this study is listed in the Table of Materials.
1. Overall architecture
2. Flattened U-shape
NOTE: Reduce the depth of the neural network architecture to decrease computational complexity and model size, while being aware that this may reduce the capacity to learn complex data representations.
3. Mix kernel size for the encoder
4. Channel attention
5. Datasets
NOTE: Two publicly available medical image datasets, as presented in Table 1 and Table 2, are utilized in this study: GlaS (Sirinukunwattana et al.11) and MoNuSeg (Kumar et al.9).
6. Implementation details
Access restricted. Please log in or start a trial to view this content.
Comparison with state-of-the-art methods
The MixKNet architecture has been evaluated on two medical image segmentation datasets, GlaS and MoNuSeg, and compared with state-of-the-art methods in the field. The evaluation has been conducted by reporting the dice and IoU scores of the proposed method and several comparable models, as shown in Table 3. The results indicate that the MixKNet architecture outperforms the other models, achieving the highest me...
Access restricted. Please log in or start a trial to view this content.
This study presents MixKNet, a novel modification of the UNet1 architecture for medical image segmentation, integrating mixed-depth convolution and a channel attention mechanism to enhance segmentation performance while significantly reducing computational complexity. The hybrid channel convolution combines multiple convolutional kernels operating on separate channel groups. This design allows the network to capture diverse spatial and contextual features at different receptive field scales within...
Access restricted. Please log in or start a trial to view this content.
The authors declare no competing financial interests or other conflicts of interest.
The second batch of Ningbo City's 2023 Social Welfare Research Projects: Research and Application of Key Technologies for Telecom Network Fraud Identification Based on Ontology and NLP (2023S169).
Access restricted. Please log in or start a trial to view this content.
| Name | Company | Catalog Number | Comments |
|---|---|---|---|
| Linux OS (Ubuntu 22.04) | Various (Open Source Community) | N/A(Version 22.04 LTS) | Open-source operating system for development https://releases.ubuntu.com/22.04/ |
| NVIDIA RTX 3090 GPU | NVIDIA | 3090 | High-performance GPU for deep learning https://www.nvidia.com/en-us/geforce/graphics-cards/30-series/rtx-3090/ |
| Python | Python Software Foundation | N/A (Version ≥ 3.8) | Programming language for AI/ML development https://www.python.org/ |
| PyTorch | Meta AI | N/A (Version 1.13) | Open-source machine learning framework https://pytorch.org/ |
| Visual Studio Code (VS Code) | Microsoft | N/A | Lightweight and powerful code editor https://code.visualstudio.com/ |
Access restricted. Please log in or start a trial to view this content.
Request permission to reuse the text or figures of this JoVE article
Request Permission