원시데이터 수집 시스템
선정목록으로

A dual encoder network with multiscale feature fusion and multiple pooling channel spatial attention for skin scar image segmentation

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Weiyuan Yang — Hangzhou Plastic Surgery Hospital, Hangzhou, 310020, China
  2. Xiaolin Wang — College of Mathematical Medicine, Zhejiang Normal University, Jinhua, 321004, China
  3. Guangwei Chen — School of Computer Science and Technology, Zhejiang Normal University, Jinhua, 321004, China
  4. Jianming Wen — College of Mathematical Medicine, Zhejiang Normal University, Jinhua, 321004, China
  5. Dexing Kong — College of Mathematical Medicine, Zhejiang Normal University, Jinhua, 321004, China
  6. Jianfeng Zhang — College of Mathematical Medicine, Zhejiang Normal University, Jinhua, 321004, China
  7. Xinyang Ge — College of Mathematical Medicine, Zhejiang Normal University, Jinhua, 321004, China
  8. Hao Xu — College of Mathematical Medicine, Zhejiang Normal University, Jinhua, 321004, China. hao.xu@zjnu.edu.cn
  9. J. L. Qin — Hangzhou Plastic Surgery Hospital, Hangzhou, 310020, China. 542267141@qq.com
DOI
10.1038/s41598-025-05239-y
저널
Scientific Reports
발행년도
2025
발행기관
Nature Portfolio
피인용수
3
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-025-05239-y
토픽
Textile materials and evaluations
OpenAlex ID
W4411854308

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Skin scar is a prevalent dermatological concern that impacts both aesthetic appearance and psychological well-being, making precise delineation of scar tissue essential for clinical treatment. To address the challenge of scar image segmentation, this study introduces an innovative deep learning framework integrating CNN and Swin Transformer architectures. The proposed model leverages a multi-scale feature fusion module to combine hierarchical representations from both backbones, while a novel multi-pooling channel-spatial attention mechanism enhances feature refinement during skip connections. Comprehensive experiments demonstrate the model's superior performance in scar segmentation, achieving metrics of 96.01% Accuracy, 77.43% Precision, 90.17% Recall, 71.38% Jaccard Index, and 83.21% Dice Coefficient, which compare favorably with mainstream methods, and our model performs well in all metrics, highlighting its potential for clinical adoption in scar analysis.

본문 56,359자

