Method and device for extracting three-dimensional abdominal aortic aneurysm and visceral blood vessel lumen
By using the three-dimensional abdominal aortic aneurysm and organ vessel lumen extraction method in the preoperative evaluation of abdominal aortic aneurysm, and using dual position coding and cosine similarity technology, the problem of low accuracy of abdominal aortic vessel segmentation is solved and achieved Provides higher segmentation accuracy and more accurate surgical planning.
Patent Information
- Application Number
- CN202410705450.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-06-03
AI Technical Summary
Existing technology In the preoperative evaluation of abdominal aortic aneurysm, the accuracy of abdominal aortic vessel segmentation is low, mainly due to the blurred aneurysm boundary and the obvious stenotic diameter of branch vessels such as the renal artery on CTA images, resulting in manual tasks that are time-consuming and Not accurate.
A three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method is adopted. CTA images are obtained and input into the lumen extraction and segmentation network. Dual position coding and cosine similarity are used for segmentation. The network is trained with a hybrid loss function to optimize the segmentation results. .
It improves the segmentation accuracy of abdominal aortic vessels and abdominal aortic aneurysms, reduces manual annotation time and errors, and provides more accurate surgical planning.
Smart Images

Figure CN118297941B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the general field of image data processing or generation technology, and in particular to a method and device for extracting three-dimensional abdominal aortic aneurysm and organ blood vessel lumen. Background Art
[0002] Abdominal aortic aneurysm (AAA) is a permanent pathological local dilatation of the abdominal aorta, which has a high mortality rate. Currently, the preoperative evaluation of AAA mainly relies on computed tomography angiography (CTA) technology. AAA is often associated with a complex multi-branched vascular network originating from the aorta. Accurate analysis of complex vascular topology to identify the aorta and other branches is expected to promote refined surgical planning and help avoid sequelae such as endoleak and surgical failure.
[0003] Although existing medical imaging software provides clinicians with computer-assisted tools for disease measurement, radiologists and clinicians still need to spend a lot of time on time-consuming manual tasks such as image annotation. There are major challenges in developing an accurate and automated abdominal aortic vessel segmentation system. Key difficulties include the blurred boundaries of tumors and the narrow diameters of branch vessels such as the renal arteries that are obvious on CTA images, which will lead to low accuracy of abdominal aortic vessel segmentation. Summary of the invention
[0004] The embodiment of the present application provides a three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method and device to solve the technical problem of low accuracy in abdominal aortic vessel segmentation in related technologies.
[0005] In a first aspect, the present application provides a method for extracting a three-dimensional abdominal aortic aneurysm and a vascular lumen of an organ, comprising:
[0006] Obtain computed tomography angiography (CTA) images covering the abdominal region;
[0007] The CTA image is input into a lumen extraction and segmentation network, and a segmentation result of the CTA image output by the lumen extraction and segmentation network is obtained based on dual position coding and cosine similarity. The lumen extraction and segmentation network is trained based on a mixed loss function.
[0008] In some embodiments, the step of obtaining the segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual position coding and cosine similarity includes:
[0009] Performing convolution feature extraction processing on the CTA image to obtain a convolution feature map, and performing attention feature extraction processing on the CTA image based on the dual-position coding to obtain an attention feature map;
[0010] Cross-fusing the convolution feature map and the attention feature map based on cosine similarity to obtain a fused feature map;
[0011] A segmentation result of the CTA image is obtained based on the fused feature map.
[0012] In some embodiments, the dual position encoding includes absolute position encoding and frame position encoding.
[0013] In some embodiments, cross-fusing the convolution feature map and the attention feature map based on cosine similarity to obtain a fused feature map includes:
[0014] determining the cosine similarity of the CTA images;
[0015] A query value is obtained based on the cosine similarity and the convolutional feature map.
[0016] In some embodiments, the method further comprises:
[0017] The lumen extraction and segmentation network is trained based on a hybrid loss function, wherein the hybrid loss function includes a first loss function and a second loss function, wherein the first loss function is used to alleviate the imbalance between categories, and the second loss function is used to optimize the boundaries of structures of different sizes and morphologies.
[0018] In some embodiments, training the lumen extraction and segmentation network based on a mixed loss function comprises:
[0019] Based on the second loss function, in each category, the Dice loss is calculated separately for each region, and the weight of the corresponding region is determined based on the number of edges and / or complexity.
[0020] In some embodiments, the method further comprises:
[0021] The segmentation results were evaluated based on the Dice coefficient and mean HD95.
[0022] In a second aspect, the present application also provides a three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction device, comprising:
[0023] A first acquisition module is used to acquire a computed tomography angiography (CTA) image including an abdominal area;
[0024] The second acquisition module is used to input the CTA image into the lumen extraction and segmentation network, and obtain the segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual position encoding and cosine similarity. The lumen extraction and segmentation network is trained based on a mixed loss function.
[0025] In some embodiments, the second acquisition module includes:
[0026] A first processing submodule is used to perform convolution feature extraction processing on the CTA image to obtain a convolution feature map, and perform attention feature extraction processing on the CTA image based on the dual-position coding to obtain an attention feature map;
[0027] A first acquisition submodule is used to cross-fuse the convolution feature map and the attention feature map based on cosine similarity to obtain a fused feature map;
[0028] The second acquisition submodule is used to acquire the segmentation result of the CTA image based on the fused feature map.
[0029] In some embodiments, the dual position encoding includes absolute position encoding and frame position encoding.
[0030] In some embodiments, the first acquisition submodule includes:
[0031] A first determining unit, configured to determine the cosine similarity of the CTA image;
[0032] The first acquisition unit is used to acquire a query value based on the cosine similarity and the convolution feature map.
[0033] In some embodiments, the three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction device further includes:
[0034] The first training module is used to train the lumen extraction and segmentation network based on a mixed loss function, wherein the mixed loss function includes a first loss function and a second loss function, wherein the first loss function is used to alleviate the imbalance between categories, and the second loss function is used to optimize the boundaries of structures of different sizes and morphologies.
[0035] In some embodiments, the first training module includes:
[0036] The second processing submodule is used to calculate the Dice loss for each region in each category based on the second loss function, and determine the weight of the corresponding region based on the number and / or complexity of edges.
[0037] In some embodiments, the three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction device further includes:
[0038] The first evaluation module is used to evaluate the segmentation result based on the Dice coefficient and the average HD95.
[0039] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements any of the above-described methods for extracting three-dimensional abdominal aortic aneurysms and organ blood vessel lumens.
[0040] In a fourth aspect, an embodiment of the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method as described in any one of the above.
[0041] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-described methods for extracting a three-dimensional abdominal aortic aneurysm and visceral blood vessel lumens.
[0042] The three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method and device provided in the embodiment of the present application can input the CTA image into the lumen extraction and segmentation network, and then the lumen extraction and segmentation network obtains the segmentation result of the CTA image according to the dual position coding and cosine similarity, and can quickly and accurately obtain the abdominal aortic blood vessel and abdominal aortic aneurysm segmentation results in the CT image, which can improve the accuracy of abdominal aorta segmentation. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technical descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0044] Figure 1 It is a schematic flow chart of a method for extracting a three-dimensional abdominal aortic aneurysm and visceral blood vessel lumen provided in an embodiment of the present application;
[0045] Figure 2 It is an algorithm flow chart of a method for extracting a three-dimensional abdominal aortic aneurysm and visceral blood vessel lumen provided in an embodiment of the present application;
[0046] Figure 3 is a schematic diagram of dual-position coding provided in an embodiment of the present application;
[0047] Figure 4 It is a schematic diagram of the structure of a three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction device provided in an embodiment of the present application;
[0048] Figure 5 It is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] Figure 1 3D abdominal aortic aneurysm and organ vascular lumen extraction method provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, an embodiment of the present application provides a three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method, including step 101 and step 102.
[0051] Step 101, obtaining a computed tomography angiography (CTA) image containing an abdominal area.
[0052] Step 102, input the CTA image into a lumen extraction and segmentation network, and obtain a segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual position coding and cosine similarity, wherein the lumen extraction and segmentation network is trained based on a hybrid loss function.
[0053] Specifically, a CTA image containing the abdominal area can be obtained first, and then the CTA image can be input into a lumen extraction and segmentation network. The lumen extraction and segmentation network is an abdominal aorta vessel and tumor segmentation network (SDLU-Net), which has a new encoder-decoder structure:
[0054] A novel spatial position encoding structure, called "dual position encoding", is used to preserve the spatial relationship of vascular anatomical structures throughout the network operation. Secondly, a dynamic attention connection module based on cosine similarity effectively distinguishes blood vessels and tissues, as well as main trunk branches and other branches. In addition, the double jump connection and channel attention modules are integrated into the decoding layer to enhance the information flow within the network. Finally, a hybrid loss function is introduced to solve the sample imbalance problem, thereby improving the segmentation results of organ branches. After inputting the CTA sequence images, the network outputs the vascular segmentation results (background, lumen, and tumor) of the sequence images.
[0055] Further, Figure 2 is an algorithm flow chart of a three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method provided in an embodiment of the present application, such as Figure 2As shown, the abdominal CTA data can be divided into a training set and a test set. The training set images are used to train the lumen extraction and segmentation network, and the test set data is input into the network for detection, and the detection results are output.
[0056] For example, the abdominal CTA data of 49 patients can be divided into a training set and a test set, of which the data of 36 patients are the training set and the data of the remaining 13 patients are the test set. The training set includes 7965 images and the test set includes 2867 images. The CTA data of all patients are exported as images of size 512×512.
[0057] The three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method provided in the embodiment of the present application can input the CTA image into the lumen extraction and segmentation network, and then the lumen extraction and segmentation network obtains the segmentation result of the CTA image according to the dual position coding and cosine similarity, and can quickly and accurately obtain the abdominal aortic blood vessel and abdominal aortic aneurysm segmentation results in the CT image, which can improve the accuracy of abdominal aorta segmentation.
[0058] In some embodiments, the method of obtaining the segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual-position coding and cosine similarity includes: performing convolution feature extraction processing on the CTA image to obtain a convolution feature map, and performing attention feature extraction processing on the CTA image based on the dual-position coding to obtain an attention feature map; cross-fusing the convolution feature map and the attention feature map based on cosine similarity to obtain a fused feature map; and obtaining the segmentation result of the CTA image based on the fused feature map.
[0059] Specifically, when the CTA images are fed into the network, the original sequence order of the images is maintained and trained using an 8-frame sliding window method. The images are fed into two feature extraction branches: the convolutional feature extraction branch and the attention feature extraction branch.
[0060] In the convolutional feature extraction branch, the image first passes through a convolution layer with a convolution kernel size of 3, a padding size of 1, and a stride of 4 for convolution calculation, and then is normalized using a ReLU activation function layer and a batch normalization layer.
[0061] In each subsequent layer, the same convolutional feature extraction module is used. First, the input matrix is averaged, and then features are extracted through three fully connected layers, a maximum value extraction layer, and a GeLU activation function layer. The features obtained by each convolutional feature extraction module are point-convolved to fuse local information.
[0062] In the attention feature extraction branch, the image undergoes sub-region (Patch) operation and position encoding during the embedding process.
[0063] The Patch operation divides the input image into smaller blocks and maps them to a high-dimensional feature vector. In this network framework, the overlap method can be used to solve the problem of losing edge information. In this network, the image blocks are divided into windows of size 5 and step size 4.
[0064] In each subsequent layer, the attention feature extraction module with the same structure is used. Each layer contains two identical blocks, including a fully connected layer, a multi-head attention layer, a multi-layer perceptron, and a point convolution layer, which are connected using a residual structure.
[0065] Then, the features are cross-fused between the convolutional feature module and the attention feature module to obtain the fused feature map. In the decoder, the output of the lower layer and the feature map of the same layer in the encoder are fed to each convolution and upsampling layer. When skip connections are applied inside the decoder, the output features of each decoding block are connected with the feature maps of the convolutional feature extraction layer and the attention feature extraction layer at the same resolution scale of the corresponding encoding feature map to obtain the fused feature map.
[0066] After four iterations of the upsampling layer, four fused feature maps of different sizes are obtained. These results and the output of the deepest layer are expanded to the same size (H / 4×W / 4) while maintaining the number of channels. The SE channel attention module is used to assign higher weights to feature maps containing more important channel information at different depths. Finally, a multi-layer perceptron is used to restore the image to its original size (H×W) to obtain the final segmentation image, i.e., the segmentation result.
[0067] The three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method provided in the embodiment of the present application, through dual position encoding, similarity-based dynamic connection and decoder, shows excellent performance in the multi-branch vessel segmentation of the abdominal aorta, and is superior to other existing methods in segmentation accuracy. While maintaining high accuracy for branch vessels, it successfully solves the challenging task of automated aneurysm segmentation, highlighting its important clinical potential in surgical planning involving complex multi-branch structures.
[0068] In some embodiments, the dual position encoding includes absolute position encoding and frame position encoding.
[0069] Specifically, Figure 3 is a schematic diagram of the dual position coding provided in the embodiment of the present application, such as Figure 3 As shown in Figure 1, dual position encoding includes two key components: absolute position encoding (APE) and frame position encoding (FPE). The value range of frame position encoding is 0 to 7 / , represents the order of the input images ( =8).
[0070] The three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method provided in the embodiment of the present application enables the network to capture spatial and classification information through dual position coding including absolute position coding and frame position coding, which helps to perform effective representation learning in continuous images.
[0071] In some embodiments, the cross-fusion of the convolution feature map and the attention feature map based on cosine similarity to obtain a fused feature map includes: determining the cosine similarity of the CTA image; and obtaining a query value based on the cosine similarity and the convolution feature map.
[0072] Specifically, feature cross-fusion is performed between the convolutional feature module and the attention feature module. In this module, the cosine similarity between the entire image x and y is calculated ( ), and multiply it with the convolutional feature map to obtain a new query value (Query, Q value).
[0073]
[0074] in, is the feature tensor of the image, The feature tensor that produces Q values for the attention mechanism, is the number of regions within a single frame.
[0075] In addition, the cosine similarity is updated using the following formula.
[0076]
[0077] in, and is a learnable scalar, express The mean of express The standard deviation of represents the minimum value, Indicates updated .
[0078] The three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method provided in the embodiment of the present application promotes the integration of global context in a dynamic manner by applying this formula, so that each patch can adjust its contribution based on similarity accordingly.
[0079] In some embodiments, the method further includes: training the lumen extraction and segmentation network based on a mixed loss function, the mixed loss function including a first loss function and a second loss function, the first loss function being used to alleviate the imbalance between categories, and the second loss function being used to optimize the boundaries of structures of different sizes and morphologies.
[0080] Specifically, the CTA images of abdominal aortic aneurysms contain unbalanced pixel frequencies between the background, aneurysm, and intraluminal areas. To solve this problem, focal loss (Focal Loss), the first loss function, is used in the training process to alleviate the imbalance between categories. The formula is as follows:
[0081]
[0082]
[0083] in, is the number of categories, is the value of the sample category after one-hot encoding, Belongs to the category The predicted probability , It can be 0.25, It can be 2.
[0084] In some embodiments, the training of the lumen extraction and segmentation network based on the hybrid loss function includes: based on the second loss function, in each category, calculating the Dice loss separately for each region, and determining the weight of the corresponding region based on the number of edges and / or complexity.
[0085] Specifically, by quantitatively analyzing edge complexity, aneurysms and small vascular branches show a significantly higher ratio of edge pixels to total area than the lumen. Based on this finding, a second loss function is used to optimize the boundaries of structures of different sizes and morphologies, and the second loss function can be an improved weighted Dice loss (WD Loss).
[0086] In each category, the Dice loss is calculated for each region separately, and higher weights are assigned to regions with fewer or more complex edges ( ).
[0087]
[0088]
[0089]
[0090] in, is the number of categories, is the number of regions within a single frame, Indicates categories, Indicates the first Regions, represents the boundary length of the target, Indicates the size of the target, is the set of predicted values, is a set of real values.
[0091] Then according to the above loss, the total loss is obtained by the following formula.
[0092]
[0093] in, is the total loss, It can be 0.5.
[0094] It is worth mentioning that the SDLU-Net network proposed in the embodiment of the present application is trained using a hybrid loss function, using the Adam optimizer, and the learning rate is set to 0.001. The network is trained for a total of 100 epochs.
[0095] The three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method provided in the embodiment of the present application can achieve a balance between global structure matching and local unit classification by jointly optimizing these losses, thereby improving the accuracy of segmentation from both macro and micro perspectives.
[0096] In some embodiments, the method further comprises: evaluating the segmentation result based on a Dice coefficient and an average HD95.
[0097] Specifically, the evaluation method of the SDLU-Net network proposed in the embodiment of the present application uses two indicators: average Dice coefficient and average HD95.
[0098] The average Dice coefficient is expressed as follows.
[0099]
[0100]
[0101] in, is the set of predicted values, is a set of real values, is the sample size.
[0102] The definition of HD index is as follows.
[0103]
[0104] in, Indicates the distance between the predicted value and the true value. express arrive The distance express arrive Distance, 95% HD (HD95) is similar to maximum HD, but it is based on calculations and The 95th percentile of the distances between boundary points. The mean HD95 is defined as follows.
[0105]
[0106] in, is the sample size.
[0107] After testing on the test set, the tumor segmentation accuracy was 0.828 and the lumen segmentation accuracy was 0.935.
[0108] Table 1 shows the different experimental results using different networks on the same test image.
[0109] Table 1. Experimental results
[0110]
[0111] The test results show that the proposed method achieves superior performance in the segmentation results of CTA images (Table 1). In the results, the segmentation performance based on the Dice score is the best in the aneurysm class and the combination of the two classes. At the same time, the intracavitary class and the average class achieved the best HD95 scores.
[0112] In order to intuitively demonstrate the vascular segmentation performance of different network frameworks, VTK can be used to perform three-dimensional modeling on the segmentation results of the local dataset. In the segmentation of the mesenteric artery and renal artery lumen, the segmentation results of TransUNet, UCTansNet, DAEformer and SCUNet-plusplus are the least ideal. In addition, the iliac artery segmentation effect using Swin-Unet and UCtransnet is poor. It is worth noting that the results of the SCUNet-plusplus method show the worst iliac artery vascular segmentation effect. In addition, the Swin-Unet, ScaleFormer and DAEFormer methods lead to more erroneous aneurysm segmentation areas. Swin-Unet failed to accurately segment the abdominal aorta and showed the lowest segmentation resolution. In contrast, the method proposed in the present invention has higher accuracy in segmenting the abdominal aorta, renal artery and mesenteric artery lumen, and also provides excellent aneurysm segmentation results.
[0113] The three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method provided in the embodiment of the present application can input the CTA image into the lumen extraction and segmentation network, and then the lumen extraction and segmentation network obtains the segmentation result of the CTA image according to the dual position coding and cosine similarity, and can quickly and accurately obtain the abdominal aortic blood vessel and abdominal aortic aneurysm segmentation results in the CT image, which can improve the accuracy of abdominal aorta segmentation.
[0114] Figure 4 is a schematic diagram of the structure of a three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction device provided in an embodiment of the present application, such as Figure 4 As shown, the three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction device provided in the embodiment of the present application includes a first acquisition module 401 and a second acquisition module 402.
[0115] The first acquisition module 401 is used to acquire a computed tomography angiography (CTA) image containing an abdominal area.
[0116] The second acquisition module 402 is used to input the CTA image into the lumen extraction and segmentation network, and obtain the segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual position encoding and cosine similarity. The lumen extraction and segmentation network is trained based on a mixed loss function.
[0117] In some embodiments, the second acquisition module includes: a first processing submodule, used to perform convolution feature extraction processing on the CTA image to obtain a convolution feature map, and perform attention feature extraction processing on the CTA image based on the dual-position encoding to obtain an attention feature map; a first acquisition submodule, used to cross-fuse the convolution feature map and the attention feature map based on cosine similarity to obtain a fused feature map; a second acquisition submodule, used to obtain a segmentation result of the CTA image based on the fused feature map.
[0118] In some embodiments, the dual position encoding includes absolute position encoding and frame position encoding.
[0119] In some embodiments, the first acquisition submodule includes: a first determination unit, configured to determine the cosine similarity of the CTA image; and a first acquisition unit, configured to acquire a query value based on the cosine similarity and the convolution feature map.
[0120] In some embodiments, the three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction device also includes: a first training module, used to train the lumen extraction and segmentation network based on a mixed loss function, the mixed loss function includes a first loss function and a second loss function, the first loss function is used to alleviate the imbalance between categories, and the second loss function is used to optimize the boundaries of structures of different sizes and morphologies.
[0121] In some embodiments, the first training module includes: a second processing submodule, for calculating the Dice loss for each region separately in each category based on the second loss function, and determining the weight of the corresponding region based on the number and / or complexity of edges.
[0122] In some embodiments, the three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction device further includes: a first evaluation module, used to evaluate the segmentation result based on the Dice coefficient and the average HD95.
[0123] Specifically, the above-mentioned three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be specifically repeated here.
[0124] Figure 5 is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application, such as Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute a three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method, the method comprising: obtaining a computed tomography angiography CTA image containing an abdominal area; inputting the CTA image into a lumen extraction and segmentation network, obtaining a segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual position coding and cosine similarity, the lumen extraction and segmentation network being obtained by training based on a mixed loss function.
[0125] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0126] In some embodiments, the method of obtaining the segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual-position coding and cosine similarity includes: performing convolution feature extraction processing on the CTA image to obtain a convolution feature map, and performing attention feature extraction processing on the CTA image based on the dual-position coding to obtain an attention feature map; cross-fusing the convolution feature map and the attention feature map based on cosine similarity to obtain a fused feature map; and obtaining the segmentation result of the CTA image based on the fused feature map.
[0127] In some embodiments, the dual position encoding includes absolute position encoding and frame position encoding.
[0128] In some embodiments, the cross-fusion of the convolution feature map and the attention feature map based on cosine similarity to obtain a fused feature map includes: determining the cosine similarity of the CTA image; and obtaining a query value based on the cosine similarity and the convolution feature map.
[0129] In some embodiments, the method further includes: training the lumen extraction and segmentation network based on a mixed loss function, the mixed loss function including a first loss function and a second loss function, the first loss function being used to alleviate the imbalance between categories, and the second loss function being used to optimize the boundaries of structures of different sizes and morphologies.
[0130] In some embodiments, the training of the lumen extraction and segmentation network based on the hybrid loss function includes: based on the second loss function, in each category, calculating the Dice loss separately for each region, and determining the weight of the corresponding region based on the number of edges and / or complexity.
[0131] In some embodiments, the method further comprises: evaluating the segmentation result based on a Dice coefficient and an average HD95.
[0132] Specifically, the above-mentioned electronic device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiment in which the execution subject is the electronic device, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0133] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method provided by the above-mentioned methods, and the method includes: obtaining a computed tomography angiography CTA image including an abdominal area; inputting the CTA image into a lumen extraction and segmentation network, and obtaining the segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual position coding and cosine similarity, and the lumen extraction and segmentation network is trained based on a mixed loss function.
[0134] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method provided by the above-mentioned methods, the method comprising: obtaining a computed tomography angiography CTA image including an abdominal area; inputting the CTA image into a lumen extraction and segmentation network, and obtaining a segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual position coding and cosine similarity, wherein the lumen extraction and segmentation network is trained based on a mixed loss function.
[0135] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0136] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0137] It should also be noted that the terms "first", "second", etc. in the embodiments of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.
[0138] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0139] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0140] In this application, "determine B based on A" means that the factor A should be considered when determining B. It is not limited to "B can be determined based on A alone", but should also include: "determine B based on A and C", "determine B based on A, C and E", "determine C based on A, and further determine B based on C", etc. In addition, it can also include taking A as a condition for determining B, for example, "when A meets the first condition, use the first method to determine B"; for example, "when A meets the second condition, determine B", etc.; for example, "when A meets the third condition, determine B based on the first parameter", etc. Of course, it can also be a condition that takes A as a factor for determining B, for example, "when A meets the first condition, use the first method to determine C, and further determine B based on C", etc.
[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method, characterized in that: include: Obtain computed tomography angiography (CTA) images covering the abdominal region; Input the CTA image into the lumen extraction and segmentation network SDLU-Net, and obtain the segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual position encoding and cosine similarity, wherein the lumen extraction and segmentation network is trained based on a mixed loss function; The segmentation results include background, lumen, and tumor; The process of obtaining the segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual position coding and cosine similarity is specifically as follows: the lumen extraction and segmentation network SDLU-Net includes an encoder and a decoder, and the encoder includes a convolution feature extraction branch and an attention feature extraction branch; The CTA image is fed into two feature extraction branches: the convolutional feature extraction branch and the attention feature extraction branch; In the convolution feature extraction branch, the CTA image is subjected to convolution feature extraction processing to obtain a convolution feature map, and in the attention feature extraction branch, the CTA image is subjected to attention feature extraction processing based on dual position coding to obtain an attention feature map, wherein the dual position coding includes absolute position coding and frame position coding; In the convolutional feature extraction branch, the image first passes through a convolutional layer with a convolution kernel size of 3, a padding size of 1, and a stride of 4 for convolution calculation, and then uses a ReLU activation function layer and a batch normalization layer for normalization. In each subsequent layer, the same convolutional feature extraction module is passed; In the attention feature extraction branch, the image undergoes sub-region operations and dual-position encoding during the embedding process, and the attention feature extraction module with the same structure is used in each subsequent layer; The features are cross-fused between the convolutional feature module and the attention feature module to obtain the fused feature map 1; in the decoder, the output of the n+1th layer and the feature map of the nth layer in the encoder are fed to the convolution and upsampling layers of the nth layer decoding block; when the skip connection is applied inside the decoder, the output features of each decoding block are connected with the feature maps of the convolutional feature extraction layer and the attention feature extraction layer at the same resolution scale of the corresponding encoder feature map to obtain the fused feature map 2; After four iterations of the upsampling layer of the decoding block, four fused feature maps of different sizes are obtained. These results and the output of the last layer of the decoder are expanded to the same size H / 4×W / 4 while maintaining the number of channels. The SE channel attention module is used to assign higher weights to feature maps containing more important channel information at different depths. Finally, a multi-layer perceptron is used to restore the image to its original size H×W to obtain the final segmented image, that is, the segmentation result of the CTA image is obtained. The feature cross-fusion is performed between the convolution feature module and the attention feature module. The specific process of obtaining the fusion feature map 1 is as follows: the cosine similarity is calculated based on the feature tensor of the query value generated by the attention mechanism, and the cosine similarity is multiplied by the convolution feature map to obtain a new query value. The calculation formula of the cosine similarity is as follows: ; in, is the cosine similarity, is the feature tensor of the image, The feature tensor that produces query values for the attention mechanism, is the number of regions within a single frame; Additionally, the cosine similarity is updated using the following formula: ; in, and is a learnable scalar, express The mean of express The standard deviation of represents the minimum value, Indicates updated .
2. The three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method according to claim 1, characterized in that: The method further comprises: The lumen extraction and segmentation network is trained based on a hybrid loss function, wherein the hybrid loss function includes a first loss function and a second loss function, wherein the first loss function is used to alleviate the imbalance between categories, and the second loss function is used to optimize the boundaries of structures of different sizes and morphologies.
3. The method for extracting three-dimensional abdominal aortic aneurysm and organ vascular lumen according to claim 1, characterized in that: The method further comprises: The segmentation results were evaluated based on the Dice coefficient and mean HD95.
4. A three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction device, which performs three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction by the three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method according to claim 1; characterized in that: include: A first acquisition module is used to acquire a computed tomography angiography (CTA) image including an abdominal area; The second acquisition module is used to input the CTA image into the lumen extraction and segmentation network, and obtain the segmentation result of the CTA image output by the lumen extraction and segmentation network based on dual position encoding and cosine similarity. The lumen extraction and segmentation network is trained based on a mixed loss function.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method according to any one of claims 1 to 3 is implemented.
6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the three-dimensional abdominal aortic aneurysm and organ vascular lumen extraction method according to any one of claims 1 to 3 is implemented.
