Deep learning lung nodule segmentation system and boundary extraction method

By employing cross-domain normalization, bi-branch coupled encoding and decoding, and category adaptive loss optimization modules in a deep learning-based lung nodule segmentation system, the system achieves full fusion of lung nodule boundary gradient features and region segmentation features. This addresses the issues of insufficient feature capture and weak multi-center adaptability in existing technologies, thereby improving the accuracy and clinical applicability of lung nodule segmentation and boundary extraction.

CN122289285APending Publication Date: 2026-06-26HAINAN NORMAL UNIV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HAINAN NORMAL UNIV
Filing Date
2026-03-27
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

Existing technologies for lung nodule segmentation and boundary extraction suffer from insufficient ability to capture ground-glass opacity lung nodule features, low segmentation accuracy and recall, and weak multicenter adaptability, resulting in boundary extraction accuracy that cannot meet clinical needs.

Method used

A deep learning-based lung nodule segmentation system is adopted, including a cross-domain normalization pre-module, a dual-branch coupled encoding and decoding module, and a category adaptive loss optimization module. Through the parallel collaboration of a global-local branch collaborative segmentation module and a dynamic boundary-aware branch, combined with a cross-branch feature interaction gating unit, the system achieves full-process fusion and reverse constraint of lung nodule boundary gradient features and region segmentation features.

Benefits of technology

It significantly improves the accuracy of lung nodule segmentation and boundary extraction, enhances the system's multicenter adaptability, reduces the reading burden on radiologists, and has high clinical translational value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122289285A_ABST
    Figure CN122289285A_ABST
Patent Text Reader

Abstract

This invention discloses a deep learning-based lung nodule segmentation system and boundary extraction method, belonging to the interdisciplinary field of medical image processing and artificial intelligence. Addressing the technical problems of existing decoupled architectures for lung nodule segmentation and boundary extraction, such as boundary feature loss, poor adaptability to heterogeneous lung nodules, and insufficient generalization ability for multicenter chest CT images, this invention adopts a segmentation-boundary dual-branch fully coupled architecture. Through a cross-domain normalization pre-module, a dual-branch coupled encoding and decoding module, and a category adaptive loss optimization module, it achieves accurate segmentation and boundary extraction of lung nodules. This invention significantly improves the segmentation accuracy and boundary extraction accuracy of heterogeneous lung nodules, possessing excellent clinical generalization and translational application value.
Need to check novelty before this filing date? Find Prior Art

Description

Beneficial effects in the technical field

[0001] This invention relates to the field of pulmonary nodules, specifically to a deep learning-based pulmonary nodule segmentation system and boundary extraction method. Background Technology

[0002] This invention belongs to the interdisciplinary field of medical image processing and artificial intelligence, specifically involving lung nodule segmentation and boundary extraction technology in chest CT images. Lung cancer is a malignant tumor with one of the highest incidence and mortality rates worldwide. Early screening and accurate diagnosis are the core means to improve the five-year survival rate of lung cancer patients. Chest CT imaging is currently the preferred imaging method for early lung cancer screening. Accurate segmentation and boundary extraction of lung nodules are the core basis for clinical determination of the benign or malignant nature of lung nodules, follow-up evaluation, and treatment plan formulation.

[0003] Currently, deep learning-based lung nodule segmentation technology has been gradually applied to clinical auxiliary diagnostic scenarios. Existing technologies mostly use convolutional neural network architectures to achieve automatic segmentation of lung nodule regions, and some solutions complete the optimization and extraction of lung nodule boundaries through independent post-processing steps. However, existing technologies generally suffer from three major defects: First, they are insufficient in capturing weak features of ground-glass opacity lung nodules and sub-centimeter-sized micronodules, resulting in a significant decrease in segmentation accuracy and recall. Second, they generally adopt a decoupled architecture for segmentation and boundary optimization, and the back-end boundary post-processing cannot repair the boundary details lost in the front-end segmentation stage, resulting in lung nodule boundary extraction accuracy that cannot meet clinical diagnostic needs. Third, they have weak domain adaptability to chest CT images from multiple centers and multiple devices, lack clinical generalization, and are difficult to adapt to the actual application needs of different medical institutions. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to overcome the defects of the above-mentioned technologies and provide a deep learning lung nodule segmentation system and boundary extraction method.