본문 펼치기
## OPEN # A dual encoder network with multiscale feature fusion and multiple pooling channel spatial attention for skin scar image segmentation Weiyuan Yang <sup>1,4</sup> , Xiaolin Wang <sup>2,4</sup> , Guangwei Chen <sup>3</sup> , Jianming Wen <sup>2</sup> , Dexing Kong <sup>2</sup> , Jianfeng Zhang <sup>2</sup> , Xinyang Ge <sup>2</sup> , Hao Xu <sup>2</sup> <sup></sup> & Jianhua Qin <sup>1</sup> <sup></sup> Skin scar is a prevalent dermatological concern that impacts both aesthetic appearance and psychological well-being, making precise delineation of scar tissue essential for clinical treatment. To address the challenge of scar image segmentation, this study introduces an innovative deep learning framework integrating CNN and Swin Transformer architectures. The proposed model leverages a multi-scale feature fusion module to combine hierarchical representations from both backbones, while a novel multi-pooling channel-spatial attention mechanism enhances feature refinement during skip connections. Comprehensive experiments demonstrate the model’s superior performance in scar segmentation, achieving metrics of 96.01% Accuracy, 77.43% Precision, 90.17% Recall, 71.38% Jaccard Index, and 83.21% Dice Coefficient, which compare favorably with mainstream methods, and our model performs well in all metrics, highlighting its potential for clinical adoption in scar analysis. Keywords deep learning, segmentation of skin scar images, convolutional neural network, transformer Skin scar is an abnormal structure formed during the healing process of skin tissues after trauma, and its morphology and degree vary according to individual differences and types of trauma <sup>1</sup> . Skin scars not only affects the appearance and psychological state of patients, but may also be accompanied by pain, itching, and other symptoms, which seriously affect the quality of life of patients <sup>2,3</sup> . Therefore, the diagnosis and treatment of skin scars are an important topic in dermatology and plastic surgery. Segmentation of skin scar is the process of separating skin scars from normal skin and is an important step in the analysis and evaluation of skin scars. Traditionally, medical practitioners identify the extent of scars mainly through visual observation and manual measurement to assess the scar, but this assessment method is subjective and inconsistent. Moreover, the manual extraction process is still a labor-intensive and time-consuming process for doctors. To solve this situation, it is necessary to propose an accurate and effective scar segmentation method to help medical personnel effectively assess wounds and provide intuitive information about scar morphology, which can help doctors make accurate diagnosis and assessment. Secondly, the scar segmentation results can be used to develop personalized treatment plans, such as laser therapy, silicone therapy, and corticosteroid therapy <sup>4–6</sup>, to improve the therapeutic effect. In addition, skin scar measurements can be used to monitor the progress of skin wound recovery and to measure treatment efficacy <sup>7</sup> . Image processing and machine learning techniques play significant roles in the diagnostic and treatment of diverse skin injuries, for example, methods based on thresholding <sup>8–10</sup> and clustering <sup>11–13</sup> are commonly used for segmentation tasks, saliency detection techniques, which focus on extracting visually prominent regions from images, provide effective solutions for partitioning images into regions of interest, Fan, Ma et al. <sup>14,15</sup> used saliency detection for segmentation of skin lesions, but these methods in the dealing with complex and variable skin scar images are often limited by factors such as the diversity of image features, noise and illumination changes, which makes it difficult to achieve ideal segmentation results. In recent years, deep learning methods 1Hangzhou Plastic Surgery Hospital, Hangzhou 310020, China. 2College of Mathematical Medicine, Zhejiang Normal University, Jinhua 321004, China. <sup>3</sup> School of Computer Science and Technology, Zhejiang Normal University, Jinhua 321004, China. <sup>4</sup> These authors contributed equally: Weiyuan Yang and Xiaolin Wang. <sup></sup> email: hao.xu@zjnu.edu.cn; 542267141@qq.com have made significant progress in the field of medical image analysis, among which convolutional neural networks (CNNs) have successfully solved the problem of traditional segmentation methods’ dependence on handmade features due to their superior feature extraction capabilities <sup>16–19</sup> . The encoder-decoder structure represented by U-Net <sup>20</sup> realizes the organic fusion of multi-scale features through a unique cross-layer connection design, which significantly improves the fineness of segmentation results. In recent years, numerous studies have explored the application of deep network architectures based on feature fusion in medical image segmentation and recognition. For example, MLCA2F <sup>21</sup> leverages multi-level contextual attention feature fusion to significantly enhance the efficient segmentation of lesion areas in COVID-19 CT images. BG-3DM2F <sup>22</sup> introduces a bidirectional gating mechanism and 3D multi-scale fusion, improving the diagnostic accuracy for Alzheimer’s disease. In dermoscopic images, researchers have also proposed computer-aided diagnostic systems based on multi-layer feature fusion networks for skin lesion recognition <sup>23</sup> . In the field of breast anomaly detection, region proposal-based multi-scale CNNs have demonstrated both high efficiency and accuracy <sup>24</sup> . These methods provide a solid theoretical foundation and valuable technical reference for this study. Inspired by the field of natural language processing, the Transformer architecture <sup>25</sup> shows great potential in visual tasks with its excellent global relationship modeling capability. Researchers soon applied it to medical image analysis <sup>26</sup>, providing an effective solution for establishing long-range spatial dependencies. However, it should be pointed out that such methods are still deficient in local feature capture. To address this problem, TransUNet <sup>27</sup> innovatively constructed a hybrid architecture, which improves segmentation performance while maintaining detail accuracy by synergistically integrating the local perception advantage of CNN and the global modeling specialty of Transformer. However, the varying morphology and size of skin scars, their fuzzy boundaries, and their high similarity to the surrounding normal skin tissues make the accurate segmentation of skin scars extremely challenging, and require a network with stronger feature extraction and characterization capabilities to adapt to the segmentation needs of the scars. In view of this, this study aims to design a dual-encoder network model for skin scar segmentation based on Swin Transformer <sup>28</sup> and U-Net network. The core of the model lies in the effective fusion of the features extracted by each layer of the Swin Transformer and the U-Net encoder, complementing the strengths of both models, in terms of feature extraction capability. In addition, to enhance feature transmission between the encoder and decoder across all layers, we introduce a dedicated attention module that combines multi-pooling operations with channel space optimization. This design not only refines the feature representation and improves its transmission quality, but also provides the decoder with more detailed context data. Overall, our work makes three key contributions: (1) A multi-scale feature fusion module is designed that can effectively fuse features from Swin Transformer and U-Net encoder at various stages of feature extraction. (2) We introduce a multi-pooling channel spatial attention mechanism that minimizes information loss, bridg es the semantic divide between shallow details and deeper semantic features through skip connections, and enhances key feature representations via three different pooling strategies. (3) The validity and superiority of our proposed model are verified by comparison experiments with main stream segmentation networks. Meanwhile, the ablation study reveals in detail the impact of each module on the overall performance. The subsequent chapters of this paper are organized as follows: chapter 2 will review related work. Chapter 3 will detail the specific architectural design of our proposed network model. Chapter 4 will present the dataset used for the experiments, implementation details, data analysis and visualization comparisons. Chapter 5 will summarize and point out the direction of future work. Related work CNN-based segmentation methods In the field of medical image segmentation, CNNs have shown significant advantages in recent years. CNNs efficiently extract local features through convolutional layers to achieve pixel-level classification. Among them, FCN <sup>29</sup> is one of the earliest CNN end-to-end segmentation methods, which replaces the fully connected layer of traditional CNN with a convolutional layer to enable the model to handle input images of arbitrary sizes, and adopts the up-sampling technique to restore the low-resolution feature maps to the size of the original image to complete the pixel-level prediction. This significant advancement not only greatly facilitates the use of CNNs in image segmentation but also effectively paves the way for future studies. Building on this foundational work, Ronneberger et al. <sup>20</sup> developed U-Net, an efficient encoder-decoder framework specifically tailored for medical image segmentation. Its most notable contribution is the innovative skip-connection mechanism, which seamlessly links corresponding-scale feature maps between the encoder and decoder. This intelligent design enables the decoder to effectively leverage rich multi-level features from the encoder, significantly improving the reconstruction of fine-grained spatial details. Thanks to its remarkable ability to achieve highly accurate segmentation even with scarce training data, U-Net has become a widely adopted standard in medical image analysis. Later, Zhou et al. <sup>30</sup> introduced U-Net++, further enhancing the original architecture with dense nested skip pathways to dramatically strengthen feature fusion across different levels. Meanwhile, Oktay et al. <sup>31</sup> designed Attention U-Net, incorporating a sophisticated attention mechanism that adaptively highlights clinically relevant regions while effectively reducing the influence of distracting background noise, thereby substantially refining segmentation precision. These CNN-based segmentation methods have achieved remarkable results in many fields, but still have some limitations, such as the difficulty of modeling long-distance dependencies and global information. Therefore, researchers have begun to explore methods that combine other models to make up for the shortcomings of CNN in this area. Transformer-based segmentation methods Since the Transformer architecture <sup>25</sup> was proposed in the field of natural language processing, its ability to model long-range dependencies has also progressively impacted computer vision tasks such as image segmentation <sup>32,33</sup>, classification <sup>34,35</sup>, and super-resolution <sup>36</sup> . The Visual Transformer (ViT) <sup>26</sup> introduces this architecture to image classification by dividing the input image into fixed-size blocks and treating each block as an independent token.ViT relies on a self-attention mechanism to capture global relationships between different image regions without the need to use convolutional operations. Although ViT performs well in classification tasks, it fails to outperform CNNs in segmentation tasks, partly due to its lack of ability to handle fine features. To compensate for the limitations of a single CNN or Transformer in segmentation tasks, recent studies have explored hybrid network model architectures that combine the advantages of both, i.e. leveraging the powerful local feature extraction capability of CNNs and using Transformer for global context modeling. For example, the TransUNet <sup>27</sup> proposed by Chen et al. and the TransFuse <sup>37</sup> network model proposed by Zhang et al. both improve segmentation accuracy by fusing CNN and Transformer. In addition, Swin-Unet <sup>38</sup> adopts a U-Net encoder-decoder structure based on Swin Transformer, and its sliding window attention mechanism reduces the computational cost while effectively modeling global information. Although existing methods have successfully applied Vision Transformers to medical image segmentation and leveraged the strengths of CNNs, simple concatenation or basic feature fusion strategies often struggle to fully integrate the advantages of both architectures, leading to potential loss of feature information. To address this, we propose MFMA-Net, which innovatively adopts a parallel dual-encoder architecture. Through a unique cross-encoder interaction mechanism, it establishes information pathways at each level between the Transformer and CNN branches. This design not only enables the simultaneous capture of local detail features and global contextual information in medical images but, more importantly, facilitates dynamic feature complementarity between the two branches, thereby significantly enhancing the model’s feature representation capability. Attention mechanisms Attention mechanism in deep learning is inspired by the human visual system, which tends to selectively focus on certain information and ignore relatively unimportant information due to the limitations of human ability to process information, a phenomenon often referred to as attention mechanism. It is capable of dynamically allocating different levels of attention to highlight critical areas and ignore secondary information. The evolution of this mechanism has given rise to a variety of improved approaches to enhance model performance. For instance, Hu et al. <sup>39</sup> introduced the Squeeze-and-Excitation (SE) module, which employs channel-level attention to emphasize task-critical features. Later, Wang et al. <sup>40</sup> streamlined the approach by replacing the fully connected layer with 1D convolution, resulting in the Efficient Channel Attention (ECA) mechanism. Building on these advancements, Woo et al. <sup>41</sup> further integrated channel and spatial attention to develop the Convolutional Block Attention Module (CBAM). In addition, Misra et al. <sup>42</sup> designed a lightweight TA mechanism to efficiently fuse channel and spatial information without relying on complex dimensionality reduction operations, demonstrating the importance of cross-dimensional feature interaction. In the UNet architecture, skip connections transfer information by directly concatenating feature maps from the encoder and decoder. However, this approach can lead to significant information loss. Moreover, the features extracted by the encoder may contain redundancy or noise, and direct concatenation can propagate these disturbances to the decoder, negatively affecting segmentation accuracy. To address this issue, we introduce a Multi-Pooling Channel and Spatial Attention Module at the skip connections. This module adaptively filters important features and leverages the complementarity of different pooling operations to reduce information loss while preserving feature diversity from multiple dimensions. Methods Overall network architecture Our proposed network architecture integrates the strengths of both the Swin Transformer and U-Net, and further enhances performance through the introduction of a Multi-Scale Feature Fusion Module (MFFM) and a Multi-Pooling Channel-Spatial Attention Module (MCSAM). The overall network comprises two encoders, one decoder, and skip connections, as illustrated in Fig. 1. During the encoding phase, we employ two parallel feature extraction paths: a Swin Transformer-based encoder and a conventional CNN encoder. The Swin Transformer encoder demonstrates excellent performance in capturing global contextual information through its self-attention mechanism, demonstrating strong capability in modeling long-range dependencies, thereby improving the understanding of the overall image structure. Differently, CNN encoders perform better in capturing local detail features and exhibits strong spatial structural awareness. These two encoders model the input image from different perspectives, extracting global semantic information and fine-grained local features, respectively. To fully leverage the advantages of both encoders, we designed the MFFM. This module integrates features extracted at different scales and semantic levels by the Swin Transformer and CNN encoders. Through weighted fusion, it enhances the completeness and discriminative power of the feature representations, thereby improving the performance of the model to understand and model complex image content. In the decoding phase, we adopt the classic U-Net decoder structure, gradually restoring the size of the image through progressive upsampling. To further improve the effectiveness of feature fusion during decoding, we introduce the MCSAM in the skip connections. This module dynamically focuses on key regions within the image, guiding the network to more effectively integrate the features passed from the encoding phase during decoding, thus improving the accuracy of the reconstructed skin scar images. Overall, the network achieves significant improvements in image understanding and reconstruction performance by combining parallel encoding, effective feature fusion, and attention enhancement mechanisms. Figure 1 . Overall network architecture diagram. Figure 2 . Structure of the multi-scale feature fusion module (MFFM). It retains the structural advantages of U-Net while incorporating the global modeling capability and attention mechanisms of Transformers. Multi-scale feature fusion module The MFMA-Net architecture introduces a dedicated Multi-Scale Feature Fusion Module (MFFM) designed to effectively integrate the outputs of the Swin Transformer and the U-Net encoder, thereby achieving joint multiscale feature representation, as illustrated in Fig. 2. To fully capture features of scar images at different scales, the feature maps captured by the CNN branch are processed by a parallel multi-branch structure. Each branch utilizes a dilated convolution <sup>43</sup> with different dilation rates, specifically, 1, 3, and 5, allowing convolution operations with varying receptive field sizes to extract lesion features of different spatial extents. This structure enables our model to extract both local and broader contextual features, improving its performance in representing skin scar structures. Within each branch, the convolution is followed by BN and a ReLU activation function to normalize feature distributions and improve the model’s nonlinear representation capability. The multi-scale feature maps extracted by each branch are subsequently merged along the channel axis to generate a fused feature representation. To reduce the channel dimension and achieve effective information integration, the concatenated feature map is compressed through a 1 _×_ 1 convolution, further enhancing fusion efficiency and representation power. For an input feature map _F_ CNN _∈_ R <sup>_H×W ×C_</sup>, the process is mathematically formulated as:    _Fr_ =1 = BN (ReLU (Conv _d_ =1 ( _F_ CNN))) _Fr_ =3 = BN (ReLU (Conv _d_ =3 ( _F_ CNN))) _Fr_ =5 = BN (ReLU (Conv _d_ =5 ( _F_ CNN)))   _×_ (1) where Conv _d_ = _r_ ( _·_ ) denotes a 3 _×_ 3 convolution with dilation rate _r_ . To enhance the global feature modeling capability, MFMA-Net further incorporates the Swin Transformer as part of the encoder. To ensure consistency in feature dimensions between the Transformer and CNN branches at the same scale, a 1 _×_ 1 convolution is applied to the Transformer input feature _F_ Trans _∈_ R <sup>_H×W ×C′_</sup> to align the number of channels. The Swin Transformer utilizes self-attention to establish connections between widely spaced regions in the image, addressing CNN’s limitations in capturing global contextual information. To further leverage the feature information extracted by the Swin Transformer encoder, the model introduces a SE <sup>39</sup> module to perform channel re-weighting on the Transformer’s output. This module first performs global average pooling on each channel, below are two fully connected layers, which serve to compress and reconstruct the relationships among feature channels, and they are defined as: _M_ Trans = _σ_ (W2 _·_ ReLU (W1 _·_ GAP (Conv1 _×_ 1 ( _F_ trans)))) (2) where Conv1 _×_ 1 ( _·_ ) denotes a 1 _×_ 1 convolution, GAP ( _·_ ) represents global average pooling, _σ_ is the Sigmoid function, and W1 and W2 are learnable weight matrices. The final channel weights _M_ Trans are used to scale the CNN encoder’s output features: _F_ out = _M_ Trans _⊗_ Conv1 _×_ 1 (Concat ( _Fr_ =1 _, Fr_ =3 _, Fr_ =5)) (3) Here, Concat ( _·_ ) denotes concatenation along the channel dimension, and _⊗_ denotes element-wise multiplication. We adopt this strategy not only enhances the expression of local details but also retains U-Net’s advantage in precise boundary localization, while introducing the Swin Transformer’s capability to model longrange pixel dependencies. Through multi-scale convolutional branches, Transformer-guided channel attention mechanisms, and finegrained feature fusion strategies, the MFFM module significantly boosts MFMA-Net’s feature representation capacity and comprehensive contextual modeling capability in scar image processing tasks, providing rich multiscale semantic information for subsequent decoding stages. Multi-pooling channel spatial attention module In the highly complex and fine-grained visual task of skin scar image segmentation, we introduce a MultiPooling Channel Spatial Attention Module at the skip connections between the encoder and decoder of the model. This module aims to improve the expressiveness of critical features while suppressing redundant or irrelevant information, thereby improving the selectivity and efficiency of feature transmission. Attention mechanisms such as the CBAM <sup>41</sup> primarily rely on Global Average Pooling (GAP) and Global Max Pooling (GMP) to compress feature maps during attention construction. However, such compression methods may overlook certain statistical features that are crucial for boosting model performance. We propose a new strategy inspired by Soft Pooling <sup>44</sup> as an effective solution to this problem. As illustrated in Fig. 3, we design the MCSAM module, which integrates GAP, GMP, and Global Soft Pooling (GSP). This multi-faceted approach captures statistical information from various dimensions, improving the stability and completeness of attention generation. The Soft Pooling is defined as: _<u>e</u>_ <sup>_xi_</sup> ~~∑~~ _jN_ =1 _x_ Soft Pooling ( _x_ ) = _N_ _i_ =1 ∑ _jN_ =1 <sup>_exj_</sup> <sup>_· xi_</sup> (4) where _x_ represents the input data, _N_ is the number of elements, _xi_ is the value of the _i_ -th element. In the Multi-Pooling Channel Attention Module (MCAM), the input feature map _F_ _∈_ R <sup>_H×W ×C_</sup> is first compressed along the spatial dimension using GAP, GMP, and GSP, producing three channel feature vectors _F_ avg <sup>_c_</sup> <sup>_,_</sup> <sup>_F c_</sup> max <sup>_,_</sup> <sup>_F c_</sup> soft <sup>_∈_</sup> <sup>R1</sup> <sup>_×_</sup> <sup>1</sup> <sup>_×C_</sup> <sup>. These vectors are individually mapped through shared MLP learning. The</sup> _F_ outputs are then fused via element-wise addition to generate the channel attention weights:avg <sup>_c_</sup> <sup>_,_</sup> <sup>_F c_</sup> max <sup>_,_</sup> <sup>_F c_</sup> soft <sup>_∈_</sup> <sup>R1</sup> <sup>_×_</sup> <sup>1</sup> <sup>_×C_</sup> <sup>. These vectors are individually mapped through shared MLP learning. The</sup> avg <sup>_c_</sup> <sup>_,_</sup> <sup>_F c_</sup> <sup>_c_</sup> max <sup>_,_</sup> <sup>_F c_</sup> _Mc_ = _σ_ <sup><u>(</u></sup> <sup>_c_</sup> soft <sup>))</sup> <u>)</u> + WMLP ( _F_ <sup>_c_</sup> max <sup>_c_</sup> <sup>) + W</sup> MLP <sup>(</sup> <sup>_F c_</sup> WMLP <u>(</u> _F_ avg <sup>_c_</sup> (5) Figure 3 . Structure of the multi-pooling channel spatial attention module (MCSAM). where _σ_ is the sigmoid activation function. These channel weights are used to reweight the original feature map, and add residual connections <sup>45</sup> : (6) _F_ <sup>_′_</sup> = _Mc ⊗_ _F_ + _F_ The Multi-Pooling Spatial Attention Module (MSAM) applies the three pooling operations (GAP, GMP, GSP) across the channel dimension on the channel-attention-enhanced feature map _F_ _′_, generating three 2D feature across the channel dimension on the channel-attention-enhanced feature map _F_ _′_, generating three 2D feature maps _F_ avg <sup>_s_</sup> <sup>_,_</sup> <sup>_F s_</sup> max <sup>_,_</sup> <sup>_F s_</sup> soft <sup>_∈_</sup> <sup>R</sup> <sup>_H×W ×_</sup> <sup>1. These feature maps are merged in the channel dimension and fused</sup> maps _F_ avg <sup>_s_</sup> <sup>_,_</sup> <sup>_F s_</sup> max <sup>_,_</sup> <sup>_F s_</sup> soft <sup>_∈_</sup> <sup>R</sup> <sup>_H×W ×_</sup> <sup>1. These feature maps are merged in the channel dimension and fused</sup> through a subsequent convolution operation for feature fusion: avg <sup>_s_</sup> <sup>_,_</sup> <sup>_F s_</sup> <sup>_s_</sup> max <sup>_,_</sup> <sup>_F s_</sup> _Ms_ = _σ_ <sup>(</sup> Concat <sup>(</sup> <sup>_s_</sup> max <sup>_, F s_</sup> <sup>_s_</sup> soft Conv7 _×_ 7 ( _F_ <sup>_s_</sup> avg <sup>_s_</sup> <sup>_, F s_</sup> ))) (7) Here, Concat ( _·_ ) denotes channel-wise concatenation, and Conv7 _×_ 7 ( _·_ ) denotes a convolution operation with a 7 _×_ 7 kernel. Finally, spatial attention is applied via element-wise multiplication: (8) _F_ <sup>_′′_</sup> = _Ms ⊗_ _F_ <sup>_′_</sup> + _F_ <sup>_′_</sup> Through this design, MCSAM effectively recalibrates feature representations. It enhances critical feature expression along the channel dimension and strengthens task-relevant regional responses in the spatial dimension. The integration of three pooling strategies significantly mitigates information degradation issues associated with single pooling methods, this has improved the performance of our network architecture to accurately restore detailed features of scar regions in skin segmentation tasks. Experiments Datasets The dataset used for the experiments was obtained from the skin scar database organized by Hangzhou Plastic Surgery Hospital, which contained a total of 265 skin scar images with pixel-level annotations. The dataset was partitioned using five-fold cross-validation, with each fold allocating a different proportion: 186 samples (70%) constituted the training set, 26 images (10%) were used as a validation subset, and finally 53 instances (20%) were used as a stand-alone test set for performance evaluation. Ethics All methods in this study were performed in accordance with the Declaration of Helsinki. All experimental protocols were approved by the Health Committee of Zhejiang Province (protocol number: YJ250310152984). Informed consent was obtained from patients and/or their legal guardians for all scar images used. Implementation details To ensure the objectivity of the experimental comparisons, this study uses a uniform hyperparameter configuration for all network architectures. The experiments were completed on an NVIDIA GeForce RTX 3090 computing platform equipped with 24GB of video memory. The Adam algorithm with adaptive learning rate is used for model optimization, and the initial learning rate is set to 0.00001 to control the gradient update amplitude. The training process was set to a maximum iteration period of 100, with 32 samples processed in each batch, and a model preservation strategy was implemented at the end of each epoch based on the Dice score metrics on the validation set. In addition, we adopted a hybrid loss function to guide the training and optimization process of the model, which consist of a binary cross-entropy loss function and a dice loss function. The binary cross-entropy loss function is given by equation (1): _L_ BCE = _−_ _N_ <sup><u>1</u></sup> _N_ _i_ =1 ∑ [ _yi_ log ( _pi_ ) + (1 _−_ _yi_ ) log (1 _−_ _pi_ )] (9) where _LBCE_ denotes the binary cross-entropy loss function, _N_ denotes the count of pixels, _yi_ denotes the true label value of the _i_ -th pixel, and _pi_ represents the probability that the _i_ -th pixel is predicted to be a positive class. The dice loss function, which evaluates the segmentation performance based on the similarity of overlapping regions, is given by equation (2): <sup><u>2</u></sup> <sup>_<u>|A ∩</u>_</sup> <sup>_<u>B|</u>_</sup> _<u>i</u>_ <u>=1</u> <sup>_AiBi_</sup> _|A|_ <u>+</u> _|B|_ <sup>= 1</sup> <sup>_−_</sup> _i_ =1 <sup>(</sup> <sup>_Ai_</sup> <sup>+</sup> <sup>_B_</sup> <u>2</u> <sup><u>∑</u></sup> <sup>_N_</sup> _A_ ~~∑~~ _N_ _L_ Dice = 1 _−_ <sup><u>2</u></sup> <sup>_<u>|A ∩</u>_</sup> <sup>_<u>B|</u>_</sup> _|A|_ <u>+</u> _|B|_ _i_ =1 <sup>(</sup> <sup>_Ai_</sup> <sup>+</sup> <sup>_Bi_</sup> <sup>)</sup> (10) Where _LDice_ denotes the dice loss function, _A_ is the segmentation result predicted by the network, and _B_ is the ground truth. _Ai_ and _Bi_ denote the predicted and actual values at the _i_ th pixel point, respectively. In order to combine the advantages of the two loss functions, we used a hybrid loss function approach to obtain better segmentation, equation (3): _L_ Combined = _αL_ BCE + (1 _−_ _α_ ) _L_ Dice (11) Where _LC_ _ombined_ denotes the hybrid loss function and _α_ was the coefficient that balance the contribution of the two. By adjusting the value of _α_, we optimized the training effect of the model according to the characteristics of specific tasks and datasets. Based on the experience configurations of previous related studies <sup>46,47</sup>, _α_ was set to 0.5. We also performed various preprocessing and data enhancement operations on the input images. First, we uniformly scaled the image to 224 _×_ 224 pixels and grayscaled it. Then, we applied random flip operations, including no flip, Flip horizontally, flip vertically, and both horizontal and vertical flip. The probability of each flip operation was 25%. In addition, to further complement the diversity of the data, we performed random rotations to the images at 0 <sup>_◦_</sup> ( no rotation), 90 <sup>_◦_</sup>, 180 <sup>_◦_</sup> and 270 <sup>_◦_</sup>, with a rotation probability of 25% for each angle as well. Evaluation metrics In order to objectively evaluate the performance of the algorithm, this study adopts five common evaluation indexes: Accuracy, Precision, Recall, Jaccard Index and Dice Coefficient. All the calculation method of each index is as follows: <u>TP + TN</u> Accuracy = (12) <u>TP + FP + TN + FN</u> <u>TP</u> Precision = (13) <u>TP + FP</u> <u>TP</u> Recall = (14) <u>TP + FN</u> <u>TP</u> Jaccard Index = (15) <u>TP + FP + FN</u> <u>2TP</u> Dice Coefficient = (16) <u>2TP + FP + FN</u> HD95 ( _A, B_ ) = max ( ) _,_ P95 )) P95 ( min _b∈B_ min _b∈B_ <sup>d (</sup> <sup>_a, b_</sup> <sup>)</sup> <sup>_| a ∈_</sup> <sup>_A_</sup> ( min _a∈A_ <sup>d (</sup> <sup>_b, a_</sup> <sup>)</sup> <sup>_| b ∈_</sup> <sup>_B_</sup> (17) The terms are defined as follows TP denotes a correctly predicted positive result, TN denotes a correctly predicted negative result, FP denotes a negative result that was incorrectly labeled as a positive result, and FN denotes a positive result that was incorrectly identified as a negative result.min _b∈B_ d ( _a, b_ ) _| a ∈_ _A_ represents the minimum of the closest distances, where for each _a ∈_ _A_, the minimum distance to all points in _B_ is calculated (i.e., the closest distance), and then the smallest of all these minimum distances is taken (i.e., the smallest of the closest distances). P95 ( _·_ ) represents the value of the 95th percentile. Comparative experiments In comparative experiments, we systematically validate the performance of current mainstream medical image segmentation algorithms on a skin scar image dataset. The evaluated architectures include U-Net <sup>20</sup>, U-Net++ <sup>30</sup>, Attention U-Net <sup>31</sup>, TransUNet <sup>27</sup>, Swin-Unet <sup>38</sup>, Dae-former <sup>48</sup>, CSWin-UNet <sup>49</sup>, and GLoG-CSUnet <sup>50</sup> . We comprehensively compare these models with our proposed MFMA-Net, using evaluation metrics such as Accuracy, Precision, Recall, Jaccard Index, Dice Coefficient, 95% Hausdorff Distance (HD95), Params, and FLOPs to assess the segmentation performance and computational cost of the models. As shown in the quantitative results of Table 1, MFMA-Net demonstrates outstanding performance across multiple key metrics, showcasing strong segmentation capabilities. Specifically, in terms of accuracy, our model achieved 96.01%, significantly outperforming traditional convolutional architectures like U-Net (95.02%) and attention-enhanced models like Attention U-Net (95.57%), as well as more recent models such as Dae-former (95.70%) and GLoG-CSUnet (94.54%). Regarding precision, MFMA-Net achieved 77.43%, which is slightly lower than Dae-former’s 79.27%, but still higher than most competing models, indicating a strong ability to control false positives. In recall, our model stands out with a score of 90.17%, the highest among all models, indicating MFMA-Net’s superior sensitivity in identifying scar regions. For region overlap metrics, MFMA-Net achieved a Jaccard Index of 71.38% and a Dice Coefficient of 83.21%, both outperforming other models. In particular, compared with the pure Transformer-based Swin-Unet (Jaccard: 53.18%, Dice: 69.38%), our hybrid architecture demonstrates superior spatial fine-grained modeling capabilities. For boundary segmentation accuracy measured by the HD95 metric, MFMA-Net achieved the lowest value of 25.82, indicating greater precision and accuracy in boundary prediction, further verifying its potential for handling small lesions in clinical scenarios. Although MFMA-Net has relatively high computational costs, with 101.59M parameters and 84.63G FLOPs, it can still effectively extract lesion features, even on a relatively small scar dataset. Considering its significant performance improvements, we believe this computational cost is reasonable and acceptable. To further illustrate the actual segmentation performance of MFMA-Net, we present various representative cases in Fig. 4 for qualitative analysis. These cases include complex conditions such as irregular shapes, small lesions, and artifact interference. The results show that MFMA-Net can still produce coherent and accurate segmentation results under these challenging scenarios. For instance, in the third row, where small lesion detection is required, models like U-Net show clear breakages and omissions, while MFMA-Net successfully achieves complete prediction. In the fourth row, despite severe background lighting interference, our method accurately distinguishes scar regions, demonstrating robustness to complex backgrounds. Although MFMA-Net performs well in most cases, we also observed certain limitations when dealing with images where the contrast between scar regions and normal skin is extremely low. As shown in Fig. 5, when the scars are highly similar to surrounding skin in color and texture, the model may produce false detections. This indicates that the model’s feature extraction ability in low-contrast areas is still insufficient, or that such samples are underrepresented in the training data. To address this, in future work, we plan to further enhance the performance of the model to recognize fine-grained features, especially under low-contrast conditions. We also intend to introduce more challenging samples or use data generation methods to expand the diversity and complexity of the training set, thereby improving coverage for such cases. Ablation experiments In Ablation experiments, we systematically analyzed the contributions of MFFM and MCSAM in enhancing the performance of skin scar segmentation under the MFMA-Net architecture through ablation experiments, as clearly demonstrated by the experimental results in Table 2. Firstly, the U-Net architecture is used as our baseline model, which is the initial network without any additional modules. On this basis, we introduced the first module, MFFM, to construct the baseline+MFFM model. MFFM integrates features extracted from CNN and Swin Transformer encoders, enabling effective fusion of multi-scale information in the image. Experimental results show that baseline+MFFM outperforms the baseline across all metrics, with accuracy, precision, recall, Jaccard index, and Dice coefficient increasing to <u>Model</u> <u>Accuracy</u> <u>Precision</u> <u>Recall</u> <u>Jaccard</u> <u>Dice</u> <u>HD95(px)</u> <u>Params(M)</u> <u>FLOPs(G)</u> <u>P-val</u> <u>U-Net</u> <u>95.02</u> <u>73.20</u> <u>89.14</u> <u>66.96</u> <u>80.06</u> <u>29.85</u> <u>31.04</u> <u>41.85</u> <u>***</u> <u>U-Net++</u> <u>95.46</u> <u>79.00</u> <u>81.51</u> <u>66.47</u> <u>79.80</u> <u>25.21</u> <u>47.17</u> <u>152.79</u> <u>***</u> <u>Attention U-Net</u> <u>95.57</u> <u>75.45</u> <u>88.33</u> <u>68.58</u> <u>81.32</u> <u>28.13</u> <u>34.88</u> <u>50.96</u> <u>***</u> <u>TransUNet</u> <u>95.47</u> <u>77.19</u> <u>83.43</u> <u>66.87</u> <u>80.09</u> <u>30.47</u> <u>93.23</u> <u>24.67</u> <u>***</u> <u>Swin-Unet</u> <u>92.83</u> <u>64.66</u> <u>75.01</u> <u>53.18</u> <u>69.38</u> <u>37.85</u> <u>27.15</u> <u>5.91</u> <u>***</u> <u>Dae-former</u> <u>95.70</u> <u>79.27</u> <u>82.46</u> <u>67.78</u> <u>80.73</u> <u>26.99</u> <u>29.69</u> <u>26.11</u> <u>***</u> <u>CSWin-UNet</u> <u>92.70</u> <u>65.02</u> <u>69.97</u> <u>50.48</u> <u>67.35</u> <u>34.67</u> <u>23.57</u> <u>4.70</u> <u>***</u> <u>GLoG-CSUnet</u> <u>94.54</u> <u>72.38</u> <u>80.76</u> <u>61.37</u> <u>76.05</u> <u>30.46</u> <u>24.69</u> <u>8.46</u> <u>***</u> <u>Our</u> <u>96.01</u> <u>77.43</u> <u>90.17</u> <u>71.38</u> <u>83.21</u> <u>25.82</u> <u>101.59</u> <u>84.63</u> Table 1 . Quantitative comparison of different methods on skin scar segmentation task (unit: %). Using t-test for significance analysis, * indicates p-val < 0.05, indicates p-val < 0.01, and * indicates p-val < 0.001. Figure 4 . Visual comparison of different methods on skin scar segmentation task. Figure 5 . Representative challenging cases for the model. 95.74%, 76.01%, 89.72%, 69.92%, and 82.23%, respectively, compared to the baseline’s 95.02%, 73.20%, 89.14%, 66.96%, and 80.06%. Additionally, HD95 was reduced from 29.85 to 25.89. Subsequently, we investigated the individual effects of the two submodules in the attention mechanism. We separately added MCAM and MSAM to the baseline, constructing the baseline+MCAM and baseline+MSAM models. Results show that both modules contributed to improvements in precision and similarity metrics. Specifically, baseline+MCAM achieved a precision of 75.00% and a Dice coefficient of 81.20%, while baseline+MSAM achieved a precision of 74.84% and a Dice coefficient of 81.25%, both outperforming the <u>Model</u> <u>Accuracy</u> <u>Precision</u> <u>Recall</u> <u>Jaccard</u> <u>Dice</u> <u>HD95(px)</u> <u>P-val</u> <u>Baseline</u> <u>95.02</u> <u>73.20</u> <u>89.14</u> <u>66.96</u> <u>80.06</u> <u>29.85</u> <u>*</u> <u>Baseline+MFFM</u> <u>95.74</u> <u>76.01</u> <u>89.72</u> <u>69.92</u> <u>82.23</u> <u>25.89</u> <u>*</u> <u>Baseline+MCAM</u> <u>95.36</u> <u>75.00</u> <u>89.32</u> <u>68.58</u> <u>81.20</u> <u>28.11</u> <u>***</u> <u>Baseline+MSAM</u> <u>95.47</u> <u>74.84</u> <u>89.19</u> <u>68.55</u> <u>81.25</u> <u>28.46</u> <u>***</u> <u>Baseline+MCSAM</u> <u>95.79</u> <u>76.91</u> <u>88.40</u> <u>69.85</u> <u>82.17</u> <u>26.58</u> <u>*</u> <u>MFMA-Net</u> <u>96.01</u> <u>77.43</u> <u>90.17</u> <u>71.38</u> <u>83.21</u> <u>25.82</u> Table 2 . Quantitative analysis of the impact of each module on segmentation performance in ablation studies (unit: %). Using t-test for significance analysis, * indicates p-val < 0.05, indicates p-val < 0.01, and * indicates p-val < 0.001. baseline. This indicates that directing the model’s attention toward key areas from either the channel or spatial dimension has a positive impact on performance. Further, we combined MCAM and MSAM to construct the complete MCSAM, forming the baseline+MCSAM model. This model demonstrated particularly strong performance in terms of precision, reaching 76.91%, the highest among all sub-models. Although recall slightly decreased to 88.40%, the Jaccard index and Dice coefficient reached 69.85% and 82.17%, respectively, and HD95 was reduced to 26.58, each achieving better performance than the baseline, suggesting that MCSAM effectively enhances the method’s performance in capturing key scar regions and significantly reduces false detections, albeit with a slight compromise in sensitivity to scar areas. Finally, we combined MFFM and MCSAM to build the complete MFMA-Net model. This model consistently outperformed others on every metric, achieving an accuracy of 96.01%, precision of 77.43%, recall of 90.17%, Jaccard index of 71.38%, Dice coefficient of 83.21%, and the lowest HD95 of 25.82. These results fully validate the effectiveness of the synergy between the two modules, demonstrating that combining multi-scale information fusion with attention mechanisms helps the model simultaneously improve its understanding of global context and precise localization of detailed regions. In the visual evaluation, Fig. 6 presents the segmented outputs generated by different models under various complex scenarios, including uneven illumination, low contrast, irregular shapes, and artifacts in scar regions. Relative to the baseline, the model with MFFM presents advantages in identifying lesions across multiple scales, adapting well to variations from small spots to large area scars. The model with MCSAM excels in edge detail handling and false detection suppression, especially under low contrast and complex backgrounds, where it performs more stably. The final MFMA-Net achieved the best visual results in terms of detail preservation and boundary delineation, with overall segmentation results being smoother, more continuous, and better aligned with real boundaries. This further confirms the complementary strengths and significant combined benefits of the MFFM and MCSAM modules. Overall, both the ablation experiments and visual analysis demonstrate that the MFFM and MCSAM modules play important roles in fine-grained segmentation of skin scar images, contributing critically to global information fusion and key region attention, respectively. Their combination in MFMA-Net yields optimal performance. Conclusion This study introduces a dual encoder network incorporating a multi-scale feature fusion module and a multipooling channel spatial attention module to enhance the segmentation accuracy of skin scar images. Experimental comparisons reveal that the proposed model achieves superior performance, with metrics of 96.01% accuracy, 77.43% precision, 90.17% recall, a 71.38% Jaccard index, and an 83.21% Dice score, outperforming U-Net and other leading models. Ablation studies confirm the significant impact of individual components on segmentation effectiveness. However, despite these encouraging segmentation results, there are some limitations to this study, the dataset’s limited scale may hinder a thorough assessment of the model’s generalization potential. Additionally, the model’s adaptability to diverse segmentation scenarios remains untested, warranting further investigation into its broader applicability. Next-stage study will target data collection expansion, incorporating varied segmentation tasks, and refining the model architecture to develop a more versatile and efficient segmentation network. Figure 6 . Visual comparison of skin scar segmentation results in ablation studies. Data availability The datasets generated and/or analyzed during this study are not publicly available due to patient privacy protection and hospital confidentiality regulations. Received: 29 March 2025; Accepted: 2 June 2025 References 1. Potekaev, N. N. et al. The role of extracellular matrix in skin wound healing. _J. Clin. Med._ 10, 5947 (2021). 2. Lin, X. & Lai, Y. Scarring skin: mechanisms and therapies. _Int. J. Mol. Sci._ 25, 1458 (2024). 3. Dreno, B. et al. The impact of acne, atopic dermatitis, skin toxicities and scars on quality of life and the importance of a holistic treatment approach. _Clin. Cosmetic Invest. Dermatol._ 623–632 (2021). 4. Kent, R. A., Shupp, J., Fernandez, S., Prindeze, N. & DeKlotz, C. M. Effectiveness of early laser treatment in surgical scar minimization: a systematic review and meta-analysis. _Dermatol. Surg._ 46, 402–410 (2020). 5. Stavrou, D. et al. Silicone-based scar therapy: a review of the literature. _Aesthetic Plast. Surg._ 34, 646–651 (2010). 6. Sheng, M., Chen, Y., Li, H., Zhang, Y. & Zhang, Z. The application of corticosteroids for pathological scar prevention and treatment: current review and update. _Burns Trauma_ 11, tkad009 (2023). 7. Elrefaie, A. M., Salem, R. M. & Faheem, M. H. High-resolution ultrasound for keloids and hypertrophic scar assessment. _Lasers_ _Med. Sci._ 35, 379–385 (2020). 8. Yueksel, M. E. & Borlu, M. Accurate segmentation of dermoscopic images by image thresholding based on type-2 fuzzy logic. _IEEE_ _Trans. Fuzzy Syst._ 17, 976–982 (2009). 9. Emre Celebi, M., Wen, Q., Hwang, S., Iyatomi, H. & Schaefer, G. Lesion border detection in dermoscopy images using ensembles of thresholding methods. _Skin Res. Technol._ 19, e252–e258 (2013). 10. Ning, G. Two-dimensional otsu multi-threshold image segmentation based on hybrid whale optimization algorithm. _Multimedia_ _Tools Appl._ 82, 15007–15026 (2023). 11. Lei, T. et al. Superpixel-based fast fuzzy c-means clustering for color image segmentation. _IEEE Trans. Fuzzy Syst._ 27, 1753–1766 (2018). 12. Lei, X. & Ouyang, H. Image segmentation algorithm based on improved fuzzy clustering. _Clust. Comput._ 22, 13911–13921 (2019). 13. Bayá, A. E., Larese, M. G. & Namías, R. Clustering stability for automated color image segmentation. _Expert Syst. Appl._ 86, 258–273 (2017). 14. Fan, H., Xie, F., Li, Y., Jiang, Z. & Liu, J. Automatic segmentation of dermoscopy images using saliency combined with otsu threshold. _Comput. Biol. Med._ 85, 75–85 (2017). 15. Ma, C., He, T. & Gao, J. Skin scar segmentation based on saliency detection. _Vis. Comput._ 39, 4887–4899 (2023). 16. Moon, C.-I. & Lee, O. Skin microstructure segmentation and aging classification using cnn-based models. _IEEE Access_ 10, 4948– 4956 (2021). 17. Zhou, J. et al. Improving deep learning based segmentation of scars using multi-view images. _Biomed. Signal Process. Control_ 94, 106254 (2024). 18. Jiao, C., Su, K., Xie, W. & Ye, Z. Burn image segmentation based on mask regions with convolutional neural network deep learning framework: more accurate and more convenient. _Burns Trauma_ 7 (2019). 19. Yang, B. et al. Slp-net: An efficient lightweight network for segmentation of skin lesions. _Biomed. Signal Process. Control_ 101, 107242 (2025). 20. Ronneberger, O., Fischer, P. & Brox, T. U-net: Convolutional networks for biomedical image segmentation. In _Medical image_ _computing and computer-assisted intervention–MICCAI 2015: 18th international conference, Munich, Germany, October 5-9, 2015,_ _proceedings, part III 18_, 234–241 (Springer, 2015). 21. Bakkouri, I. & Afdel, K. Mlca2f: Multi-level context attentional feature fusion for covid-19 lesion segmentation from ct scans. _SIViP_ 17, 1181–1188 (2023). 22. Bakkouri, I., Afdel, K., Benois-Pineau, J. & Initiative, G. C. F. t. A. D. N. Bg-3dm2f: bidirectional gated 3d multi-scale feature fusion for alzheimer’s disease diagnosis. _Multimedia Tools Appl._ 81, 10743–10776 (2022). 23. Bakkouri, I. & Afdel, K. Computer-aided diagnosis (cad) system based on multi-layer feature fusion network for skin lesion recognition in dermoscopy images. _Multimedia Tools Appl._ 79, 20483–20518 (2020). 24. Bakkouri, I. & Afdel, K. Multi-scale cnn based on region proposals for efficient breast abnormality recognition. _Multimedia Tools_ _Appl._ 78, 12939–12960 (2019). 25. Vaswani, A. et al. Attention is all you need. _Adv. Neural Inf. Process. Syst._ 30 (2017). 26. Dosovitskiy, A. et al. An image is worth 16x16 words: Transformers for image recognition at scale. _arXiv preprint_ [arXiv:2010.11929](http://arxiv.org/abs/2010.11929) (2020). 27. Chen, J. et al. Transunet: Transformers make strong encoders for medical image segmentation. _arXiv preprint_ [arXiv:2102.04306](http://arxiv.org/abs/2102.04306) (2021). 28. Liu, Z. _et al._ Swin transformer: Hierarchical vision transformer using shifted windows. In _Proceedings of the IEEE/CVF international_ _conference on computer vision_, 10012–10022 (2021). 29. Long, J., Shelhamer, E. & Darrell, T. Fully convolutional networks for semantic segmentation. In _Proceedings of the IEEE conference_ _on computer vision and pattern recognition_, 3431–3440 (2015). 30. Zhou, Z., Rahman Siddiquee, M. M., Tajbakhsh, N. & Liang, J. Unet++: A nested u-net architecture for medical image segmentation. In _Deep learning in medical image analysis and multimodal learning for clinical decision support: 4th international workshop, DLMIA_ _2018, and 8th international workshop, ML-CDS 2018, held in conjunction with MICCAI 2018, Granada, Spain, September 20, 2018,_ _proceedings 4_, 3–11 (Springer, 2018). 31. Oktay, O. et al. Attention u-net: Learning where to look for the pancreas. _arXiv preprint_ [arXiv:1804.03999 (2018).](http://arxiv.org/abs/1804.03999) 32. Lin, G., Chen, M., Tan, M., Chen, L. & Chen, J. A dual-stage transformer and mlp-based network for breast ultrasound image segmentation. _Biocybern. Biomed. Eng._ 43, 656–671 (2023). 33. Fu, L., Chen, Y., Ji, W. & Yang, F. Sstrans-net: smart swin transformer network for medical image segmentation. _Biomed. Signal_ _Process. Control_ 91, 106071 (2024). 34. Fan, J. et al. Dual-task vision transformer for rapid and accurate intracerebral hemorrhage ct image classification. _Sci. Rep._ 14, 28920 (2024). 35. Soleimani-Fard, S. & Ko, S.-B. Res-mgca-se: a lightweight convolutional neural network based on vision transformer for medical image classification. _Neural Comput. Appl._ 36, 17631–17644 (2024). 36. He, X., Li, J. & Jia, T. Learning hybrid dynamic transformers for underwater image super-resolution. _Front. Mar. Sci._ 11, 1389553 (2024). 37. Zhang, Y., Liu, H. & Hu, Q. Transfuse: Fusing transformers and cnns for medical image segmentation. In _Medical image computing_ _and computer assisted intervention–MICCAI 2021: 24th international conference, Strasbourg, France, September 27–October 1, 2021,_ _proceedings, Part I 24_, 14–24 (Springer, 2021). 38. Cao, H. et al. Swin-unet: Unet-like pure transformer for medical image segmentation. In _European conference on computer vision_, 205–218 (Springer, 2022). 39. Hu, J., Shen, L. & Sun, G. Squeeze-and-excitation networks. In _Proceedings of the IEEE conference on computer vision and pattern_ _recognition_, 7132–7141 (2018). 40. Wang, Q. et al. Eca-net: Efficient channel attention for deep convolutional neural networks. In _Proceedings of the IEEE/CVF_ _conference on computer vision and pattern recognition_, 11534–11542 (2020). 41. Woo, S., Park, J., Lee, J.-Y. & Kweon, I. S. Cbam: Convolutional block attention module. In _Proceedings of the European conference_ _on computer vision (ECCV)_, 3–19 (2018). 42. Misra, D., Nalamada, T., Arasanipalai, A. U. & Hou, Q. Rotate to attend: Convolutional triplet attention module. In _Proceedings of_ _the IEEE/CVF winter conference on applications of computer vision_, 3139–3148 (2021). 43. Yu, F. & Koltun, V. Multi-scale context aggregation by dilated convolutions. _arXiv preprint_ [arXiv:1511.07122 (2015).](http://arxiv.org/abs/1511.07122) 44. Stergiou, A., Poppe, R. & Kalliatakis, G. Refining activation downsampling with softpool. In _Proceedings of the IEEE/CVF_ _international conference on computer vision_, 10357–10366 (2021). 45. He, K., Zhang, X., Ren, S. & Sun, J. Deep residual learning for image recognition. In _Proceedings of the IEEE conference on computer_ _vision and pattern recognition_, 770–778 (2016). 46. Ji, Z., Ye, Y. & Ma, X. Bdformer: Boundary-aware dual-decoder transformer for skin lesion segmentation. _Artif. Intelli. Med._ 103079 (2025). 47. Fu, B. et al. Hmsu-net: A hybrid multi-scale u-net based on a cnn and transformer for medical image segmentation. _Comput. Biol._ _Med._ 170, 108013 (2024). 48. Azad, R., Arimond, R., Aghdam, E. K., Kazerouni, A. & Merhof, D. Dae-former: Dual attention-guided efficient transformer for medical image segmentation. In _International workshop on predictive intelligence in medicine_, 83–95 (Springer, 2023). 49. Liu, X., Gao, P., Yu, T., Wang, F. & Yuan, R.-Y. Cswin-unet: Transformer unet with cross-shaped windows for medical image segmentation. _Inf. Fusion_ 113, 102634 (2025). 50. Eghbali, N., Bagher-Ebadian, H., Alhanai, T. & Ghassemi, M. M. Glog-csunet: Enhancing vision transformers with adaptable radiomic features for medical image segmentation. _arXiv preprint_ [arXiv:2501.02788 (2025).](http://arxiv.org/abs/2501.02788) Acknowledgements This work was supported by the National Natural Science Foundation of China (82302350), Zhejiang Provincial Natural Science Foundation of China (LQ23H180002), Zhejiang Provincial “Revealing the list and taking command” Project of China (KYH06Y22349) and Key Projects of Jinhua Municipal Science and Technology Bureau (2023-3-014). Author contributions W.Y. and X.W. conceptualized the study, designed the methodology, conducted the experiments, performed the data analysis, and wrote the main manuscript text. G.C., J.W., D.K., J.Z. and X.G. reviewed the experimental results, prepared figures, and assisted with manuscript revisions. H.X. and J.Q. contributed to the discussion. All authors reviewed and approved the final version of the manuscript. Declarations Competing interests The authors declare no competing interests. Ethics approval Number: protocol number YJ250310152984, Health Commission of Zhejiang Provincial. Additional information Correspondence and requests for materials should be addressed to H.X. or J.Q. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to [obtain permission directly from the copyright holder. To view a copy of this licence, visit ​h​t​t​p​:​/​/​c​r​e​a​t​i​v​e​c​o​m​m​o​](http://creativecommons.org/licenses/by-nc-nd/4.0/) [n​s​.​o​r​g​/​l​i​c​e​n​s​e​s​/​b​y​-​n​c​-​n​d​/​4​.​0​/.](http://creativecommons.org/licenses/by-nc-nd/4.0/) ​​ © The Author(s) 2025

