A fast medical image segmentation system and method based on serial-parallel hybrid modules
By using the encoder and decoder of the series-parallel hybrid module in the medical image segmentation system, combined with the global and local feature extraction modules, the problem of large parameter quantities is solved, the accuracy and reasoning speed of medical image segmentation are improved, and it is suitable for real-time medicine Image segmentation.
Patent Information
- Application Number
- CN202410772638.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-17
AI Technical Summary
The existing medical image segmentation system has a large number of parameters and cannot effectively combine local and global information, resulting in low image segmentation accuracy.
A fast medical image segmentation system based on series-parallel hybrid modules is used to perform multiple size compression and upsampling through the encoder and decoder, and the global feature extraction module, parallel convolution module, fusion module and cascade convolution module are used to perform local summation Fusion of global features to achieve feature extraction and image segmentation.
It significantly enhances the segmentation accuracy of complex medical images, reduces model inference time, and is suitable for real-time medical image segmentation scenarios.
Smart Images

Figure CN118334357B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of artificial intelligence image region segmentation and image recognition, and in particular relates to a rapid medical image segmentation system and method based on a series-parallel hybrid module. Background Art
[0002] Medical image region segmentation is an important research direction in medical image processing. Its purpose is to segment regions of different structures or tissues in medical images for medical diagnosis and treatment planning.
[0003] Traditional medical image segmentation methods are mainly based on image processing techniques, such as threshold segmentation, edge detection, and region growing. These methods work well when processing simple medical images, but for complex medical images, such as tumors and other pathological tissues, due to the complexity of morphological and grayscale features, the accuracy and robustness of traditional methods are poor. In recent years, with the development of deep learning technology, medical image segmentation methods based on deep learning have become the mainstream direction of current medical image segmentation research. This type of model uses deep learning technology to automatically learn image features and achieve fine image segmentation through pixel-level classification. The CNN structure is good at extracting local features at a low computational cost. Transformer can effectively capture feature dependencies of all ranges at the cost of a more complex structure. However, although the Transformer structure has made significant progress in the field of image segmentation, it takes too much time for model inference. Therefore, it is necessary to consider customizing a method that can absorb the advantages of both CNN and Transformer.
[0004] UNet and its variants have shown excellent performance in fast medical image segmentation and have become a pioneering architecture, but due to its limitations in global information integration, the image segmentation effect is limited. Therefore, solving the problem of bloated medical image segmentation models and large number of parameters, and enabling the model to process local and global image information and improve image segmentation accuracy are of great significance in the field of medical image segmentation. Summary of the invention
[0005] In view of the above analysis, the present invention aims to provide a fast medical image segmentation system and method based on a series-parallel hybrid module, which is used to solve the problems in the prior art that the medical image segmentation system has a large number of parameters, cannot combine local and global image information, and has low image segmentation accuracy.
[0006] The purpose of the present invention is mainly achieved through the following technical solutions:
[0007] In one aspect, the present invention provides a fast medical image segmentation system based on a series-parallel hybrid module, the system comprising an encoder and a decoder;
[0008] The encoder is used to perform multiple size compression and feature extraction on the segmented image in sequence to obtain multiple feature maps of different sizes; during one size compression and feature extraction, the first serial-parallel hybrid module is used to perform local feature and global feature fusion and size compression on the received feature map, and output a feature map containing local features and global features;
[0009] The decoder is used to fuse multiple feature maps of different sizes obtained by the encoder, and perform upsampling and feature extraction to obtain an image segmentation result; during one of the upsampling and feature extraction, the corresponding second series-parallel hybrid module is used to fuse and upsample the local features and global features of the received feature map, and decode to obtain a feature map containing local features and global features.
[0010] Furthermore, the first serial-parallel hybrid module and the second serial-parallel hybrid module each include a global feature extraction module, a parallel convolution module, a fusion module and a cascade convolution module;
[0011] The global feature extraction module and the parallel convolution module are arranged in parallel, and are used to extract features from the received feature maps respectively, to obtain corresponding global feature maps and local feature maps;
[0012] The fusion module is used to perform an intra-channel addition operation on the global feature map and the local feature map;
[0013] The cascade convolution module is used to receive the feature map after the addition operation and perform feature extraction to obtain a feature map with local features and global features.
[0014] Further, the global feature extraction module includes a Vol2Seq layer, a first normalization layer, a window attention layer, a second normalization layer, an MLP layer and a Seq2Vol layer arranged in sequence;
[0015] The global feature extraction module is used to extract features from the received feature map to obtain a feature map with global features, including:
[0016] The received feature map is converted from three dimensions to sequences through the Vol2Seq layer to obtain one-dimensional sequence data;
[0017] The one-dimensional sequence data is normalized by a first normalization layer and then a window attention operation is performed to enhance global feature data;
[0018] Performing a first addition operation on the feature data after data enhancement and the one-dimensional sequence data output by the Vol2Seq layer, and then inputting the data into the second normalization layer. After the normalization operation, the data is input into the MLP layer for feature extraction to obtain one-dimensional sequence data containing global features.
[0019] The feature data obtained after the first addition operation is added to the feature data output by the MLP layer for a second addition operation, and the sequence is converted to three dimensions through the Seq2Vol layer to obtain a three-dimensional feature map containing global features.
[0020] Furthermore, the received feature map is sliced along any dimension of depth, height and width through the Vol2Seq layer, and each slice data is used as an element in the sequence to obtain a one-dimensional sequence containing all slice data;
[0021] The Seq2Vol layer is used to concatenate the elements in the one-dimensional sequence data along the slice dimension to obtain a three-dimensional feature map.
[0022] Furthermore, the window attention layer includes a fixed window attention operation and a sliding window attention operation, wherein:
[0023] The fixed window attention operation is used to divide the received feature map into multiple fixed windows, and calculate the self-attention within each fixed window to construct local information within each fixed window;
[0024] The sliding window attention operation is used to perform attention calculation based on the sliding window to construct global information of the feature map.
[0025] Further, the encoder further comprises two convolution modules and two tokenized MLP modules, wherein the two convolution modules, the first series-parallel hybrid module and the two tokenized MLP modules are arranged in sequence;
[0026] The first convolution module is used to perform image size compression and feature extraction based on the image to be segmented, so as to obtain a first feature map with local features; the second convolution module is used to perform image size compression and feature extraction based on the first feature map, so as to obtain a second feature map with deep local features;
[0027] The first serial-parallel hybrid module is used to aggregate global information and perform image size compression based on the association between different local features of the second feature map to obtain a third feature map having local features and global features;
[0028] The first labeled MLP module is used to compress the image size of the third feature map, and to mark and project the image features to obtain a fourth feature map; the second labeled MLP module is used to compress the image size of the fourth feature map, and to mark and project the image features to obtain a fifth feature map.
[0029] Furthermore, the decoder includes two tokenized MLP modules, a second series-parallel hybrid module and two convolution modules, which are arranged in sequence and correspond to the modules in the encoder; and is used to perform upsampling and feature extraction in sequence based on the fifth feature map, and fuse the feature maps of corresponding sizes in the encoder through jump connections, and decode to obtain the final image segmentation result.
[0030] Furthermore, the two convolution modules and the two tokenized MLP modules in the encoder and the decoder are constructed based on the convolution module and the tokenized MLP module of the UNeXt model.
[0031] On the other hand, a fast medical image segmentation method based on a series-parallel hybrid module is also disclosed, the method comprising:
[0032] Obtain the image to be segmented;
[0033] Based on the image to be segmented, image size compression and feature extraction are performed in sequence through two convolution operations arranged in series, so as to obtain a first feature map and a second feature map of two different sizes having local features respectively;
[0034] Based on the association between different local features of the second feature map, global information is aggregated and image size is compressed to obtain a third feature map having local features and global features;
[0035] Based on the third feature map, two serially arranged tokenized MLP modules are used to perform image size compression twice in sequence, and image features are marked and projected to obtain a fourth feature map and a fifth feature map respectively;
[0036] A plurality of the feature maps are fused, and up-sampling and feature extraction are performed to obtain an image segmentation result.
[0037] Furthermore, the aggregating global information based on the association between different local features of the second feature graph includes:
[0038] Convert the input image from three dimensions to a sequence to obtain one-dimensional sequence data;
[0039] The one-dimensional sequence data is layer-normalized and then divided into a plurality of fixed windows, and the self-attention in each fixed window is calculated to obtain the local information in each fixed window; and the association between the local information is integrated through the sliding window self-attention operation to construct the global information of the feature map, so as to enhance the global feature data;
[0040] The feature data after data enhancement is layer normalized, and feature extraction is performed through the MLP layer. The extracted feature data is converted from sequence to three-dimensional to obtain a three-dimensional feature map containing global features.
[0041] Beneficial effects of this technical solution:
[0042] The present invention adopts a series-parallel hybrid module for feature extraction in both the encoding and decoding processes of the image, and realizes the capture of the global information of the image to be segmented through a lightweight global attention module, which significantly enhances the representation of complex spatial transformations and long-distance feature dependencies.
[0043] The serial-parallel hybrid module set in the present invention is used as an intermediate module, and the connection between the top-level and bottom-level information is realized through parallel global feature extraction and local feature extraction, as well as cascaded convolution modules. A large number of experiments on multi-organ and single-organ segmentation show that the present invention has better segmentation accuracy and fast reasoning speed, and is very suitable for real-time medical image segmentation scenarios.
[0044] Other features and advantages of the present invention will be described in the following description, and part of them will become obvious from the description, or will be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;
[0046] Figure 1 It is a structural block diagram of a fast medical image segmentation system based on a series-parallel hybrid module according to an embodiment of the present invention;
[0047] Figure 2 It is a flow chart of a fast medical image segmentation method based on a series-parallel hybrid module according to an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the implementation cases of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0049] One embodiment of the present invention provides a fast medical image segmentation system based on a series-parallel hybrid module, such as Figure 1 As shown, the system includes an encoder and a decoder;
[0050] The encoder is used to perform multiple size compression and feature extraction on the segmented image in sequence to obtain multiple feature maps of different sizes; during one size compression and feature extraction, the first serial-parallel hybrid module is used to perform local feature and global feature fusion and size compression on the received feature map, and output a feature map containing local features and global features;
[0051] The decoder is used to fuse multiple feature maps of different sizes obtained by the encoder, and perform upsampling and feature extraction to obtain an image segmentation result; during one of the upsampling and feature extraction, the corresponding second series-parallel hybrid module is used to fuse and upsample the local features and global features of the received feature map, and decode to obtain a feature map containing local features and global features.
[0052] Specifically, the first serial-parallel hybrid module and the second serial-parallel hybrid module each include a global feature extraction module, a parallel convolution module, a fusion module and a cascade convolution module;
[0053] The global feature extraction module and the parallel convolution module are set in parallel to extract features from the received feature maps respectively to obtain corresponding global feature maps and local feature maps; the fusion module is used to perform intra-channel addition operations on the global feature maps and the local feature maps;
[0054] The cascade convolution module is used to receive the feature map after the addition operation and perform feature extraction to obtain a feature map with local features and global features.
[0055] The global feature extraction module is an improved Transformer structure, which includes a Vol2Seq layer, a first normalization layer, a window attention layer (W / SW-MSA layer), a second normalization layer, an MLP layer, and a Seq2Vol layer. The global feature extraction module extracts features from the received feature map by the following method to obtain a feature map with global features:
[0056] The received feature map is converted from three dimensions to sequences through the Vol2Seq layer to obtain one-dimensional sequence data; that is, the received feature map is sliced along any dimension of depth, height and width through the Vol2Seq layer, and each slice data is used as an element in the sequence to obtain a one-dimensional sequence containing all slice data;
[0057] The one-dimensional sequence data is layer-normalized by a first normalization layer and then subjected to a window attention operation by a window attention layer to enhance global feature data;
[0058] The feature data after data enhancement and the one-dimensional sequence data output by the Vol2Seq layer are added for the first time and then input into the second normalization layer. After the normalization operation, the data is input into the MLP layer for feature extraction to obtain one-dimensional sequence data containing global features.
[0059] The feature data obtained after the first addition operation is added to the feature data output by the MLP layer for a second addition operation, and the feature data obtained after the addition operation is spliced along the slice dimension by the Seq2Vol layer to complete the sequence to three-dimensional conversion, and obtain a three-dimensional feature map containing global features. The global feature extraction module of this embodiment extracts the global features of the received feature map, and at the same time, merges the extracted features with the original features of the received feature map through two addition operations, thereby strengthening the important features of the input feature map and having the effect of weakening noise.
[0060] In this embodiment, the window attention layer (W / SW-MSA) includes a fixed window attention (W-MSA) operation and a sliding window attention SW-MSA operation, where:
[0061] The fixed window attention operation is used to divide the received feature map into multiple fixed windows, and calculate the self-attention within each fixed window to construct local information within each fixed window;
[0062] The sliding window attention operation is used to perform attention calculation on the feature map after the fixed window attention operation based on the sliding window, so as to construct the global information of the feature map based on the local information in each fixed window.
[0063] The parallel convolution module includes a convolution layer, an instance normalization layer, and a GELU activation function. The convolution kernel size of the convolution layer is 3×3, and the step size is 1. The size of the convolution kernel limits it to extract local features of the input image within each 3×3 receptive field. By fusing with the global features obtained by the global feature extraction module, the correlation between local features is enhanced, and the accuracy of image segmentation is improved.
[0064] The cascaded convolution module is the same as the parallel convolution module. It further extracts features from the feature map that combines global features and local features to obtain a deeper feature representation that includes local features and global features.
[0065] More specifically, the present invention proposes a new three-stage encoding and decoding technology based on the UNext model and constructs the UNext++ model, such as Figure 1As shown in the figure. The first stage consists of two convolutional layers to generate local feature maps of a given image. The second stage aggregates global information through a series-parallel hybrid module (PCHFormer module) to learn the association between different local features and build the global information of the image. The PCHFormer module seamlessly integrates the hybrid structure of CNN and Transformer, effectively combining the global and local features in the model. The third stage applies a tokenized MLP to effectively label and project image features. The two convolutional modules and the two tokenized MLP modules in the encoder and decoder are built based on the convolutional modules and tokenized MLP modules of the UNeXt model.
[0066] Preferably, in this embodiment, the two convolution modules, the first serial-parallel hybrid module and the two tokenized MLP modules of the encoder are arranged in sequence; wherein,
[0067] The first convolution module is used to perform image size compression and feature extraction based on the image to be segmented, and obtain a local feature size of The second convolution module is used to compress the image size and extract features based on the first feature map, and obtain a size of deep local features. The second feature map of is the size of the image to be segmented;
[0068] The first series-parallel hybrid module is used to aggregate global information based on the association between different local features of the second feature map, and perform image size compression to obtain an image with local features and global features of size The third characteristic diagram of
[0069] The first tokenized MLP module is used to compress the image size of the third feature map, and mark and project the image features to obtain a size of The second tokenized MLP module is used to compress the image size of the fourth feature map, mark and project the image features, and obtain a size of The fifth characteristic diagram of .
[0070] The decoder includes two tokenized MLP modules, a second series-parallel hybrid module and two convolution modules, which are arranged in sequence and correspond to the modules in the encoder; it is used to perform upsampling and feature extraction in sequence based on the fifth feature map, and fuse the feature maps of corresponding sizes in the encoder through jump connections, and decode to obtain the final image segmentation result.
[0071] It should be noted that in the three-stage encoding and decoding UNext++ model of this embodiment, in the first stage, UNext++ adopts a convolution module with the same architecture as UNeXt, and each convolution module includes a convolution layer, a normalization layer and a ReLU activation function. In the UNext++ framework proposed in this embodiment, the encoder and decoder only include two convolution modules in the convolution stage, and the third convolution module in UNeXt is replaced by the PCHFormer module. In the convolution stage, the feature resolution is reduced by convolution modules and pooling operations, and the number of parameters and the amount of calculation required for the attention mechanism in the PCHFormer stage are effectively reduced.
[0072] In the second stage, the PCHFormer module (series-parallel hybrid module) consists of two parallel convolution modules and cascade convolution modules of the same structure and a global feature extraction module. The PCHFormer module adopts a joint arrangement of parallel and cascade to better integrate the image features processed by the convolution and global feature extraction modules, while avoiding the problem of mismatch in the number of feature channels caused by directly feeding the features processed by the global feature extraction module back to the convolution network. In practical applications, the image features extracted and reduced in dimension by the convolution network in the first stage are first copied into two copies and sent to the parallel convolution module and the global feature extraction module connected in parallel. The feature map obtained after processing by the convolution network is a three-dimensional feature map. Before entering the global feature extraction module of the improved Transformer structure, the volume-to-sequence operation is performed through the Seq2Vol layer, and the three-dimensional feature map is sliced along any dimension of depth, height or width. Each slice is regarded as an element in the sequence, and all slice data are reshaped into a one-dimensional sequence.
[0073] Furthermore, the global feature extraction module includes a window attention layer with a hierarchical design. The feature map input into the global feature extraction module is converted into a one-dimensional sequence, and after being normalized by the normalization layer, it is input into the window attention layer (W / SW-MSA) for global feature data enhancement. The window attention operation of this embodiment is implemented by W / SW-MSA, including W-MSA (fixed window attention) and SW-MSA (sliding window attention) operations. During the window attention operation, first, a two-dimensional convolution layer with parameters such as stride and convolution kernel size set to the sliding window size is used to expand the length, width, and height dimensions of the image, and the feature map is cut into multiple fragments that meet the sliding window size, called patches, and each patch is encoded as a vector with a certain dimension. Then, a dropout operation is performed on each vector, that is, the value of some patch embeddings is randomly taken as 0 for data enhancement. Then, the self-attention in each window (each window contains a fixed number of patches) is calculated by the W-MSA (fixed window attention) operation, and the computational complexity is greatly reduced by the divide-and-conquer method. However, there is a lack of information exchange between non-overlapping fixed windows, which loses the ability to use self-attention to build relationships from a global perspective. Therefore, the SW-MSA (sliding window attention) operation is further used to exchange information across windows (cross-window connection) while maintaining efficient calculation of non-overlapping windows. A normalization layer and a two-layer MLP with GELU activation function are set after the window attention layer. After feature extraction by the MLP layer, the feature map is converted from a one-dimensional sequence to a three-dimensional sequence through the Seq2Vol layer to obtain a feature map with global features to ensure that the dimension of the output space obtained by the feature map processed by the parallel convolution module is consistent. The global feature extraction module based on the improved Transformer structure and the parallel convolution module have complementary characteristics in the performance of extracting image feature ranges. Therefore, the output of the global feature extraction module and the parallel convolution module can be fused by addition operation to enhance feature representation. The fused output is then used as the input of the cascade convolution module. Among them, the input and output feature channels in the parallel convolution module and the cascade convolution module are set to the same size and number, which simplifies the network architecture while maintaining the continuity and integrity of the data.
[0074] The third stage is at the bottom of the whole framework, where two tokenization MLP blocks are used in the encoder and decoder, whose structures are the same as the tokenization MLP in UNeXt.
[0075] In the traditional UNeXt encoder, the input image is downsampled through convolution and pooling operations. The local connectivity of the convolution operation and the downsampling through the pooling operation limit the neurons to only perceive local information from the image. This embodiment sets a series-parallel hybrid module (PCHFormer) to perform global feature fusion on the image, which well compensates for the problem that the traditional method can only perceive local information. The image segmentation performance is improved on the basis of maintaining the overall lightweight framework of the model.
[0076] Another embodiment of the present invention further provides a fast medical image segmentation method based on a series-parallel hybrid module, such as Figure 2 As shown, the method includes:
[0077] Obtain the image to be segmented;
[0078] Based on the image to be segmented, image size compression and feature extraction are performed in sequence through two convolution operations arranged in series, so as to obtain a first feature map and a second feature map of two different sizes having local features respectively;
[0079] Based on the association between different local features of the second feature map, global information is aggregated and image size is compressed to obtain a third feature map having local features and global features;
[0080] Based on the third feature map, two serially arranged tokenized MLP modules are used to perform image size compression twice in sequence, and image features are marked and projected to obtain a fourth feature map and a fifth feature map respectively;
[0081] A plurality of the feature maps are fused, and up-sampling and feature extraction are performed to obtain an image segmentation result.
[0082] Furthermore, the aggregating global information based on the association between different local features of the second feature graph includes:
[0083] Convert the input image from three dimensions to a sequence to obtain one-dimensional sequence data;
[0084] The one-dimensional sequence data is layer-normalized and then divided into a plurality of fixed windows, and the self-attention in each fixed window is calculated to obtain the local information in each fixed window; and the association between the local information is integrated through the sliding window self-attention operation to construct the global information of the feature map, so as to enhance the global feature data;
[0085] The feature data after data enhancement is layer normalized, and feature extraction is performed through the MLP layer. The extracted feature data is converted from sequence to three-dimensional to obtain a three-dimensional feature map containing global features.
[0086] The present invention adopts a series-parallel hybrid module for feature extraction in the process of encoding and decoding the image, and realizes it through a lightweight global attention module. It captures the global information of the image to be segmented, and significantly enhances the representation of complex spatial transformations and long-distance feature dependencies. The series-parallel hybrid module set in the present invention is used as an intermediate module, and the connection between the top and bottom layer information is realized through parallel global feature extraction and local feature extraction, as well as cascaded convolution modules. A large number of experiments on the segmentation of various medical images such as breast cancer, skin diseases, and thyroid cancer have shown that the present invention has better segmentation accuracy and fast reasoning speed, and is very suitable for real-time medical image segmentation scenarios.
[0087] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0088] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A fast medical image segmentation system based on serial-parallel hybrid modules, characterized in that: The system includes an encoder and a decoder; The encoder is used to perform multiple size compression and feature extraction on the segmented image in sequence to obtain multiple feature maps of different sizes; during one size compression and feature extraction, the first serial-parallel hybrid module is used to perform local feature and global feature fusion and size compression on the received feature map, and output a feature map containing local features and global features; The decoder is used to fuse multiple feature maps of different sizes obtained by the encoder, and perform upsampling and feature extraction to obtain an image segmentation result; during one of the upsampling and feature extraction, the corresponding second serial-parallel hybrid module is used to fuse and upsample the local features and global features of the received feature map, and decode to obtain a feature map containing local features and global features; The first serial-parallel hybrid module and the second serial-parallel hybrid module both include a global feature extraction module, a parallel convolution module, a fusion module and a cascade convolution module; The global feature extraction module and the parallel convolution module are arranged in parallel, and are used to extract features from the received feature maps respectively, to obtain corresponding global feature maps and local feature maps; The fusion module is used to perform an intra-channel addition operation on the global feature map and the local feature map; The cascade convolution module is used to receive the feature map after the addition operation and perform feature extraction to obtain a feature map with local features and global features; The global feature extraction module includes a Vol2Seq layer, a first normalization layer, a window attention layer, a second normalization layer, an MLP layer and a Seq2Vol layer which are arranged in sequence; The global feature extraction module is used to extract features from the received feature map to obtain a feature map with global features, including: The received feature map is converted from three dimensions to sequences through the Vol2Seq layer to obtain one-dimensional sequence data; After normalizing the one-dimensional sequence data by using the first normalization layer, a window attention operation is performed by using a window attention layer to enhance global feature data; Performing a first addition operation on the feature data after data enhancement and the one-dimensional sequence data output by the Vol2Seq layer, and then inputting the data into the second normalization layer. After the normalization operation, the data is input into the MLP layer for feature extraction to obtain one-dimensional sequence data containing global features. Performing a second addition operation on the feature data obtained after the first addition operation and the feature data output by the MLP layer, and performing sequence-to-three-dimensional conversion through the Seq2Vol layer to obtain a three-dimensional feature map containing global features; The window attention layer includes a fixed window attention operation and a sliding window attention operation, where: The fixed window attention operation is used to divide the received feature map into multiple fixed windows, and calculate the self-attention within each fixed window to construct local information within each fixed window; The sliding window attention operation is used to perform attention calculation based on the sliding window to construct global information of the feature map.
2. The fast medical image segmentation system based on serial-parallel hybrid modules according to claim 1, characterized in that: The received feature map is sliced along any dimension of depth, height, and width through the Vol2Seq layer, and each slice data is used as an element in the sequence to obtain a one-dimensional sequence containing all slice data; The Seq2Vol layer is used to concatenate the elements in the one-dimensional sequence data along the slice dimension to obtain a three-dimensional feature map.
3. The fast medical image segmentation system based on serial-parallel hybrid modules according to claim 1, characterized in that: The encoder further comprises two convolution modules and two tokenized MLP modules, wherein the two convolution modules, the first series-parallel hybrid module and the two tokenized MLP modules are arranged in sequence; The first convolution module is used to perform image size compression and feature extraction based on the image to be segmented, so as to obtain a first feature map with local features; the second convolution module is used to perform image size compression and feature extraction based on the first feature map, so as to obtain a second feature map with deep local features; The first serial-parallel hybrid module is used to aggregate global information and perform image size compression based on the association between different local features of the second feature map to obtain a third feature map having local features and global features; The first labeled MLP module is used to compress the image size of the third feature map, and to mark and project the image features to obtain a fourth feature map; the second labeled MLP module is used to compress the image size of the fourth feature map, and to mark and project the image features to obtain a fifth feature map.
4. The fast medical image segmentation system based on serial-parallel hybrid modules according to claim 3 is characterized in that: The decoder includes two tokenized MLP modules, a second series-parallel hybrid module and two convolution modules that are arranged in sequence and correspond to the modules in the encoder; it is used to perform upsampling and feature extraction in sequence based on the fifth feature map, and fuse the feature maps of corresponding sizes in the encoder through jump connections, and decode to obtain the final image segmentation result.
5. The fast medical image segmentation system based on serial-parallel hybrid modules according to claim 4, characterized in that: The two convolution modules and the two tokenized MLP modules in the encoder and the decoder are constructed based on the convolution module and the tokenized MLP module of the UNeXt model.
6. A fast medical image segmentation method based on serial-parallel hybrid modules, characterized in that: The method comprises: Obtain the image to be segmented; Based on the image to be segmented, image size compression and feature extraction are performed in sequence through two convolution operations arranged in series, so as to obtain a first feature map and a second feature map of two different sizes having local features respectively; Based on the association between different local features of the second feature map, global information is aggregated and image size is compressed to obtain a third feature map having local features and global features; Based on the third feature map, two serially arranged tokenized MLP modules are used to perform image size compression twice in sequence, and image features are marked and projected to obtain a fourth feature map and a fifth feature map respectively; Based on the fifth feature map, upsampling and feature extraction are performed in sequence, and feature maps of corresponding sizes in the encoder are fused through jump connections, and the final image segmentation result is obtained by decoding; The aggregating global information based on the association between different local features of the second feature graph and performing image size compression includes: Convert the input second feature map from three dimensions to a sequence to obtain one-dimensional sequence data; The one-dimensional sequence data is layer-normalized and then divided into a plurality of fixed windows, and the self-attention in each fixed window is calculated to obtain the local information in each fixed window; and the association between the local information is integrated through the sliding window self-attention operation to construct the global information of the feature map, so as to enhance the global feature data; The feature data after data enhancement is normalized layer by layer, and feature extraction is performed through the MLP layer. The extracted feature data is converted from sequence to three-dimensional to obtain a three-dimensional feature map containing global features; Using a parallel convolution module to extract features from the second feature map to obtain a local feature map; Performing an intra-channel addition operation on the local feature map and the three-dimensional feature map containing the global features; The cascaded convolution modules are used to extract features and compress the size of the feature map after the addition operation.
Citation Information
Patent Citations
Surgical process analysis method based on laparoscopic endoscopic image
CN113813053A
Retinal vessel segmentation method and system based on mixed attention and multi-scale cascading
CN116935045A
Training method of medical image segmentation model
CN117933345A
Medical image segmentation method based on global and local feature reconstruction network
WO2023151141A1