[0005] To address the aforementioned technical problems, the present invention provides a deep learning lung nodule segmentation system and boundary extraction method: The deep learning lung nodule segmentation system includes a sequentially connected cross-domain normalization pre-module, a dual-branch coupled encoding / decoding module, a category adaptive loss optimization module, and a clinical output module; the dual-branch coupled encoding / decoding module includes a parallel global-local branch collaborative segmentation module, a dynamic boundary-aware branch, and multiple sets of cross-branch feature interaction gating units; the global-local branch collaborative segmentation module is used to extract lung nodule region segmentation features from input chest CT images, the dynamic boundary-aware branch is used to extract lung nodule boundary gradient features from input chest CT images, and the cross-branch feature interaction gating units are used to achieve full fusion and reverse constraint of lung nodule boundary gradient features and lung nodule region segmentation features.

[0006] As an improvement, the cross-domain normalization pre-module is used to perform global CT value normalization processing on the input chest CT images, while preserving the gray-scale gradient difference between the lung nodules and the surrounding lung tissue, and eliminating the imaging domain differences between different chest CT imaging devices.

[0007] As an improvement, the global-local branch collaborative segmentation module adopts a Transformer-UNet hybrid coding structure, including a global context coding branch and a local multi-scale feature extraction branch. The global context coding branch captures the global context of the lung field and the spatial location features of lung nodules through an axial self-attention mechanism. The local multi-scale feature extraction branch extracts the local texture and grayscale features of lung nodules of different densities through a multi-scale deformable cavitary convolution group.

[0008] As an improvement, the dynamic boundary-aware branch incorporates an edge feature extraction unit that fuses the Sobel gradient operator with deformable convolution. The cross-branch feature interaction gating unit is set at each encoding level of the dual-branch coupled encoding and decoding module, enabling real-time fusion of lung nodule boundary gradient features and lung nodule region segmentation features at each encoding level.

[0009] As an improvement, the category adaptive loss optimization module incorporates a category-aware adaptive loss function. Based on the lung nodule density, the category adaptive loss optimization module classifies lung nodules into three categories: solid lung nodules, partially solid lung nodules, and ground-glass nodules. It dynamically adjusts the weights of the boundary Hausdorff loss and the region segmentation Dice loss for different categories of lung nodules.

[0010] A deep learning-based method for lung nodule segmentation and boundary extraction includes the following steps: Step S1, preprocessing the input chest CT image using a cross-domain normalization preprocessing module to obtain a normalized chest CT image; Step S2, extracting features from the normalized chest CT image using a dual-branch coupled encoding and decoding module, simultaneously acquiring lung nodule region segmentation features and lung nodule boundary gradient features, achieving full-process fusion constraint of the two types of features; Step S3, optimizing the model using a class adaptive loss optimization module, and outputting the final lung nodule segmentation and boundary extraction results through a clinical output module.

[0011] As an improvement, in step S1, the cross-domain normalization pre-module performs global CT value normalization processing on the input chest CT image, while retaining the gray-scale gradient difference between the lung nodules and the surrounding lung tissue, and eliminating the imaging domain differences between different chest CT imaging devices.

[0012] As an improvement, in step S2, the global-local branch collaborative segmentation module of the dual-branch coupled encoding and decoding module extracts the lung nodule region segmentation features of the input chest CT image. The global-local branch collaborative segmentation module adopts the Transformer-UNet hybrid encoding structure, captures the global context of the lung field and the spatial location features of the lung nodules through the global context encoding branch, and extracts the local texture and grayscale features of lung nodules of different densities through the local multi-scale feature extraction branch.

[0013] As an improvement, in step S2, the dynamic boundary perception branch of the dual-branch coupled coding and decoding module extracts the lung nodule boundary gradient features of the input chest CT image. Through the cross-branch feature interaction gating unit set in each coding level of the dual-branch coupled coding and decoding module, the lung nodule boundary gradient features and lung nodule region segmentation features are fused and constrained in real time at each coding level.

[0014] As an improvement, in step S3, the category adaptive loss optimization module completes model optimization through a built-in category-aware adaptive loss function. Based on the lung nodule density, the lung nodules are divided into three categories: solid lung nodules, partially solid lung nodules, and ground-glass lung nodules. The weights of the boundary Hausdorff loss and the region segmentation Dice loss are dynamically adjusted for different categories of lung nodules.