섹션 본문 62문단 · 34,195자

(제목 없음)

1Skin scar is a prevalent dermatological concern that impacts both aesthetic appearance and psychological well-being, making precise delineation of scar tissue essential for clinical treatment.To address the challenge of scar image segmentation, this study introduces an innovative deep learning framework integrating CNN and Swin Transformer architectures.The proposed model leverages a multi-scale feature fusion module to combine hierarchical representations from both backbones, while a novel multi-pooling channel-spatial attention mechanism enhances feature refinement during skip connections.Comprehensive experiments demonstrate the model's superior performance in scar segmentation, achieving metrics of 96.01%Accuracy, 77.43% Precision, 90.17% Recall, 71.38% Jaccard Index, and 83.21% Dice Coefficient, which compare favorably with mainstream methods, and our model performs well in all metrics, highlighting its potential for clinical adoption in scar analysis.

2have made significant progress in the field of medical image analysis, among which convolutional neural networks (CNNs) have successfully solved the problem of traditional segmentation methods' dependence on handmade features due to their superior feature extraction capabilities [16][17][18][19] .The encoder-decoder structure represented by U-Net 20 realizes the organic fusion of multi-scale features through a unique cross-layer connection design, which significantly improves the fineness of segmentation results.In recent years, numerous studies have explored the application of deep network architectures based on feature fusion in medical image segmentation and recognition.For example, MLCA2F 21 leverages multi-level contextual attention feature fusion to significantly enhance the efficient segmentation of lesion areas in COVID-19 CT images.BG-3DM2F 22 introduces a bidirectional gating mechanism and 3D multi-scale fusion, improving the diagnostic accuracy for Alzheimer's disease.In dermoscopic images, researchers have also proposed computer-aided diagnostic systems based on multi-layer feature fusion networks for skin lesion recognition 23 .In the field of breast anomaly detection, region proposal-based multi-scale CNNs have demonstrated both high efficiency and accuracy 24 .These methods provide a solid theoretical foundation and valuable technical reference for this study.Inspired by the field of natural language processing, the Transformer architecture 25 shows great potential in visual tasks with its excellent global relationship modeling capability.Researchers soon applied it to medical image analysis 26 , providing an effective solution for establishing long-range spatial dependencies.However, it should be pointed out that such methods are still deficient in local feature capture.To address this problem, TransUNet 27 innovatively constructed a hybrid architecture, which improves segmentation performance while maintaining detail accuracy by synergistically integrating the local perception advantage of CNN and the global modeling specialty of Transformer.

