A method and system for interactive segmentation of blood vessels in CT images based on geometric priors

By employing an interactive CT image vessel segmentation method based on geometric priors, combined with multi-task learning and a run-length encoding head module, and utilizing 2D slice editing to generate a 3D cue tensor for interactive correction, this method solves the problems of fragmentation and omission in small and complex regions in existing CT image vessel segmentation methods. It achieves high-precision, low-computational-cost vessel segmentation, meeting clinical needs.

CN123160846APending Publication Date: 2026-11-24SHENZHEN YITU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611664823.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing CT image vessel segmentation methods are prone to breakage and omission in small, low-contrast, or topologically complex regions. Furthermore, existing interactive segmentation methods suffer from complex interactive prompts and high computational burden, making it difficult to balance fully automatic segmentation performance with interactive capabilities, and thus failing to meet the high-precision requirements of clinical practice.

Method used

An interactive segmentation method for blood vessels in CT images based on geometric priors is adopted. By combining a 3D segmentation model with a multi-task learning mechanism and a run-length encoding head module, a 3D cue tensor generated by 2D slice editing is used for interactive correction, resulting in a high-precision 3D blood vessel segmentation mask, reducing the interactive burden and computational overhead.

Benefits of technology

It achieves high-precision, low-computational-cost CT image vessel segmentation, improves the segmentation accuracy of small and complex regions, reduces the user interaction burden, and meets the needs of clinical diagnosis and surgical planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160846A_ABST
    Figure CN123160846A_ABST
Patent Text Reader

Abstract

This invention relates to the field of medical image processing technology, specifically to a method and system for interactive segmentation of blood vessels in CT images based on geometric priors. The method includes: acquiring three-dimensional CT medical image data to be segmented; performing three-dimensional segmentation processing on the three-dimensional CT medical image using a trained three-dimensional segmentation model to obtain an initial three-dimensional blood vessel segmentation mask; obtaining an edited two-dimensional slice mask cue by selecting two-dimensional slices in the initial three-dimensional blood vessel segmentation mask; expanding the two-dimensional slice mask cue dimensionally along the slice stacking axis to generate a three-dimensional cue tensor matching the size of the three-dimensional CT medical image; and performing voxel-by-voxel superposition of the three-dimensional cue tensor with the original three-dimensional CT medical image to obtain a guide image; and inputting the guide image into the three-dimensional segmentation model to perform three-dimensional segmentation processing to generate an interactively corrected three-dimensional blood vessel segmentation mask.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical image processing technology, specifically to an interactive segmentation method and system for blood vessels in CT images based on geometric priors. Background Technology

[0002] CT image vascular segmentation has significant clinical value for the diagnosis and treatment of vascular diseases. Extracting complete blood vessels from CT images can provide crucial support for clinical diagnosis and surgical planning. Traditional filter-based vascular segmentation methods use Hessian matrix eigenvalue combinations and tubular structure geometric priors to adjust filter parameters to separate vascular structures. However, due to factors such as the indistinct density difference between blood vessels and background in CT images and the uneven gray-scale distribution within blood vessels caused by contrast agents, it is difficult to achieve complete and accurate segmentation of complex and small blood vessels.

[0003] With the development of deep learning technology, deep learning-based blood vessel segmentation models have significantly improved generalization ability, segmentation accuracy, and computational efficiency compared to traditional methods. However, existing automatic segmentation methods are still prone to problems such as breakage and omissions in small, low-contrast, or topologically complex blood vessel regions. The segmentation results often require a lot of manual correction, making it difficult to directly meet the high-precision requirements of clinical practice. Although existing interactive segmentation methods improve segmentation accuracy by introducing user intervention, they generally suffer from complex interactive prompting mechanisms, difficulty in adapting to the geometric characteristics of thin and tortuous blood vessels, and often introduce additional inference or fine-tuning steps, resulting in a significant computational burden. At the same time, existing methods struggle to balance fully automatic segmentation performance with interactive capabilities, either requiring independent models or relying on multi-stage training, resulting in system complexity, training difficulties, and high deployment costs. High-precision, strongly guided, and low-computational-cost CT image blood vessel segmentation has not yet been effectively achieved. Summary of the Invention

[0004] To address the shortcomings of existing methods and the needs of practical applications, this invention provides an interactive CT image vessel segmentation method based on geometric prior, comprising the following steps: A three-dimensional CT medical image data to be segmented is acquired. A trained three-dimensional segmentation model is used to perform three-dimensional segmentation processing on the three-dimensional CT medical image to obtain an initial three-dimensional vessel segmentation mask. An edited two-dimensional slice mask is obtained by selecting a two-dimensional slice within the initial three-dimensional vessel segmentation mask and performing an editing operation. The two-dimensional slice mask hint is then dimensionally expanded along the slice stacking axis to generate a three-dimensional hint tensor that matches the size of the three-dimensional CT medical image. This three-dimensional hint tensor is then superimposed on the original three-dimensional CT medical image voxel-by-voxel to obtain a guide image. The guide image is then input into the three-dimensional segmentation model to perform three-dimensional segmentation processing, generating an interactively corrected three-dimensional vessel segmentation mask.

[0005] Optionally, the three-dimensional segmentation model adopts a multi-task learning mechanism during the training phase. In addition to the main segmentation task of voxel-by-voxel blood vessel segmentation, it also includes an auxiliary task of learning three-dimensional mask geometric compression representation. The auxiliary task constrains the model to learn the prior three-dimensional geometric structure of blood vessels. During the inference phase, the modules corresponding to the auxiliary tasks do not participate in the calculation.

