Method and device for ensuring temporal semantic consistency in multimodal segmentation of cerebral arterial circles

Through the cross-temporal and cross-modal semantic consistency network, combined with temporal alignment and attention mechanisms, it solves the problems of single-modality dependence and insufficient detection of small blood vessel structures in the existing technology, and achieves efficient multi-modal segmentation of cerebral arterial rings. , accuracy and consistency, improving the accuracy of treatment effect assessment.

CN118379501BActive Publication Date: 2024-08-30XIAMEN UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410805765.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-08-30
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Existing cerebral arterial ring segmentation technology mainly relies on a single imaging modality and fails to fully utilize the complementary information of multi-modal data, resulting in limited accuracy and robustness of segmentation results. It also fails to fully consider the difference in images before and after treatment, which affects Treatment effect evaluation; at the same time, existing methods have low sensitivity in detecting small vascular structures and lack a cross-modal consistency mechanism.

Method used

The cross-temporal and cross-modal semantic consistency network (CTMSC-Net) is used to process multi-modal data through the temporal alignment module (TAM) and the Laplacian enhanced Fourier encoder (LEFE), combined with cross-temporal and cross-modal Attention module (CCAM) and multi-class weighted cross-entropy loss function (LCMCL) ensure the temporal semantic consistency and accuracy of segmentation results.

Benefits of technology

It improves the accuracy and robustness of vascular structure segmentation, enhances the ability to capture changes before and after treatment, ensures the consistency of cross-modal data, improves the detection ability of small vascular structures, and meets the needs of clinical applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379501B
    Figure CN118379501B
Patent Text Reader

Abstract

The present invention provides a method and device for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles. Firstly, the method effectively integrates multimodal data by introducing cross-temporal alignment and attention mechanism, thereby improving the accuracy and robustness of segmentation results; secondly, a temporal alignment module (TAM) and a cross-temporal cross-modal attention module (CCAM) are developed to ensure accurate evaluation of treatment effects; thirdly, a Laplacian Enhanced Fourier Encoder (LEFE) is introduced to significantly improve the detection and segmentation capabilities of small and complex vascular structures; finally, a new loss function is designed to enforce semantic consistency under different modalities, thereby improving the consistency and accuracy of cross-modal data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of multimodal segmentation of cerebral arterial circles, and in particular to a method and device for ensuring temporal semantic consistency in multimodal segmentation of cerebral arterial circles. Background Art

[0002] Currently, deep neural networks have been widely used in the field of medical image processing, especially in the segmentation of blood vessels in 3D medical images. They perform well in the analysis of CT and MR angiography images, helping doctors to diagnose diseases and formulate treatment plans more accurately. However, the complex vascular structure and variable imaging conditions make this task challenging. Most existing studies focus on a single imaging mode and fail to fully consider the comparison of images before and after treatment, which leads to errors or omissions in the annotation of changes in the same vascular structure across treatment stages, seriously affecting the accuracy of the evaluation process.

[0003] Specifically, traditional vascular segmentation methods mainly rely on manual delineation by experts, especially when dealing with complex structures such as the circle of Willis (CoW); these methods are time-consuming and labor-intensive, which severely limits their scalability and efficiency in clinical and research environments. To improve efficiency, existing researchers have developed direct centerline extraction methods for vascular segmentation, including tracking methods and minimum path techniques; among them, the tracking method starts from a given point and uses local information to iteratively search for adjacent points along the centerline of the vessel, usually using heuristic rules to detect branches and endpoints; the minimum path technique connects two points by minimizing the integral of an intensity function along the centerline. However, these methods face major challenges when dealing with "kissing" vessels (i.e., when the distance between vascular boundaries is less than the imaging resolution), and are prone to misjudgment due to connection errors.

[0004] With the development of machine learning in recent years, convolutional neural networks (CNNs) have shown remarkable results in improving the accuracy of cerebrovascular segmentation. In particular, UNet has made a major breakthrough in medical image segmentation, achieving pixel-by-pixel prediction through end-to-end training. The jump connection between the encoder and decoder introduced by UNet integrates low-resolution features into high-resolution features, greatly improving the segmentation ability. Inspired by the success of UNet, most leading models are built on the UNet architecture.

[0005] For example, Robben et al. improved the segmentation results by considering prior knowledge of geometry and connectivity at the same time, reducing incorrect connections; Bogunovic et al. modeled the Willis circle as a graph on the Riemann manifold, which can accurately represent its complex spatial properties and shape; Bilgel et al. used belief propagation and random forest classifiers to annotate cerebral arteries; Dunås et al. created an automated pipeline based on probabilistic graphs to describe the location and shape of major cerebral arteries; Livne et al. developed Half-U-Net to simplify the classic UNet by reducing the number of channels per layer; Sanches et al. combined 3D-UNet with the Inception module for cerebrovascular segmentation; Nader et al. used 3D-UNet to segment the Willis circle to detect and evaluate bifurcations; Dumais et al. created an automated method based on deep learning for segmenting and annotating the main arteries of the Willis circle.