3However, the varying morphology and size of skin scars, their fuzzy boundaries, and their high similarity to the surrounding normal skin tissues make the accurate segmentation of skin scars extremely challenging, and require a network with stronger feature extraction and characterization capabilities to adapt to the segmentation needs of the scars.In view of this, this study aims to design a dual-encoder network model for skin scar segmentation based on Swin Transformer 28 and U-Net network.The core of the model lies in the effective fusion of the features extracted by each layer of the Swin Transformer and the U-Net encoder, complementing the strengths of both models, in terms of feature extraction capability.In addition, to enhance feature transmission between the encoder and decoder across all layers, we introduce a dedicated attention module that combines multi-pooling operations with channel space optimization.This design not only refines the feature representation and improves its transmission quality, but also provides the decoder with more detailed context data.

4Overall, our work makes three key contributions:

5(1) A multi-scale feature fusion module is designed that can effectively fuse features from Swin Transformer and U-Net encoder at various stages of feature extraction.(2) We introduce a multi-pooling channel spatial attention mechanism that minimizes information loss, bridges the semantic divide between shallow details and deeper semantic features through skip connections, and enhances key feature representations via three different pooling strategies.(3) The validity and superiority of our proposed model are verified by comparison experiments with mainstream segmentation networks.Meanwhile, the ablation study reveals in detail the impact of each module on the overall performance.The subsequent chapters of this paper are organized as follows: chapter 2 will review related work.Chapter 3 will detail the specific architectural design of our proposed network model.Chapter 4 will present the dataset used for the experiments, implementation details, data analysis and visualization comparisons.Chapter 5 will summarize and point out the direction of future work.