[0006] Optionally, the auxiliary task for learning the three-dimensional mask geometric compression representation is to extract the run-length encoding representation of the upper and lower boundaries of the foreground region segment by segment along the compression dimension, and the supervision target of the auxiliary task is to obtain the multi-channel two-dimensional compressed representation of the real blood vessel three-dimensional mask through lossless compression.

[0007] Optionally, generating the multi-channel two-dimensional compressed representation includes the following steps: The three-dimensional binary vascular mask is iteratively processed along a specified compression dimension for a total of T iterations. In each iteration, the lower boundary of the current remaining foreground region is first located in the compression dimension, and the voxels below the lower boundary are set to 1. Then, the upper boundary above the lower boundary is located, and the voxels above the upper boundary are set to 0. The corresponding continuous foreground interval is stripped and the lower and upper boundaries of this iteration are recorded. The lower and upper boundaries obtained from each iteration are stacked by channel to generate a multi-channel two-dimensional compressed representation of size 2T×H×W, where H and W are the height and width of the three-dimensional mask in the plane perpendicular to the compression dimension, respectively.

[0008] Optionally, the multi-channel two-dimensional compression representation supports lossless decompression. During decompression, a zero-dimensional mask of the same size as the original three-dimensional vascular mask is initialized and T iterations are performed. In the i-th iteration, the 2i-th channel is taken from the multi-channel two-dimensional compression representation as the lower boundary and the 2i+1-th channel as the upper boundary. Voxels whose coordinates on the compression dimension are greater than or equal to the lower boundary and less than or equal to the upper boundary are set to 1, and the foreground interval corresponding to this iteration is restored. After T iterations, all foreground intervals are superimposed to reconstruct the three-dimensional vascular mask.

[0009] Optionally, the auxiliary task is implemented through a run-length encoding head module, which adopts a bottleneck-like structure and contains two cascaded double convolutional blocks: the first double convolutional block halves the number of channels in the input feature map to compress the information, and the second double convolutional block restores the number of channels to the original channel dimension.

[0010] Optionally, this method also supports multi-round iterative interaction: in each round of interaction, the user selects the central slice with segmentation errors on the current 3D blood vessel segmentation mask for addition, deletion and editing, triggering the corresponding local image block re-inference to update the 3D segmentation result; repeating the editing and local update process multiple times until the 3D blood vessel segmentation result meets the accuracy requirements.

[0011] Optionally, the central slice is selected at intervals matching the axial size of the network input image block, and the central slice is selected as the interactive editing surface every 16 consecutive slices; when performing dimensional expansion to generate a three-dimensional cue tensor, the edited two-dimensional slice mask is located at the axial center of the three-dimensional cue tensor, so that the editing correction information propagates symmetrically to the upper and lower neighborhoods along the axial direction.

[0012] Optionally, during the training phase, the encoder of the 3D segmentation model outputs a shared feature map, which is then connected to the main segmentation head and the run-length encoder head. The main segmentation head outputs a voxel-by-voxel blood vessel segmentation prediction result, and calculates the main segmentation task loss using a combination of Dice and cross-entropy loss. The run-length encoder head outputs a multi-channel 2D compressed representation prediction result, and calculates the auxiliary task loss using cross-entropy loss. The total loss is a weighted sum of the main segmentation task loss and the auxiliary task loss, and the parameters of the shared encoder, the main segmentation head, and the run-length encoder head are updated through backpropagation.

[0013] Secondly, to efficiently execute the geometric prior-based interactive segmentation method for CT image vessels provided by this invention, this invention also provides a geometric prior-based interactive segmentation system for CT image vessels, comprising: an input device, an output device, a processor, and a memory, wherein the input device, output device, processor, and memory are interconnected, and the memory stores program instructions for the geometric prior-based interactive segmentation method for CT image vessels. The geometric prior-based interactive segmentation system for CT image vessels of this invention has a compact structure and stable performance, and can stably execute the geometric prior-based interactive segmentation method for CT image vessels provided by this invention, further improving the overall applicability and practical application capability of this invention.

[0014] This invention introduces an auxiliary task for learning 3D mask geometric compression representation through a multi-task learning mechanism during the training phase. This task constrains the model to learn the prior knowledge of the 3D geometric structure of blood vessels and the spatial continuity between layers, enhancing the model's ability to perceive small, low-contrast, and topologically complex vascular regions, improving the accuracy of automatic segmentation, and reducing segmentation fragmentation and omissions. Simultaneously, the module corresponding to the auxiliary task is completely removed during the inference phase, without introducing any additional parameters or computational overhead for deployment inference. During the interaction phase, a 2D slice mask prompt is generated by receiving the editing operation of the selected 2D slice. This prompt is then expanded into a 3D prompt tensor along the slice stacking axis and superimposed on the original image voxel by voxel to generate a guide image. This process does not require modification of the original 3D segmentation model's input channel structure or the addition of a separate interactive coding branch. It propagates the local editing information of a single 2D slice along the axis to the 3D volume region, utilizing the structural continuity between slices to achieve synchronous correction of the 3D segmentation results. Only sparse editing of a few key slices is needed for refinement, significantly reducing the user's interaction burden. During interactive refinement, only the local image blocks corresponding to the edited slice are re-inferred, without recalculating the entire dataset, achieving low-latency interactive response. Attached Figure Description