[0015] The advantages of this invention compared to existing technologies are as follows: This solution breaks through the commonly used decoupled "segmentation first, optimization later" approach. Through a core architecture of a dual-branch coupled encoding / decoding module, it achieves parallel collaboration between the global-local branch collaborative segmentation module and the dynamic boundary-aware branch. Combined with a cross-branch feature interaction gating unit, it realizes the full-process fusion constraint of lung nodule boundary gradient features and lung nodule region segmentation features, fundamentally solving the industry pain point of lost lung nodule boundary features and significantly improving the accuracy of lung nodule segmentation and boundary extraction. This solution eliminates imaging domain differences between different chest CT imaging devices through a cross-domain normalization pre-module, while preserving the grayscale gradient differences between lung nodules and surrounding lung tissue, significantly improving the system's multi-center clinical generalization ability. This solution uses a category-aware adaptive loss function built into the category adaptive loss optimization module to dynamically adjust the loss weight for lung nodules of different densities, accurately adapting to the core needs of clinical diagnosis. The end-to-end processing flow effectively reduces the reading burden on radiologists and has extremely high clinical translation and large-scale application value. Attached Figure Description

[0016] Figure 1 This is the overall architecture diagram of the deep learning lung nodule segmentation system of this invention.

[0017] Figure 2This is a diagram of the internal structure of the dual-branch coupled encoding and decoding module of the deep learning lung nodule segmentation system and boundary extraction method of this invention.

[0018] Figure 3 This is a flowchart of the deep learning lung nodule segmentation and boundary extraction method of the present invention. Detailed Implementation

[0019] To facilitate understanding of this application, a more complete description will be provided below with reference to the accompanying drawings, which illustrate embodiments of the present application. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the disclosure of this application will be thorough and complete.

[0020] Referring to the accompanying figures, a deep learning-based lung nodule segmentation system and boundary extraction method are described. The deep learning-based lung nodule segmentation system includes a sequentially connected cross-domain normalization pre-module, a dual-branch coupled encoding / decoding module, a category adaptive loss optimization module, and a clinical output module. The dual-branch coupled encoding / decoding module includes a parallel global-local branch collaborative segmentation module, a dynamic boundary-aware branch, and multiple sets of cross-branch feature interaction gating units. The global-local branch collaborative segmentation module is used to extract lung nodule region segmentation features from the input chest CT image. The dynamic boundary-aware branch is used to extract lung nodule boundary gradient features from the input chest CT image. The cross-branch feature interaction gating units are used to achieve full fusion and reverse constraint of lung nodule boundary gradient features and lung nodule region segmentation features.

[0021] The cross-domain normalization pre-module is used to perform global CT value normalization processing on the input chest CT images, while preserving the gray-scale gradient difference between the lung nodules and the surrounding lung tissue, and eliminating the imaging domain differences between different chest CT imaging devices.

[0022] The global-local branch collaborative segmentation module adopts a Transformer-UNet hybrid coding structure, including a global context coding branch and a local multi-scale feature extraction branch. The global context coding branch captures the global context of the lung field and the spatial location features of lung nodules through an axial self-attention mechanism. The local multi-scale feature extraction branch extracts the local texture and grayscale features of lung nodules of different densities through a multi-scale deformable cavitary convolution group.

[0023] The dynamic boundary awareness branch incorporates an edge feature extraction unit that fuses the Sobel gradient operator with deformable convolution. The cross-branch feature interaction gating unit is set at each encoding level of the dual-branch coupled encoding and decoding module, enabling real-time fusion of lung nodule boundary gradient features and lung nodule region segmentation features at each encoding level.

[0024] The category adaptive loss optimization module has a built-in category-aware adaptive loss function. Based on the lung nodule density, the category adaptive loss optimization module classifies lung nodules into three categories: solid lung nodules, partially solid lung nodules, and ground-glass lung nodules. The module dynamically adjusts the weights of boundary Hausdorff loss and region segmentation Dice loss for different categories of lung nodules.

[0025] A deep learning-based method for lung nodule segmentation and boundary extraction includes the following steps: Step S1, preprocessing the input chest CT image using a cross-domain normalization preprocessing module to obtain a normalized chest CT image; Step S2, extracting features from the normalized chest CT image using a dual-branch coupled encoding and decoding module, simultaneously acquiring lung nodule region segmentation features and lung nodule boundary gradient features, achieving full-process fusion constraint of the two types of features; Step S3, optimizing the model using a class adaptive loss optimization module, and outputting the final lung nodule segmentation and boundary extraction results through a clinical output module.

[0026] In step S1, the cross-domain normalization pre-module performs global normalization of the CT values ​​of the input chest CT image, while preserving the gray-scale gradient difference between the lung nodules and the surrounding lung tissue, and eliminating the imaging domain differences between different chest CT imaging devices.

[0027] In step S2, the global-local branch collaborative segmentation module of the dual-branch coupled encoding and decoding module extracts the lung nodule region segmentation features of the input chest CT image. The global-local branch collaborative segmentation module adopts the Transformer-UNet hybrid encoding structure, captures the global context of the lung field and the spatial location features of the lung nodules through the global context encoding branch, and extracts the local texture and grayscale features of lung nodules of different densities through the local multi-scale feature extraction branch.