[0006] Although these methods have been successful in segmenting whole medical objects, they have low sensitivity in detecting small medical objects. And the attention mechanism has received widespread attention after its successful application in the Transformer model; for example, Hao et al. combined spatiotemporal features with channel attention for vascular segmentation of X-ray coronary angiography (XCA) images. GDAN uses adaptive attention and geometric constraints, while DCTN uses deformation attention and geometry-aware decoder to achieve accurate aortic segmentation.

[0007] In summary, although the existing technologies have made some progress in the field of CoW vascular segmentation, there are still many shortcomings and challenges. First, most of the existing studies focus on a single imaging modality (such as CTA or MRA), ignoring the need for multimodal data in clinical practice; segmentation methods that rely only on a single modality are difficult to fully utilize the complementary information provided by different modalities, resulting in limited accuracy and robustness of the segmentation results. Second, existing methods usually fail to fully consider the image differences between the pre- and post-treatment stages; this neglect leads to errors or omissions in the annotation of key changes in the same vascular structure before and after treatment, which seriously affects the evaluation of the treatment effect. In particular, when evaluating the effectiveness of treatment, the lack of accurate capture of these changes may lead to clinical decision-making errors. In addition, when processing multimodal data, existing methods lack an effective mechanism to ensure cross-modal consistency, which may lead to inconsistent annotation results for the same vascular structure in different modalities, further affecting the accuracy of treatment effect evaluation. Finally, existing segmentation methods have low sensitivity in detecting and segmenting small vascular structures. Many models perform well when dealing with larger blood vessels, but do not perform well when dealing with small and complex vascular networks. These shortcomings limit the widespread use of existing technologies in actual clinical applications.

[0008] In view of this, this application is filed. Summary of the invention

[0009] The present invention provides a method and device for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles, which can at least partially improve the above-mentioned problems.

[0010] To achieve the above object, the present invention adopts the following technical solutions:

[0011] A method for ensuring temporal semantic consistency in multimodal segmentation of cerebral arterial circles, comprising:

[0012] The preoperative CT1 image and the postoperative MR2 image are obtained as the input of the time alignment module TAM, and the preoperative MR1 image and the postoperative CT2 image are generated to form image pairs CM-Pair and MC-Pair;

[0013] The image pairs CM-Pair and MC-Pair are input into the cross-temporal and cross-modal semantic consistency network CTMSC-Net to generate two fusion feature maps F cm and F mc , respectively, for the fusion feature map F cm and F mc Attention mechanism preprocessing and normalization preprocessing were performed to obtain segmentation results and MC-Pair features, where the preoperative CT1 image and the postoperative MR2 image were processed by an encoder based on 3DCNN, and the preoperative MR1 image and the postoperative CT2 image were processed by a Laplacian enhanced Fourier encoder LEFE;

[0014] Segmentation loss function L seg The segmentation results are compared with the true values ​​of the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image. The loss function L CMCL The segmentation results are processed computationally, and according to the computational results, the semantic consistency between different blood vessel category patterns is strengthened;

[0015] Segmentation loss function L seg The segmentation results are compared and calculated with the true values ​​of the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image, specifically:

[0016] The preoperative CT1 image, postoperative MR2 image, preoperative MR1 image, and postoperative CT2 image are combined with multi-class weighted cross entropy loss Lce and Dice coefficient loss to optimize the segmentation accuracy. The calculation formula is:

[0017]

[0018]

[0019]

[0020] in, is the segmentation accuracy after optimization, is the multi-class weighted cross entropy loss, is the Dice coefficient loss, Common region C i = the number of voxels with 1, is the number of categories, is the true value of the c-th class and the n-th pixel, is the predicted value of the c-th class and the n-th pixel.

[0021] The present invention also provides a device for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles, which comprises:

[0022] The TAM unit is used to obtain the preoperative CT1 image and the postoperative MR2 image as the input of the time alignment module TAM, generate the preoperative MR1 image and the postoperative CT2 image, and form the image pairs CM-Pair and MC-Pair;

[0023] CTMSC-Net unit, used to input the image pairs CM-Pair and MC-Pair into the cross-temporal and cross-modal semantic consistency network CTMSC-Net to generate two fusion feature maps F cm and F mc , respectively, for the fusion feature map F cm and F mc Attention mechanism preprocessing and normalization preprocessing were performed to obtain segmentation results and MC-Pair features. Preoperative CT1 images and postoperative MR2 images were processed by an encoder based on 3D CNN, and preoperative MR1 images and postoperative CT2 images were processed by a Laplacian enhanced Fourier encoder LEFE.

[0024] Loss function unit, used to segment the loss function L seg The segmentation results are compared with the true values ​​of the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image. The loss function L CMCL The segmentation results are processed computationally, and according to the computational results, the semantic consistency between different blood vessel category patterns is strengthened;