[0015] Figure 1 A flowchart of an interactive CT image blood vessel segmentation method based on geometric prior is provided for an embodiment of the present invention; Figure 2 This is a framework diagram of an interactive blood vessel segmentation system for CT images based on geometric priors, provided for an embodiment of the present invention. Detailed Implementation

[0016] Specific embodiments of the present invention will now be described in detail. It should be noted that the embodiments described herein are for illustrative purposes only and are not intended to limit the invention. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, it will be apparent to those skilled in the art that these specific details are not necessary to practice the invention. In other instances, well-known circuits, software, or methods have not been specifically described to avoid obscuring the invention.

[0017] Throughout this specification, references to "an embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in connection with that embodiment or example is included in at least one embodiment of the invention. Therefore, the phrases "in an embodiment," "in an embodiment," "an example," or "an example" appearing in various places throughout the specification do not necessarily refer to the same embodiment or example. Furthermore, specific features, structures, or characteristics can be combined in one or more embodiments or examples in any suitable combination and / or sub-combination. Moreover, those skilled in the art will understand that the illustrations provided herein are for illustrative purposes and are not necessarily drawn to scale.

[0018] This solution can be applied to medical image-assisted diagnosis and treatment scenarios, supporting fully automatic high-precision segmentation of tubular structures such as blood vessels in CT sequence images, and allowing clinicians to quickly correct segmentation errors through a minimal number of two-dimensional slice editing operations, meeting the needs of clinical diagnosis and surgical planning for the accuracy and efficiency of blood vessel extraction.

[0019] To facilitate understanding of this solution, some terms used in this application will be explained first: 1. Three-dimensional CT medical image data: refers to three-dimensional volume data formed by stacking continuous two-dimensional CT slices along the axis, with each voxel corresponding to the tissue density gray value obtained from the CT scan.

[0020] 2. Three-dimensional vascular segmentation mask: refers to three-dimensional binary data with the same size as a three-dimensional CT medical image, in which foreground voxels identify vascular regions and background voxels identify non-vascular regions.

[0021] 3. 2D Slice Mask Hints: These are 2D binary images obtained after the user adds, deletes, or edits the segmentation results on a selected 2D slice. They are used to provide guidance information for local corrections to the model.

[0022] 4. Three-dimensional cue tensor: refers to the three-dimensional tensor obtained by expanding the two-dimensional slice mask cue along the axial dimension of the slice stack, which matches the size of the original three-dimensional CT medical image.

[0023] 5. Guided Image: This refers to the image obtained by superimposing the 3D cue tensor onto the original 3D CT medical image voxel by voxel. It can be directly input into the 3D segmentation model to achieve interactive guided segmentation.

[0024] 6. Multi-task learning mechanism: refers to a training strategy in which the model learns multiple related tasks simultaneously during the training phase, and improves the performance of the main task by sharing information between tasks.

[0025] 7. 3D mask geometric compression representation: refers to the compact two-dimensional multi-channel representation obtained by transforming the 3D blood vessel segmentation mask along the compression dimension, which can completely preserve the 3D geometric structure information of blood vessels.

[0026] 8. Run-length encoding head module: This refers to a dedicated network module used during the model training phase to output the prediction results of the 3D mask geometric compression representation, which is completely removed during the inference phase.

[0027] 9. Sliding window reasoning: This refers to a reasoning strategy that, when dealing with large-sized 3D volume data, cuts the data into blocks of a fixed window size and inputs them into the model for reasoning, then splices and merges the results of each block to obtain a complete segmentation result.

[0028] like Figure 1 As shown in the figure, this application provides an interactive blood vessel segmentation method for CT images based on geometric priors, including the following steps: S1. Acquire the three-dimensional CT medical image data to be segmented, and use the trained three-dimensional segmentation model to perform three-dimensional segmentation processing on the three-dimensional CT medical image to obtain an initial three-dimensional blood vessel segmentation mask.

[0029] S2. By editing the selected two-dimensional slice in the initial three-dimensional blood vessel segmentation mask, the edited two-dimensional slice mask prompt is obtained.

[0030] S3. Expand the dimensions of the two-dimensional slice mask prompt along the slice stacking axis to generate a three-dimensional prompt tensor that matches the size of the three-dimensional CT medical image, and then perform voxel-by-voxel superposition of the three-dimensional prompt tensor with the original three-dimensional CT medical image to obtain a guide image.

[0031] S4. Input the guiding image into the three-dimensional segmentation model to perform three-dimensional segmentation processing and generate an interactively corrected three-dimensional blood vessel segmentation mask.

[0032] In the automatic segmentation stage, geometric prior constraints are used to improve the segmentation accuracy of small blood vessels and complex topological regions. In the interaction stage, a lightweight prompt injection mechanism avoids complex interaction coding and full re-inference. This ensures high performance of automatic segmentation and achieves low-burden, low-latency interaction refinement. Moreover, there is no additional computational overhead in the inference stage, effectively balancing segmentation accuracy, interaction efficiency and deployment cost.

