Full-automatic placenta image segmentation method based on modulation deformable convolution
The fully automatic placenta image segmentation method based on modulated deformable convolution solves the time-consuming and subjective problem of placenta segmentation in the existing technology, achieves efficient and accurate placenta image segmentation, and assists clinicians in detecting placental abnormalities.
Patent Information
- Application Number
- CN202410543137.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-03
- Publication Date
- 2024-09-06
AI Technical Summary
Existing manual and semi-automatic MRI-based placental segmentation methods are time-consuming and subjective, making it difficult to achieve rapid and accurate detection of placental abnormalities.
A fully automatic placenta image segmentation method based on modulated deformable convolution is adopted. By preprocessing and building a bidirectionally connected U-Net image segmentation network, the modulated deformable convolution, ReLU activation function, batch normalization and bilinear interpolation are used. technology to achieve efficient segmentation of placenta images.
It improves the accuracy and efficiency of placenta segmentation, realizes fully automated placenta image segmentation, reduces reliance on doctors' professional knowledge, and improves the accuracy and efficiency of MRI placental abnormality detection.
Smart Images

Figure CN118608540A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of medical image processing, and in particular is a fully automatic placenta image segmentation method based on modulated deformable convolution. Background Art
[0002] The placenta is an important organ that connects the fetus and the mother during pregnancy. It has multiple physiological functions such as material exchange, secretion and immunity. Placental abnormalities are an important cause of many pregnancy failures, so determining the status of placental development is of great significance for clinical disease evaluation, treatment plan formulation and prognosis prediction. Although ultrasound imaging remains the main imaging method for evaluating the placenta, its efficacy in evaluating placental function is limited. Magnetic resonance imaging (MRI) has high imaging resolution for soft tissues and has the advantages of large-range, multi-sequence, multi-parameter and multi-directional imaging, which can make up for the shortcomings of ultrasound imaging. With its continuous advancement, MRI is increasingly used to diagnose placental abnormalities. Accurate segmentation of placental tissue regions is crucial for MRI-based placental abnormality detection. However, this remains a major challenge due to significant differences in position, direction, shape and size among individuals.
[0003] Manual placental segmentation based on MRI is time-consuming and subjective because it depends largely on the physician's expertise and clinical experience. Semi-automatic placental segmentation methods require interactive operations between the operator and the system. Therefore, in order to quickly obtain more accurate and reliable placental segmentation results, an accurate and fully automatic placental segmentation method is urgently needed. Summary of the invention
[0004] The present invention proposes a fully automatic placental image segmentation method based on modulated deformable convolution, aiming to improve the segmentation accuracy and efficiency of MRI-based placental segmentation, thereby assisting clinicians in achieving accurate screening of placental abnormalities.
[0005] To achieve the above object, the present invention provides the following technical solution: a fully automatic placenta image segmentation method based on modulated deformable convolution, comprising the following steps:
[0006] Step S1: preprocessing the original placenta image data to obtain a preprocessed placenta image data set;
[0007] This includes operations such as flipping the image, adjusting the brightness, and randomly cropping the image to expand the number of original placenta images and improve the generalization ability of the model.
[0008] Step S2: construct a bidirectionally connected U-Net image segmentation network based on modulated deformable convolution;
[0009] In step S2, the proposed network is divided into input layer, encoding stage, transition stage, decoding stage, and output layer.
[0010] In the input layer, the first layer of convolution converts the image into features of the same size and 32 channels. The second layer of convolution downsamples the features by halving the size and doubling the channels and outputs them to the encoder stage. The encoder stage contains three encoders. Each encoder uses a jump connection to concatenate the output of the decoder at the same level with the output of the encoder at the previous level as input. After extracting features through two layers of convolution, the features are not only output to the decoder at the same level, but also enter the encoder at the next level through downsampling. After feature extraction by three encoders, they enter the transition layer.
[0011] After the deep features are extracted through the transition layer, the output is upsampled and then enters the decoding stage. The decoding stage contains three decoder modules. Each decoder module concatenates the output of the encoder module at the same level with the output of the decoder module at the previous level as input through a jump connection. After two layers of convolution to extract features, it is not only output to the encoder at the same level, but also enters the decoder at the next level through downsampling. After feature extraction by the three decoders, it enters the output layer. The output layer concatenates the output of the decoding module with the output of the input layer as input. After two layers of convolution to extract features, the final output is obtained through the Sigmoid function.
[0012] The operations of each encoding module include: modulated deformable convolution, ReLU activation function, batch normalization, modulated deformable convolution, ReLU activation function, batch normalization, and downsampling.
[0013] The operations of each decoding module include: modulated deformable convolution, ReLU activation function, batch normalization, modulated deformable convolution, ReLU activation function, batch normalization, and upsampling.
[0014] The network uses modulated deformable convolution to extract features, and adds an offset {ΔP n |n=1,…,N}, where N=|R|, w is the convolution weight, P0 is the sampling origin, P n is the sampling rule position, and the formula is:
[0015]
[0016] At this time, from the irregular and offset position P n +ΔP n Collecting characteristics due to the offset ΔP n It is usually a fraction, so bilinear interpolation is used to implement the above equation as shown below.
[0017]
[0018] where q lists all the integral space coordinates in the feature map x, G = (·, ·) is the bilinear interpolation kernel, and p represents any (fractional) position.
[0019] Modulated deformable convolution uses a modulation mechanism to further enhance the ability of deformable convolutional networks to process spatial regions. Therefore, modulated deformable convolution is further introduced, and its formula is as follows:
[0020]
[0021] Where ΔP n and Δm n They are P n The offset and modulation scalar at the position generate ΔP n and Δm n The weights of the convolutional blocks are learnable parameters, modulating the scalar Δm n In the range of [0, 1], ΔP n is a real number with no bounds, since P0+P n +ΔP n is a fraction. As described above, in calculating x(P0+P n +ΔP n ) when bilinear interpolation is applied, ΔP n and Δm n They are all obtained through a separate convolutional layer, which is used for the same input feature map x. The spatial resolution and expansion of the convolutional layer are consistent with the current convolutional layer, and the output is 3N channels, of which the first 2N channels represent the learned offset The remaining N channels pass through the Sigmoid layer to obtain the modulation scalar
[0022] Forward skip connection, the encoded lower-level visual features f enc and its gradient can be well preserved through forward jumps between encoders and decoders at the same level. The first decoder block can take the input f from the lower level encoder block enc With input Y in Combine to create f dec , the f dec It will then be propagated through the decoding convolution DEC and further restored to a higher resolution through the upsampling (UP) block, which is described as follows:
[0023] f dec =DEC([f enc ,Y in ])
[0024] Backward skip connection, with the help of backward skip connection, the decoder can decode the high-level semantic features f dec is transmitted to the encoder, so f dec Can be combined with the X generated by the previous block inCombined to achieve flexible aggregation of low-level visual features and high-level semantic features, similar to the way of forward skip connections, the encoding process can be described by using encoded convolution ENC as follows:
[0025] f enc =ENC([f dec ,X in ])
[0026] Recursive Inference,In this encoder-decoder framework, an O-shaped inference route is created through the above-mentioned bidirectional skip connection. It is worth noting that the most direct efficiency advantage is that this O-shaped inference path can be repeated many times, and this recursive propagation strategy does not require the introduction of any new trainable parameters. During the i-th inference iteration, the formula for the output from the encoder and decoder with O-shaped connection can be expressed as follows:
[0027]
[0028]
[0029] Based on the U-Net network, the modulated deformable convolution is used to improve its feature extraction method, and its network structure is improved using forward skip connection, backward skip connection, and recursive reasoning to obtain a fully automatic placenta image segmentation network based on modulated deformable convolution.
[0030] Step S3: Input the preprocessed placenta image into the proposed image segmentation network for training to obtain a trained placenta image segmentation network model.
[0031] Step S4: Use the trained network model to segment the preprocessed placenta image to obtain the placenta segmentation result. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is an implementation flow chart of the present invention.
[0033] Figure 2 It is a diagram of the segmentation network structure of the present invention.
[0034] Figure 3 It is a structural diagram of the encoding module of the present invention.
[0035] Figure 4 It is a structural diagram of the decoding module of the present invention.
[0036] Figure 5 It is a deformable convolution structure diagram of the present invention. DETAILED DESCRIPTION
[0037] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0038] Embodiment: A fully automatic placenta image segmentation method based on modulated deformable convolution comprises the following steps:
[0039] refer to Figure 1 The steps of implementing the invention include: (1) preprocessing the original placenta image data to obtain a preprocessed placenta image data set; (2) constructing a placenta image segmentation network based on modulated deformable convolution; (3) inputting the preprocessed placenta image into the proposed image segmentation network for training to obtain a trained placenta image segmentation network model; (4) using the trained network model to segment the preprocessed placenta image to obtain a placenta segmentation result.
[0040] refer to Figure 2 , is the proposed network structure diagram, which is divided into input layer, encoding stage, transition stage, decoding stage and output layer.
[0041] In the input layer, the first layer of convolution converts the image into features of the same size and 32 channels. The second layer of convolution downsamples the features by halving the size and doubling the channels and outputs them to the encoder stage. The encoder stage contains three encoders. Each encoder uses a jump connection to concatenate the output of the decoder at the same level with the output of the encoder at the previous level as input. After extracting features through two layers of convolution, the features are not only output to the decoder at the same level, but also enter the encoder at the next level through downsampling. After feature extraction by three encoders, they enter the transition layer.
[0042] After the deep features are extracted through the transition layer, the output is upsampled and then enters the decoding stage. The decoding stage contains three decoder modules. Each decoder module concatenates the output of the encoder module at the same level with the output of the decoder module at the previous level as input through a jump connection. After two layers of convolution to extract features, it is not only output to the encoder at the same level, but also enters the decoder at the next level through downsampling. After feature extraction by the three decoders, it enters the output layer. The output layer concatenates the output of the decoding module with the output of the input layer as input. After two layers of convolution to extract features, the final output result is obtained through the Sigmoid function.
[0043] refer to Figure 3 , is the encoder structure, and the operations of each encoding module include: modulated deformable convolution, ReLU activation function, batch normalization, modulated deformable convolution, and maximum pooling layer.
[0044] refer to Figure 4, is the decoder structure, and the operations of each decoding module include: modulated deformable convolution, ReLU activation function, batch normalization, modulated deformable convolution, and bilinear interpolation.
[0045] refer to Figure 5 , modulated deformable convolution is used, and an offset {ΔP n |n=1,…,N}, where N=|R|, w is the convolution weight, P0 is the sampling origin, P n is the sampling rule position, and the formula is:
[0046]
[0047] At this time, from the irregular and offset position P n +ΔP n Collecting characteristics due to the offset ΔP n It is usually a fraction, so bilinear interpolation is used to implement the above equation as shown below.
[0048]
[0049] where q lists all the integral space coordinates in the feature map x, G = (·, ·) is the bilinear interpolation kernel, and p represents any (fractional) position.
[0050] Modulated deformable convolution uses a modulation mechanism to further enhance the ability of deformable convolutional networks to process spatial regions. Therefore, modulated deformable convolution is further introduced, and its formula is as follows:
[0051]
[0052] Where ΔP n and Δm n They are P n The offset and modulation scalar at the position generate ΔP n and Δm n The weights of the convolutional blocks are learnable parameters, modulating the scalar Δm n In the range of [0, 1], ΔP n is a real number with no bounds, since P0+P n +ΔP n is a fraction. As described above, in calculating x(P0+P n +ΔP n ) when bilinear interpolation is applied, ΔP n and Δm n They are all obtained through a separate convolutional layer, which is used for the same input feature map x. The spatial resolution and expansion of the convolutional layer are consistent with the current convolutional layer, and the output is 3N channels, of which the first 2N channels represent the learned offset The remaining N channels pass through the Sigmoid layer to obtain the modulation scalar
[0053] The decoded features are mapped back to the encoder using a bidirectional O-shaped inference route, which can achieve better feature refinement. It can be specifically divided into: forward skip connection, backward skip connection, and recursive inference.
[0054] Forward skip connection, the encoded lower-level visual features f enc and its gradient can be well preserved through the forward skip chain of encoder and decoder at the same level. The first decoder block can convert the input f from the lower encoder block into enc With input Y in Combine to create f dec , the f dec It will then be propagated through the decoding convolution DEC and further restored to a higher resolution through the upsampling (UP) block, which is described as follows:
[0055] f dec =DEC([f enc ,Y in ])
[0056] Backward skip connection, with the help of backward skip connection, the decoder can decode the high-level semantic features f dec is transmitted to the encoder, so f dec Can be compared with the X generated by the previous encoder in Combined to achieve flexible fusion of low-level visual features and high-level semantic features, similar to the forward skip connection, the encoding process can be described by using the encoded convolution ENC as follows:
[0057] f enc =ENC([f dec ,X in ]
[0058] Recursive Inference,In this encoder-decoder framework, an O-shaped inference route is created through the above-mentioned bidirectional skip connection. It is worth noting that the most direct efficiency advantage is that this O-shaped inference path can be repeated many times, and this recursive propagation strategy does not require the introduction of any new trainable parameters. During the i-th inference iteration, the formula for the output from the encoder and decoder with O-shaped connection can be expressed as follows:
[0059]
[0060]
[0061] Create a network model, input the data set to start training, save the network parameters after getting good results, input the processed image to be segmented for segmentation, and output the final result.
[0062] The above contents are further detailed descriptions of the present invention in combination with the best embodiment, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. It should be understood by those skilled in the art that various modifications can be made in the details without departing from the scope of the appended claims, and all should be deemed to belong to the protection scope of the present invention.
Claims
1. A fully automatic placenta image segmentation method based on modulated deformable convolution, characterized in that: The following steps are included: Step S1: preprocessing the original placenta image data to obtain a preprocessed placenta image data set; Step S2: construct a bidirectionally connected U-Net image segmentation network based on modulated deformable convolution; Step S3: inputting the preprocessed placenta image into the proposed image segmentation network for training to obtain a trained placenta image segmentation network model; Step S4: Use the trained network model to segment the preprocessed placenta image to obtain a placenta segmentation result.
2. The fully automatic placenta image segmentation method based on modulated deformable convolution according to claim 1, characterized in that: In step S2, the proposed network is divided into input layer, encoding stage, transition stage, decoding stage, and output layer. In the input layer, the first layer of convolution converts the image into features of the same size and 32 channels. The second layer of convolution downsamples the features by halving the size and doubling the channels and outputs them to the encoder stage. The encoder stage contains three encoders. Each encoder uses a jump connection to concatenate the output of the decoder at the same level with the output of the encoder at the previous level as input. After extracting features through two layers of convolution, the features are not only output to the decoder at the same level, but also enter the encoder at the next level through downsampling. After feature extraction by three encoders, they enter the transition layer. After the deep features are extracted through the transition layer, the output is upsampled and then enters the decoding stage. The decoding stage contains three decoder modules. Each decoder module concatenates the output of the encoder module at the same level with the output of the decoder module at the previous level as input through a jump connection. After two layers of convolution to extract features, it is not only output to the encoder at the same level, but also enters the decoder at the next level through downsampling. After feature extraction by the three decoders, it enters the output layer. The output layer concatenates the output of the decoding module with the output of the input layer as input. After two layers of convolution to extract features, the final output is obtained through the Sigmoid function.
3. The fully automatic placenta image segmentation method based on modulated deformable convolution according to claim 2, characterized in that: The operations of each encoding module include modulated deformable convolution, ReLU activation function, batch normalization, modulated deformable convolution, and downsampling.
4. The method for fully automatic placenta image segmentation based on modulated deformable convolution according to claim 2, characterized in that: The operations of each decoding module include modulated deformable convolution, ReLU activation function, batch normalization, modulated deformable convolution, and upsampling.
5. The fully automatic placenta image segmentation method based on modulated deformable convolution according to claim 3 and claim 4, characterized in that: Modulated deformable convolution is used, the formula is: Among them, R is the defined receptive field size and expansion, P n is the sampling position in the regular network. First, use w to sample the value P n weighted and then offset by the parameter ΔP n Get the characteristics of the deformation area Represents deformable convolution, and then introduces the modulation variable Δm n Enhancing the Capabilities of Deformable Convolutional Networks in Spatial Regions, ΔP n and Δm n Represents P n The offset and modulation scalar at the position generate ΔP n and Δm n The weights of the convolutional blocks are learnable parameters.
6. The fully automatic placenta image segmentation method based on modulated deformable convolution according to claim 2, characterized in that: Forward skip connection, the encoded lower-level visual features f enc and its gradient can be well preserved through the forward skip chain of encoder and decoder at the same level. The first decoder block can convert the input f from the lower encoder block into enc With input Y in Combine to create f dec , the f dec It will then be propagated through the decoding convolution DEC and further restored to a higher resolution through the upsampling (UP) block. The module is described as: f dec =DEC([f enc ,Y in ]) 7. The method for fully automatic placenta image segmentation based on modulated deformable convolution according to claim 2, characterized in that: Backward skip connection, with the help of backward skip connection, the decoder can decode the high-level semantic features f dec is transmitted to the encoder, so f dec Can be compared with the X generated by the previous encoder in Combined to achieve flexible fusion of low-level visual features and high-level semantic features, similar to the forward skip connection, the encoding process can be described by using the encoded convolution ENC as follows: f enc =ENC([f dec ,X in ]) 8. The fully automatic placenta image segmentation method based on modulated deformable convolution according to claim 2, characterized in that: Recursive Inference,In this encoder-decoder framework, an O-shaped inference route is created through the above-mentioned bidirectional skip connection. It is worth noting that the most direct efficiency advantage is that this O-shaped inference path can be repeated many times, and this recursive propagation strategy does not require the introduction of any new trainable parameters. During the i-th inference iteration, the formula for the output from the encoder and decoder with O-shaped connection can be expressed as follows:
Citation Information
Cited By
Diabetic retinopathy lesion segmentation method based on heterogeneous convolutional perception network
CN119048759A
Ultrasonic image segmentation method, system and equipment based on U-shaped codec structure and medium
CN119850649A