[0025] Segmentation loss function L seg The segmentation results are compared and calculated with the true values ​​of the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image, specifically:

[0026] The preoperative CT1 image, postoperative MR2 image, preoperative MR1 image, and postoperative CT2 image are combined with multi-class weighted cross entropy loss Lce and Dice coefficient loss to optimize the segmentation accuracy. The calculation formula is:

[0027]

[0028]

[0029]

[0030] in, is the segmentation accuracy after optimization, is the multi-class weighted cross entropy loss, is the Dice coefficient loss, Common region C i = the number of voxels with 1, is the number of categories, is the true value of the c-th class and the n-th pixel, is the predicted value of the c-th class and the n-th pixel.

[0031] In summary, the temporal semantic consistency ensuring method in multimodal segmentation of cerebral arterial rings proposed a new network, the Trans-temporal and Trans-modal Semantic Consistency Network (CTMSC-Net). This network is specifically designed to process multiple imaging modes simultaneously to provide efficient and accurate vascular structure segmentation, thereby facilitating a comprehensive analysis of the changes in vascular structures before and after treatment. First, in order to comprehensively capture the modal information of vascular changes, a temporal alignment module (TAM) was designed. This module provides input to the network by generating spatially aligned complementary modality pairs, such as CTA-MRA-Pair (CTA paired with MRA) and MRA-CTA-Pair (MRA paired with CTA). In order to accurately capture the changes in vascular structures at different scales before and after treatment, we introduced the Laplace Enhanced Fourier Encoder (LEFE). This encoder specifically enhances the vascular edge information to make the morphological changes of the blood vessels more prominent and easy to identify. In addition, in order to take advantage of the advantages of magnetic resonance angiography (MRA) in soft tissue imaging, a Trans-temporal and Trans-modal Attention Module (CCAM) was designed. This module enhances the ability to capture weak features in CTA-MRA-Pair imaging by utilizing the features of MRA-CTA-Pair, thereby improving the network's performance in processing low-contrast images. Finally, a new loss function CMCL is designed to strengthen the semantic consistency between different vascular category patterns. This improvement improves the accuracy of the network's vascular structure segmentation before and after treatment (i.e., untreated vascular structures). BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a flow chart of a method for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles provided by the first embodiment of the present invention;

[0033] Figure 2 It is a network diagram of CTMSC-Net of the method for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles provided by the first embodiment of the present invention;

[0034] Figure 3 is a structural diagram of a time alignment module (TAM) of a method for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles provided by a first embodiment of the present invention;

[0035] Figure 4 It is a structural diagram of a Laplace enhanced Fourier encoder (LEFE) of a method for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles provided by a first embodiment of the present invention;

[0036] Figure 5 It is a comparison diagram of the model of the method for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery ring provided in the first embodiment of the present invention and other models, wherein Figure (1) (3) (5) (7) (9) (11) (13) (15) (17) are preoperative CTA images, Figure (1) is a CTA label image, Figure (3) is CTMSC-Net: CTA image, Figure (5) is UNet: CTA image, Figure (7) is UNet++: CTA image, Figure (9) is VNet: CTA image, Figure (11) is UNETR: CTA image, Figure (13) Swin_UNETR: CTA image, Figure (15) SegResNetVAE: C TA image, Figure (17) CSNet3D: CTA image, Figure (2) (4) (6) (8) (10) (12) (14) (16) (18) are postoperative MRA images, Figure (2) is the MAR label image, Figure (4) is CTMSC-Net: MAR image, Figure (6) is UNet: MAR image, Figure (8) is UNet++: MRA image, Figure (10) is VNet: MRA image, Figure (12) is UNETR: MRA image, Figure (14) Swin_UNETR: MRA image, Figure (16) SegResNetVAE: MRA image, Figure (18) CSNet3D: MRA image;

[0037] Figure 6 It is a module schematic diagram of a device for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles provided in the second embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0039] refer to Figure 1 , Figure 2 As shown, the first embodiment of the present invention discloses a method for ensuring temporal semantic consistency in multimodal segmentation of a cerebral artery circle, which can be executed by a device for ensuring temporal semantic consistency in multimodal segmentation of a cerebral artery circle (hereinafter referred to as the ensuring device), and in particular, executed by one or more processors in the ensuring device to implement the following method:

[0040] S101, obtaining a preoperative CT1 image and a postoperative MR2 image as inputs of a time alignment module TAM, generating a preoperative MR1 image and a postoperative CT2 image, and forming image pairs CM-Pair and MC-Pair;

[0041] Specifically, step S101 includes: acquiring a preoperative CT1 image and a postoperative MR2 image as inputs of a time alignment module TAM;

[0042] Use the Gaussian filter of the time alignment module TAM to enhance the edge features of the preoperative CT1 image and the postoperative MR2 image to generate enhanced images CT1' and MR2';