[0028] In step S2, the dynamic boundary perception branch of the dual-branch coupled coding and decoding module extracts the lung nodule boundary gradient features of the input chest CT image. Through the cross-branch feature interaction gating unit set in each coding level of the dual-branch coupled coding and decoding module, the lung nodule boundary gradient features and lung nodule region segmentation features are fused and constrained in real time at each coding level.

[0029] In step S3, the category adaptive loss optimization module completes model optimization through the built-in category-aware adaptive loss function. Based on the lung nodule density, the lung nodules are divided into three categories: solid lung nodules, partially solid lung nodules, and ground-glass lung nodules. The weights of the boundary Hausdorff loss and the region segmentation Dice loss are dynamically adjusted for different categories of lung nodules.

[0030] To address the core pain points of existing technologies' decoupled architecture for lung nodule segmentation and boundary extraction, such as loss of boundary features, poor adaptability to heterogeneous nodules, and insufficient generalization ability for multi-center data, a technical solution with full coupling of segmentation and boundary bi-branch is proposed. The specific implementation of the system and method is fully described below.

[0031] Specific implementation of the deep learning lung nodule segmentation system: The deep learning lung nodule segmentation system of the present invention includes a cross-domain normalization pre-module, a dual-branch coupled encoding and decoding module, a category adaptive loss optimization module, and a clinical output module that are sequentially connected. The dual-branch coupled encoding and decoding module includes a parallel global-local branch collaborative segmentation module, a dynamic boundary-aware branch, and multiple sets of cross-branch feature interaction gating units.

[0032] Specific implementation of the cross-domain normalization pre-module: The cross-domain normalization preprocessing module is used to preprocess the input chest CT images, eliminating imaging domain differences between different chest CT imaging devices while fully preserving the gray-level gradient differences between lung nodules and surrounding lung tissue, providing standardized input data for subsequent feature extraction. In this embodiment, the input chest CT images are clinically acquired thin-slice chest CT images with a slice thickness ranging from 0.625mm to 1.25mm, and the original CT pixel values ​​are in HU, ranging from -1024HU to +3071HU. To meet the requirements of lung window observation for clinical diagnosis of lung nodules, this module uses a linear truncation normalization method to process the chest CT images. The corresponding normalization calculation formula is: In the formula, The normalized pixel values ​​of the chest CT image are fixed in the range of [0,1]. The raw CT pixel values ​​of the input chest CT image; The lower limit of the lung window level is set to -1350HU in this embodiment; The upper limit of the lung window level is set to +150HU in this embodiment; `clip()` is a pixel value truncation function, which truncates original CT pixel values ​​exceeding the upper and lower limits of the window level to the lower and upper limits, respectively, to avoid interference from extreme pixel values ​​in non-lung fields on subsequent lung nodule feature extraction. This module, while performing global normalization, fully preserves the grayscale gradient differences between lung nodules and surrounding normal lung tissue, eliminating imaging domain differences caused by different brands and scanning parameters of chest CT imaging equipment, and improving the system's multi-center clinical generalization capability.

[0033] Specific implementation of the dual-branch coupled encoding / decoding module: The dual-branch coupled encoding and decoding module is the core functional module of this system, used to simultaneously extract the region segmentation features and boundary gradient features of lung nodules, and to achieve full fusion and reverse constraint of the two types of features. In this embodiment, the dual-branch coupled encoding and decoding module adopts a U-shaped architecture of 4-level encoding and 4-level decoding, with each encoding level corresponding to a set of cross-branch feature interaction gating units.

[0034] The global-local branch collaborative segmentation module is used to extract lung nodule region segmentation features from the input chest CT image. This module adopts a Transformer-UNet hybrid coding structure, including a parallel global context coding branch and a local multi-scale feature extraction branch. The global context coding branch captures the global context of the lung field and the spatial location features of lung nodules through an axial self-attention mechanism. In this embodiment, the axial self-attention mechanism performs self-attention calculations along the three axes of the transverse, coronal, and sagittal planes, taking into account the three-dimensional spatial characteristics of the chest CT image. This avoids the computational explosion problem of traditional three-dimensional self-attention mechanisms and can completely capture the spatial location association features of lung nodules throughout the entire lung field, solving the problem that sub-centimeter-level small nodules have a low feature ratio in the global image and are easily missed. The local multi-scale feature extraction branch extracts local texture and grayscale features of lung nodules of different densities through a multi-scale deformable hollow convolution group. In this embodiment, the multi-scale deformable hollow convolution group is set with three sets of deformable hollow convolutions with different expansion rates of 1, 3 and 5. The convolution kernel with an expansion rate of 1 is used to capture the clear edge texture features of solid lung nodules, while the convolution kernels with expansion rates of 3 and 5 are used to capture the weak grayscale difference features of ground-glass nodules and sub-centimeter-level micro nodules, which solves the problem of insufficient feature capture capability of existing technologies for heterogeneous lung nodules.