[0033] Taking a specific application scenario as an example, in the clinical scenario of liver vein segmentation, the doctor first imports the three-dimensional volume data of the patient's enhanced abdominal CT, and then performs preprocessing such as grayscale normalization and spacing resampling. The data is then cut into blocks and sent into the three-dimensional segmentation model to quickly generate the initial three-dimensional vessel segmentation mask of the entire hepatic vein. The segmentation results are displayed simultaneously in the three-view interface and the three-dimensional rendering window.

[0034] When reviewing the results, the doctor discovered a small, broken branch at the end of the right hepatic vein that was missed. The doctor then located the corresponding central cross-sectional slice and used a drawing tool to add a few foreground pixels to the missed area. Upon receiving this editing operation, a 2D slice mask prompt was generated. This prompt was copied and expanded along the Z-axis (slice stacking axis) to create a 3D prompt tensor covering 16 slice layers. This tensor was then added point-by-point with the original CT grayscale values ​​of the corresponding local image blocks to obtain a guide image. This guide image was then fed into a 3D segmentation model for local re-inference. The model automatically propagated the vascular information added by the user in the central slice up and down along the axis, completing the broken, small vascular branch, and outputting an interactively corrected 3D vascular segmentation mask.

[0035] If the doctor finds that other local areas are still misclassified after examination, the above slide editing and local update process can be repeated. After 2-3 very small slide editings, a complete hepatic vein segmentation result that meets the accuracy requirements of clinical surgical planning can be obtained.

[0036] In some embodiments, the auxiliary task for learning the geometric compression representation of the 3D mask is to extract the run-length encoding representation of the upper and lower boundaries of the foreground region segment by segment along the compression dimension. The supervision objective of the auxiliary task is to obtain the multi-channel 2D compressed representation of the real vascular 3D mask through lossless compression.

[0037] This auxiliary task guides the model to learn the distribution pattern of blood vessels along the axial direction of continuous intervals, which can enhance the model's perception of the interlayer continuity of the tubular structure of blood vessels. This allows the model to better capture the natural extension characteristics of blood vessels from thick to thin during segmentation, reducing breaks and omissions in small blood vessels. At the same time, the run-length encoding form naturally fits the geometric shape of blood vessels extending along the axial direction. Compared with directly learning 3D mask reconstruction, it can guide the model to focus on core geometric features with more compact supervision signals, thereby improving the efficiency of feature learning.

[0038] As a specific implementation method, the compression dimension can be selected from the slice stacking axis (Z-axis) of the CT image, which is consistent with the broadcast axis of the interactive prompt, further enhancing the model's ability to model the axial inter-layer relationship.

[0039] In some embodiments, the multi-channel two-dimensional compressed representation is generated as follows: the three-dimensional binary vascular mask is iteratively processed along a specified compression dimension for a total of T iterations; in each iteration, the lower boundary t_low of the current remaining foreground region is first located in the compression dimension, and the voxels below the lower boundary t_low are set to 1; then the upper boundary t_top, which is greater than the lower boundary t_low, is located, and the voxels at and above the upper boundary t_top are set to 0, the corresponding continuous foreground interval is stripped, and the lower boundary t_low and the upper boundary t_top of this iteration are recorded; the lower boundary and upper boundary obtained from each iteration are stacked by channel to generate a multi-channel two-dimensional compressed representation of size 2T×H×W, where H and W are the height and width of the three-dimensional mask in the plane perpendicular to the compression dimension, respectively.

[0040] This segment-by-segment compression method can adaptively handle vascular masks with arbitrarily complex topologies. For cases with multiple separated vascular segments at the same plane location, the upper and lower boundaries of each segment can be recorded through multiple iterations, avoiding information confusion between different vascular segments. By completely compressing the 3D structural information into a 2D plane using channel-stacked boundary values, the dimensionality of supervised learning for auxiliary tasks is greatly reduced, while preserving the positional information of all voxels, providing a foundation for subsequent lossless reconstruction. As a specific implementation, the localization of the upper and lower boundaries can be quickly achieved along the compression dimension using the argmax operation, eliminating the need for voxel-by-voxel traversal calculations and ensuring the efficiency of the compression process.

[0041] In some embodiments, the auxiliary task is implemented through a run-length encoding head module, which adopts a bottleneck-like structure and includes two cascaded double convolutional blocks: the first double convolutional block halves the number of channels in the input feature map to compress the information, and the second double convolutional block restores the number of channels to the original channel dimension; the run-length encoding head module also includes a three-dimensional convolutional layer with a kernel size of (3,1,1) and padding of (2,0,0) to eliminate boundary artifacts generated by the three-dimensional mask along the compression dimension at the top and bottom slices.

[0042] The run-length encoding head module converts the shared feature map of shape [B,C,D,H,W] into an output representation of shape [B,2*T,D+2,H,W], and calculates the cross-entropy loss with the multi-channel two-dimensional compressed representation corresponding to the real 3D blood vessel mask, where B is the batch size, C is the number of channels, and D is the compression dimension. When the model is deployed and exported, the run-length encoding head module is completely removed, and no additional computational overhead is introduced during the inference stage.

[0043] The bottleneck-like dual convolutional design can filter redundant information and extract core features related to geometric structure during feature compression and recovery, avoiding excessive noise introduced by auxiliary task learning. The specially sized 3D convolutional layer can effectively alleviate the boundary truncation artifacts generated by the mask at both ends of the volume during compression by increasing the receptive field along the compression dimension, thus improving the accuracy of compressed representation prediction. The design of the run-length encoding head, which is only attached to the shared feature map during the training phase and directly removed during deployment, makes the performance improvement brought by the auxiliary task completely "free" and will not increase any parameter calculation or latency during clinical inference, greatly reducing deployment costs.