[0043] The spatial alignment is performed through a preset registration model. During the registration process, the Euler 3D transformation is used for preliminary alignment, and the Mattes mutual information metric is used as the guide for gradient descent optimization algorithm for fine alignment.

[0044] Image resampling and alignment via linear interpolation;

[0045] The pre-trained style transfer network uses the aligned images to generate pre-operative MR1 images and post-operative CT2 images with complementary styles, wherein the style transfer network is based on the CycleGAN network and is trained with CTA images as input and MRA images as labels;

[0046] The preoperative CT1 image, postoperative MR2 image, preoperative MR1 image and postoperative CT2 image are input into the registration model for alignment to generate spatially aligned and style-consistent image pairs CM-Pair and MC-Pair.

[0047] In this embodiment, Python is adopted as the main programming language and the Pytorch deep learning framework is used. Figure 2In the paper, the architecture of the Cross-temporal and Cross-modal Semantic Consistency Network (CTMSC-Net) is presented. First, the preoperative CT1 image and the postoperative MR2 image are used as the input of the Temporal Alignment Module (TAM) to generate the preoperative MR1 and postoperative CT2 modalities, forming two pairs of images: CM-Pair and MC-Pair.

[0048] Among them, the time alignment module (TAM) is as follows Figure 3 As shown in the figure, it is used to solve the differences in imaging style and spatial positioning between CTA and MRA images, so as to achieve spatial alignment and style consistency of images. First, TAM uses Gaussian filters to enhance the edge features of CTA and MRA images to generate enhanced images CT1' and MR2'. Then, these images are spatially aligned through the registration model. The registration process uses Euler 3D transform for preliminary alignment and fine registration through a gradient descent optimization algorithm guided by the Mattes mutual information metric. The process adopts a multi-resolution strategy to improve efficiency and accuracy, and finally performs accurate image resampling and alignment through linear interpolation. Next, the pre-trained style transfer network uses these aligned images to generate images MR1 ​​and CT2 with complementary styles. The style transfer network is based on CycleGAN, which can achieve bidirectional style transfer and is trained with CTA images as input and MRA images as labels. Finally, the original image and the generated image are aligned again through the registration model to ensure spatial consistency under all modalities. Through TAM, spatially aligned and style-consistent image pairs (CM-Pair and MC-Pair) are generated, providing standardized input for CTMSC-Net.

[0049] S102, inputting the image pairs CM-Pair and MC-Pair into the cross-temporal and cross-modal semantic consistency network CTMSC-Net to generate two fusion feature maps F cm and F mc , respectively, for the fusion feature map F cm and F mc Attention mechanism preprocessing and normalization preprocessing were performed to obtain segmentation results and MC-Pair features. Preoperative CT1 images and postoperative MR2 images were processed by an encoder based on 3D CNN, and preoperative MR1 images and postoperative CT2 images were processed by a Laplacian enhanced Fourier encoder LEFE.

[0050] Specifically, step S102 includes: input data x passes through two independent 3D convolution blocks to generate data x1 and x2 respectively;

[0051] Perform batch normalization and ReLU activation on data x1 to generate data x3;

[0052] The data x3 is divided into two parts according to a predefined ratio θ, and processed by the same frequency domain units FDUs to obtain data x3a and x3b, and the data x3a and x3b are combined to form data x4;

[0053] Optimize data x4 through a 1x1 convolution layer to generate data x5;

[0054] Add data x5 back to data x2 to get the final output data x final , generate multi-scale feature maps.

[0055] The cross-temporal and cross-modal attention module CCAM in the cross-temporal and cross-modal semantic consistency network CTMSC-Net is used to preprocess the multi-scale feature maps processed by the 3D CNN-based encoder and the Laplacian enhanced Fourier encoder LEFE to generate two fused feature maps F cm and F mc , specifically:

[0056] The high-level features of preoperative CT1 image, postoperative MR2 image, preoperative MR1 image and postoperative CT2 image are extracted from the encoder and input into the cross-temporal and cross-modal attention module CCAM, where these features retain spatial information through position embedding and are converted into linear sequences through four linear projection layers;

[0057] For the image pair CM-Pair, the features of the preoperative CT1 image and the preoperative MR1 image are alternately arranged to form a fusion feature map F cm ;

[0058] For the image pair MC-Pair, the features of the postoperative MR2 image and the postoperative CT2 image are alternately arranged to form a fusion feature map F mc .

[0059] Use multi-head attention mechanism to enhance the fusion feature map F cm , where the fusion feature map F cm As query Q and value V, fusion feature map F mc As the key K, the attention mechanism is calculated as:

[0060]

[0061] in, is the calculation result of the attention mechanism, is the normalization function, is the transpose operation, is the dimension of the key vector;

[0062] The enhanced attention map is combined with the fusion feature map F cm Element-wise multiplication of and added back to the fusion feature map Fcm middle;

[0063] Linearize the features through the linear projection layer to generate an enhanced feature matrix F cm ′, and get the segmentation result.

[0064] The fused feature map F mc Restore to original dimension;