CNN-based segmentation methods

6In the field of medical image segmentation, CNNs have shown significant advantages in recent years.CNNs efficiently extract local features through convolutional layers to achieve pixel-level classification.Among them, FCN 29 is one of the earliest CNN end-to-end segmentation methods, which replaces the fully connected layer of traditional CNN with a convolutional layer to enable the model to handle input images of arbitrary sizes, and adopts the up-sampling technique to restore the low-resolution feature maps to the size of the original image to complete the pixel-level prediction.This significant advancement not only greatly facilitates the use of CNNs in image segmentation but also effectively paves the way for future studies.Building on this foundational work, Ronneberger et al. 20 developed U-Net, an efficient encoder-decoder framework specifically tailored for medical image segmentation.Its most notable contribution is the innovative skip-connection mechanism, which seamlessly links corresponding-scale feature maps between the encoder and decoder.This intelligent design enables the decoder to effectively leverage rich multi-level features from the encoder, significantly improving the reconstruction of fine-grained spatial details.Thanks to its remarkable ability to achieve highly accurate segmentation even with scarce training data, U-Net has become a widely adopted standard in medical image analysis.Later, Zhou et al. 30 introduced U-Net++, further enhancing the original architecture with dense nested skip pathways to dramatically strengthen feature fusion across different levels.Meanwhile, Oktay et al. 31 designed Attention U-Net, incorporating a sophisticated attention mechanism that adaptively highlights clinically relevant regions while effectively reducing the influence of distracting background noise, thereby substantially refining segmentation precision.These CNN-based segmentation methods have achieved remarkable results in many fields, but still have some limitations, such as the difficulty of modeling long-distance dependencies and global information.Therefore, researchers have begun to explore methods that combine other models to make up for the shortcomings of CNN in this area.