[0044] As a specific implementation method, each convolutional layer in a dual convolutional block can be followed by a batch normalization layer and a ReLU activation function to ensure the stability of the training process.

[0045] In some embodiments, the selected two-dimensional slice targeted by the editing operation is the center slice of the input image block; dimensional expansion is to copy and expand the edited two-dimensional slice mask into a three-dimensional tensor along the slice stacking axis; voxel stacking is voxel additive stacking, without changing the number of input channels of the three-dimensional segmentation model, and no new interactive coding branch is required.

[0046] Choosing the center slice as the editing plane allows the user's editing information to propagate equidistantly to the top and bottom during axial broadcasting, maximizing the effective coverage of a single slice's prompt. The prompts are injected using a voxel-by-voxel additive method, completely preserving the original single-channel input structure of the 3D segmentation model. This eliminates the need to modify the model input layer, add prompt encoding branches, or train a separate interactive model to support interaction. This allows automatic segmentation and interactive refinement to share the exact same model weights, reducing training complexity and avoiding the impact of interactive branches on automatic segmentation performance.

[0047] As a specific implementation method, the foreground value in the 2D slice mask prompt can be set to a fixed intensity of highlight value. After superposition, it will not destroy the grayscale distribution of the original image, while allowing the model to clearly perceive the correction area specified by the user.

[0048] In some embodiments, when generating an interactively corrected 3D vascular segmentation mask, only local image blocks centered on the edited central slice are re-inferred, and the entire 3D CT medical image is not re-inferred; the size of the local image block is 16×320×320, the overlap between sliding windows in the automatic segmentation stage is 50% of the window size, and the inference results of each sliding window are superimposed according to spatial position and averaged to obtain the final segmentation result.

[0049] The local re-inference strategy limits the computation scope of interactive updates to fixed-size image blocks in the neighborhood of the edited slice. Compared with full re-inference, it can reduce the computation amount of a single interaction by more than two orders of magnitude, achieving millisecond-level interactive response. The block size of 16×320×320 not only matches the input size during model training to ensure inference accuracy, but also covers a sufficient axial neighborhood range, allowing the editing information to be effectively propagated to adjacent slices. The 50% overlap design of the sliding window can reduce segmentation artifacts at block edges, and improve the smoothness and consistency of the global segmentation result through average fusion of overlapping regions.

[0050] As a specific implementation, the result after local re-inference can directly replace the voxel values of the corresponding region in the original segmentation result, without recalculating other regions, further improving the interaction fluency.

[0051] In some embodiments, the multi-channel 2D compressed representation supports lossless decompression: During decompression, initialize an all-zero 3D mask with the same size as the original 3D vessel mask, and perform T iterations; In the i-th iteration, take the 2i-th channel from the multi-channel 2D compressed representation as the lower boundary t_low, and the (2i+1)-th channel as the upper boundary t_top. Set voxels whose coordinates on the compressed dimension satisfy t_low ≤ z < t_top to 1, to restore the foreground interval corresponding to this iteration; After completing T iterations, superimpose all foreground intervals to reconstruct the 3D vessel mask.

[0052] The lossless decompression feature ensures that the compressed representation can fully retain all information of the original 3D mask without introducing structural loss due to compression, making the supervision signal of the auxiliary task completely consistent with the real vessel geometry and avoiding supervision noise. Meanwhile, the decompression process only requires interval-based assignment, with extremely simple calculation logic that can be highly parallelized.

[0053] As a specific implementation, the decompression process can complete the assignment of all voxels in batches through tensor broadcasting operations, without looping through individual voxels, further improving the processing speed.

[0054] In some embodiments, for the 3D binary vessel mask, lossless compression can be achieved with the number of iterations T ≤ 7, and the corresponding compression ratio is D / (2T), with a typical compression ratio of 1 / 17. Both the compression and decompression processes support GPU parallel acceleration, and the processing latency per volume is at the millisecond level.

[0055] Lossless compression can be achieved with very few iterations, meaning that the auxiliary task only needs 14 output channels, which greatly reduces the number of parameters in the run-length encoder head and the computational overhead during training; the high compression ratio of 1 / 17 makes the compressed two-dimensional representation occupy very little storage space, which is convenient for the rapid storage and network transmission of segmentation results, especially suitable for result interaction in remote diagnosis and treatment scenarios; the millisecond-level processing speed under GPU acceleration ensures that compression and decompression operations will not become a bottleneck in the training or interaction process.

[0056] As a specific implementation method, when the mask structure is relatively simple, the number of iterations can be further reduced, and the remaining iteration channels can output empty boundaries without having to fill all iterations.

[0057] In some embodiments, this method also supports multi-round iterative interaction: in each round of interaction, the user selects the central slice with segmentation error on the current 3D blood vessel segmentation mask for addition, deletion and editing, triggering the corresponding local image block re-inference to update the 3D segmentation result; repeating the multi-round editing and local update process until the 3D blood vessel segmentation result meets the accuracy requirements.