[0065] And the restored fusion feature map F mc Perform 3D convolution and batch normalization to obtain MC-Pair features.

[0066] In this embodiment, CTMSC-Net takes CM-Pair and MC-Pair as input. The image pairs are processed through different paths: the original images (CT1 and MR2) are processed by the 3D CNN-based encoder, and the generated images (MR1 and CT2) are processed by the Laplacian Enhanced Fourier Encoder (LEFE) to generate multi-scale feature maps. Then, the Cross-temporal Cross-modal Attention Module (CCAM) is applied to the feature maps of the fourth stage to generate two fused feature maps F cm and F mc。 The multi-head attention mechanism is used to pass F mc Enhanced F cm , generate the improved feature map F cm ′. Finally, F cm ′ and F mc The segmentation results are obtained through two 3D U-Net decoders.

[0067] Specifically, the main structure of the Laplace enhanced Fourier encoder (LEFE) is as follows Figure 4 As shown in the figure. At the beginning of the process, the input data x passes through two independent 3D convolution blocks to generate x1 and x2 respectively. Then x1 is batch normalized and ReLU activated to generate x3. Next, x3 is split into two parts according to a predefined ratio θ and processed by the same frequency domain units (FDUs) to obtain x3a and x3b. These results are combined to form x4 and further optimized through a 1x1 convolution layer to generate x5, which is then added back to x2 to obtain the final output x final In the frequency domain module, the features are transformed into the frequency domain via Fourier transform and 3D Laplacian to obtain the real and imaginary parts a+bi∈C. These parts a and b are stacked and input to the convolutional layer, followed by batch normalization and ReLU. The output is then split into two parts, the real and imaginary parts a′ and b′, ​​and the features are then transformed back to the spatial domain via inverse Fourier transform.

[0068] In order to take advantage of the high resolution of MRA in soft tissue imaging, a cross-temporal and cross-modal attention module (CCAM) was developed. This module uses the strong semantic features of MRA to enhance the model's ability to capture CTA image features, thereby improving the segmentation ability of CTA. The design of the CCAM module is as follows: Figure 3 As shown in the dashed box in . In this module, high-level features extracted from four different encoders are input to the CCAM module. These features retain spatial information through position embedding and are converted into linear sequences through four linear projection layers. For CM-Pair, the features of CT1 and MR1 are alternately arranged to form a feature matrix F cm ; Similarly, the same method is used to construct the feature matrix F of MC-Pair mc Next, we use a multi-head attention mechanism to enhance F cm , where F cm As query (Q) and value (V), F mc As the key (K). The attention mechanism is calculated as follows:

[0069]

[0070] The generated attention map is consistent with F cm Multiply element-wise and add back to F cm The features are then linearized through a linear projection layer to generate an enhanced feature matrix F cm ′. At the same time, F mc Restored to the original dimension and processed by 3D convolution and batch normalization. Enhanced F cm ′ and the processed F mc It is then passed to the respective decoder.

[0071] S103, segmentation loss function L seg The segmentation results are compared with the true values ​​of the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image. The loss function L CMCL The segmentation results are processed computationally, and based on the computational results, the semantic consistency between different vascular category patterns is enhanced.

[0072] Specifically, step S103 includes: optimizing the segmentation accuracy by combining the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image with the multi-class weighted cross entropy loss Lce and the Dice coefficient loss, and the calculation formula is:

[0073]

[0074]

[0075]

[0076] in, is the segmentation accuracy after optimization, is the multi-class weighted cross entropy loss, is the Dice coefficient loss, Common region C i = the number of voxels with 1, is the number of categories, is the true value of the c-th class and the n-th pixel, is the predicted value of the c-th class and the n-th pixel.

[0077] The cross-temporal and cross-modal attention module CCAM is based on the common region C i The segmentation results are processed, where the common area C i It consists of areas with consistent vascular classification in the two imaging methods. The formula for the common area is:

[0078]

[0079] in, is the true value of the i-th voxel in the A-th CTA image, is the true value of the i-th voxel in the A-th MRA image;

[0080] After defining the consistent regions, the squared Euclidean distance was used to quantify the difference between the segmentation outputs of CTA and MRA images at the voxel level, calculated as:

[0081]

[0082] in, is the predicted value of the i-th voxel in the A-th CTA image, is the predicted value of the i-th voxel in the A-th MRA image;

[0083] By adding the difference between all matching voxels And apply the consistent region mask as the weight to calculate the loss function L CMCL , the calculation formula is:

[0084]

[0085] The overall loss function is obtained, and according to the calculation result of the overall loss function, the semantic consistency between different blood vessel category patterns is strengthened. The overall loss function formula is:

[0086]

[0087] in, is a hyperparameter, , , , is the segmentation loss of CT images, is the segmentation loss of MR images.