Transformer-based segmentation methods

7Since the Transformer architecture 25 was proposed in the field of natural language processing, its ability to model long-range dependencies has also progressively impacted computer vision tasks such as image segmentation 32,33 , classification 34,35 , and super-resolution 36 .The Visual Transformer (ViT) 26 introduces this architecture to image classification by dividing the input image into fixed-size blocks and treating each block as an independent token.ViT relies on a self-attention mechanism to capture global relationships between different image regions without the need to use convolutional operations.Although ViT performs well in classification tasks, it fails to outperform CNNs in segmentation tasks, partly due to its lack of ability to handle fine features.

8To compensate for the limitations of a single CNN or Transformer in segmentation tasks, recent studies have explored hybrid network model architectures that combine the advantages of both, i.e. leveraging the powerful local feature extraction capability of CNNs and using Transformer for global context modeling.For example, the TransUNet 27 proposed by Chen et al. and the TransFuse 37 network model proposed by Zhang et al. both improve segmentation accuracy by fusing CNN and Transformer.In addition, Swin-Unet 38 adopts a U-Net encoder-decoder structure based on Swin Transformer, and its sliding window attention mechanism reduces the computational cost while effectively modeling global information.

9Although existing methods have successfully applied Vision Transformers to medical image segmentation and leveraged the strengths of CNNs, simple concatenation or basic feature fusion strategies often struggle to fully integrate the advantages of both architectures, leading to potential loss of feature information.To address this, we propose MFMA-Net, which innovatively adopts a parallel dual-encoder architecture.Through a unique cross-encoder interaction mechanism, it establishes information pathways at each level between the Transformer and CNN branches.This design not only enables the simultaneous capture of local detail features and global contextual information in medical images but, more importantly, facilitates dynamic feature complementarity between the two branches, thereby significantly enhancing the model's feature representation capability.

Attention mechanisms

10Attention mechanism in deep learning is inspired by the human visual system, which tends to selectively focus on certain information and ignore relatively unimportant information due to the limitations of human ability to process information, a phenomenon often referred to as attention mechanism.It is capable of dynamically allocating different levels of attention to highlight critical areas and ignore secondary information.The evolution of this mechanism has given rise to a variety of improved approaches to enhance model performance.For instance, Hu et al. 39 introduced the Squeeze-and-Excitation (SE) module, which employs channel-level attention to emphasize task-critical features.Later, Wang et al. 40 streamlined the approach by replacing the fully connected layer with 1D convolution, resulting in the Efficient Channel Attention (ECA) mechanism.Building on these advancements, Woo et al. 41 further integrated channel and spatial attention to develop the Convolutional Block Attention Module (CBAM).In addition, Misra et al. 42 designed a lightweight TA mechanism to efficiently fuse channel and spatial information without relying on complex dimensionality reduction operations, demonstrating the importance of cross-dimensional feature interaction.

11In the UNet architecture, skip connections transfer information by directly concatenating feature maps from the encoder and decoder.However, this approach can lead to significant information loss.Moreover, the features extracted by the encoder may contain redundancy or noise, and direct concatenation can propagate these disturbances to the decoder, negatively affecting segmentation accuracy.To address this issue, we introduce a Multi-Pooling Channel and Spatial Attention Module at the skip connections.This module adaptively filters important features and leverages the complementarity of different pooling operations to reduce information loss while preserving feature diversity from multiple dimensions.

Overall network architecture

12Our proposed network architecture integrates the strengths of both the Swin Transformer and U-Net, and further enhances performance through the introduction of a Multi-Scale Feature Fusion Module (MFFM) and a Multi-Pooling Channel-Spatial Attention Module (MCSAM).The overall network comprises two encoders, one decoder, and skip connections, as illustrated in Fig. 1.

13During the encoding phase, we employ two parallel feature extraction paths: a Swin Transformer-based encoder and a conventional CNN encoder.The Swin Transformer encoder demonstrates excellent performance in capturing global contextual information through its self-attention mechanism, demonstrating strong capability in modeling long-range dependencies, thereby improving the understanding of the overall image structure.Differently, CNN encoders perform better in capturing local detail features and exhibits strong spatial structural awareness.These two encoders model the input image from different perspectives, extracting global semantic information and fine-grained local features, respectively.

14To fully leverage the advantages of both encoders, we designed the MFFM.This module integrates features extracted at different scales and semantic levels by the Swin Transformer and CNN encoders.Through weighted fusion, it enhances the completeness and discriminative power of the feature representations, thereby improving the performance of the model to understand and model complex image content.

15In the decoding phase, we adopt the classic U-Net decoder structure, gradually restoring the size of the image through progressive upsampling.To further improve the effectiveness of feature fusion during decoding, we introduce the MCSAM in the skip connections.This module dynamically focuses on key regions within the image, guiding the network to more effectively integrate the features passed from the encoding phase during decoding, thus improving the accuracy of the reconstructed skin scar images.

16Overall, the network achieves significant improvements in image understanding and reconstruction performance by combining parallel encoding, effective feature fusion, and attention enhancement mechanisms.

17It retains the structural advantages of U-Net while incorporating the global modeling capability and attention mechanisms of Transformers.

Multi-scale feature fusion module

18The MFMA-Net architecture introduces a dedicated Multi-Scale Feature Fusion Module (MFFM) designed to effectively integrate the outputs of the Swin Transformer and the U-Net encoder, thereby achieving joint multiscale feature representation, as illustrated in Fig. 2. To fully capture features of scar images at different scales, the feature maps captured by the CNN branch are processed by a parallel multi-branch structure.Each branch utilizes a dilated convolution 43 with different dilation rates, specifically, 1, 3, and 5, allowing convolution operations with varying receptive field sizes to extract lesion features of different spatial extents.This structure enables our model to extract both local and broader contextual features, improving its performance in representing skin scar structures.Within each branch, the convolution is followed by BN and a ReLU activation function to normalize feature distributions and improve the model's nonlinear representation capability.The multi-scale feature maps extracted by each branch are subsequently merged along the channel axis to generate a fused feature representation.To reduce the channel dimension and achieve effective information integration, the concatenated feature map is compressed through a 1×1 convolution, further enhancing fusion efficiency and representation power.For an input feature map FCNN ∈ R H×W ×C , the process is mathematically formulated as:

19where Conv d=r (•) denotes a 3 × 3 convolution with dilation rate r.

