Accurate segmentation of thyroid nodules in ultrasound images remains challenging due to low contrast, speckle noise, and inter-patient variability that disrupt the inherent spatial symmetry of thyroid anatomy. This study proposes a symmetry-aware SwinUNet framework with integrated spatial attention for thyroid nodule segmentation. The hierarchical window-based Swin Transformer encoder preserves spatial symmetry and scale consistency while capturing both global contextual information and fine-grained local features. Attention modules in the decoder emphasize symmetry consistent anatomical regions and asymmetric nodule boundaries, effectively suppressing irrelevant background responses. The proposed method was evaluated on the publicly available TN3K thyroid ultrasound dataset. Experimental results demonstrate strong performance, achieving a Dice Similarity Coefficient of 85.51%, precision of 87.05%, recall of 89.13%, an IoU of 78.00%, accuracy of 97.02%, and an AUC of 99.02%. Compared with the baseline model, the proposed approach improves the IoU and Dice score by 15.38% and 12.05%, respectively, confirming its ability to capture symmetry-preserving nodule morphology and boundary asymmetry. These findings indicate that the proposed symmetry-aware SwinUNet provides a robust and clinically promising solution for thyroid ultrasound image analysis and computer-aided diagnosis.
Accurate segmentation of thyroid nodules on ultrasound images remains a challenging task in computer-aided diagnosis (CAD) mainly because of low contrast, speckle noise, and large inter-patient variability of nodule appearance. Here a new deep learning-based segmentation method has been developed on the SwinUNet architecture supported by spatial attention mechanisms to enhance feature discrimination and localization accuracy. The model takes advantage of the hierarchical feature extraction ability of the Swin Transformer to learn both global context and local fine-grained details, whereas attention modules during the decoder process selectively highlight informative areas and suppresses irrelevant background features. We checked out the system's design using the TN3K thyroid ultrasound info that's out there. It got better as it trained, peaking around the 800th run with some good numbers: a Dice Similarity Coefficient (F1 Score) of 85.51%, Precision of 87.05%, Recall of 89.13%, IoU of 78.00%, Accuracy of 97.02%, and an AUC of 99.02%. These numbers are way better than when we started (like a 15.38% jump in IoU and a 12.05% rise in F1 Score), which proves the system can learn tricky shapes and edges well. The longer it trains, the better it gets at spotting even hard-to-see thyroid lumps. This SwinUnet_withAttention thing seems to work great and could be used in clinics to help doctors figure out thyroid problems.
With the increasing detection of thyroid nodules in ultrasound screening, accurate nodule segmentation has become important for computer-aided assessment of clinically relevant features, such as contour regularity, aspect ratio, and margin sharpness. Although ultrasound is widely used as a first-line imaging modality in clinical practice, thyroid nodule segmentation remains challenging because of low tissue contrast, speckle-blurred boundaries, and large variations in nodule size and morphology. To address these challenges, we propose TEM-Net, a Tri-Channel Edge-Aware Multi-Scale Network for thyroid nodule segmentation. TEM-Net constructs a tri-channel representation from the raw ultrasound image, including the original grayscale image, a contrast-enhanced image, and a gradient-magnitude map, to highlight weak intensity differences and boundary-related cues in low-contrast ultrasound images. An Edge-Guided Feature Amplification (EGFA) module is introduced before the first down-sampling operation to emphasize boundary responses before spatial resolution is reduced. In addition, a Multi-Focus Cross-Scale Attention Refinement (MF-CAR) module is embedded into skip connections, combining dilated depth-wise convolutions with channel–spatial attention to improve the fusion of local boundary details and broader contextual information. Across three random seeds, TEM-Net achieves mean Dice scores of 0.8822 and 0.9066 and mean IoU scores of 0.7893 and 0.8291 on TN3K and DDTI, respectively, showing competitive performance compared with representative segmentation methods.