[0035] The dynamic boundary-aware branch is used to extract the gradient features of lung nodule boundaries from the input chest CT image. This branch is set in parallel with the global-local branch collaborative segmentation module. The input is a normalized chest CT image. The branch has a built-in edge feature extraction unit that fuses the Sobel gradient operator and deformable convolution. In this embodiment, the edge feature extraction unit first calculates the grayscale gradient magnitude and gradient direction of each pixel in the chest CT image using the Sobel gradient operator to extract initial candidate features of lung nodule boundaries. Then, the initial candidate features of lung nodule boundaries are adaptively optimized using deformable convolution. The sampling points of deformable convolution can be adaptively adjusted according to the irregular boundary shape of the lung nodule, which solves the problem of poor extraction effect of traditional fixed convolution kernels for irregularly shaped lung nodule boundary features, and finally outputs accurate lung nodule boundary gradient features.

[0036] The cross-branch feature interaction gating unit is used to achieve full fusion and reverse constraint of lung nodule boundary gradient features and lung nodule region segmentation features. In this embodiment, the number of cross-branch feature interaction gating units is consistent with the number of encoding levels in the dual-branch coupled encoding and decoding module, with a total of 4 groups, corresponding to the 4 levels of the encoding part. The input of each group of cross-branch feature interaction gating units is the lung nodule region segmentation feature output by the global-local branch collaborative segmentation module in the corresponding encoding level, and the lung nodule boundary gradient feature output by the dynamic boundary awareness branch in the corresponding level. The cross-branch feature interaction gating unit fuses the lung nodule boundary gradient features into the lung nodule region segmentation features in real time through a gating weight mechanism, realizing full reverse constraint of the lung nodule boundary gradient features on the learning of lung nodule region segmentation features. It completely preserves the boundary detail features of the lung nodule at every stage of feature encoding, and completely solves the core problem of boundary feature loss in the front-end segmentation stage and inability to be repaired in the back-end of the decoupled architecture of "segmentation first, optimization later" in the prior art.

[0037] Specific implementation of the category adaptive loss optimization module: The category-adaptive loss optimization module is used to achieve adaptive training optimization of the model. The module has a built-in category-aware adaptive loss function. In this embodiment, the input to the category-adaptive loss optimization module is the lung nodule segmentation prediction result, boundary prediction result, and corresponding clinical gold standard annotation result output by the dual-branch coupled encoder-decoder module. The built-in category-aware adaptive loss function first classifies lung nodules into three categories based on lung nodule density: solid lung nodules, partially solid lung nodules, and ground-glass nodules. It then dynamically adjusts the weights of the boundary Hausdorff loss and the region segmentation Dice loss for different categories of lung nodules. The corresponding total loss calculation formula is as follows: In the formula, This represents the total loss value during model training. The Dice loss for region segmentation serves to constrain the overall accuracy of lung nodule region segmentation. The 95% Hausdorff distance loss serves to constrain the accuracy of lung nodule boundary extraction. The weighting coefficients for the Dice loss in region segmentation; Let be the weight coefficients of the boundary Hausdorff loss, and satisfy . In this embodiment, for solid pulmonary nodules with clear boundaries, precise region segmentation is the core requirement; therefore, the following settings are implemented: , For some solid pulmonary nodules, a set of... , For ground-glass nodules, whose borders are indistinct and whose boundary morphology is a core basis for clinical judgment of benignity or malignancy, a [specific method / mechanism] is set up... , By dynamically and adaptively adjusting the weights, this module achieves precise optimization of segmentation and boundary extraction for pulmonary nodules with different heterogeneity, solving the industry pain point of poor segmentation effect of existing technologies for ground-glass nodules with blurred boundaries.

[0038] Specific implementation of the clinical output module: The clinical output module is used to output the final lung nodule segmentation results and boundary extraction results. The input of this module is the final optimized lung nodule segmentation mask and boundary feature map output by the dual-branch coupled encoding and decoding module. In this embodiment, the clinical output module can automatically complete the three-dimensional reconstruction of lung nodules and output the sub-pixel-level boundary contours, maximum diameter, minimum diameter, volume, average CT value, and other quantitative parameters required for clinical use. At the same time, it outputs the density classification results of lung nodules, providing accurate auxiliary basis for radiologists' clinical diagnosis.