[0058] The multi-round iterative interaction mode allows users to gradually correct segmentation errors at different locations. The result of each round of editing serves as the basis for the next round of interaction. Users can adjust subsequent editing positions in a targeted manner based on the updated results, without having to complete all corrections at once, which aligns with the viewing and modification habits of clinicians. Each round of interaction requires only a very small number of editing operations to correct local errors. After up to 3 rounds of interaction, the segmentation accuracy can be improved to a clinically usable level, saving more than 90% of the interaction time compared to traditional manual slice-by-slice drawing.

[0059] As a specific implementation method, the 3D rendering results can be automatically refreshed after each update, allowing users to intuitively check the correction effect and quickly locate the remaining error areas.

[0060] In some embodiments, the center slice is selected at intervals matching the axial size of the network input image block, and the center slice is selected as the interactive editing surface every 16 consecutive slices; when performing dimensional expansion to generate a three-dimensional cue tensor, the edited two-dimensional slice mask is located at the axial center of the three-dimensional cue tensor, so that the editing correction information propagates symmetrically to the upper and lower neighborhoods along the axial direction.

[0061] The interval setting of selecting a central editing face for every 16 slices perfectly matches the axial dimension of 16 of the model input block. This ensures that the prompt information of each editing face can exactly cover the entire input image block range, avoiding the prompt range from exceeding the model's receptive field and causing a decrease in correction effect. The design of the editing slices being located at the center of the 3D prompt tensor ensures that the prompt information propagates 7-8 slices upwards and downwards, making full use of the structural continuity between adjacent slices. This allows the extension morphology of blood vessels to be naturally and smoothly completed in the neighborhood, avoiding the problem of abrupt connection between local corrections and surrounding structures.

[0062] As a specific implementation method, users can adjust the position of the editing slice according to the actual error location, and then extract an image block of the corresponding size centered on the slice for re-inference, without strictly fixing the slice interval.

[0063] In some embodiments, during the training phase, the encoder of the 3D segmentation model outputs a shared feature map, which is then connected to the main segmentation head and the run-length encoder head. The main segmentation head outputs a voxel-by-voxel blood vessel segmentation prediction result, and the loss for the main segmentation task is calculated using a combination of Dice and cross-entropy loss. The run-length encoder head outputs a multi-channel 2D compressed representation prediction result, and the loss for the auxiliary task is calculated using cross-entropy loss. The total loss is a weighted sum of the loss for the main segmentation task and the loss for the auxiliary task, and the parameters of the shared encoder, the main segmentation head, and the run-length encoder head are updated through backpropagation.

[0064] The shared feature map design allows the main segmentation task and the auxiliary task to share the low-level features extracted by the encoder. The gradient of the auxiliary task can be backpropagated to the encoder, guiding the encoder to actively focus on the geometric structure of blood vessels and the interlayer continuity features during the feature extraction stage, thereby improving the quality of feature representation from the root. The Dice loss combined with cross-entropy can simultaneously optimize the overall overlap of the segmented region and the voxel-level classification accuracy, alleviating the problem of extreme foreground-background imbalance in blood vessel segmentation. The auxiliary task uses cross-entropy loss to adapt to the characteristics of boundary value regression, ensuring stable convergence during the training process.

[0065] As a specific implementation method, the weight of the auxiliary task loss in the total loss can be set to a small value to avoid the auxiliary task gradient being too large and interfering with the convergence direction of the main segmentation task.

[0066] In some embodiments, the training process is performed under the nnUnet framework, including Spacing resampling and data augmentation normalization processes; the optimizer uses SGD with an initial learning rate of 0.01, and a Poly strategy is used for learning rate decay. The batch size is set to 1, and a total of 500 epochs are trained; the backbone network of the 3D segmentation model is adapted to any 3D medical image segmentation architecture, including 3DU-Net, V-Net, AttentionU-Net, and a hybrid architecture of CNN and Transformer.

[0067] The standardized training process based on the nnUnet framework can adapt to the image characteristics of different datasets, automatically adjust resampling parameters and data augmentation strategies, reduce the cost of manual parameter tuning, and ensure the model's generalization ability on different CT datasets. The SGD optimizer combined with the Poly learning rate decay strategy has stable convergence performance in medical image segmentation tasks, which can effectively avoid oscillations in the later stages of training. The strong adaptability of the backbone network allows the interaction mechanism and geometric prior assistance tasks of this scheme to be seamlessly transferred to any mainstream 3D segmentation architecture without the need for significant modifications to specific network structures, and has extremely high versatility and scalability.

[0068] As a specific implementation method, data augmentation operations can include random rotation, random scaling, random elastic deformation, gamma correction, etc., to improve the robustness of the model to different morphological blood vessels and scanning parameters.

[0069] In some embodiments, before performing three-dimensional segmentation on the three-dimensional CT medical image, a preprocessing step is also included: performing min-max normalization on the grayscale of the CT image to scale the grayscale values ​​to the range of [0,1]; performing grayscale thresholding truncation according to the characteristics of the dataset; performing Spacing resampling to unify the voxel spacing; and applying data augmentation operations.

[0070] Gray-level normalization and thresholding can remove extreme gray values ​​in CT images (such as abnormally high / low density values ​​in bone tissue and air regions), mapping the gray-level distribution of blood vessels and surrounding soft tissues to a uniform range and reducing gray-level differences caused by different scanning devices and scanning parameters; Spacing resampling unifies the voxel spacing of all data to a fixed value, ensuring the scale consistency of the model input, and enabling the blood vessel diameter features learned by the model to have cross-data generality.

