Three-dimensional liver blood vessel segmentation model based on enhanced attention mechanism context bridging and establishment method of three-dimensional liver blood vessel segmentation model
By combining CNN and Transformer models, multi-scale feature fusion is used to use the enhanced attention mechanism to solve the accuracy and computational complexity of liver vascular segmentation, and efficient and accurate liver vascular segmentation in clinical time is achieved, supporting medical visualization and Surgical planning.
Patent Information
- Application Number
- CN202411100642.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-12
AI Technical Summary
The prior art is difficult to achieve accurate liver vascular segmentation, especially in complex liver vascular trees. Traditional algorithms are susceptible to noise interference and complex computational Transformer models lack the ability to extract local features, making it difficult to provide accurate segmentation within clinical time.
A three-dimensional liver vascular segmentation model based on context bridge of enhanced attention mechanism is proposed. Combined with CNN and Transformer models, multi-scale feature fusion and Local global information extraction reduces the computational complexity.
It has achieved the ability to identify and segment complex structures of liver vascular, while reducing the computational complexity, improving the accuracy and efficiency of liver vascular segmentation, assisting doctors in diagnosis, reducing surgical risks, and protecting patients' lives.
Smart Images

Figure CN119006487A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer vision technology, and specifically relates to a three-dimensional liver blood vessel segmentation model based on enhanced attention mechanism context bridging, an establishment method thereof, and an image segmentation method. Background Art
[0002] In the past few decades, liver disease has gradually become one of the leading causes of death worldwide due to the increase in life expectancy, sedentary lifestyle and continued overnutrition. Although vaccines and antiviral drugs have been developed, the global burden of liver disease is still increasing. It is estimated that about one-fifth of the population in China suffers from some form of liver disease, including hepatitis B virus, hepatitis C virus, cirrhosis, liver cancer, non-alcoholic fatty liver disease, alcoholic liver disease, drug-induced liver damage, etc.
[0003] Since some serious liver diseases greatly threaten the life safety of patients, liver surgery is usually required to remove the lesions. Early diagnosis and early treatment are important measures. Before performing liver surgery to remove liver tumors, the liver blood vessels should be accurately located. Knowing the detailed location of the tumor between the liver blood vessels and the diameter of the blood vessels can determine the outcome of the operation. Because once the blood vessels are damaged during surgery, the bleeding rate is very fast. If it cannot be controlled in time, it will cause hemodynamic instability in a short period of time, increase the amount of blood transfusion during surgery, and even passively change the surgical method. This will not only increase the risk of transfusion-related complications, but also cause postoperative tumor recurrence in patients and reduce the survival rate of patients. Therefore, accurate segmentation of liver blood vessels is an important prerequisite for creating tumor surgery planning tools and medical visualization applications. Accurate liver blood vessel segmentation provides a strong guarantee for liver surgery, which can greatly improve the survival rate of patients and avoid the occurrence of unexpected situations during surgery to the greatest extent.
[0004] However, due to the complex and highly intertwined vascular tree in the liver, accurate segmentation of liver vessels has always been a challenging task. Manual liver vessel segmentation by doctors is a time-consuming and tedious task, which has great limitations in clinical treatment where every second counts. Therefore, accurate liver vessel segmentation by computer has always been a practical problem that needs to be solved urgently.
[0005] Traditional algorithms such as threshold segmentation, region growing, and image filtering are easily affected by noise in medical images, making it difficult to achieve refined vascular segmentation. The deep neural network model has the ability to automatically extract features, process high-resolution spatial information, and detect fine edges and shapes, which enables it to achieve more refined and accurate liver vascular segmentation.
[0006] At present, the liver vascular segmentation network models implemented at home and abroad can be roughly divided into two types: CNN-based and Transformer-based. The advantages and disadvantages of these two model structures in the liver vascular segmentation task are very obvious. The CNN-based network architecture has high computational efficiency, spatial invariance, and local perception through convolution kernels. It can handle the details in the liver vascular image well, but it is difficult to capture the dependencies between pixels that are far apart in the image, and the overall direction and distribution information of the blood vessels are not fully captured; the Transformer-based network architecture uses the attention mechanism to capture the dependencies between all positions in the image, which is very suitable for processing global information. This is very helpful for identifying and segmenting the complex structure of the entire liver blood vessels, but it is relatively complex to calculate, has a large demand for data, and lacks the ability to extract local features. Summary of the invention
[0007] The present invention aims to overcome the above-mentioned shortcomings of the prior art and proposes a three-dimensional liver vascular segmentation model based on context bridging with enhanced attention mechanism and its establishment method, image segmentation method, and segmentation device.
[0008] In a first aspect, the present invention proposes a 3D liver vascular segmentation model based on context bridging with enhanced attention mechanism, comprising:
[0009] An input layer is used to receive input three-dimensional liver medical CT image data to obtain image features;
[0010] The first to fourth image overlapping feature coding layers are used to perform overlapping feature coding operations on low-dimensional image features to obtain higher-dimensional image features while reducing the width, height, and depth of the image features;
[0011] The first to fourth enhanced attention mechanism downsampling layers are alternately connected with the first to fourth image overlapping feature encoding layers mentioned above in sequence, for feature extraction and generating four different scale image features;
[0012] The first to fourth reinforced attention mechanism context bridge layers connected in series are used to fuse the multi-scale image features and further extract features to obtain the association of local and global information of the multi-scale image features;
[0013] The first to fourth image block expansion layers are used to re-divide the high-dimensional image features into dimensions to obtain lower-dimensional image features while increasing the width, height and depth of the image features;
[0014] The first to fourth enhanced attention mechanism upsampling layers are alternately connected with the first to fourth image block expansion layers mentioned above in sequence, and are used to recursively splice image features of different scales and further extract features to obtain the final image features;
[0015] The output layer is used to calculate the final image features and generate three-dimensional liver vessel segmentation results.
[0016] According to one embodiment of the present invention, the image overlapping feature encoding module layer includes a three-dimensional convolution operation and a layer normalization operation. The three-dimensional convolution operation refers to performing a convolution operation on the image features in three dimensions: width, height, and depth, to capture and utilize the three-dimensional spatial information in the data; the layer normalization operation refers to normalizing each sample individually to stabilize the distribution of activation values, which helps to speed up the training process and improve model performance;
[0017] According to one embodiment of the present invention, the enhanced attention mechanism downsampling layer (or enhanced attention mechanism upsampling layer) itself does not change the image feature dimension, and is respectively combined with the image overlapping feature encoding layer (or image block expansion layer) in the model workflow to achieve the effect of extracting features and downsampling (or upsampling) at the same time. The enhanced attention mechanism downsampling layer (or enhanced attention mechanism upsampling layer) specifically includes:
[0018] Layer standardization operation, which standardizes each sample separately;
[0019] An efficient self-attention module uses the spatial reduction ratio to reduce the spatial resolution of input image features based on the self-attention mechanism, thereby reducing the complexity of matrix multiplication and improving the computational efficiency of the self-attention mechanism.
[0020] The hybrid reinforced feedforward neural network embeds a depth-wise convolution in the original feedforward neural network, connects three layers of layer normalization operations in series and adds three skip connections, directly adds the input to the output of each layer normalization operation, and constructs a residual module to ensure that the neural network has a positive effect.
[0021] According to one embodiment of the present invention, the enhanced attention mechanism context bridge layer specifically includes:
[0022] Image feature deformation and splicing, used to deform, unify and combine multi-scale image features;
[0023] Hybrid efficient attention feature extraction, used to extract features from mixed image features;
[0024] Residual connection is used to maintain the stability of gradients during model training and reduce the difficulty of training;
[0025] The hybrid reinforcement feedforward neural network, which is the same as the above hybrid reinforcement feedforward neural network, is used to improve the expressive power of the model.
[0026] In a second aspect, the present invention proposes a method for establishing a three-dimensional liver vascular segmentation model based on enhanced attention mechanism context bridging, which is applied to the three-dimensional liver vascular segmentation model based on enhanced attention mechanism context bridging, and the method comprises:
[0027] Acquire three-dimensional liver medical CT image data of the liver and its corresponding liver blood vessel label data annotated by medical professionals;
[0028] Perform data augmentation on the acquired data and use them as training set and validation set for model training in a 4:1 allocation ratio.
[0029] The training set is input into the three-dimensional liver vascular segmentation model based on enhanced attention mechanism context bridging for training, and at the same time, the accuracy of the model obtained in each round of training is verified using the validation set. This process is iterated until the loss function reaches a predetermined target (or the model converges);
[0030] After the iteration is completed, the optimal three-dimensional liver vascular segmentation model is saved and output.
[0031] According to one embodiment of the present invention, the data enhancement operation includes the following:
[0032] Resampling, according to the set standard voxel spacing, bilinear interpolation operation is performed to generate image feature data that conforms to the specific physical interval.
[0033] Eigenvalue clipping, clipping according to the specified valid eigenvalue range, restricting the data value to the specified range to ensure that the data does not exceed the expected boundary.
[0034] Space filling: fill the data that does not meet the requirements according to the specified width, height and depth to ensure that the input size is the same.
[0035] Random flipping randomly flips the width, height, and depth dimensions to ensure the randomness of the input image features and avoid overfitting of the model.
[0036] Random feature value changes, random scaling and random offset operations on image feature values, increase the diversity of training data and avoid model overfitting.
[0037] According to one embodiment of the present invention, the error setting requirements are as follows:
[0038] When judging whether the model training has converged, it is required that the model loss value on the training set does not exceed 0.1, the loss value on the validation set is not greater than 0.25, and the accuracy of the three-dimensional liver vascular segmentation results during the inference process is greater than 70%.
[0039] According to an embodiment of the present invention, the loss function adopts the DiceCELoss loss function.
[0040] The DiceCELoss loss function is a loss function in the MONAI (Medical Open Network for AI) library, which is specifically used to solve medical image segmentation tasks. It combines the Dice loss function and the cross entropy loss function to solve the limitations of using these two loss functions alone, thereby improving the performance of the segmentation model.
[0041] The Dice loss function measures the overlap between the predicted segmentation result and the true segmentation label, and its formula is:
[0042]
[0043] Cross entropy loss is used to measure the difference between the predicted probability distribution and the true probability distribution in the classification task, and its formula is:
[0044] Cross Entropy Loss=-∑ i g i log p i
[0045] Among them, p i Used to represent the predicted value, g i Used to represent real values.
[0046] Furthermore, the formula of the DiceCELoss loss function is:
[0047] DiceCELoss=α×Dice Loss+β×Cross Entropy Loss
[0048] Among them, α and β are custom hyperparameters used to balance the contribution of the two loss functions.
[0049] In a third aspect, the present invention proposes a three-dimensional liver vessel segmentation method based on context bridging with enhanced attention mechanism, comprising the following steps:
[0050] Acquire three-dimensional liver medical CT image data to be segmented;
[0051] The 3D liver medical CT image data to be segmented is input into the trained 3D liver vascular segmentation network to obtain the vascular segmentation result.
[0052] Output a corresponding three-dimensional segmentation result based on the blood vessel segmentation result.
[0053] In a fourth aspect, the present invention proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned training method for a three-dimensional liver vascular segmentation model based on context bridging with enhanced attention mechanism.
[0054] In a fifth aspect, the present invention provides an electronic device, characterized in that it includes:
[0055] Memory, used to store application computer programs and the data generated by them;
[0056] A processor is used to execute the computer program stored in the memory so that the electronic device implements the above-mentioned training method of the three-dimensional liver blood vessel segmentation model based on enhanced attention mechanism context bridging.
[0057] The core of the present invention is to build a deep neural network based on enhanced attention mechanism context bridging by scientifically combining CNN and Transformer model architectures. While ensuring excellent recognition and segmentation capabilities for the complex structure of liver blood vessels, it reduces computational complexity, ensures spatial invariance, fully extracts detailed features of liver blood vessels, and performs specific optimization on the feature extraction module. After a certain amount of training, the present invention can achieve accurate segmentation of three-dimensional liver blood vessels, assist doctors in diagnosing diseases such as liver blood vessels and tumors, and lay a solid foundation for the application of liver surgery planning and medical visualization. Furthermore, the present invention can improve doctors' diagnostic efficiency, reduce surgical risks, and protect patients' life, health and safety.
[0058] Beneficial effects of the present invention:
[0059] The present invention realizes multi-scale feature fusion and efficient computing and memory usage by scientifically combining CNN and Transformer. It has powerful global and local feature extraction capabilities, the ability to handle long-range dependencies, and excellent robustness and generalization capabilities. It helps doctors achieve more accurate and precise three-dimensional liver vascular segmentation and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 It is a schematic diagram of the structure of the three-dimensional liver blood vessel segmentation model based on enhanced attention mechanism context bridging of the present invention;
[0061] Figure 2 A schematic diagram of a training method for a three-dimensional liver vascular segmentation model based on context bridging with enhanced attention mechanism according to the present invention;
[0062] Figure 3 A schematic diagram of the steps of a training method for a three-dimensional liver vessel segmentation model based on enhanced attention mechanism context bridging in one embodiment of the present invention;
[0063] Figure 4 A schematic diagram of the steps of a training method for a three-dimensional liver vessel segmentation model based on enhanced attention mechanism context bridging in one embodiment of the present invention;
[0064] Figure 5 FIG. 1 is a schematic diagram of the steps of a three-dimensional liver vessel segmentation method based on enhanced attention mechanism context bridging in one embodiment of the present invention. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] Example 1
[0067] This embodiment proposes a 3D liver vascular segmentation model based on context bridging with enhanced attention mechanism. Figure 1 As shown, in one embodiment of the invention, a three-dimensional liver vessel segmentation model 10 based on enhanced attention mechanism context bridging specifically includes: an input layer 11, which is used to receive input three-dimensional liver medical CT image data to obtain image features; an image overlapping feature encoding layer 12, which is used to perform overlapping feature encoding operations on low-dimensional image features to obtain higher-dimensional image features while reducing the width, height, and depth of the image features; an enhanced attention mechanism downsampling layer 13, which is alternately connected with the image overlapping feature encoding layer 12 in sequence, and is used for feature extraction and generating four different scale image features; an enhanced attention mechanism context bridging layer 14, which is used to fuse multi-scale image features and further extract features to obtain the association between local and global information of multi-scale image features; an image block expansion layer 15, which is used to re-divide the high-dimensional image features into dimensions, obtain lower-dimensional image features, and increase the width, height, and depth of the image features; an enhanced attention mechanism upsampling layer 16, which is alternately connected with the image block expansion layer 15 in sequence, and is used to recursively splice and further extract features of image features of different scales to obtain final image features; an output layer 17, which is used to calculate the final image features and generate a three-dimensional liver vessel segmentation result.
[0068] Example 2
[0069] For example, see Figure 2 As shown, this embodiment discloses a method for establishing a three-dimensional liver vessel segmentation model based on enhanced attention mechanism context bridging, which is applied to training a three-dimensional liver vessel segmentation model based on enhanced attention mechanism context bridging, and specifically includes the following steps:
[0070] Step S201, obtaining liver three-dimensional medical CT image data and corresponding liver blood vessel label data annotated by medical professionals;
[0071] Step S202, performing data enhancement operation on the acquired data, and using them as training set and validation set for model training according to a distribution ratio of 4:1;
[0072] Step S203, input the training set into the three-dimensional liver vascular segmentation model based on enhanced attention mechanism context bridging for training, and at the same time, use the verification set to verify the accuracy of the model obtained in each round of training. Iterate this process until the loss function reaches a predetermined target (or the model converges);
[0073] Step S204: after the iteration is completed, the optimal three-dimensional liver blood vessel segmentation model is saved and output.
[0074] Specifically, in one embodiment of the invention, Figure 3 As shown in the figure, the method for establishing a three-dimensional liver vascular segmentation model based on context bridging of enhanced attention mechanism specifically includes the following steps:
[0075] Step S301, performing a three-dimensional convolution operation on the image features to obtain first processed data;
[0076] Step S302, performing a layer normalization operation on the first processed data to obtain second processed data;
[0077] Step S303, performing an efficient self-attention operation on the second processed data to obtain third processed data;
[0078] Step S304, the third processed data is processed by a hybrid reinforcement neural network to obtain fourth processed data;
[0079] Determine whether the fourth processed data reaches the predetermined dimension. If not, execute step S305, save the intermediate results and continue to loop to step S301; if it reaches the predetermined dimension, execute step S306, splice all the intermediate results as the fifth processed data and output it.
[0080] Specifically, in one embodiment of the invention, Figure 4 As shown, the method for establishing a three-dimensional liver vascular segmentation model based on context bridging with enhanced attention mechanism also includes the following steps:
[0081] Step S401, deforming and splicing the input multi-scale image features to form first processed data;
[0082] Step S402, performing a hybrid high-efficiency attention operation on the first processed data to obtain second processed data;
[0083] Step S403, the second processed data is processed through a hybrid reinforcement feedforward neural network to obtain third processed data;
[0084] Step S404: the third processed data is added to the first processed data to form fourth processed data.
[0085] Example 3
[0086] This embodiment provides a three-dimensional liver blood vessel segmentation method based on enhanced attention mechanism context bridging, which uses the liver blood vessel segmentation model trained by the training method of the three-dimensional liver blood vessel segmentation model based on enhanced attention mechanism context bridging described in Embodiments 1 and 2, wherein, Figure 5 As shown, the segmentation method comprises the following steps:
[0087] Step S501, obtaining three-dimensional liver medical CT image data to be segmented;
[0088] Step S502, inputting the three-dimensional liver medical CT image data to be segmented into a trained three-dimensional liver blood vessel segmentation network to obtain a blood vessel segmentation result;
[0089] Step S503: outputting a corresponding three-dimensional segmentation result based on the blood vessel segmentation result.
[0090] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. "Multiple" means two or more, unless otherwise clearly and specifically defined.
[0091] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, the technical personnel in this field can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction. In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and associate different embodiments or examples and features of different embodiments or examples described in this specification without mutual contradiction.
[0092] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0093] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0094] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0095] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0096] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0097] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
[0098] Example 4
[0099] This embodiment proposes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the three-dimensional liver blood vessel segmentation method based on enhanced attention mechanism context bridging of embodiment 3 is implemented.
[0100] Example 5
[0101] This embodiment provides an electronic device, including:
[0102] Memory, used to store application computer programs and the data generated by them;
[0103] A processor is used to execute the computer program stored in the memory so that the electronic device implements the above-mentioned training method of the three-dimensional liver blood vessel segmentation model based on enhanced attention mechanism context bridging.
[0104] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A 3D liver vascular segmentation model based on context bridging with enhanced attention mechanism, characterized in that: include: An input layer is used to receive input three-dimensional liver medical CT image data to obtain image features; The first to fourth image overlapping feature coding layers are used to perform overlapping feature coding operations on low-dimensional image features to obtain higher-dimensional image features while reducing the width, height, and depth of the image features; The first to fourth enhanced attention mechanism downsampling layers are alternately connected with the first to fourth image overlapping feature encoding layers mentioned above in sequence, for feature extraction and generating four different scale image features; The first to fourth reinforced attention mechanism context bridge layers connected in series are used to fuse the multi-scale image features and further extract features to obtain the association of local and global information of the multi-scale image features; The first to fourth image block expansion layers are used to re-divide the high-dimensional image features into dimensions to obtain lower-dimensional image features while increasing the width, height and depth of the image features; The first to fourth enhanced attention mechanism upsampling layers are alternately connected with the first to fourth image block expansion layers mentioned above in sequence, and are used to recursively splice image features of different scales and further extract features to obtain the final image features; The output layer is used to calculate the final image features and generate three-dimensional liver vessel segmentation results.
2. The three-dimensional liver vascular segmentation model based on enhanced attention mechanism context bridging according to claim 1 is characterized in that: The enhanced attention mechanism downsampling layer or the enhanced attention mechanism upsampling layer does not change the image feature dimension itself. In the model workflow, it is combined with the image overlapping feature encoding layer or the image block expansion layer to achieve the effect of extracting features and downsampling or upsampling at the same time, including: Layer standardization operation, which standardizes each sample separately; An efficient self-attention module uses the spatial reduction ratio to reduce the spatial resolution of input image features based on the self-attention mechanism, thereby reducing the complexity of matrix multiplication and improving the computational efficiency of the self-attention mechanism. The hybrid reinforced feedforward neural network embeds a depth-wise convolution (Depth-wiseConv) in the original feedforward neural network, connects three layers of layer normalization operations in series and adds three skip connections, directly adds the input to the output of each layer normalization operation, and constructs a residual module to ensure that the neural network has a positive effect.
3. The three-dimensional liver vessel segmentation model based on enhanced attention mechanism context bridging according to claim 1, characterized in that: Strengthen the attention mechanism context bridge layer, including: Image feature deformation and splicing, used to deform, unify and combine multi-scale image features; Hybrid efficient attention feature extraction, used to extract features from mixed image features; Residual connection is used to maintain the stability of gradients during model training and reduce the difficulty of training; A hybrid reinforced feedforward neural network is used to improve the expressiveness of the model.
4. The method for establishing a three-dimensional liver vascular segmentation model based on enhanced attention mechanism context bridging according to claim 1, characterized in that: The steps include: S1. Acquire three-dimensional liver medical CT image data of the liver and its corresponding liver vascular label data annotated by medical professionals; S2. Perform data augmentation on the acquired data and use them as training set and validation set for model training in a 4:1 allocation ratio; S3. Input the training set into the three-dimensional liver vascular segmentation model based on enhanced attention mechanism context bridging for training, and at the same time, use the verification set to verify the accuracy of the model obtained in each round of training. Iterate this process until the loss function reaches the predetermined target, which is called model convergence; S4. After the iteration is completed, the optimal three-dimensional liver vascular segmentation model is saved and output.
5. The method for establishing a three-dimensional liver vascular segmentation model based on enhanced attention mechanism context bridging according to claim 4, characterized in that: The data enhancement operations include resampling, eigenvalue clipping, space filling, random flipping, and random eigenvalue changes.
6. The method according to claim 4, characterized in that The loss function adopts the DiceCELoss loss function. The Dice loss function measures the overlap between the predicted segmentation result and the true segmentation label. The formula is: Cross entropy loss is used to measure the difference between the predicted probability distribution and the true probability distribution in the classification task, and its formula is: Cross Entropy Loss=-∑ i g i logp i Among them, p i Used to represent the predicted value, g i Used to represent real values; The formula of DiceCELoss loss function is: DiceCELoss=α×Dice Loss+β×Cross Entropy Loss Among them, α and β are custom hyperparameters used to balance the contribution of the two loss functions.
7. The method according to claim 4, characterized in that The condition for judging whether the model training has converged is that the loss value of the model on the training set does not exceed 0.1, and the loss value on the validation set is not greater than 0.
25.
8. A three-dimensional liver vessel segmentation method based on enhanced attention mechanism context bridging, comprising the following steps: Acquire three-dimensional liver medical CT image data to be segmented; Inputting the three-dimensional liver medical CT image data to be segmented into the trained three-dimensional liver vascular segmentation network to obtain a vascular segmentation result; Output a corresponding three-dimensional segmentation result based on the blood vessel segmentation result.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the three-dimensional liver blood vessel segmentation method based on context bridging of enhanced attention mechanism is implemented as described in any one of claim 8.
10. An electronic device, characterized in that: include: Memory, used to store application computer programs and the data generated by them; A processor is used to execute the computer program stored in the memory so that the electronic device implements the three-dimensional liver blood vessel segmentation method based on enhanced attention mechanism context bridging as described in claim 8.
Citation Information
Patent Citations
MRI image hepatic vessel segmentation method based on context aggregation
CN113643310A
Brain tumor MR image segmentation method
CN114519719A
Medical image segmentation method and device, equipment and medium
CN117994511A
Cited By
Three-dimensional liver blood vessel segmentation model construction method based on space channel mixed attention and skeleton loss function
CN120563835A