[0039] Specific implementation of deep learning-based lung nodule segmentation and boundary extraction methods: The deep learning-based lung nodule segmentation and boundary extraction method of this invention is implemented based on the aforementioned deep learning-based lung nodule segmentation system, and specifically includes the following steps: Step S1 involves preprocessing the input chest CT image using a cross-domain normalization preprocessor to obtain a normalized chest CT image. In this step, lung fields are first extracted from the input chest CT image, removing non-lung field areas such as the thoracic lining, rib cage, and mediastinum. Then, the CT values ​​of the chest CT image are globally normalized using the aforementioned linear truncation normalization method. During normalization, the grayscale gradient difference between lung nodules and surrounding lung tissue is fully preserved, eliminating imaging domain differences between different chest CT imaging devices, resulting in a normalized chest CT image that provides standardized input data for subsequent feature extraction.

[0040] Step S2 involves extracting features from the normalized chest CT image using a dual-branch coupled encoding and decoding module, simultaneously acquiring lung nodule region segmentation features and lung nodule boundary gradient features, thereby achieving full-process fusion constraint of the two types of features. In this step, the normalized chest CT images are synchronously input into the global-local branch collaborative segmentation module and the dynamic boundary awareness branch within the dual-branch coupled coding and decoding module. The global-local branch collaborative segmentation module employs a Transformer-UNet hybrid coding structure. Through the axial self-attention mechanism of the global context coding branch, it captures the global context of the lung field and the spatial location features of lung nodules. Through the multi-scale deformable hollow convolution group of the local multi-scale feature extraction branch, it extracts the local texture and grayscale features of lung nodules of different densities, outputting lung nodule region segmentation features. Simultaneously, the dynamic boundary awareness branch extracts the lung nodule boundary gradient features from the input chest CT images through an edge feature extraction unit that fuses the built-in Sobel gradient operator and deformable convolution. At each coding level of the dual-branch coupled coding and decoding module, a corresponding cross-branch feature interaction gating unit is used to achieve real-time fusion and inverse constraint of lung nodule boundary gradient features and lung nodule region segmentation features. This ensures that the boundary details of the lung nodules are fully preserved throughout the feature encoding process, avoiding the loss of boundary features.

[0041] Step S3 involves optimizing the model through the category-adaptive loss optimization module and outputting the final lung nodule segmentation and boundary extraction results through the clinical output module. This step is divided into two phases: model training and inference deployment. During model training, the lung nodule segmentation and boundary prediction results output by the dual-branch coupled encoding / decoding module, along with the corresponding clinical gold standard results annotated by at least three associate chief physicians or higher, are input into the category-adaptive loss optimization module. The module calculates the total loss value using its built-in category-aware adaptive loss function. Based on this total loss value, the network parameters of the model are optimized using the backpropagation algorithm, completing the model training and optimization. Specifically, the category-aware adaptive loss function categorizes lung nodules into three types based on nodule density: solid nodules, partially solid nodules, and ground-glass opacities. The weights of the boundary Hausdorff loss and the region segmentation Dice loss are dynamically adjusted for different nodule categories to achieve accurate optimization for heterogeneous lung nodules. During the inference deployment phase, the chest CT images to be detected are input into the trained model. The final lung nodule segmentation mask and subpixel-level boundary feature map are output through the dual-branch coupled encoding and decoding module. The segmentation results, boundary contours, quantization parameters and density classification results of the lung nodules are output through the clinical output module, thus completing the segmentation and boundary extraction of lung nodules.

[0042] In this embodiment, the technical solution of the present invention was verified using the LIDC-IDRI public dataset and a multi-center clinical private dataset from three top-tier hospitals in China. The dataset contains 12,000 chest CT images, covering three categories: solid pulmonary nodules, partially solid pulmonary nodules, and ground-glass opacities, with sub-centimeter-sized micronodules accounting for 45%. Testing showed that the technical solution of the present invention achieved an overall Dice coefficient of 96.2% for pulmonary nodule segmentation, 94.7% for ground-glass opacities, and 93.5% for sub-centimeter-sized micronodules. The HD95 value of boundary extraction was reduced by 32% compared to the traditional U-Net architecture, demonstrating significant technological progress compared to existing technologies. Furthermore, the system of the present invention exhibits excellent adaptability to images acquired by different brands of chest CT imaging equipment, possessing extremely high clinical translational value.