[0088] In this embodiment, L seg It is calculated by comparing the segmentation results of CTA and MRA with their respective true values, while L CMCL The segmentation results of CTA and MRA images are used to calculate the whole network. The whole network is trained end-to-end by statistical gradient descent and back propagation.

[0089] Specifically, the loss function includes the segmentation loss L seg , used to optimize segmentation accuracy, and L CMCL , designed to ensure cross-modal consistency. Among them, the segmentation loss L seg : CTA and MRA combine multi-class weighted cross entropy loss Lce and Dice coefficient loss to optimize segmentation accuracy. The formula is as follows:

[0090]

[0091]

[0092]

[0093] in is the true value of the c-th class and the n-th pixel, is the predicted value.

[0094] CMCL is based on the common region C i , which consists of areas with consistent vascular classification in both imaging modalities. The common area is defined as follows:

[0095]

[0096] in and are the true values ​​of the i-th voxel in CTA and MRA images, respectively.

[0097] After defining the consistent regions, we quantified the differences between CTA and MRA segmentation outputs at the voxel level using squared Euclidean distance, calculated as follows:

[0098]

[0099] in and is the predicted value of the ith voxel in CTA and MRA.

[0100] The overall CMCL is calculated by adding these squared differences across all matching voxels and applying the consistent region mask as a weight, as follows:

[0101]

[0102] Where N represents C i = the number of voxels with 1.

[0103] The overall loss function is as follows:

[0104]

[0105] Hyperparameters Set to 5, Set to 1, Set to 0.01.