20To enhance the global feature modeling capability, MFMA-Net further incorporates the Swin Transformer as part of the encoder.To ensure consistency in feature dimensions between the Transformer and CNN branches at the same scale, a 1 × 1 convolution is applied to the Transformer input feature FTrans ∈ R H×W ×C ′ to align the number of channels.The Swin Transformer utilizes self-attention to establish connections between widely spaced regions in the image, addressing CNN's limitations in capturing global contextual information.

21To further leverage the feature information extracted by the Swin Transformer encoder, the model introduces a SE 39 module to perform channel re-weighting on the Transformer's output.This module first performs global average pooling on each channel, below are two fully connected layers, which serve to compress and reconstruct the relationships among feature channels, and they are defined as:

22where Conv1×1 (•) denotes a 1 × 1 convolution, GAP (•) represents global average pooling, σ is the Sigmoid function, and W1 and W2 are learnable weight matrices.The final channel weights MTrans are used to scale the CNN encoder's output features:

23Here, Concat (•) denotes concatenation along the channel dimension, and ⊗ denotes element-wise multiplication.We adopt this strategy not only enhances the expression of local details but also retains U-Net's advantage in precise boundary localization, while introducing the Swin Transformer's capability to model longrange pixel dependencies.Through multi-scale convolutional branches, Transformer-guided channel attention mechanisms, and finegrained feature fusion strategies, the MFFM module significantly boosts MFMA-Net's feature representation capacity and comprehensive contextual modeling capability in scar image processing tasks, providing rich multiscale semantic information for subsequent decoding stages.

Multi-pooling channel spatial attention module

24In the highly complex and fine-grained visual task of skin scar image segmentation, we introduce a Multi-Pooling Channel Spatial Attention Module at the skip connections between the encoder and decoder of the model.This module aims to improve the expressiveness of critical features while suppressing redundant or irrelevant information, thereby improving the selectivity and efficiency of feature transmission.

25Attention mechanisms such as the CBAM 41 primarily rely on Global Average Pooling (GAP) and Global Max Pooling (GMP) to compress feature maps during attention construction.However, such compression methods may overlook certain statistical features that are crucial for boosting model performance.We propose a new strategy inspired by Soft Pooling 44 as an effective solution to this problem.As illustrated in Fig. 3, we design the MCSAM module, which integrates GAP, GMP, and Global Soft Pooling (GSP).This multi-faceted approach captures statistical information from various dimensions, improving the stability and completeness of attention generation.The Soft Pooling is defined as:

26where x represents the input data, N is the number of elements, xi is the value of the i-th element.

27In the Multi-Pooling Channel Attention Module (MCAM), the input feature map F ∈ R H×W ×C is first compressed along the spatial dimension using GAP, GMP, and GSP, producing three channel feature vectors F c avg , F c max , F c soft ∈ R 1×1×C .These vectors are individually mapped through shared MLP learning.The outputs are then fused via element-wise addition to generate the channel attention weights:

28where σ is the sigmoid activation function.These channel weights are used to reweight the original feature map, and add residual connections 45 :

29The Multi-Pooling Spatial Attention Module (MSAM) applies the three pooling operations (GAP, GMP, GSP) across the channel dimension on the channel-attention-enhanced feature map F ′ , generating three 2D feature maps F s avg , F s max , F s soft ∈ R H×W ×1 .These feature maps are merged in the channel dimension and fused through a subsequent convolution operation for feature fusion:

30Here, Concat (•) denotes channel-wise concatenation, and Conv7×7 (•) denotes a convolution operation with a 7 × 7 kernel.Finally, spatial attention is applied via element-wise multiplication:

31Through this design, MCSAM effectively recalibrates feature representations.It enhances critical feature expression along the channel dimension and strengthens task-relevant regional responses in the spatial dimension.The integration of three pooling significantly mitigates information degradation issues associated with single pooling methods, this has improved the performance of our network architecture to accurately restore detailed features of scar regions in skin segmentation tasks.

Experiments Datasets

32The dataset used for the experiments was obtained from the skin scar database organized by Hangzhou Plastic Surgery Hospital, which contained a total of 265 skin scar images with pixel-level annotations.The dataset was partitioned using five-fold cross-validation, with each fold allocating a different proportion: 186 samples (70%) constituted the training set, 26 images (10%) were used as a validation subset, and finally 53 instances (20%) were used as a stand-alone test set for performance evaluation.

Implementation details

33To ensure the objectivity of the experimental comparisons, this study uses a uniform hyperparameter configuration for all network architectures.The experiments were completed on an NVIDIA GeForce RTX 3090 computing platform equipped with 24GB of video memory.The Adam algorithm with adaptive learning rate is used for model optimization, and the initial learning rate is set to 0.00001 to control the gradient update amplitude.The training process was set to a maximum iteration period of 100, with 32 samples processed in each batch, and a model preservation strategy was implemented at the end of each epoch based on the Dice score metrics on the validation set.In addition, we adopted a hybrid loss function to guide the training and optimization process of the model, which consist of a binary cross-entropy loss function and a dice loss function.

34The binary cross-entropy loss function is given by equation ( 1):

35where LBCE denotes the binary cross-entropy loss function, N denotes the count of pixels, yi denotes the true label value of the i-th pixel, and pi represents the probability that the i-th pixel is predicted to be a positive class.The dice loss function, which evaluates the segmentation performance based on the similarity of overlapping regions, is given by equation ( 2):

36Where LDice denotes the dice loss function, A is the segmentation result predicted by the network, and B is the ground truth.Ai and Bi denote the predicted and actual values at the ith pixel point, respectively.In order to combine the advantages of the two loss functions, we used a hybrid loss function approach to obtain better segmentation, equation ( 3):

37Where LC ombined denotes the hybrid loss function and α was the coefficient that balance the contribution of the two.By adjusting the value of α, we optimized the training effect of the model according to the characteristics of specific tasks and datasets.Based on the experience configurations of previous related studies 46,47 , α was set to 0.5.We also performed various preprocessing and data enhancement operations on the input images.First, we uniformly scaled the image to 224×224 pixels and grayscaled it.Then, we applied random flip operations, including no flip, Flip horizontally, flip vertically, and both horizontal and vertical flip.The probability of each flip operation was 25%.In addition, to further complement the diversity of the data, we performed random rotations to the images at 0 • ( no rotation), 90 • , 180 • and 270 • , with a rotation probability of 25% for each angle as well.

Evaluation metrics

38In order to objectively evaluate the performance of the algorithm, this study adopts five common evaluation indexes: Accuracy, Precision, Recall, Jaccard Index and Dice Coefficient.All the calculation method of each index is as follows:

39Jaccard Index = TP TP + FP + FN (15) Dice Coefficient = 2TP 2TP + FP + FN (16)

40The terms are defined as follows TP denotes a correctly predicted positive result, TN denotes a correctly predicted negative result, FP denotes a negative result that was incorrectly labeled as a positive result, and FN denotes a positive result that was incorrectly identified as a negative result.minb∈Bd (a, b) | a ∈ A represents the minimum of the closest distances, where for each a ∈ A, the minimum distance to all points in B is calculated (i.e., the closest distance), and then the smallest of all these minimum distances is taken (i.e., the smallest of the closest distances).P95 (•) represents the value of the 95th percentile.

Comparative experiments

41In comparative experiments, we systematically validate the performance of current mainstream medical image segmentation algorithms on a skin scar image dataset.The evaluated architectures include U-Net 20 , U-Net++ 30 , Attention U-Net 31 , TransUNet 27 , Swin-Unet 38 , Dae-former 48 , CSWin-UNet 49 , and GLoG-CSUnet 50 .We comprehensively compare these models with our proposed MFMA-Net, using evaluation metrics such as Accuracy, Precision, Recall, Jaccard Index, Dice Coefficient, 95% Hausdorff Distance (HD95), Params, and FLOPs to assess the segmentation performance and computational cost of the models.

42As shown in the quantitative results of Table 1, MFMA-Net demonstrates outstanding performance across multiple key metrics, showcasing strong segmentation capabilities.Specifically, in terms of accuracy, our model achieved 96.01%, significantly outperforming traditional convolutional architectures like U-Net (95.02%) and attention-enhanced models like Attention U-Net (95.57%), as well as more recent models such as Dae-former (95.70%) and GLoG-CSUnet (94.54%).Regarding precision, MFMA-Net achieved 77.43%, which is slightly lower than Dae-former's 79.27%, but still higher than most competing models, indicating a strong ability to control false positives.

43In recall, our model stands out with a score of 90.17%, the highest among all models, indicating MFMA-Net's superior sensitivity in identifying scar regions.For region overlap metrics, MFMA-Net achieved a Jaccard Index of 71.38% and a Dice Coefficient of 83.21%, both outperforming other models.In particular, compared with the pure Transformer-based Swin-Unet (Jaccard: 53.18%, Dice: 69.38%), our hybrid architecture demonstrates superior spatial fine-grained modeling capabilities.

44For boundary segmentation accuracy measured by the HD95 metric, MFMA-Net achieved the lowest value of 25.82, indicating greater precision and accuracy in boundary prediction, further verifying its potential for handling small lesions in clinical scenarios.Although MFMA-Net has relatively high computational costs, with 101.59M parameters and 84.63G FLOPs, it can still effectively extract lesion features, even on a relatively small scar dataset.Considering its significant performance improvements, we believe this computational cost is reasonable and acceptable.

45To further illustrate the actual segmentation performance of MFMA-Net, we present various representative cases in Fig. 4 for qualitative analysis.These cases include complex conditions such as irregular shapes, small lesions, and artifact interference.The results show that MFMA-Net can still produce coherent and accurate segmentation results under these challenging scenarios.For instance, in the third row, where small lesion detection is required, models like U-Net show clear breakages and omissions, while MFMA-Net successfully achieves complete prediction.In the fourth row, despite severe background lighting interference, our method accurately distinguishes scar regions, demonstrating robustness to complex backgrounds.

46Although MFMA-Net performs well in most cases, we also observed certain limitations when dealing with images where the contrast between scar regions and normal skin is extremely low.As shown in Fig. 5, when the scars are highly similar to surrounding skin in color and texture, the model may produce false detections.This indicates that the model's feature extraction ability in low-contrast areas is still insufficient, or that such samples are underrepresented in the training data.To address this, in future work, we plan to further enhance the performance of the model to recognize fine-grained features, especially under low-contrast conditions.We also intend to introduce more challenging samples or use data generation methods to expand the diversity and complexity of the training set, thereby improving coverage for such cases.

Ablation experiments

47In Ablation experiments, we systematically analyzed the contributions of MFFM and MCSAM in enhancing the performance of skin scar segmentation under the MFMA-Net architecture through ablation experiments, as clearly demonstrated by the experimental results in Table 2.

48Firstly, the U-Net architecture is used as our baseline model, which is the initial network without any additional modules.On this basis, we introduced the first module, MFFM, to construct the baseline+MFFM model.MFFM integrates features extracted from CNN and Swin Transformer encoders, enabling effective fusion of multi-scale information in the image.Experimental results show that baseline+MFFM outperforms the baseline across all metrics, with accuracy, precision, recall, Jaccard index, and Dice coefficient increasing to Subsequently, we investigated the individual effects of the two submodules in the attention mechanism.We separately added MCAM and MSAM to the baseline, constructing the baseline+MCAM and baseline+MSAM models.Results show that both modules contributed to improvements in precision and similarity metrics.Specifically, baseline+MCAM achieved a precision of 75.00% and a Dice coefficient of 81.20%, while baseline+MSAM achieved a precision of 74.84% and a Dice coefficient of 81.25%, both outperforming the baseline.This indicates that directing the model's attention toward key areas from either the channel or spatial dimension has a positive impact on performance.