[0043] Beneficial effects: This invention completely breaks through the decoupled technical route of "segmentation first, optimization later" commonly used in existing technologies. Through the core architecture design of the dual-branch coupled encoding and decoding module, it realizes the parallel collaborative work of the global-local branch collaborative segmentation module and the dynamic boundary perception branch. At the same time, through multiple sets of cross-branch feature interaction gating units, it realizes the real-time fusion and reverse constraint of lung nodule boundary gradient features and lung nodule region segmentation features throughout the entire encoding process. It avoids the loss of lung nodule boundary detail features from the root of feature encoding, and completely solves the core industry pain point that the back-end boundary post-processing in the existing decoupled architecture cannot repair the boundary features lost in the front-end segmentation stage. It significantly improves the accuracy of lung nodule boundary extraction and the overall accuracy of lung nodule segmentation.

[0044] This invention, through the design of a cross-domain normalization pre-module, performs global CT value normalization on the input chest CT images while fully preserving the grayscale gradient differences between lung nodules and surrounding lung tissue. This achieves standardized processing of input data and effectively eliminates imaging domain differences caused by different chest CT imaging devices. It significantly improves the adaptability of the deep learning lung nodule segmentation system to chest CT images from multiple centers and devices, reduces the fine-tuning cost of the deep learning lung nodule segmentation system when clinically deployed in different medical institutions, and has excellent clinical generalization performance.

[0045] This invention employs a Transformer-UNet hybrid coding structure design for a global-local branch collaborative segmentation module. Through the axial self-attention mechanism of the global context coding branch, it fully captures the global context of the lung field and the spatial location features of lung nodules, effectively solving the technical problem of low feature ratio and easy missed detection of sub-centimeter-sized micro nodules in chest CT images. Simultaneously, through the multi-scale deformable hollow convolution group of the local multi-scale feature extraction branch, it achieves accurate capture of local texture and grayscale features of solid lung nodules, partially solid lung nodules, and ground-glass nodules of different densities. This significantly improves the segmentation adaptation capability of deep learning lung nodule segmentation systems for heterogeneous lung nodules and significantly improves the segmentation recall and accuracy of weak feature ground-glass nodules and sub-centimeter-sized micro nodules.

[0046] This invention, through the design of a category-adaptive loss optimization module, incorporates a category-aware adaptive loss function. Based on lung nodule density, it can classify lung nodules into three categories: solid lung nodules, partially solid lung nodules, and ground-glass nodules. The weights of the boundary Hausdorff loss and the region segmentation Dice loss are dynamically adjusted for different nodule categories, achieving targeted training optimization for different types of lung nodules. Especially for ground-glass nodules, where boundary features are crucial in clinical benign / malignant diagnosis, the learning accuracy of lung nodule boundary features can be further enhanced by increasing the weight of the boundary Hausdorff loss. This significantly improves the matching degree between the output lung nodule boundary contour and the clinical gold standard, fully meeting the quantitative requirements for boundary features in clinical lung nodule benign / malignant diagnosis.

[0047] The deep learning-based lung nodule segmentation and boundary extraction method of this invention is implemented based on the aforementioned deep learning lung nodule segmentation system. It adopts an end-to-end full-processing logic, requiring no additional manual intervention or independent post-processing steps. It can directly input chest CT images and output accurate lung nodule segmentation and boundary extraction results through a cross-domain normalization pre-module, a dual-branch coupled encoding and decoding module, a category adaptive loss optimization module, and a clinical output module connected in sequence. At the same time, it can also output the clinical quantitative parameters and density classification results of lung nodules. This provides radiologists with an accurate and efficient auxiliary tool for early lung cancer screening and clinical diagnosis, significantly reducing the workload of physicians in reading images and effectively reducing the probability of missed and misdiagnosed lung nodules. It has extremely high clinical translational value and large-scale application prospects.

[0048] The technical solution of this invention has outstanding non-obviousness. Conventional technical approaches in the field generally focus on single-dimensional optimization of segmentation network structures or independent improvement of boundary post-processing algorithms. However, this invention breaks away from conventional technical improvement ideas. Through the architecture design of segmentation-boundary dual-branch full coupling, the segmentation feature learning is constrained by boundary features throughout the process, providing a brand-new research and development direction for lung nodule segmentation and boundary extraction technology. For those skilled in the art, this cannot be obtained through a simple combination of conventional technical means, and it has the level of inventiveness required for patent authorization.

Claims

