Multi-phase heart dynamic magnetic resonance imaging sequence segmentation method
By introducing dual attention modules and multi-phase processing into the TransUNet model, the problem of low accuracy and high computing resources in cardiac biventricular and myocardial segmentation is solved, and efficient cardiac dynamic magnetic resonance imaging sequence segmentation is achieved, providing high accuracy and Fast segmentation results.
Patent Information
- Application Number
- CN202410642966.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
AI Technical Summary
Existing technologies have problems with low accuracy in biventricular and myocardial segmentation. The three-dimensional deep learning network has high computing resources and slow speed, and a single segmentation network cannot fully describe the dynamic anatomical structure of the heart.
An improved 2.5D cardiac dynamic magnetic resonance imaging sequence segmentation method is adopted. By introducing a dual attention module into the TransUNet model and dividing the images into systolic and diastolic phases for separate processing, multiple TransUNet networks are used to process image sequences in different directions. For segmentation, combine position attention module and channel attention module to improve segmentation accuracy.
It significantly reduces the computing resource requirements, maintains the high accuracy of the three-dimensional segmentation network, improves the algorithm's operating efficiency and response speed, and provides a high-precision solution for segmenting cardiac biventricular and myocardial three-dimensional images.
Smart Images

Figure CN118608532A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of medical image segmentation, and in particular relates to a segmentation method for a multi-phase biventricular and myocardial cardiac dynamic magnetic resonance imaging sequence based on an improved TransUNet 2.5D network. Background Art
[0002] Traditional cardiac imaging segmentation methods mainly rely on manual feature extraction and simple image processing techniques, which are often time-consuming and inaccurate. In recent years, deep learning techniques, especially convolutional neural networks (CNNs), have made significant progress in the field of medical image analysis. However, CNNs have limitations in handling long-range dependencies and integrating global information.
[0003] As an effective global information processing architecture, Transformer has achieved great success in the field of natural language processing (NLP) and has gradually been introduced into medical image analysis. However, directly applying Transformer to 3D medical image analysis has the problem of high computing resources, and based on 2D image segmentation, it has the disadvantage of insufficient segmentation accuracy.
[0004] The Chinese patent application with publication number CN116228791A proposes a whole heart segmentation method for CT images based on improved TransUNet. First, the data set is preprocessed, and then an image segmentation model is built. The TransUNet structure is built as a segmentation network, and the segmentation network includes an encoder, a decoder, and a classifier; the decoder sends the output fused high-resolution image features to the axial attention module to extract global information and better capture and utilize local information to reduce computational complexity; the shallow semantic information is further fused through jump connections and the upsampling results are input into the classifier through the decoder; the classification of each pixel is implemented in the classifier to achieve the final segmentation; the preprocessed data is sent to the segmentation model, and the encoder and decoder parameters are shared between the support set and the query set to achieve few-sample meta-learning only for the classifier, and finally the supervision loss and evaluation indicators of the true label and segmentation result are calculated. The multi-classification task of whole heart segmentation is converted into multiple binary classification tasks to reduce complexity.
[0005] The existing technology has the following main defects: the accuracy of using a two-dimensional deep learning network to segment the heart's biventricular and myocardial segments is lower than that of a three-dimensional deep learning network, and the three-dimensional deep learning network requires high computing resources and is slow. In addition, the heart is a dynamic organ, divided into systolic and diastolic phases, and the anatomical characteristics of the heart in different phases are not exactly the same. Using a single segmentation network to segment a single phase has the problem that the segmentation results cannot fully describe the structure of the heart's biventricular and myocardial segments. Summary of the invention
[0006] In view of the above technical problems, the present invention discloses a segmentation method for multi-phase cardiac dynamic magnetic resonance imaging sequence. A 2.5D cardiac biventricular and myocardial segmentation algorithm is proposed, and the TransUNet model structure is further improved, and an innovative dual attention module is added to further improve the segmentation accuracy of the cardiac biventricular and myocardial while reducing the computing resource usage.
[0007] To achieve the above object, the technical solution adopted by the present invention is: a segmentation method for a multi-phase cardiac dynamic magnetic resonance imaging sequence, comprising the following steps:
[0008] Step 1: first resample the original image to be isotropic, and then crop the isotropic image (preferably, crop it to 192*224*64, which is the maximum size that meets the requirements and can ensure the best segmentation effect; a smaller size that is an integer multiple of 32 also meets the requirements, but the effect is slightly worse, or filling it to a larger size is also possible, but it consumes more computing resources.
[0009] Step 2: Divide the cropped images into a systolic group and a diastolic group, and perform the following operations on each group of cropped images:
[0010] The cropped image was adjusted to the window width and window position of the heart display and then normalized.
[0011] The normalized images were converted into transverse, sagittal and coronal sequences respectively.
[0012] The three sequence images of transverse sequence, sagittal sequence and coronal sequence are sent to different TransUNet networks for segmentation, and the segmentation probability map results of three different directions of transverse sequence, sagittal sequence and coronal sequence are obtained. Each TransUNet network processes multiple consecutive images of a sequence. The three different TransUNet networks are trained using three different sequence images respectively. The three models have the same structure but different parameters of each model, and can only segment the specified sequence.
[0013] The segmentation probability map results of three different directions are integrated using different weights for each type of probability map to obtain the final segmentation probability map. The weight of the segmentation result probability map of the sagittal sequence image is higher than that of the transverse sequence and coronal sequence.
[0014] The integrated segmentation probability map result is extracted, the maximum probability category of each pixel is taken as the final category of the pixel, and the final segmentation result is obtained.
[0015] Improved TransUNet network: A dual attention module DA-Block is integrated before the Transformer layer and inside the encoder-decoder jump connection; the dual attention module includes: position attention module PAM, channel attention module CAM;
[0016] DA-Block obtains the input feature and scales the number of channels to obtain α 1 , and then through PAM feature extraction and convolution, we get α^ 1 ;
[0017] Get the input feature scaling channel number to get α 2 , and then through CAM feature extraction and convolution, we get α^ 2 ;
[0018] The output results of the two-layer attention module are aggregated and summed, and the number of channels is restored in a convolution to obtain the output. Preferably, the number of channels is scaled to 1 / 16 to ensure the effect while minimizing the computational complexity.
[0019] Specifically, part of DA-Block is based on PAM. The first component obtains the input features and performs a convolution, scaling the number of channels to 1 / 16 to obtain α 1 This reduces the complexity of PAM feature extraction. Afterwards, through PAM feature extraction and convolution, we get α^ 1 . Use the following formula:
[0020] α 1 =Conv(input)
[0021] α^ 1 =Conv(PAM(α 1 ))
[0022] The other part is based on CAM, which obtains the input features and performs a convolution, scaling the number of channels to 1 / 16 to obtain α 2 This reduces the complexity of CAM feature extraction. After CAM feature extraction and convolution, α^ 2 , using the following formula:
[0023] α 2 =Conv(input)
[0024] α^ 2 =Conv(CAM(α 2 ))
[0025] Extracting α^ from the dual attention module 1 and α^ 2Finally, the output is obtained by aggregating and summing the output results of the two-layer attention module and restoring the number of channels in one convolution.
[0026] output = Conv(α^ 1 +α^ 2 )
[0027] This sophisticated dual attention module architecture seamlessly integrates the strengths of PAM and CAM to improve feature extraction, making it a key component to enhance the overall performance of the model.
[0028] Furthermore, after preliminary comparative experiments, the weight values were determined to be 0.4-0.6 for sagittal sequence, 0.2-0.3 for transverse sequence, and 0.2-0.3 for coronal sequence. The segmentation result probability map of the sagittal sequence image with the clearest image was set to the highest weight, so that the segmentation result was more accurate.
[0029] Furthermore, for the segmentation probability map results in different directions, each TransUNet network obtains four segmentation probability maps, which respectively represent the background probability, left ventricle probability, right ventricle probability, and myocardial probability of each pixel.
[0030] Furthermore, the composition and calculation process of the two modules PAM and CAM are described in detail below:
[0031] PAM can capture the spatial dependency between any two positions in the feature map and update specific features by weighted sum of all position features. The weight is determined by the feature similarity between the two positions. Therefore, PAM can effectively extract meaningful spatial features.
[0032] PAM initially obtains a local feature, represented as A∈R C×H×W (C stands for channel, H stands for height, and W stands for width), where R is the type of element in the tensor, i.e. real number. Then, we input A into the convolutional layer and get three new feature maps, i.e. B, C, and D, each with a size of R. C×H×W Next, we reshape B and C into R C×N , where N = H × W represents the number of pixels. We perform matrix multiplication between the transpose of C and B, and then use softmax to compute the spatial attention map S∈R N ×N .
[0033]
[0034] Here, S ji represents the influence of the i-th position on the j-th position, B i represents the i-th position element in the feature map B, C jrepresents the jth position element in the feature map C. Then, we reshape the matrix D into R C×N . Perform a matrix multiplication between D and the transpose of S, then reshape the result into R C×H×W Finally, we multiply it by the parameter λ and perform element-wise summation with the feature A to get the final output E∈R C×H×W :
[0035]
[0036] The weight λ is initialized to 0 and learned step by step. i represents the i-th position element in the feature map D, A j represents the jth position element in the original input. PAM has strong spatial feature extraction capabilities. Since E is a weighted sum of all position features and original features, it has global context features and aggregates context based on the spatial attention map. This ensures that position features are effectively extracted while maintaining global context information.
[0037] CAM is good at extracting channel features. Different from PAM, we directly convert the original features A∈R C×H×W Reshape to R C×N , and then perform matrix multiplication between A and its transpose. Subsequently, we apply a softmax layer to obtain channel attention Figure X ∈R C×C :
[0038]
[0039] Here, x ji The effect of the i-th channel on the j-th channel is measured. Next, we perform a matrix multiplication between the transpose of X and A, reshaping the result into R C×H×W We then multiply the result by the scale parameter β and perform an element-wise summation operation on A to obtain the final output E∈R C×H×W :
[0040]
[0041] Like λ, β is learned through training. Similar to PAM, when extracting channel features in CAM, the final feature of each channel is the weighted sum of all channels and the original features, which makes CAM have powerful channel feature extraction capabilities.
[0042] The present invention has the following beneficial effects: The present invention significantly reduces the demand for computing resources by optimizing the algorithm structure and calculation process. The present invention proposes a TransUNet 2.5D segmentation network structure, which significantly reduces the number of calculations and parameters compared to the three-dimensional segmentation network, thereby greatly reducing the load on memory and processors. The present invention not only maintains high segmentation accuracy comparable to the three-dimensional segmentation network, but also improves the operating efficiency and response speed of the algorithm. This improvement provides a feasible high-precision three-dimensional image segmentation solution for biventricular and myocardial heart for in-depth research on the heart.
[0043] 1. The present invention solves the problem of high resource occupation of three-dimensional segmentation network and low segmentation accuracy of two-dimensional segmentation network by using three networks to segment orthogonal three-section images of cardiac dynamic magnetic resonance imaging sequence in parallel.
[0044] 2. The present invention divides the cardiac systolic and diastolic images, and separately segments the images of each phase. The two groups of segmentation results obtained are the segmentation results of cardiac dynamic magnetic resonance imaging. This method solves the problem that the segmentation accuracy results of cardiac dynamic magnetic resonance images of a single phase using a single segmentation network deviate from the actual situation.
[0045] 3. The method of adding a dual attention module to the part between the encoder CNN layer and the Transformer layer and the jump connection part of the CNN layer at different downsampling stages further improves the segmentation accuracy of the TransUNet network. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 This is a diagram of the TransUNet network structure for improving the segmentation method of the multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0047] Figure 2 This is a structural diagram of a dual attention module of a segmentation method for a multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0048] Figure 3 It is a position attention module for the segmentation method of the multi-phase cardiac dynamic magnetic resonance imaging sequence of an embodiment of the present invention.
[0049] Figure 4 A channel attention module for a segmentation method of a multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0050] Figure 5 It is a schematic diagram of the diastolic sagittal position of the segmentation method of the multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0051] Figure 6It is a schematic diagram of the diastolic transverse section of a segmentation method of a multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0052] Figure 7 It is a schematic diagram of the diastolic coronary position of the segmentation method of the multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0053] Figure 8 It is a schematic diagram of the sagittal position of the systolic phase of the segmentation method of the multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0054] Fig. 9 It is a schematic diagram of the transverse section of the systolic phase of a segmentation method of a multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0055] Fig.10 It is a schematic diagram of the coronary position of the systolic period of the segmentation method of the multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0056] Fig.11 It is a schematic diagram of diastolic sagittal segmentation results of a segmentation method for a multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0057] Fig.12 It is a schematic diagram of diastolic transverse segmentation results of a segmentation method for a multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0058] Fig.13 It is a schematic diagram of the diastolic coronary segmentation result of the segmentation method of the multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0059] Fig.14 It is a schematic diagram of the systolic sagittal segmentation result of the segmentation method of the multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0060] Fig.15 It is a schematic diagram of systolic transverse segmentation results of a segmentation method for a multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention.
[0061] Fig.16 It is a schematic diagram of the segmentation result of the coronary segmentation during systole of the segmentation method of the multi-phase cardiac dynamic magnetic resonance imaging sequence according to an embodiment of the present invention. DETAILED DESCRIPTION
[0062] To facilitate understanding by those skilled in the art, the present invention is further described below in conjunction with embodiments and drawings.
[0063] U-Net has achieved great success in various medical image segmentation tasks. However, due to the inherent locality of convolution operations, U-Net often shows limitations in explicitly modeling long-range dependencies. Transformers designed for sequence-to-sequence prediction have emerged as an alternative architecture with an innate global self-attention mechanism, but may suffer from limited localization capabilities due to insufficient low-level details.
[0064] TransUNet used in the embodiments of the present invention is as follows: Figure 1 As shown in the figure, it has the advantages of both Transformers and U-Net and is a powerful alternative for medical image segmentation. On the one hand, Transformer encodes tokenized image patches from convolutional neural network (CNN) feature maps into input sequences that extract global context. On the other hand, the decoder upsamples the encoded features and then combines them with high-resolution CNN feature maps for accurate localization.
[0065] While Transformers excel at global feature extraction via the self-attention mechanism, they are inherently limited to unidirectional attention to positional attributes, thus ignoring the multifaceted feature perspective. On the other hand, the traditional U-Net architecture excels at local feature extraction but lacks comprehensive global up-down attention capabilities. To address these constraints, we integrate dual attention modules before the Transformer layer and inside the encoder-decoder skip connection to refine the feature map input of the Transformer, making the global feature extraction more detailed and precise. In addition, the dual attention module in the skip connection optimizes the features of the encoder output, facilitating the decoder to reconstruct more accurate feature maps. The dual attention module consists of two main parts: one is the position attention module (PAM) and the other is the channel attention module (CAM).
[0066] like Figure 2 As shown in Figure 1, the architecture of the dual attention module (DA-Block) is shown. This structure combines the position feature extraction capability of the position attention module (PAM) and the channel feature extraction capability of the channel attention module (CAM). In addition, when combined with the traditional CNN convolutional network, DA-Block can show superior feature extraction capabilities. DA-Block consists of two parts. The first part is mainly based on PAM. The first component obtains the input features and performs a convolution to scale the number of channels to 1 / 16 (or to 1 / 8, or 1 / 4) to obtain α 1 This reduces the complexity of PAM feature extraction. Afterwards, through PAM feature extraction and convolution, we get α^ 1 . Use the following formula:
[0067] α1 =Conv(input)
[0068] α^ 1 =Conv(PAM(α 1 ))
[0069] The second part is mainly based on CAM, which obtains the input features and performs a convolution, scaling the number of channels to 1 / 16 to obtain α 2 This reduces the complexity of CAM feature extraction. After CAM feature extraction and convolution, α^ 2 , using the following formula:
[0070] α 2 =Conv(input)
[0071] α^ 2 =Conv(CAM(α 2 ))
[0072] Extracting α^ from the two-layer attention module 1 and α^ 2 Finally, the output is obtained by aggregating and summing the output results of the two-layer attention module and restoring the number of channels in one convolution.
[0073] output = Conv(α^ 1 +α^ 2 )
[0074] This sophisticated dual attention module architecture seamlessly integrates the strengths of PAM and CAM to improve feature extraction, making it a key component to enhance the overall performance of the model.
[0075] The following is a detailed introduction to the composition and calculation process of the two modules PAM and CAM:
[0076] like Figure 3 As shown in Figure 1, PAM can capture the spatial dependency between any two positions in the feature map and update specific features by the weighted sum of all position features. The weight is determined by the feature similarity between the two positions. Therefore, PAM can effectively extract meaningful spatial features.
[0077] PAM initially obtains a local feature, represented as A∈R C×H×W (Where R is the type of element in the tensor, i.e. real number, C represents the channel, H represents the height, and W represents the width.) Then, we input A into the convolutional layer and obtain three new feature maps, i.e. B, C, and D, each with a size of R. C×H×W Next, we reshape B and C into R C×N, where N = H × W represents the number of pixels. We perform matrix multiplication between the transpose of C and B, and then use softmax to compute the spatial attention map S∈R N ×N .
[0078]
[0079] Here, S ji represents the influence of the i-th position on the j-th position, B i represents the i-th position element in the feature map B, C j represents the jth position element in the feature map C. Then, we reshape the matrix D into R C×N . Perform a matrix multiplication between D and the transpose of S, then reshape the result into R C×H×W Finally, we multiply it by the parameter α and perform element-wise summation with the feature A to get the final output E∈R C×H×W :
[0080]
[0081] The weight α is initialized to 0 and learned step by step. i represents the i-th position element in the feature map D, A j represents the jth position element in the original input. PAM has strong spatial feature extraction capabilities. Since E is a weighted sum of all position features and original features, it has global context features and aggregates context based on the spatial attention map. This ensures that position features are effectively extracted while maintaining global context information.
[0082] like Figure 4 As shown in Figure 2, this is CAM, which is good at extracting channel features. Different from PAM, we directly reshape the original feature A∈RC×H×W into RC×N, and then perform matrix multiplication between A and its transpose. Subsequently, we apply a softmax layer to obtain channel attention Figure X ∈RC×C:
[0083]
[0084] Here, x ji The influence of the i-th channel on the j-th channel is measured. Next, we perform matrix multiplication between the transpose of X and A, reshaping the result into RC×H×W. We then multiply the result by the scale parameter β and perform an element-wise sum operation on A to obtain the final output E∈RC×H×W:
[0085]
[0086] Like α, β is learned through training. Similar to PAM, when extracting channel features in CAM, the final feature of each channel is the weighted sum of all channels and the original features, which makes CAM have a strong channel feature extraction capability.
[0087] The specific segmentation process of the multi-phase cardiac dynamic magnetic resonance imaging sequence is as follows:
[0088] Step 1, the original image size is (216, 256, 8), Spacing is (1.5625, 1.5625, 10.0), first use the bilinear function to resample the image to isotropic, that is, Spacing is (1.5625, 1.5625, 1.5625), and then crop the image to 192*224*64. This size is the maximum size that meets the requirements and can ensure the best segmentation effect; a smaller size that is an integer multiple of 32 also meets the requirements, but the effect is slightly worse, or filling to a larger size is also possible, but it consumes more computing resources.
[0089] Bilinear function:
[0090]
[0091] Where y represents the ordinate of the target position, y2 represents the ordinate of point 2, y1 represents the ordinate of point 1, f(R1) represents the pixel value of point 1, and f(R2) represents the pixel value of point 2.
[0092] Step 1: Divide the images into systolic group and diastolic group, and perform the following operations on each group of images:
[0093] 1. Adjust the image to the window width and window position of the heart display, and perform z-score normalization on the image.
[0094] z-score function:
[0095]
[0096] Where μ represents the mean and σ represents the variance.
[0097] 2. Convert the images into transverse sequence, sagittal sequence, and coronal sequence, with image sizes of 192*64*224, 192*224*64, and 224*64*162 respectively.
[0098] Figure 5-10 These are the original images and processed images of the cardiac dynamic magnetic resonance imaging sequence.
[0099] 3. The cross-sectional sequence, sagittal sequence, and coronal sequence images are respectively sent to three different pre-trained improved TransUNet networks for segmentation. The three different TransUNet networks are trained using three different sequence images. The three models have the same structure but different parameters for each model, and can only segment the specified sequence. The softmax function is used to obtain the segmentation probability map results in three different directions. Each network obtains four segmentation probability maps, which respectively represent the background probability, left ventricle probability, right ventricle probability, and myocardial probability of each pixel.
[0100] Softmax function:
[0101]
[0102] 4. The segmentation probability map results of three different directions are integrated according to the probability map of each category using different weights to obtain the final segmentation probability map. After preliminary comparative experiments, the weight values are determined to be 0.4 for sagittal, 0.3 for transverse, and 0.3 for coronal. The segmentation result probability map of the sagittal image with the clearest image should be set to the highest weight, so that the segmentation result is more accurate.
[0103] 5. Use the argmax function to extract the integrated results of the four segmentation probability maps, take the maximum probability category of each pixel as the final pixel category, and obtain the final segmentation result.
[0104] Argmax function:
[0105] argmax S f∶={x∈S∶f(x)=sup S f}
[0106] Figure 11-16 Segmentation result image for cardiac dynamic magnetic resonance imaging sequence.
[0107] The above embodiments are only for illustrating the technical idea of the present invention, and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the present invention.
Claims
1. A segmentation method for a multi-phase cardiac dynamic magnetic resonance imaging sequence, characterized in that: The following steps are involved: Step 1, first resample the original image to be isotropic, and then crop the isotropic image; Step 2: Divide the cropped images into a systolic group and a diastolic group, and perform the following operations on each group of cropped images: The cropped image was adjusted to the window width and window position of the heart display, and then normalized; The normalized images were converted into sagittal, transverse, and coronal sequences respectively; The transverse sequence, sagittal sequence, and coronal sequence images are respectively sent to different improved TransUNet networks for segmentation. Each TransUNet network processes multiple consecutive images of one sequence among the transverse sequence, sagittal sequence, and coronal sequence to obtain segmentation probability map results in different directions. The segmentation probability map results in different directions are integrated using different weights for each type of probability map to obtain the final segmentation probability map. The weight of the segmentation result probability map of the sagittal sequence image is higher than that of the transverse sequence and coronal sequence. Extract the integrated segmentation probability map result, take the maximum probability category of each pixel as the final pixel category, and obtain the final segmentation result; The improved TransUNet network is as follows: a dual attention module DA-Block is integrated before the Transformer layer and inside the encoder-decoder jump connection; the dual attention module includes: a position attention module PAM and a channel attention module CAM; DA-Block obtains the input feature and scales the number of channels to obtain α 1 , and then through PAM feature extraction and convolution, we get α ^1 ; Get the input feature scaling channel number to get α 2 , and then through CAM feature extraction and convolution, we get α ^2 ; The output results of the two-layer attention module are aggregated and summed, and the number of channels is restored in one convolution to get the output.
2. The method for segmenting a multi-phase cardiac dynamic magnetic resonance imaging sequence according to claim 1, characterized in that: Each TransUNet network obtains four segmentation probability maps, which represent the background probability, left ventricle probability, right ventricle probability, and myocardium probability of each pixel.
3. The segmentation method of multi-phase cardiac dynamic magnetic resonance imaging sequence according to claim 1, characterized in that: The weight values are 0.4-0.6 for sagittal sequence, 0.2-0.3 for transverse sequence, and 0.2-0.3 for coronal sequence.
4. The segmentation method of multi-phase cardiac dynamic magnetic resonance imaging sequence according to claim 1, characterized in that: The composition and calculation process of PAM are: PAM initially obtains a local feature, represented as A∈R C×H×W , C represents the channel, H represents the height, W represents the width, and R represents the type of the elements in the tensor; Input A into the convolutional layer to obtain three new feature maps, namely B, C and D, each of which has a size of R C×H×W ; Reshape B and C into R C×N , where N = H × W represents the number of pixels; Perform matrix multiplication between C and the transpose of B, and then compute the spatial attention map S∈R N×N ; S ji represents the influence of the i-th position on the j-th position, B i represents the i-th position element in the feature map B, C j Represents the j-th position element in the feature map C; Reshape the matrix D into R C×N , performing a matrix multiplication between the transpose of D and S, and then reshaping the result into R C×H×W ; Multiply it with the parameter α and perform element-wise sum operation with the feature A to obtain the final output E∈R C×H×W : The weight α is initialized to 0 and learned step by step. i represents the i-th position element in the feature map D, A j represents the j-th position element in the original input; E is the weighted sum of all position features and original features.
5. The segmentation method of multi-phase cardiac dynamic magnetic resonance imaging sequence according to claim 1, characterized in that: The composition and calculation process of CAM are as follows: The original feature A∈R C×H×W Reshape to R C×N , then do a matrix multiplication between A and its transpose; Then we get the channel attention map X∈R C×C : x ji The influence of the ith channel on the jth channel is measured; Perform matrix multiplication between the transpose of X and A, reshape the result into R C×H×W ; Multiply the result by the scale parameter β and perform element-by-element summation on A to obtain the final output E∈R C×H×W : The weight β is initialized to 0 and learned step by step.
6. The segmentation method of multi-phase cardiac dynamic magnetic resonance imaging sequence according to claim 1, characterized in that: Part of DA-Block is based on PAM. The first component takes the input features and performs a convolution, scaling the number of channels to 1 / 16 to get α 1 , and then through PAM feature extraction and convolution, we get α ^1 , using the following formula: α 1 =Conv(input); a ^1 =Conv(PAM(a 1 )); The other part is based on CAM, which obtains the input features and performs a convolution, scaling the number of channels to 1 / 16 to obtain α 2 , and then through CAM feature extraction and convolution, we get α ^2 , using the following formula: α 2 =Conv(input); a ^2 =Conv(CAM(a 2 )); Extracting α from the dual attention module ^1 and α ^2 Finally, by aggregating and summing the output results of the two layers of attention modules, the number of channels is restored in one convolution to obtain the output: output=Conv(α ^1 +α ^2 )。
