Continuous segmentation method for multiple cardiopulmonary nodule images
By constructing a multi-center continuous lung nodule segmentation model, utilizing a 3D Unet backbone network and a level set regression head, combined with a pre-trained autoencoder, the model preserves the shape and semantic knowledge of lung nodules, thus solving the memory and generalization problems of segmentation networks in multi-center learning and achieving efficient and accurate lung nodule image segmentation.
Patent Information
- Application Number
- CN202410904245.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-11-01
AI Technical Summary
Existing segmentation networks are limited by their memory and generalization abilities during multi-center learning, and cannot achieve good lung nodule segmentation performance on data from previous centers or data from unseen centers.
A multi-center continuous segmentation model for lung nodules was constructed. By utilizing a 3D Unet backbone network and a level set regression head, combined with a pre-trained autoencoder, the shape and semantic knowledge of lung nodules were preserved through importance measures, thereby achieving continuous segmentation of multi-center images.
It achieves efficient and accurate continuous segmentation on lung nodule images from multiple centers, improves the memory and generalization ability of the segmentation network, and enhances the accuracy of the segmentation results.
Smart Images

Figure CN118887399A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of image processing, and in particular relates to a method for continuous segmentation of multiple central pulmonary nodule images. Background Art
[0002] Lung cancer is the leading cause of death among cancers, and a considerable portion of lung cancer manifests as lung nodules in the early stages. Small lung nodules are common and difficult to diagnose diseases in the chest department. Their diagnosis and treatment have always been difficult in clinical practice, and are prone to misdiagnosis and missed diagnosis. The current "gold standard" for diagnosing lung nodules is pathological examination of the corresponding tissue obtained through surgery or percutaneous lung puncture biopsy, but these invasive diagnostic techniques also bring significant risks to patients. How to avoid overdiagnosis and treatment of benign lung nodules has become an important issue that cannot be ignored.
[0003] The preferred method of non-invasive examination in clinical practice is CT (Computed Tomography) imaging diagnosis. CT images can not only show smaller lesions, but also accurately obtain the imaging characteristics of lung nodules. However, distinguishing tiny nodules from CT images and accurately depicting their contours is a time-consuming and technically demanding task. With the introduction and development of the concept of neural networks, automated lung nodule segmentation algorithms, especially those based on artificial intelligence, can significantly improve the efficiency and accuracy of this process. This not only provides doctors with rapid diagnostic support, but also paves the way for quantitative analysis of lesions and subsequent treatment planning.
[0004] However, in clinical applications, due to storage costs and privacy restrictions, segmentation networks are usually required to continuously learn continuous data streams from multiple centers. However, in the process of continuous learning, existing segmentation networks are limited by the network's memory and generalization capabilities, and thus cannot achieve good segmentation performance on data from previous centers and unseen centers. Summary of the invention
[0005] In order to solve the above technical problems, the present invention proposes a multi-center pulmonary nodule image continuous segmentation method to solve the problems existing in the above prior art.
[0006] To achieve the above object, the present invention provides a method for continuous segmentation of multi-center pulmonary nodule images, comprising:
[0007] Construct a continuous segmentation model for multiple central pulmonary nodules;
[0008] sequentially acquiring a plurality of central lung nodule images, annotating the central lung nodule images with lung nodule masks to obtain a plurality of annotated images, and sequentially training the continuous segmentation model based on the plurality of annotated images to obtain a trained continuous segmentation model;
[0009] The central pulmonary nodule image to be tested is acquired, and the central pulmonary nodule image to be tested is continuously segmented using the trained continuous segmentation model to obtain a plurality of segmentation results.
[0010] Preferably, the process of sequentially training the continuous segmentation model based on a plurality of annotated images comprises:
[0011] The continuous segmentation model is trained by using the first annotated image to obtain a first lung nodule segmentation result, a first lung nodule shape, and first semantic information, and the first lung nodule shape and the first semantic information are used as first cache information;
[0012] The kth annotated image and the first cache information are input into the continuous segmentation model to obtain the kth pulmonary nodule segmentation result, the kth pulmonary nodule shape and the kth semantic information, and the kth pulmonary nodule shape and the kth semantic information are used as the kth cache information.
[0013] Preferably, the continuous segmentation model includes: a 3D Unet backbone network, a level set regression head, and a pre-trained autoencoder model.
[0014] Preferably, in the continuous segmentation model, the shape knowledge of the lung nodules is maintained using a first importance measure, wherein the first importance measure is a shape-based importance measure with boundary and topology awareness.
[0015] Preferably, the calculation formula of the first importance measure includes:
[0016]
[0017] in, is the signed distance graph calculated based on the segmentation labels, and Represents different pixels in the segmentation label, S in With S out Respectively represent the areas inside and outside the lung nodules. Indicates the boundary of lung nodules;
[0018]
[0019] Among them, L Sa is the first importance measure, r i is the level set regression head output of the i-th image, y i represents the pulmonary nodule segmentation label, s i represents the pulmonary nodule segmentation result predicted by the network, α r With α e is the balance coefficient between each item, all set to 0.01, f e(·) represents the encoder in the pre-trained autoencoder, L mse (·) represents the mean square error function.
[0020] Preferably, in the continuous segmentation model, the semantic knowledge information of the lung nodules is maintained by using a second importance measure, and the second importance measure is a semantic-based importance measure with uncertainty guidance.
[0021] Preferably, the calculation formula of the second importance measure is:
[0022]
[0023] Among them, L ce With L dice Represent the cross entropy function and Dice function respectively, y i represents the pulmonary nodule segmentation label, s i Represents the lung nodule segmentation result predicted by the network.
[0024] Preferably, in the continuous segmentation model, the first importance measure and the second importance measure are combined and regularized to maintain shape knowledge and semantic knowledge.
[0025] Preferably, the calculation formula for combining the first importance measure and the second importance measure and regularizing includes:
[0026] In the first importance measure, for the network output result r i With f e (s i ), the first sensitivity of the current model parameters to the output result is expressed as:
[0027]
[0028] Among them, Ω Sa is the first sensitivity of the current model parameters to the output results, Θ is the parameter of the current model, Represents r i The L2 norm squared gradient of, represents f e (s i ) is the L2 norm squared gradient, β r With β e is the weight coefficient;
[0029] In the second importance measure, the network predicted lung nodule segmentation result s i The uncertainty of is obtained using the Monte Carlo DropOut method:
[0030]
[0031] in, is the segmentation prediction result generated by random Dropout of the network D times, μ i is the average of the segmentation prediction results generated by D random Dropouts, u i Indicates the uncertainty of the network segmentation result.
[0032] The second sensitivity based on semantic importance for uncertainty guidance is expressed as:
[0033]
[0034] Among them, Ω Se The second sensitivity level based on semantic importance guided by uncertainty, is the network segmentation uncertainty u i The exponential normalization result, s i Represents the lung nodule segmentation result predicted by the network;
[0035] The formula for combining the first importance measure and the second importance measure and regularizing is:
[0036]
[0037] Among them, Ω J =Ω Sa +Ω Se is the joint shape and semantic importance weight, Ω J* is the joint shape and semantic importance weight of the previous central model, Θ is the parameter of the current model, Θ * are the previous model parameters.
[0038] The present invention also provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for continuous segmentation of multiple central pulmonary nodule images is implemented.
[0039] Compared with the prior art, the present invention has the following advantages and technical effects:
[0040] The present invention provides a method for continuous segmentation of multiple central pulmonary nodule images, constructs a continuous segmentation model of multiple central pulmonary nodules; sequentially acquires multiple central pulmonary nodule images, annotates the central pulmonary nodule images with pulmonary nodule masks to obtain a plurality of annotated images, sequentially trains the continuous segmentation model based on the plurality of annotated images to obtain a trained continuous segmentation model; acquires multiple central pulmonary nodule images to be tested, and continuously segments the multiple central pulmonary nodule images to be tested using the trained continuous segmentation model to obtain a plurality of segmentation results.
[0041] The present invention solves the problem that the existing lung nodule segmentation network is limited by the network's memory and generalization capabilities, and thus cannot obtain good segmentation performance on data from previous centers and unseen centers, and can achieve continuous segmentation of multi-center lung nodule images. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0043] Figure 1 This is a flow chart of a method for continuous segmentation of multi-center pulmonary nodule images according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0045] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0046] Embodiment 1
[0047] like Figure 1 As shown, this embodiment provides a method for continuous segmentation of multi-center pulmonary nodule images, including:
[0048] S1. Construct a multi-center pulmonary nodule continuous segmentation model based on U-shaped network.
[0049] Specifically, a multi-center pulmonary nodule continuous segmentation model is constructed based on a U-shaped network. The 3DUNet network is used as the backbone network of the multi-center continuous segmentation model. On this basis, an external level set regression head is connected, and a pre-trained autoencoder is used to extract the low-dimensional topological embedding information of the pulmonary nodule segmentation mask.
[0050] In this embodiment, the method for constructing a 3D Unet backbone network model includes: introducing a residual block in the convolution blocks of the encoder and the decoder, and the residual block includes a 3D convolution, a BN layer, and a linear correction unit with a jump connection.
[0051] In this embodiment, the method for constructing the level set regression head includes: introducing a 1×1×1 3D convolution and a BN layer in the decoder module.
[0052] In this embodiment, the method for constructing a pre-trained autoencoder model includes: constructing an autoencoder model with an encoder and decoder structure using 3D convolution, a BN layer, and a linear correction unit with a jump connection.
[0053] S2. Collect the lung image data D1 of the first center, annotate D1 with lung nodule masks, obtain annotated images, use the annotated images to train the multi-center segmentation model, obtain the lung nodule segmentation results and lung nodule shapes and semantic information in the D1 data set, and use the lung nodule shapes and semantic information as model cache.
[0054] Specifically, a multi-center pulmonary nodule continuous segmentation model exploits a shape-based importance measure with boundary and topology awareness, preserving the complementary shape knowledge revealed by the network for level set representation and segmentation embedding prediction.
[0055] In this embodiment, the signed distance graph calculation expression based on the segmentation label calculation is:
[0056]
[0057] in, is the signed distance graph calculated based on the segmentation labels, and Represents different pixels in the segmentation label, S in With S out Respectively represent the areas inside and outside the lung nodules. Indicates the boundary of a pulmonary nodule.
[0058] In this embodiment, the shape-based importance measure expression with boundary and topology awareness is:
[0059]
[0060] Among them, r i is the level set regression head output of the i-th image. i represents the pulmonary nodule segmentation label, s i represents the pulmonary nodule segmentation result predicted by the network, α r With α e is the balance coefficient between each item, all set to 0.01. is the signed distance map calculated based on the segmentation labels, f e (·) represents the encoder in the pre-trained autoencoder, L mse (·) represents the mean square error function.
[0061] In this embodiment, for the network output result r i With f e (s i), the sensitivity of the current model parameters to the output results can be expressed as:
[0062]
[0063] Among them, Ω Sa is the sensitivity of the current model parameters to the output results, Θ is the parameter of the current model, Represents r i The L2 norm squared gradient of, represents f e (s i ) is the L2 norm squared gradient, β r With β e is the weight coefficient.
[0064] Specifically, the multi-center pulmonary nodule continuous segmentation model has an uncertainty-guided semantic-based importance measure to maintain reliable semantic knowledge information in the model and avoid uncertain segmentation results.
[0065] In this embodiment, the semantic-based importance measurement expression with uncertainty guidance is:
[0066]
[0067] Among them, L ce With L dice Represent the cross entropy function and Dice function respectively, y i represents the pulmonary nodule segmentation label, s i Represents the lung nodule segmentation result predicted by the network.
[0068] In this embodiment, the multi-center pulmonary nodule continuous segmentation results s i The uncertainty of can be obtained using the Monte Carlo DropOut method:
[0069]
[0070] in, is the segmentation prediction result generated by random Dropout of the network D times, μ i is the average of the segmentation prediction results generated by D random Dropouts, u i Indicates the uncertainty of the network segmentation result.
[0071] In this embodiment, the sensitivity of the model to uncertainty-guided semantic importance can be expressed as:
[0072]
[0073] Among them, Ω Se is the uncertainty-guided sensitivity based on semantic importance, is the network segmentation uncertainty u i The exponential normalization result, s i Represents the lung nodule segmentation result predicted by the network.
[0074] Specifically, the multi-center pulmonary nodule continuous segmentation model selects a regularization strategy by combining the importance of shape and semantics to prevent the model from overwriting and forgetting relevant shape and semantic knowledge.
[0075] In this embodiment, the joint shape and semantic importance of the model is selected as the regularization strategy:
[0076]
[0077] Among them, Ω J =Ω Sa +Ω Se Combine shape and semantic importance weight, Ω J* represents the joint shape and semantic importance weight of the previous central model, Θ * are the previous model parameters.
[0078] S3. Collect the k-th central lung image data D k , for D k Perform pulmonary nodule mask annotation, obtain annotated images, and use the multi-center segmentation model and model cache information to perform D k The data set is trained to obtain D k The segmentation results, as well as the shape and semantic information of the lung nodules, are added to the model cache.
[0079] S4. During the testing phase, the trained segmentation model is used to directly segment the lung nodule data to obtain accurate segmentation results.
[0080] This embodiment has the following advantages and technical effects:
[0081] This embodiment provides a method for continuous segmentation of multi-center lung nodule images, which solves the problem that the existing lung nodule segmentation network is limited by the network's memory and generalization capabilities, and is unable to obtain good segmentation performance on data from previous centers and unseen centers, and can achieve continuous segmentation of multi-center lung nodule images.
[0082] Embodiment 2
[0083] This embodiment also provides an electronic device, which includes: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for continuous segmentation of multi-center pulmonary nodule images described in implementation one is implemented.
[0084] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for continuous segmentation of multiple central pulmonary nodules images, characterized in that: The following steps are involved: Construct a continuous segmentation model for multiple central pulmonary nodules; sequentially acquiring a plurality of central lung nodule images, annotating the central lung nodule images with lung nodule masks to obtain a plurality of annotated images, and sequentially training the continuous segmentation model based on the plurality of annotated images to obtain a trained continuous segmentation model; The central pulmonary nodule image to be tested is acquired, and the central pulmonary nodule image to be tested is continuously segmented using the trained continuous segmentation model to obtain a plurality of segmentation results.
2. The method for continuous segmentation of multi-center pulmonary nodule images according to claim 1, characterized in that: The process of training the continuous segmentation model in sequence based on a plurality of annotated images includes: The continuous segmentation model is trained by using the first annotated image to obtain a first lung nodule segmentation result, a first lung nodule shape, and first semantic information, and the first lung nodule shape and the first semantic information are used as first cache information; The kth annotated image and the first cache information are input into the continuous segmentation model to obtain the kth pulmonary nodule segmentation result, the kth pulmonary nodule shape and the kth semantic information, and the kth pulmonary nodule shape and the kth semantic information are used as the kth cache information.
3. The method for continuous segmentation of multi-center pulmonary nodule images according to claim 1, characterized in that: The continuous segmentation model includes: a 3D Unet backbone network, a level set regression head, and a pre-trained autoencoder model.
4. The method for continuous segmentation of multiple central pulmonary nodules images according to claim 1, characterized in that: In the continuous segmentation model, the shape knowledge of the lung nodules is maintained using a first importance measure, which is a shape-based importance measure with boundary and topology awareness.
5. The method for continuous segmentation of multiple central pulmonary nodules images according to claim 4, characterized in that: The calculation formula of the first importance measure includes: in, is the signed distance graph calculated based on the segmentation labels, and Represents different pixels in the segmentation label, S in With S out Respectively represent the areas inside and outside the lung nodules. Indicates the boundary of lung nodules; Among them, L Sa is the first importance measure, r i is the level set regression head output of the i-th image, y i represents the pulmonary nodule segmentation label, s i represents the pulmonary nodule segmentation result predicted by the network, α r With α e is the balance coefficient between each item, all set to 0.01, f e (·) represents the encoder in the pre-trained autoencoder, L mse (·) represents the mean square error function.
6. The method for continuous segmentation of multi-center pulmonary nodule images according to claim 1, characterized in that: In the continuous segmentation model, the semantic knowledge information of the lung nodules is maintained by using a second importance measure, and the second importance measure is a semantic-based importance measure with uncertainty guidance.
7. The method for continuous segmentation of multiple central pulmonary nodules images according to claim 6, characterized in that: The calculation formula of the second importance measure is: Among them, L ce With L dice Represent the cross entropy function and Dice function respectively, y i represents the pulmonary nodule segmentation label, s i Represents the lung nodule segmentation result predicted by the network.
8. The method for continuous segmentation of multiple central pulmonary nodules images according to claim 1, characterized in that: In the continuous segmentation model, the first importance measure and the second importance measure are combined and regularized to maintain shape knowledge and semantic knowledge.
9. The method for continuous segmentation of multiple central pulmonary nodules images according to claim 8, characterized in that: The calculation formula for combining the first importance measure and the second importance measure and regularizing includes: In the first importance measure, for the network output result r i With f e (s i ), the first sensitivity of the current model parameters to the output result is expressed as: Among them, Ω Sa is the first sensitivity of the current model parameters to the output results, Θ is the parameter of the current model, Represents r i The L2 norm squared gradient of, represents f e (s i ) is the L2 norm squared gradient, β r With β e is the weight coefficient; In the second importance measure, the network predicted lung nodule segmentation result s i The uncertainty of is obtained using the Monte Carlo DropOut method: you i =-μ i logμ i , in, is the segmentation prediction result generated by random Dropout of the network D times, μ i is the average of the segmentation prediction results generated by D random Dropouts, u i Indicates the uncertainty of the network segmentation result. The second sensitivity based on semantic importance for uncertainty guidance is expressed as: Among them, Ω Se The second sensitivity level based on semantic importance guided by uncertainty, is the network segmentation uncertainty u i The exponential normalization result, s i Represents the lung nodule segmentation result predicted by the network; The formula for combining the first importance measure and the second importance measure and regularizing is: Among them, Ω J =Ω Sa +Ω Se is the joint shape and semantic importance weight, Ω J* is the joint shape and semantic importance weight of the previous central model, Θ is the parameter of the current model, Θ * are the previous model parameters.
10. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the method for continuous segmentation of multi-center pulmonary nodule images as described in any one of claims 1-9 is implemented.