1. A deep learning-based lung nodule segmentation system, characterized in that: The deep learning lung nodule segmentation system includes a sequentially connected cross-domain normalization pre-module, a dual-branch coupled encoding and decoding module, a category adaptive loss optimization module, and a clinical output module. The dual-branch coupled encoding and decoding module includes a parallel global-local branch collaborative segmentation module, a dynamic boundary-aware branch, and multiple sets of cross-branch feature interaction gating units. The global-local branch collaborative segmentation module is used to extract lung nodule region segmentation features from the input chest CT image, the dynamic boundary-aware branch is used to extract lung nodule boundary gradient features from the input chest CT image, and the cross-branch feature interaction gating units are used to achieve full fusion and reverse constraint of lung nodule boundary gradient features and lung nodule region segmentation features.

2. The deep learning lung nodule segmentation system according to claim 1, characterized in that: The cross-domain normalization pre-module is used to perform global CT value normalization processing on the input chest CT images, while preserving the gray-scale gradient difference between the lung nodules and the surrounding lung tissue, and eliminating the imaging domain differences between different chest CT imaging devices.

3. The deep learning lung nodule segmentation system according to claim 1, characterized in that: The global-local branch collaborative segmentation module adopts a Transformer-UNet hybrid coding structure, including a global context coding branch and a local multi-scale feature extraction branch. The global context coding branch captures the global context of the lung field and the spatial location features of lung nodules through an axial self-attention mechanism. The local multi-scale feature extraction branch extracts the local texture and grayscale features of lung nodules of different densities through a multi-scale deformable cavitary convolution group.

4. The deep learning lung nodule segmentation system according to claim 1, characterized in that: The dynamic boundary awareness branch incorporates an edge feature extraction unit that fuses the Sobel gradient operator with deformable convolution. The cross-branch feature interaction gating unit is set at each encoding level of the dual-branch coupled encoding and decoding module, enabling real-time fusion of lung nodule boundary gradient features and lung nodule region segmentation features at each encoding level.

5. The deep learning lung nodule segmentation system according to claim 1, characterized in that: The category adaptive loss optimization module has a built-in category-aware adaptive loss function. Based on the lung nodule density, the category adaptive loss optimization module classifies lung nodules into three categories: solid lung nodules, partially solid lung nodules, and ground-glass lung nodules. The module dynamically adjusts the weights of boundary Hausdorff loss and region segmentation Dice loss for different categories of lung nodules.

6. A deep learning-based method for lung nodule segmentation and boundary extraction, characterized by: The deep learning lung nodule segmentation and boundary extraction method is implemented based on the deep learning lung nodule segmentation system described in any one of claims 1 to 5, and includes the following steps: Step S1, preprocessing the input chest CT image through a cross-domain normalization preprocessing module to obtain a normalized chest CT image; Step S2, extracting features from the normalized chest CT image through a dual-branch coupled encoding and decoding module, simultaneously acquiring lung nodule region segmentation features and lung nodule boundary gradient features, and realizing full-process fusion constraint of the two types of features; Step S3, optimizing the model through a category adaptive loss optimization module, and outputting the final lung nodule segmentation result and boundary extraction result through a clinical output module.

7. The deep learning lung nodule segmentation and boundary extraction method according to claim 6, characterized in that: In step S1, the cross-domain normalization pre-module performs global normalization of the CT values ​​of the input chest CT image, while preserving the gray-scale gradient difference between the lung nodules and the surrounding lung tissue, and eliminating the imaging domain differences between different chest CT imaging devices.

8. The deep learning lung nodule segmentation and boundary extraction method according to claim 6, characterized in that: In step S2, the global-local branch collaborative segmentation module of the dual-branch coupled encoding and decoding module extracts the lung nodule region segmentation features of the input chest CT image. The global-local branch collaborative segmentation module adopts the Transformer-UNet hybrid encoding structure, captures the global context of the lung field and the spatial location features of the lung nodules through the global context encoding branch, and extracts the local texture and grayscale features of lung nodules of different densities through the local multi-scale feature extraction branch.

9. The deep learning lung nodule segmentation and boundary extraction method according to claim 6, characterized in that: In step S2, the dynamic boundary perception branch of the dual-branch coupled coding and decoding module extracts the lung nodule boundary gradient features of the input chest CT image. Through the cross-branch feature interaction gating unit set in each coding level of the dual-branch coupled coding and decoding module, the lung nodule boundary gradient features and lung nodule region segmentation features are fused and constrained in real time at each coding level.

10. The deep learning lung nodule segmentation and boundary extraction method according to claim 6, characterized in that: In step S3, the category adaptive loss optimization module completes model optimization through the built-in category-aware adaptive loss function. Based on the lung nodule density, the lung nodules are divided into three categories: solid lung nodules, partially solid lung nodules, and ground-glass lung nodules. The weights of the boundary Hausdorff loss and the region segmentation Dice loss are dynamically adjusted for different categories of lung nodules.