[0071] As a specific implementation method, the grayscale cutoff range of abdominal CT can be set to [-100, 400] HU, which can effectively cover the grayscale range of liver blood vessels and surrounding parenchymal tissues.

[0072] In some embodiments, during the fully automatic initial segmentation stage, a sliding window strategy is used for inference: starting from the (0,0,0) position of the 3D CT medical image, image blocks of size 16×320×320 are acquired one by one and input into the 3D segmentation model. The overlap between sliding windows is 50% of the window size. After all windows are inferred, the segmentation results are superimposed on the image space according to the spatial position corresponding to each window, and the voxel-level average is calculated for the overlapping area to obtain a complete initial 3D blood vessel segmentation mask.

[0073] The regular sliding window traversal starting from the origin ensures that all areas of the entire CT image are covered without any omissions; the 50% overlap design ensures that each voxel (except for edge regions) is predicted by at least two windows. Through average fusion, the segmentation accuracy reduction caused by insufficient receptive field at the window edges can be effectively eliminated, improving the smoothness and accuracy of the global segmentation results.

[0074] As a specific implementation method, a Gaussian weighted average method can be used to fuse the prediction results of overlapping regions, giving higher weight to the central region of the window, thereby further improving the fusion quality.

[0075] In some embodiments, the method is not limited to liver vessel segmentation, but is also extended to CT image segmentation of tubular structures in other parts of the body, including pulmonary bronchi, pulmonary arteries and veins, intracranial arteries and veins, and neck vessels.

[0076] This solution is based on a general tubular structure geometric prior and a two-dimensional slice interaction mechanism. It does not depend on specific anatomical features of the liver. As long as the tubular anatomical structure has the characteristic of continuous extension along the axis, it can be directly transferred and applied by replacing the corresponding training data. It has strong scenario versatility and can cover the vast majority of tubular structure segmentation needs in clinical practice.

[0077] As a specific implementation method, for tubular structures in different parts, only the gray-scale cutoff range in the preprocessing stage needs to be adjusted to match the CT value distribution of the corresponding parts, without modifying the network structure or interaction logic.

[0078] It should be noted that, in some optional implementations, the collected CT vascular data can be divided into training, validation, and test sets in a 7:1:2 ratio during the dataset construction phase. Vascular mask annotation can be completed using professional medical image annotation software to ensure annotation accuracy. During model training, multiple indicators such as Dicescore, accuracy, sensitivity, 95% Hausdorff distance, and the percentage of correctly segmented vascular centerline lengths can be used to comprehensively evaluate model performance, comprehensively measuring the model's segmentation accuracy in the overall region, small branches, and topological structure. The compression dimension is not limited to the Z-axis; the X-axis (sagittal plane) or Y-axis (coronal plane) can also be selected as the compression dimension according to the interactive view direction, supporting doctors to edit slices from different view directions.

[0079] In other alternative implementations, the two-dimensional slice mask prompt is not limited to foreground addition and deletion operations, but can also support background marking operations. That is, the user marks background pixels in the misclassified blood vessel region, prompting the model to delete the erroneous segmentation results at the corresponding position. When stacking voxels one by one, a weighted stacking method can also be used to assign a higher stacking weight to the prompt region, further enhancing the guiding strength of the prompt signal.

[0080] It should be noted that, in some optional implementations, hyperparameters such as batch size, number of epochs, and learning rate during model training can be adjusted appropriately based on the dataset size and hardware configuration. For example, when the dataset size is large, the number of epochs can be increased appropriately, and when GPU memory is sufficient, the batch size can be increased appropriately. The number of convolutional layer channels and the kernel size in the run-length encoding head can also be adapted and adjusted according to the backbone network structure, as long as compressed representation prediction and boundary artifact elimination can be achieved. The size of local image patches can also be adjusted appropriately based on GPU memory availability. For example, when memory is sufficient, a larger patch size can be used to expand the correction range of a single round of interaction.

[0081] It should be noted that the specific implementation methods described above, such as image processing, numerical simulation, and the construction and training of machine learning models, can all be accomplished by the processor by calling the corresponding computer program instructions stored in memory. Those skilled in the art can implement the above functions using algorithms and tools known in the prior art, according to actual needs.

[0082] Please see Figure 2 In an embodiment, to efficiently execute the geometric prior-based interactive segmentation method for CT images of blood vessels provided by the present invention, the present invention also provides a geometric prior-based interactive segmentation system for CT images of blood vessels, comprising: an input device 1, an output device 2, a processor 3, and a memory 4, wherein the input device 1, output device 2, processor 3, and memory 4 are interconnected, and the memory 4 stores program instructions for executing the steps of the geometric prior-based interactive segmentation method for CT images of blood vessels. The geometric prior-based interactive segmentation system for CT images of blood vessels of the present invention has a compact structure and stable performance, and can stably execute the geometric prior-based interactive segmentation method for CT images of blood vessels of the present invention, further improving the overall applicability and practical application capability of the present invention.

