RESUMO
Objective. The early diagnosis of lung cancer depends on the precise segmentation of lung nodules. However, the variable size, uneven intensity, and blurred borders of lung nodules bring many challenges to the precise segmentation of lung nodules.Approach.We propose a shape attention-guided contextual residual network to address the difficult problem in lung nodule segmentation. Firstly, we establish a selective kernel convolution residual module to replace the original encoder and decoder. This module incorporates selective kernel convolution, which automatically selects convolutions with different receptive fields to acquire multi-scale spatial features. Secondly, we construct a multi-scale contextual attention module to assist the network in extracting multi-scale contextual features of local feature maps. Finally, we develop a shape attention-guided module to assist the network to restore details such as the boundary and shape of lung nodules during the upsampling phase.Main results.The proposed network is comprehensively analyzed using the publicly available LUNA16 data set, and an ablation experiment is designed to validate the effectiveness of each individual component. Ultimately, the dice similarity coefficient of the experimental results reaches 87.39% on the test set. Compared to other state-of-the-art segmentation methods, the proposed network achieves superior performance in lung nodule segmentation.Significance.Our proposed network improves the accuracy of lung nodule segmentation, which provides an important support for physicians to subsequently develop treatment plans.