49Further, we combined MCAM and MSAM to construct the complete MCSAM, forming the baseline+MCSAM model.This model demonstrated particularly strong performance in terms of precision, reaching 76.91%, the highest among all sub-models.Although recall slightly decreased to 88.40%, the Jaccard index and Dice coefficient reached 69.85% and 82.17%, respectively, and HD95 was reduced to 26.58, each achieving better performance than the baseline, suggesting that MCSAM effectively enhances the method's performance in capturing key scar regions and significantly reduces false detections, albeit with a slight compromise in sensitivity to scar areas.

50Finally, we combined MFFM and MCSAM to build the complete MFMA-Net model.This model consistently outperformed others on every metric, achieving an accuracy of 96.01%, precision of 77.43%, recall of 90.17%, Jaccard index of 71.38%, Dice coefficient of 83.21%, and the lowest HD95 of 25.82.These results fully validate the effectiveness of the synergy between the two modules, demonstrating that combining multi-scale information fusion with attention mechanisms helps the model simultaneously improve its understanding of global context and precise localization of detailed regions.

51In the visual evaluation, Fig. 6 presents the segmented outputs generated by different models under various complex scenarios, including uneven illumination, low contrast, irregular shapes, and artifacts in scar regions.Relative to the baseline, the model with MFFM presents advantages in identifying lesions across multiple scales, adapting well to variations from small spots to large area scars.The model with MCSAM excels in edge detail handling and false detection suppression, especially under low contrast and complex backgrounds, where it performs more stably.The final MFMA-Net achieved the best visual results in terms of detail preservation and boundary delineation, with overall segmentation results being smoother, more continuous, and better aligned with real boundaries.This further confirms the complementary strengths and significant combined benefits of the MFFM and MCSAM modules.

52Overall, both the ablation experiments and visual analysis demonstrate that the MFFM and MCSAM modules play important roles in fine-grained segmentation of skin scar images, contributing critically to global information fusion and key region attention, respectively.Their combination in MFMA-Net yields optimal performance.

Conclusion

53This study introduces a dual encoder network incorporating a multi-scale feature fusion module and a multipooling channel spatial attention module to enhance the segmentation accuracy of skin scar images.Experimental comparisons reveal that the proposed model achieves superior performance, with metrics of 96.01%accuracy, 77.43% precision, 90.17% recall, a 71.38%Jaccard index, and an 83.21% Dice score, outperforming U-Net and other leading models.Ablation studies confirm the significant impact of individual components on segmentation effectiveness.

54However, despite these encouraging segmentation results, there are some limitations to this study, the dataset's limited scale may hinder a thorough assessment of the model's generalization potential.Additionally, the model's adaptability to diverse segmentation scenarios remains untested, warranting further investigation into its broader applicability.Next-stage study will target data collection expansion, incorporating varied segmentation tasks, and refining the model architecture to develop a more versatile and efficient segmentation network.

Figure 2 .

55Figure 2. Structure of the multi-scale feature fusion module (MFFM).

Figure 1 .

56Figure 1.Overall network architecture diagram.

Figure 5 .

57Figure 5. Representative challenging cases for the model.

Figure 4 .

58Figure 4. Visual comparison of different methods on skin scar segmentation task.

Figure 6 .

59Figure 6.Visual comparison of skin scar segmentation results in ablation studies.

Table 1 .

60Quantitative

61comparison of different methods on skin scar segmentation task (unit: %).Using t-test for significance analysis, * indicates p-val < 0.05, ** indicates p-val < 0.01, and *** indicates p-val < 0.001.95.74%, 76.01%, 89.72%, 69.92%, and 82.23%, respectively, compared to the baseline's 95.02%, 73.20%, 89.14%, 66.96%, and 80.06%.Additionally, HD95 was reduced from 29.85 to 25.89.

Table 2 .

62Quantitative analysis of the impact of each module on segmentation performance in ablation studies (unit: %).Using t-test for significance analysis, * indicates p-val < 0.05, ** indicates p-val < 0.01, and *** indicates p-val < 0.001.

참고문헌 44건

  1. U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
  2. Fully convolutional networks for semantic segmentation 2015 10.1109/cvpr.2015.7298965
  3. Silicone-Based Scar Therapy: A Review of the Literature Aesthetic Plastic Surgery · Springer Science+Business Media · 2010 10.1007/s00266-010-9496-8
  4. Lesion Border Detection in Dermoscopy Images Using Ensembles of Thresholding Methods Skin Research and Technology · Wiley · 2012 10.1111/j.1600-0846.2012.00636.x
  5. Accurate Segmentation of Dermoscopic Images by Image Thresholding Based on Type-2 Fuzzy Logic IEEE Transactions on Fuzzy Systems · Institute of Electrical and Electronics Engineers · 2009 10.1109/tfuzz.2009.2018300
  6. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  7. Automatic segmentation of dermoscopy images using saliency combined with Otsu threshold Computers in Biology and Medicine · Elsevier BV · 2017 10.1016/j.compbiomed.2017.03.025
  8. Clustering stability for automated color image segmentation Expert Systems with Applications · Elsevier BV · 2017 10.1016/j.eswa.2017.05.064
  9. Squeeze-and-Excitation Networks 2018 10.1109/cvpr.2018.00745
  10. Image segmentation algorithm based on improved fuzzy clustering Cluster Computing · Springer Science+Business Media · 2018 10.1007/s10586-018-2128-9
  11. Multi-scale CNN based on region proposals for efficient breast abnormality recognition Multimedia Tools and Applications · Springer Science+Business Media · 2018 10.1007/s11042-018-6267-z
  12. UNet++: A Nested U-Net Architecture for Medical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-00889-5_1
  13. CBAM: Convolutional Block Attention Module Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01234-2_1
  14. Superpixel-Based Fast Fuzzy C-Means Clustering for Color Image Segmentation IEEE Transactions on Fuzzy Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tfuzz.2018.2889018
  15. Effectiveness of Early Laser Treatment in Surgical Scar Minimization: A Systematic Review and Meta-analysis Dermatologic Surgery · Lippincott Williams & Wilkins · 2019 10.1097/dss.0000000000001887
  16. Burn image segmentation based on Mask Regions with Convolutional Neural Network deep learning framework: more accurate and more convenient Burns & Trauma · BioMed Central · 2019 10.1186/s41038-018-0137-9
  17. High-resolution ultrasound for keloids and hypertrophic scar assessment Lasers in Medical Science · Springer Science+Business Media · 2019 10.1007/s10103-019-02830-4
  18. ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks 2020 10.1109/cvpr42600.2020.01155
  19. Rotate to Attend: Convolutional Triplet Attention Module 2021 10.1109/wacv48630.2021.00318
  20. Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2021 10.1109/iccv48922.2021.00986
  21. The Impact of Acne, Atopic Dermatitis, Skin Toxicities and Scars on Quality of Life and the Importance of a Holistic Treatment Approach Clinical Cosmetic and Investigational Dermatology · Dove Medical Press · 2021 10.2147/ccid.s315846
  22. TransFuse: Fusing Transformers and CNNs for Medical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2021 10.1007/978-3-030-87193-2_2
  23. The Role of Extracellular Matrix in Skin Wound Healing Journal of Clinical Medicine · Multidisciplinary Digital Publishing Institute · 2021 10.3390/jcm10245947
  24. Skin Microstructure Segmentation and Aging Classification Using CNN-Based Models IEEE Access · Institute of Electrical and Electronics Engineers · 2021 10.1109/access.2021.3140031
  25. Computer-aided diagnosis (CAD) system based on multi-layer feature fusion network for skin lesion recognition in dermoscopy images Multimedia Tools and Applications · Springer Science+Business Media · 2019 10.1007/s11042-019-07988-1
  26. BG-3DM2F: Bidirectional gated 3D multi-scale feature fusion for Alzheimer’s disease diagnosis Multimedia Tools and Applications · Springer Science+Business Media · 2022 10.1007/s11042-022-12242-2
  27. Refining activation downsampling with SoftPool 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2021 10.1109/iccv48922.2021.01019
  28. MLCA2F: Multi-Level Context Attentional Feature Fusion for COVID-19 lesion segmentation from CT scans Signal Image and Video Processing · Springer Science+Business Media · 2022 10.1007/s11760-022-02325-w
  29. Skin scar segmentation based on saliency detection The Visual Computer · Springer Science+Business Media · 2022 10.1007/s00371-022-02635-7
  30. Two-dimensional Otsu multi-threshold image segmentation based on hybrid whale optimization algorithm Multimedia Tools and Applications · Springer Science+Business Media · 2022 10.1007/s11042-022-14041-1
  31. Swin-Unet: Unet-Like Pure Transformer for Medical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2023 10.1007/978-3-031-25066-8_9
  32. The application of corticosteroids for pathological scar prevention and treatment: current review and update Burns & Trauma · BioMed Central · 2023 10.1093/burnst/tkad009
  33. A dual-stage transformer and MLP-based network for breast ultrasound image segmentation Journal of Applied Biomedicine · Elsevier BV · 2023 10.1016/j.bbe.2023.09.001
  34. DAE-Former: Dual Attention-Guided Efficient Transformer for Medical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2023 10.1007/978-3-031-46005-0_8
  35. HmsU-Net: A hybrid multi-scale U-net based on a CNN and transformer for medical image segmentation Computers in Biology and Medicine · Elsevier BV · 2024 10.1016/j.compbiomed.2024.108013
  36. Scarring Skin: Mechanisms and Therapies International Journal of Molecular Sciences · Multidisciplinary Digital Publishing Institute · 2024 10.3390/ijms25031458
  37. SSTrans-Net: Smart Swin Transformer Network for medical image segmentation Biomedical Signal Processing and Control · Elsevier BV · 2024 10.1016/j.bspc.2024.106071
  38. Improving deep learning based segmentation of scars using multi-view images Biomedical Signal Processing and Control · Elsevier BV · 2024 10.1016/j.bspc.2024.106254
  39. Learning hybrid dynamic transformers for underwater image super-resolution Frontiers in Marine Science · Frontiers Media · 2024 10.3389/fmars.2024.1389553
  40. Res-MGCA-SE: a lightweight convolutional neural network based on vision transformer for medical image classification Neural Computing and Applications · Springer Science+Business Media · 2024 10.1007/s00521-024-10053-0
  41. CSWin-UNet: Transformer UNet with cross-shaped windows for medical image segmentation Information Fusion · Elsevier BV · 2024 10.1016/j.inffus.2024.102634
  42. Dual-task vision transformer for rapid and accurate intracerebral hemorrhage CT image classification Scientific Reports · Nature Portfolio · 2024 10.1038/s41598-024-79090-y
  43. SLP-Net:An efficient lightweight network for segmentation of skin lesions Biomedical Signal Processing and Control · Elsevier BV · 2024 10.1016/j.bspc.2024.107242
  44. BDFormer: Boundary-aware dual-decoder transformer for skin lesion segmentation Artificial Intelligence in Medicine · Elsevier BV · 2025 10.1016/j.artmed.2025.103079