[0106] In this embodiment, Figure 5 The segmentation results of our method and some existing methods are shown, including pre-treatment CTA and post-treatment MRA images. Box (a) shows the segmentation results of untreated small vessels in pre- and post-operative imaging modes. Other models focusing on a single imaging mode show errors or omissions in the same location, as shown in box (a) in (5)-(18). These models also incorrectly segmented the vessels into different categories, as shown in box (c), highlighting their limitations. In contrast, our model maintains consistent segmentation in the same location (box (a) in (3)-(4), demonstrating its ability to maintain consistency across P&P-T imaging modes. In addition, some small vessels are blocked before surgery and reconnected after surgery, as shown in box (b) in (1)-(2). Before treatment, the UNet, UNet++, UNETR, and Swin_UNETR models incorrectly segmented the blocked vessels into connected structures (box (b) in (5), (7), (11), and (13). However, after treatment, these blocked vessels reconnected, but these models failed to segment these reconnected vessels (6), (8), (12), and (14) in boxes (b). These errors affect the clinical assessment of treatment outcomes and may lead to errors in diagnosis and treatment decisions. The present model accurately segmented these vessels (3) blocked before treatment (box (b) and the connected vessels (4) after treatment (box (b), demonstrating its effectiveness in accurately tracking changes across imaging modalities.

[0107] In summary, the method for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery rings aims to solve several key problems in the field of CoW vascular segmentation in the prior art. Specifically, existing methods mainly focus on a single imaging modality (such as CTA or MRA), and fail to fully utilize the complementary information of multimodal imaging data, resulting in limited accuracy and robustness of segmentation results. Second, the present invention effectively integrates multimodal data by introducing cross-temporal alignment and attention mechanisms, thereby improving the accuracy and robustness of segmentation results.

[0108] Secondly, the existing methods fail to accurately capture the key changes in vascular structures when processing image changes before and after treatment, resulting in errors or omissions in the annotation of the same vascular structures at different treatment stages, which seriously affects the evaluation of treatment effects. In order to accurately capture these changes, the present invention develops a temporal alignment module (TAM) and a cross-temporal and cross-modal attention module (CCAM) to ensure accurate evaluation of treatment effects.

[0109] In addition, existing segmentation methods have low sensitivity in detecting and segmenting small vascular structures, especially when dealing with complex vascular networks. To this end, the present invention introduces the Laplacian Enhanced Fourier Encoder (LEFE), which significantly improves the detection and segmentation capabilities of small and complex vascular structures.

[0110] Finally, existing methods lack an effective mechanism to ensure cross-modal consistency, resulting in inconsistent annotation results for the same vascular structure in different modalities. The present invention designs a new loss function to enforce semantic consistency in different modalities, thereby improving the consistency and accuracy of cross-modal data processing. By solving the above technical problems, the present invention provides an efficient, accurate and consistent CoW vascular segmentation method to meet the needs of clinical applications, improve treatment effect evaluation, and provide doctors with more reliable auxiliary diagnostic tools. The above content demonstrates the advantages of the proposed model in segmenting blood vessels, including the ability to maintain consistency in normal blood vessel segmentation and capture changes in blocked blood vessels, thereby improving the accuracy of clinical postoperative effect evaluation.

[0111] See also Figure 6 The second embodiment of the present invention further provides a device for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles, which comprises:

[0112] The TAM unit 201 is used to obtain the preoperative CT1 image and the postoperative MR2 image as the input of the time alignment module TAM, generate the preoperative MR1 image and the postoperative CT2 image, and form the image pairs CM-Pair and MC-Pair;

[0113] CTMSC-Net unit 202 is used to input the image pairs CM-Pair and MC-Pair into the cross-temporal and cross-modal semantic consistency network CTMSC-Net to generate two fusion feature maps F cm and F mc , respectively, for the fusion feature map F cm and F mcAttention mechanism preprocessing and normalization preprocessing were performed to obtain segmentation results and MC-Pair features. Preoperative CT1 images and postoperative MR2 images were processed by an encoder based on 3D CNN, and preoperative MR1 images and postoperative CT2 images were processed by a Laplacian enhanced Fourier encoder LEFE.

[0114] Loss function unit 203, used to segment the loss function L seg The segmentation results are compared with the true values ​​of the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image. The loss function L CMCL The segmentation results are processed computationally, and based on the computational results, the semantic consistency between different vascular category patterns is enhanced.

[0115] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for ensuring temporal semantic consistency in multimodal segmentation of cerebral arterial circles, characterized in that: include: The preoperative CT1 image and the postoperative MR2 image are obtained as the input of the time alignment module TAM, and the preoperative MR1 image and the postoperative CT2 image are generated to form image pairs CM-Pair and MC-Pair; The image pairs CM-Pair and MC-Pair are input into the cross-temporal and cross-modal semantic consistency network CTMSC-Net to generate two fusion feature maps F cm and F mc , respectively, for the fusion feature map F cm and F mc Attention mechanism preprocessing and normalization preprocessing were performed to obtain segmentation results and MC-Pair features. Preoperative CT1 images and postoperative MR2 images were processed by an encoder based on 3D CNN, and preoperative MR1 images and postoperative CT2 images were processed by a Laplacian enhanced Fourier encoder LEFE. Segmentation loss function L seg The segmentation results are compared with the true values ​​of the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image. The loss function L CMCL The segmentation results are processed computationally, and according to the computational results, the semantic consistency between different blood vessel category patterns is strengthened; Segmentation loss function L seg The segmentation results are compared and calculated with the true values ​​of the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image, specifically: The preoperative CT1 image, postoperative MR2 image, preoperative MR1 image, and postoperative CT2 image are combined with multi-class weighted cross entropy loss Lce and Dice coefficient loss to optimize the segmentation accuracy. The calculation formula is: in, is the segmentation accuracy after optimization, is the multi-class weighted cross entropy loss, is the Dice coefficient loss, Common region C i = the number of voxels with 1, is the number of categories, is the true value of the c-th class and the n-th pixel, is the predicted value of the c-th class and the n-th pixel; The fusion feature map F cm and F mc Perform attention mechanism preprocessing and normalization preprocessing to obtain segmentation results and MC-Pair features, specifically: Use multi-head attention mechanism to enhance the fusion feature map F cm , where the fusion feature map F cm As query Q and value V, fusion feature map F mc As the key K, the attention mechanism is calculated as: in, is the calculation result of the attention mechanism, is the normalization function, is the transpose operation, is the dimension of the key vector; The enhanced attention map is combined with the fusion feature map F cm Element-wise multiplication of and added back to the fusion feature map F cm middle; Linearize the features through the linear projection layer to generate an enhanced feature matrix F cm ′, enhanced feature matrix F cm ′ and fusion feature map F mc The segmentation result is obtained through two 3D U-Net decoders; The fused feature map F mc Restore to original dimension; And the restored fusion feature map F mc Perform 3D convolution and batch normalization to obtain MC-Pair features; Loss function L CMCL The segmentation results are processed and the semantic consistency between different vascular category patterns is strengthened according to the calculation results. Specifically: The cross-temporal and cross-modal attention module CCAM is based on the common region C i The segmentation results are processed, where the common area C i It consists of areas with consistent vascular classification in both imaging methods. The formula for the common area is: in, is the true value of the i-th voxel in the A-th CTA image, is the true value of the i-th voxel in the A-th MRA image; After defining the common regions, the difference between the segmentation outputs of CTA and MRA images at the voxel level was quantified using the squared Euclidean distance, calculated as: in, is the predicted value of the i-th voxel in the A-th CTA image, is the predicted value of the i-th voxel in the A-th MRA image; By adding the difference between all matching voxels And apply the common region mask as weight to calculate the loss function L CMCL , the calculation formula is: The overall loss function is obtained, and according to the calculation result of the overall loss function, the semantic consistency between different blood vessel category patterns is strengthened. The overall loss function formula is: in, is a hyperparameter, , , , is the segmentation loss of CT images, is the segmentation loss of MR images.

2. The method for ensuring temporal semantic consistency in multimodal segmentation of cerebral arterial circles according to claim 1, characterized in that: The preoperative CT1 image and the postoperative MR2 image are obtained as the input of the time alignment module TAM, and the preoperative MR1 image and the postoperative CT2 image are generated to form the image pairs CM-Pair and MC-Pair, specifically: Obtain preoperative CT1 images and postoperative MR2 images as inputs of the time alignment module TAM; Use the Gaussian filter of the time alignment module TAM to enhance the edge features of the preoperative CT1 image and the postoperative MR2 image to generate enhanced images CT1' and MR2'; The spatial alignment is performed through a preset registration model. During the registration process, the Euler 3D transformation is used for preliminary alignment, and the Mattes mutual information metric is used as the guide for gradient descent optimization algorithm for fine alignment. Image resampling and alignment via linear interpolation; The pre-trained style transfer network uses the aligned images to generate pre-operative MR1 images and post-operative CT2 images with complementary styles, wherein the style transfer network is based on the CycleGAN network and is trained with CTA images as input and MRA images as labels; The preoperative CT1 image, postoperative MR2 image, preoperative MR1 image and postoperative CT2 image are input into the registration model for alignment to generate spatially aligned and style-consistent image pairs CM-Pair and MC-Pair.

3. The method for ensuring temporal semantic consistency in multimodal segmentation of cerebral arterial circles according to claim 1, characterized in that: The preoperative MR1 images and postoperative CT2 images were processed by the Laplacian enhanced Fourier encoder LEFE, specifically: The input data x passes through two independent 3D convolution blocks to generate data x1 and x2 respectively; Perform batch normalization and ReLU activation on data x1 to generate data x3; The data x3 is divided into two parts according to a predefined ratio θ, and processed by the same frequency domain units FDUs to obtain data x3a and x3b, and the data x3a and x3b are combined to form data x4; Optimize data x4 through a 1x1 convolution layer to generate data x5; Add data x5 back to data x2 to get the final output data x final , generate multi-scale feature maps.

4. The method for ensuring temporal semantic consistency in multimodal segmentation of cerebral arterial circles according to claim 1, characterized in that: The image pairs CM-Pair and MC-Pair are input into the cross-temporal and cross-modal semantic consistency network CTMSC-Net to generate two fusion feature maps F cm and F mc , specifically: The cross-temporal and cross-modal attention module CCAM in the cross-temporal and cross-modal semantic consistency network CTMSC-Net is used to preprocess the multi-scale feature maps processed by the 3D CNN-based encoder and the Laplacian enhanced Fourier encoder LEFE to generate two fused feature maps F cm and F mc , specifically: The high-level features of preoperative CT1 image, postoperative MR2 image, preoperative MR1 image and postoperative CT2 image are extracted from the encoder and input into the cross-temporal and cross-modal attention module CCAM, where these features retain spatial information through position embedding and are converted into linear sequences through four linear projection layers; For the image pair CM-Pair, the features of the preoperative CT1 image and the preoperative MR1 image are alternately arranged to form a fusion feature map F cm ; For the image pair MC-Pair, the features of the postoperative MR2 image and the postoperative CT2 image are alternately arranged to form a fusion feature map F mc .

5. A device for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles, used to implement the method for ensuring temporal semantic consistency in multimodal segmentation of cerebral artery circles as claimed in claim 1, characterized in that: include: The TAM unit is used to obtain the preoperative CT1 image and the postoperative MR2 image as the input of the time alignment module TAM, generate the preoperative MR1 image and the postoperative CT2 image, and form the image pairs CM-Pair and MC-Pair; The CTMSC-Net unit is used to input the image pairs CM-Pair and MC-Pair into the cross-temporal and cross-modal semantic consistency network CTMSC-Net to generate two fusion feature maps F cm and F mc , respectively, for the fusion feature map F cm and F mc Attention mechanism preprocessing and normalization preprocessing were performed to obtain segmentation results and MC-Pair features. Preoperative CT1 images and postoperative MR2 images were processed by an encoder based on 3D CNN, and preoperative MR1 images and postoperative CT2 images were processed by a Laplacian enhanced Fourier encoder LEFE. Loss function unit, used to segment the loss function L seg The segmentation results are compared with the true values ​​of the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image. The loss function L CMCL The segmentation results are processed computationally, and according to the computational results, the semantic consistency between different blood vessel category patterns is strengthened; Segmentation loss function L seg The segmentation results are compared and calculated with the true values ​​of the preoperative CT1 image, the postoperative MR2 image, the preoperative MR1 image, and the postoperative CT2 image, specifically: The preoperative CT1 image, postoperative MR2 image, preoperative MR1 image, and postoperative CT2 image are combined with multi-class weighted cross entropy loss Lce and Dice coefficient loss to optimize the segmentation accuracy. The calculation formula is: in, is the segmentation accuracy after optimization, is the multi-class weighted cross entropy loss, is the Dice coefficient loss, Common region C i = the number of voxels with 1, is the number of categories, is the true value of the c-th class and the n-th pixel, is the predicted value of the c-th class and the n-th pixel.

Citation Information

Patent Citations

  • Intelligent terminal contactless interaction method

    CN102929547A

  • Deep learning-based child posterior fossa tumor diagnosis method

    CN117198511A