[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be covered within the scope of the present invention.

Claims

1. A CT image blood vessel interactive segmentation method based on geometric prior, characterized in that, Includes the following steps: Acquire the three-dimensional CT medical image data to be segmented, and use the trained three-dimensional segmentation model to perform three-dimensional segmentation processing on the three-dimensional CT medical image to obtain an initial three-dimensional blood vessel segmentation mask. By editing the selected two-dimensional slice in the initial three-dimensional blood vessel segmentation mask, the edited two-dimensional slice mask prompt is obtained; The two-dimensional slice mask prompt is dimensionally expanded along the slice stacking axis to generate a three-dimensional prompt tensor that matches the size of the three-dimensional CT medical image. The three-dimensional prompt tensor is then superimposed on the original three-dimensional CT medical image voxel by voxel to obtain a guide image. The guiding image is input into the three-dimensional segmentation model to perform three-dimensional segmentation processing, generating an interactively corrected three-dimensional blood vessel segmentation mask; The three-dimensional segmentation model employs a multi-task learning mechanism during the training phase. In addition to the main segmentation task of voxel-by-voxel vessel segmentation, it also includes an auxiliary task of learning three-dimensional mask geometric compression representation. The auxiliary task constrains the model to learn the prior three-dimensional geometric structure of blood vessels. During the inference phase, the modules corresponding to the auxiliary tasks do not participate in the computation.

2. The method of claim 1, wherein the method further comprises: The auxiliary task for learning the geometric compression representation of the three-dimensional mask is to extract the run-length encoding representation of the upper and lower boundaries of the foreground region segment by segment along the compression dimension. The supervision objective of the auxiliary task is to obtain a multi-channel two-dimensional compressed representation of the real blood vessel three-dimensional mask through lossless compression.

3. The method of claim 2, wherein the step of generating the initial vesselness map comprises: generating a first vesselness map based on a first vesselness function; generating a second vesselness map based on a second vesselness function; and combining the first vesselness map and the second vesselness map to generate the initial vesselness map. Generating the multi-channel two-dimensional compressed representation includes the following steps: The three-dimensional binary blood vessel mask is iteratively processed along the specified compression dimension for a total of T iterations. In each iteration, the lower boundary of the current remaining foreground region is first located in the compression dimension, and the voxels below the lower boundary are set to 1; Then, locate the upper boundary that is greater than the lower boundary, set the voxels at and above the upper boundary to 0, peel off the corresponding continuous foreground interval, and record the lower and upper boundaries of this iteration. The lower and upper boundaries obtained from each iteration are stacked by channels to generate a multi-channel two-dimensional compressed representation of size 2T×H×W, where H and W are the height and width of the three-dimensional mask on the plane perpendicular to the compression dimension, respectively.

4. The interactive segmentation method for blood vessels in CT images based on geometric priors according to claim 2, characterized in that, The multi-channel two-dimensional compression means that lossless decompression is supported. During decompression, a zero-dimensional mask of the same size as the original three-dimensional blood vessel mask is initialized and T iterations are performed. In the i-th iteration, the 2i-th channel is taken from the multi-channel two-dimensional compressed representation as the lower boundary and the 2i+1-th channel as the upper boundary. The voxels whose coordinates on the compressed dimension are greater than or equal to the lower boundary and less than or equal to the upper boundary are set to 1, and the foreground interval corresponding to this iteration is restored. After T iterations, all foreground regions are superimposed and reconstructed to obtain a three-dimensional vascular mask.

5. The interactive segmentation method for blood vessels in CT images based on geometric priors according to claim 1, characterized in that, The auxiliary task is implemented through a run-length encoding head module, which adopts a bottleneck-like structure and contains two cascaded double convolutional blocks: the first double convolutional block halves the number of channels in the input feature map to compress the information, and the second double convolutional block restores the number of channels to the original channel dimension.

6. The interactive segmentation method for blood vessels in CT images based on geometric priors according to claim 1, characterized in that, It also supports multi-round iterative interaction: In each round of interaction, the user selects the center slice with segmentation error on the current 3D blood vessel segmentation mask for addition, deletion and editing, triggering the corresponding local image block re-inference to update the 3D segmentation result; repeat the editing and local update process multiple times until the 3D blood vessel segmentation result meets the accuracy requirements.

7. The interactive segmentation method for blood vessels in CT images based on geometric priors according to claim 6, characterized in that, The central slice is selected at intervals that match the axial size of the network input image block, and the central slice is selected as the interactive editing surface every 16 consecutive slices; When generating a 3D cue tensor through dimensional expansion, the edited 2D slice mask is located at the axial center of the 3D cue tensor, allowing the editing correction information to propagate symmetrically to the upper and lower neighborhoods along the axial direction.

8. The interactive segmentation method for blood vessels in CT images based on geometric priors according to claim 1, characterized in that, During the training phase, the encoder of the 3D segmentation model outputs a shared feature map, which is then fed into the main segmentation head and the run-length encoder head, respectively. The main segmentation head outputs the voxel-by-voxel blood vessel segmentation prediction results, and the main segmentation task loss is calculated using a combination of Dice and cross-entropy loss. The run-length encoder outputs the multi-channel two-dimensional compressed representation prediction results, and the auxiliary task loss is calculated using cross-entropy loss. The total loss is the weighted sum of the main segmentation task loss and the auxiliary task loss, and the parameters of the shared encoder, main segmentation head, and run-length encoder are updated through backpropagation.

9. An interactive blood vessel segmentation system for CT images based on geometric priors, characterized in that, The CT image blood vessel interactive segmentation system based on geometric prior includes: an input device, an output device, a processor, and a memory. The input device, output device, processor, and memory are connected in pairs. The memory stores program instructions for executing the CT image blood vessel interactive segmentation method based on geometric prior as described in any one of claims 1-8.