Gastrointestinal tumor segmentation network based on voting mechanism feature conversion multi-task
By using a feature transformation multi-task network based on a voting mechanism, and utilizing multi-scale feature extraction and feature transformation pyramid modules, the network adaptively selects features of appropriate scales, thus solving the problem of redundant information affecting existing technologies. This achieves accurate segmentation and classification of gastrointestinal tumors and improves the segmentation and classification accuracy of the network.
Patent Information
- Application Number
- CN202410406544.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-07
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-04-07
AI Technical Summary
Existing multi-task learning frameworks contain redundant or misleading information that affects feature extraction in gastrointestinal tumor segmentation, resulting in insufficient segmentation and classification accuracy. Furthermore, existing methods require multiple training sessions, leading to high computational costs and making it difficult to effectively utilize limited data. Additionally, small targets are easily compressed during feature extraction, making accurate segmentation impossible.
A feature transformation multi-task network based on a voting mechanism is adopted, using a multi-scale feature extraction module and a feature transformation pyramid module. A voting gate module is designed to adaptively select features of appropriate scales, and a self-attention mechanism is combined to enhance feature fusion. Through the feature transformation pyramid structure, the effective fusion of multi-scale features and the autonomous feature selection of the task head network are realized.
It improves the accuracy and classification precision of gastrointestinal tumor segmentation, enhances the network's generalization ability, reduces missegmentation, improves indicators such as the Dice coefficient and Jaccard index, and enhances the correlation and complementarity of different information.
Smart Images

Figure CN118229978B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of medical image processing technology, specifically relating to a gastrointestinal tumor segmentation network based on a voting mechanism and feature transformation multitasking. Background Technology
[0002] Existing multi-task learning frameworks can be mainly divided into two categories: non-end-to-end and end-to-end methods. The first type typically trains two models for segmentation and classification, using the predictions of one model as auxiliary input to the other, thus transforming useful information between the two tasks. However, this type of algorithm requires separate training of the segmentation and classification networks before they can interact, making training overly cumbersome and the networks excessively large. Unlike non-end-to-end methods, end-to-end methods achieve the goal of sharing useful information between different tasks by sharing the parameters of the underlying feature extraction network and adding different task loss functions.
[0003] However, most existing multi-task networks ignore the impact of redundant or misleading information in the shared feature extraction module on the results. This misleading information can hinder the selective transfer of effective contextual information from the feature extraction module to the task-specific head network. In addition, different types of gastrointestinal tumors vary greatly in location and shape.
[0004] In clinical practice, doctors first determine the location of the lesion and then perform pathological examination to differentiate between benign and malignant lesions. Furthermore, benign and malignant lesions also exhibit different appearances. For example, gastric stromal tumors often occur on the greater curvature of the gastric body and are mostly extraluminal, with malignant lesions exceeding 5 cm in size; while gastric leiomyomas are more common in the gastric body, are more frequently intraluminal, and are less than 5 cm in size. This indicates that the accuracy of segmentation tasks is closely related to the precision of lesion classification tasks. Moreover, due to the limited amount of data for different types of tumors, training the network with a small amount of data can lead to overfitting and insufficient generalization ability.
[0005] After feature extraction, a conventional CNN uses the feature map output by the last convolutional layer to segment the target. However, since the convolution operation reduces the size of the feature map in the network, some small targets in the image will be gradually compressed during the feature extraction process, eventually resulting in too few features and inability to perform accurate segmentation.
[0006] Convolutional neural networks naturally generate multi-scale feature maps, and existing multi-scale feature fusion methods leverage this by constructing a pyramid structure from these feature maps. This involves combining low-resolution, strong semantic features with high-resolution, weak semantic features through top-down pathways and lateral connections. Simultaneously, independent prediction results are output at different feature layers; that is, deeper feature maps are used for prediction of larger targets, while progressively thinner feature maps are used for smaller targets. However, in this approach, the interactions between different features are not at the same level, making it difficult to effectively integrate features extracted from low-level semantic information with high-level semantic information.
[0007] Most existing tumor segmentation frameworks employ single-task learning methods, typically using a single model to segment a single target. While some combine multiple models to achieve segmentation and classification, this approach requires multiple training iterations of each model, leading to excessive computational costs and redundant training of similar networks. Multi-task learning, on the other hand, can perform multiple tasks simultaneously, rather than using different networks for different tasks. Compared to single-task learning, multi-task learning not only efficiently extracts various features but also improves prediction accuracy by leveraging the correlation and complementarity of different tasks. These methods mostly aim to achieve multiple tasks using a single model, while considering the preferences of different tasks for different features and the feature-sharing design of the network. Current multi-task learning methods are largely designed for natural images; however, the significant differences in contrast, anatomical structure, and imaging principles between medical images and natural images limit their applicability to medical images. Summary of the Invention
[0008] To address the technical problems existing in the prior art, this invention provides a multi-task gastrointestinal tumor segmentation network based on a voting mechanism for feature transformation. It uses multi-scale feature extraction to encode image features and designs a voting gate module for specific tasks to adaptively select preferred features from different features. For the fusion of multi-scale features, a new feature transformation pyramid module is designed to fuse the multi-scale features extracted by the encoder.
[0009] To achieve the above objectives, the technical solution adopted in this invention is: a multi-task gastrointestinal tumor segmentation network based on a voting mechanism for feature transformation, comprising three main parts: a feature extraction module, a voting gate module, and a task head network, which uses combinations of features at different scales to accurately segment and classify different types of tumors.
[0010] The feature extraction module consists of three ResNet convolutional kernels of different sizes: 3×3, 5×5, and 7×7, used to extract features of different dimensions. By using convolutional kernels of different scales, information at different scales is extracted. This invention uses a newly designed voting gate module (TVG) for independent tasks, which automatically selects features of appropriate scales for fusion for classification and segmentation tasks, thereby improving the accuracy of the network.
[0011] In two independent voting gate modules, each corresponding to a specific task, the system adaptively learns how to select and fuse features. Each voting gate module consists of multiple 3×3 convolutional layers, which undergo batch normalization and ReLU activation, finally using a Sigmoid activation function to map the features into a two-channel probability map. The voting gate for each task takes the intermediate results from each layer of the three branches of the feature extraction module as input, adjusting its size and channels at input to better fuse the three dimensions of features. The output is the task-specific knowledge learned by the voting gate.
[0012] The voting gate selects features from two levels: image features from different levels and features from different spatial locations in the encoder. The image features from different levels utilize the fact that the importance of features from these three levels varies in different tasks, and features from different spatial locations in the encoder are selected accordingly. For example, features from different spatial locations in the encoder utilize the spatial features of the image. Smaller convolutional kernels have smaller receptive fields, so they can extract more detailed features such as texture and edges, while larger convolutional kernels have larger receptive fields and can obtain better positional information.
[0013] At the decoding end, the features from the three levels of decoders are fused using a newly designed feature transformation pyramid to obtain multi-scale fused features. These multi-scale fused features are then multiplied by the weights obtained from the voting gate, and the summation yields the feature map for the corresponding task. This operation is represented as:
[0014]
[0015] Where n represents the number of channels of the feature, The i-th channel represents the voting gate, ⊙ represents element-wise multiplication, and then the segmentation- and classification-specific feature maps are fed into the corresponding task head network to obtain the final result.
[0016] The segmentation head network consists of one 3×3 convolutional layer and one 1×1 convolutional layer, which maps the features fed into the network to the original image size and two channels to predict the background and the target. The classification head network consists of one fully connected layer, and the classification results and the labels of the dataset are encoded using one-hot encoding.
[0017] At the spatial level, the Feature Transformation Pyramid (FTP) transforms features to enable interaction between features of the same scale but different spaces, enhancing the network's connection between different types of information. At the scale level, a top-down approach is used, leveraging more abstract deep semantic information extracted from deep networks to supplement shallow features lacking abstract information. Similarly, a bottom-up approach is used, utilizing more specific features from gradient features to supplement deep semantic information, enhancing the correlation between different objects and information at different scales.
[0018] The feature transformation pyramid consists of three parts: a feature self-transformer used at the spatial level, a deep feature transformer used at the scale level, and a shallow feature transformer. The spatial feature transformation uses a self-attention mechanism to compute the connections between information at different locations in the image. In the deep feature transformer at the scale level, Q, K, and V are first extracted simultaneously from both the shallow and deep feature self-attention layers, where Q is the query vector, K is the key-value vector, and V is the value vector. Then, unlike the attention layer, Q from the shallow layer is first computed. s and K from the depths d The Euclidean distance matrix between the two features is used to describe their correlation. This matrix replaces the intermediate variable obtained by multiplying Q and K in the self-attention process. This limits the scope of attention application, focusing more on regions with different semantic information, thus achieving feature transformation. Simultaneously, it transforms the original matrix multiplication into matrix subtraction, reducing computational cost. The resulting feature map size is the same as the depth dimension. The specific calculation process is shown below:
[0019] w = ||Q s -K d || 2 (2)
[0020]
[0021] Where, d k Let Q be the variance of K in the deep features. s From shallow features, K d Derived from deep features.
[0022] The shallow feature converter is similar to the deep feature converter in that it uses global average pooling instead of Euclidean distance matrix. Since the objects in the shallow layer are far apart, the deep feature of a certain object may only be one pixel in the feature map. Therefore, the deep feature does not need to be associated with objects that are far away in the shallow layer, and the size of the obtained feature map is the same as that of the shallow feature.
[0023] The feature transformation pyramid structure first extracts features from different dimensions in the backbone network to obtain corresponding feature pyramids. The feature pyramids are then passed through three feature transformers to obtain three feature maps with different correlations. The three different feature maps are then rearranged according to their size, and feature maps of the same size are concatenated and the number of channels is adjusted using 1×1 convolutions to finally obtain a set of feature pyramids.
[0024] For multi-task learning, the total loss of the network is a weighted sum of the losses from multiple tasks; that is, for N tasks, there are N loss functions L1, L2, ..., L... N The total loss is expressed as:
[0025]
[0026] Where, λ N The weights for the task-specific loss are defined. In the segmentation task, Dice loss is used, and the calculation process is shown below, where TP, FP, and FN represent the number of true positive samples, false positive samples, and false negative samples, respectively:
[0027]
[0028] Classification tasks use cross-entropy loss, and the formula for calculating cross-entropy loss is:
[0029]
[0030] y i p represents the label value of sample i. i This represents the probability that sample i is predicted to be a positive sample.
[0031] In summary, this invention proposes a feature transformation multi-task network (VFC-Net) based on a voting mechanism. To maximize the utilization of the limited gastrointestinal tumor data, a classification task is added to the segmentation network using a multi-task learning framework. This invention designs a multi-scale feature extraction module and a novel feature transformation pyramid when fusing features at different scales. This pyramid complements information from different dimensions, enhancing the feature extraction module's ability to extract effective features and thus improving the network's generalization ability. Furthermore, this invention designs a novel task voting gate module, which allows the segmentation and classification networks to automatically select the most effective feature combinations based on their respective task characteristics. The module also guides the segmentation network based on the output of the classification network, thereby improving the accuracy of the segmentation network. Attached Figure Description
[0032] Figure 1 This is a diagram of the network framework structure of the present invention.
[0033] Figure 2This is a schematic diagram of the feature transformation pyramid structure.
[0034] Figure 3 This is a diagram showing the segmentation result of using summation instead of voting gates.
[0035] Figure 4 This diagram illustrates the impact of using voting gates on classification tasks. Figure 4 (a) is a schematic diagram of the confusion matrix for the summation operation. Figure 4 (b) is a schematic diagram of the confusion matrix of the task voting gate.
[0036] Figure 5 This is a visualization of the segmentation results of different algorithms on the GISTS dataset.
[0037] Figure 6 The images show the segmentation results for different types of tumors. Detailed Implementation
[0038] To make the technical problems to be solved, the technical solutions, and the beneficial effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and are not intended to limit the present invention.
[0039] like Figure 1 As shown, the feature transformation multi-task gastrointestinal tumor segmentation network based on voting mechanism consists of three main parts: feature extraction module, voting gate module and task head network. It uses a combination of features at different scales to accurately segment and classify different types of tumors.
[0040] The feature extraction module consists of three ResNet convolutional kernels of different sizes: 3×3, 5×5, and 7×7, used to extract features of different dimensions. By using convolutional kernels of different scales, information at different scales is extracted. Unlike existing multi-scale attention mechanisms, a newly designed voting gate module (TVG) for independent tasks is used. For classification and segmentation tasks, it automatically selects features of appropriate scales for fusion to improve network accuracy.
[0041] In two independent task-specific voting gate modules, each corresponding to one task, adaptively learns how to perform feature selection and fusion. Each voting gate module consists of multiple 3×3 convolutional layers, processed with batch normalization and ReLU activation, and finally mapped to a two-channel probability map using a Sigmoid activation function. The voting gate for each task takes the intermediate results from each layer of the three branches of the feature extraction module as input, adjusting its size and channels at input to better fuse the three dimensions of features. The output is the task-specific knowledge learned by the voting gate.
[0042] The voting gate selects features from two levels: image features from different levels and features from different spatial locations in the encoder. The image features from different levels take advantage of the fact that the three levels of features show different importance in different tasks, and features from different spatial locations in the encoder are selected. The features from different spatial locations in the encoder take advantage of the spatial features of the image. For example, smaller convolutional kernels have smaller receptive fields, so they have better extraction effects on details such as texture and edges, while larger convolutional kernels have larger receptive fields and can obtain better positional information.
[0043] At the decoding end, the features from the three levels of decoders are fused using a newly designed feature transformation pyramid to obtain multi-scale fused features. These multi-scale fused features are then multiplied by the weights obtained from the voting gate, and the summation yields the feature map for the corresponding task. This operation is represented as:
[0044]
[0045] Where n represents the number of channels of the feature, The i-th channel represents the voting gate, ⊙ represents element-wise multiplication, and then the segmentation- and classification-specific feature maps are fed into the corresponding task head network to obtain the final result.
[0046] The segmentation head network consists of one 3×3 convolutional layer and one 1×1 convolutional layer, which maps the features fed into the network to the original image size and two channels to predict the background and the target. The classification head network consists of one fully connected layer, and the classification results and the labels of the dataset are encoded using one-hot encoding.
[0047] like Figure 2 As shown, at the spatial level, the Feature Transformation Pyramid (FTP) transforms features to enable interaction between features of the same scale but different spaces, enhancing the network's connection between different types of information. At the scale level, a top-down approach is used, leveraging more abstract deep semantic information extracted from deep networks to supplement shallow features lacking abstract information. Similarly, a bottom-up approach is used, utilizing more specific features from gradient features to supplement deep semantic information, enhancing the correlation between different objects and information at different scales.
[0048] The feature transformation pyramid consists of three parts: a feature self-transformer used at the spatial level, a deep feature transformer used at the scale level, and a shallow feature transformer. The spatial feature transformation uses a self-attention mechanism to compute the connections between information at different locations in the image. In the deep feature transformer at the scale level, firstly, Q, K, and V are extracted simultaneously from both shallow and deep feature self-attention. Then, unlike the attention mechanism, Q from the shallow feature transformer is computed. s and K from the depthsd The Euclidean distance matrix between the two features is used to describe their correlation. This matrix replaces the intermediate variable obtained by multiplying Q and K in the self-attention process. This limits the scope of attention application, focusing more on regions with different semantic information, thus achieving feature transformation. Simultaneously, it transforms the original matrix multiplication into matrix subtraction, reducing computational cost. The resulting feature map size is the same as the depth dimension. The specific calculation process is shown below:
[0049] w = ||Q s -K d || 2 (2)
[0050]
[0051] Where, d k Let Q be the variance of K in the deep features. s From shallow features, K d Derived from deep features.
[0052] The shallow feature converter is similar to the deep feature converter in that it uses global average pooling instead of Euclidean distance matrix. Since the objects in the shallow layer are far apart, the deep feature of a certain object may only be one pixel in the feature map. Therefore, the deep feature does not need to be associated with objects that are far away in the shallow layer, and the size of the obtained feature map is the same as that of the shallow feature.
[0053] The feature transformation pyramid first extracts features from different dimensions in the backbone network to obtain the corresponding feature pyramid. The feature pyramid is then passed through three feature transformers to obtain three feature maps with different correlations. The three different feature maps are then rearranged according to their size, and feature maps of the same size are concatenated and the number of channels is adjusted using 1×1 convolution to finally obtain a set of feature pyramids.
[0054] For multi-task learning, the total loss of the network is a weighted sum of the losses from multiple tasks; that is, for N tasks, there are N loss functions L1, L2, ..., L... N The total loss is expressed as:
[0055]
[0056] Where, λ N The weights for the loss are determined by the task: Dice loss is used for segmentation tasks, and cross-entropy loss is used for classification tasks. The formula for calculating cross-entropy loss is as follows:
[0057]
[0058] This invention uses a self-collected gastrointestinal tumor segmentation dataset (GISTS), acquired using a DiscoveryCT750 HD and a Siemens Force CT scanner (tube current: 100 mAs, tube voltage: 120 kV), with a slice thickness of 5 mm. Of the 5019 slices from 74 cases, 1174 slices contained lesions. The tumors were classified into four types: stromal tumor, leiomyoma, ectopic pancreas, and schwannoma. The image size was 512x512. There were 820 stromal tumor slices, 90 leiomyomas, 220 schwannomas, and 44 ectopic pancreas slices.
[0059] During training, the Adam optimizer with 0.5 momentum and 0.0001 weight decay was used for 30,000 iterations. All experiments were performed on a 50GB NVIDIA RTX 8000 GPU using PyTorch 1.8. The initial learning rate was set to 0.0002, decaying by a factor of 0.1 every 100 iterations. Initialization was performed using the Kaiming Normal method. Widely used metrics such as Dice coefficient, Jaccard exponent (Jc), precision, and recall were employed. These metrics effectively reflect the model's segmentation performance, and classification results were evaluated using accuracy, sensitivity, and specificity.
[0060] To validate the proposed Feature Transformation Pyramid (FTP) and Task Voting Gate (TVG), ablation experiments were first conducted within the basic UNet network framework using the proposed FTP structure and TVG to verify the effectiveness of the proposed module. Specifically, a feature transformation pyramid was used in the deepest layer of UNet, leveraging the multi-level features contained in the skip connections of UNet as auxiliary information to fuse deep features. A classification branch was added at the decoding end to generate prediction results, and a task voting gate was added at the output of both branches. The experimental results are shown in Table 1.
[0061] Table 1. Quantitative analysis of ablation experiments verifying the effectiveness of each module of VFC-Net.
[0062]
[0063]
[0064] The task voting gate proposed in this invention allows different task-oriented head networks to autonomously select preferred features for generating predictions. As shown in the table above, using the task voting gate improves the network's segmentation accuracy. Simultaneously, because the feature transformation pyramid effectively fuses multi-scale information, it retains information such as the relative position of deep feature semantics while adding specific features like texture from shallow features, thus improving segmentation accuracy. Indicators such as the Dice coefficient and Jaccard coefficient are improved, making the predicted image closer to the ground truth image. Furthermore, both modules also improve recall and precision, reducing missegmentation.
[0065] Table 2 shows the impact of using single-task and multi-task frameworks on segmentation and classification.
[0066]
[0067] Table 2 shows the segmentation and classification results of two different methods, single-task VFC-Net and multi-task VFC-Net, using feature transformation pyramids and task voting gate modules. Compared with the single-task framework, the multi-task framework improves various evaluation metrics by 0.01 to 0.02, indicating that classification and segmentation tasks can complement each other, utilizing the correlation and complementarity of different tasks to improve prediction accuracy.
[0068] To verify the effectiveness of the task voting gate for each task, a summation operation was used instead of the task voting gate to observe its impact on the segmentation results. Figure 3 The image illustrates the impact on segmentation tasks. The first column shows the original image, the second column shows the true prediction results, the third column shows the results using the summation operation, and the fourth column shows the prediction results from VFC-Net. The four images represent different types of tumors. The comparison shows that using the task voting gate improves segmentation performance for targets with significant morphological variations, particularly in details such as edges or small regions. This is because different types or stages of tumors exhibit subtle differences in appearance. A single-task approach might not be able to detect these subtle differences, while multi-task training guides the network to learn features specific to different tumors. Furthermore, the task voting gate module enhances this learning ability. Using a feature transformation pyramid establishes better connections between multi-scale contextual information, strengthening the relationships between different specific features, thereby achieving high-precision segmentation.
[0069] Figure 4 This demonstrates the impact of task voting gates on task classification, among which... Figure 4 (a) is the confusion matrix for replacing task voting gates with summation operations. Figure 4(b) shows the confusion matrix using the task voting gate. It can be seen that using the task voting gate improves the accuracy of the classification task and reduces the probability of misclassification. Ectopic pancreas has poor classification accuracy due to its small data volume, accounting for only 3.7% of the total data volume, while stromal tumors, which account for 69.8% of the total data volume, have the highest classification accuracy under all conditions.
[0070] To verify the advancement of the proposed algorithm, it was compared with existing advanced supervised algorithms such as Unet (baseline), ResUnet, SegAN, CA-Net, NU-Net, and MSCA-Net. Quantitative results of VFC-Net compared with other existing advanced or classic models for medical image segmentation are shown in Table 3. It can be seen that the proposed VFC-Net model outperforms the other eight methods on the important segmentation metric Dice, demonstrating its ability to accurately segment gastrointestinal tumors. It also surpasses other methods in Precision and Recall values, which evaluate detail segmentation performance. This indicates that the multi-task learning, the proposed task voting gate module, and the feature transformation pyramid used in this invention effectively select and fuse information at different scales, choosing appropriate features for different targets to achieve accurate segmentation.
[0071] Table 3. Quantitative results of VFC-Net and other algorithms on the GISTS dataset.
[0072]
[0073] Table 3 shows the quantitative results of VFC-Net compared with other advanced or classic models for medical image segmentation. It can be seen that the VFC-Net model proposed in this invention outperforms the other eight methods on the important segmentation metric Dice, proving that it can accurately segment gastrointestinal tumors. It also outperforms other methods in the Precision and Recall values, which evaluate the performance of detail segmentation. This indicates that the multi-task learning, the proposed task voting gate module, and the feature transformation pyramid used in this invention effectively select and fuse information at different scales, and select appropriate features for different targets, thereby achieving accurate segmentation.
[0074] The qualitative results visualization of VFC-Net compared to other methods is shown in the figure below. Figure 5 As shown in the figure, the segmentation results for four tumor sizes are displayed, with tumor size increasing from top to bottom. The green line represents the ground truth result, and the red line represents the network prediction result. It can be seen that tumors of different sizes differ significantly in their location and shape within the organ in the image, and there are also subtle differences in the density within the tumor. The results show that all methods correctly locate the tumor region, but for cases where the lesion is located at the organ's edge, such as... Figure 5As shown in the third row, because the density of organ edges is similar to that of tumors, some methods such as Unet and ResUnet cannot distinguish between tumors and organ boundaries well, sometimes predicting organ boundaries as tumors as well. For tumors with significant morphological variations or uneven internal density, as shown in the third row, other methods cannot generate accurate boundaries. The feature transformation pyramid proposed in this invention can effectively integrate multi-scale features extracted by the multi-scale feature extraction module, enabling the network to perform specific feature learning and prediction for tumors of different morphologies, thus generating more consistent predictions even in the complex boundary situations shown in the third row.
[0075] To verify that the algorithm proposed in this invention can produce accurate predictions for various types of tumors, such as... Figure 6 The image shows a visualization of the segmentation results for four different types of tumors, from top to bottom: ectopic pancreas, schwannoma, leiomyoma, and stromal tumor. It can be seen that the different types of tumors differ significantly in location and morphology. For example, ectopic pancreas is often found at the fundus of the stomach around the intestines, while stromal tumors may span the medial and lateral sides of the stomach wall. The method proposed in this invention uses a task voting gating module, employing a classification network to guide the segmentation network, directing the network to select features at different scales. This allows it to choose the most suitable features for segmentation of different types of tumors. Therefore, compared to other methods, it can generate results that most closely resemble the real-world regions for various types of tumors.
[0076] To verify the classification performance of VFC-Net, it was compared with two existing popular deep learning classification frameworks, AlexNet and GoogleNet. The results are shown in Table 4. It can be seen that the framework proposed in this invention has better performance in terms of accuracy, sensitivity and specificity.
[0077] Table 4 Comparison of VFC-Net classification task evaluation metrics
[0078]
[0079] This invention proposes a tumor segmentation algorithm, VFC-Net, utilizing multi-task learning. Since the location and morphology of the tumor are strongly correlated with its type, multi-scale feature extraction is employed to encode image features. Furthermore, considering the different features used in different tasks, a voting gate module is designed to adaptively select preferred features from various options. For multi-scale feature fusion, a novel feature transformation pyramid module is designed to fuse the multi-scale features extracted by the encoder. Ablation experiments demonstrate the effectiveness of these two modules, and comparisons with other state-of-the-art methods confirm the superiority of the VFC-Net network, exhibiting high accuracy in both segmentation and classification tasks.
[0080] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included within the scope of the present invention.
Claims
1. A multi-task gastrointestinal tumor segmentation method based on feature transformation using a voting mechanism, characterized in that, It includes a feature extraction module, two independent voting gate modules, and a task header network; The feature extraction module consists of 3 3 convolution, 5 5 convolutions and 7 A ResNet consisting of 7 convolutions is used to extract features of different dimensions. The voting gate module corresponds to a task, adaptively learning feature selection and fusion. The voting gate module consists of multiple 3 The system consists of 3 convolutional layers, which are batch normalized and activated by ReLU. The Sigmoid activation function is then used to map the features into a two-channel probability map. The voting gate for each task takes the intermediate results of each layer of the three branches of the feature extraction module as input. The size and channels are adjusted during input, the features of the three dimensions are fused, and the task knowledge learned by the voting gate is output. At the decoding end, the features from the three levels of decoders are fused using a feature transformation pyramid structure to obtain multi-scale fused features. These multi-scale fused features are then multiplied by the weights obtained from the voting gate, and the summation yields the feature map for the corresponding task, specifically represented as follows: (1) Where n represents the number of channels of the feature, The first representative voting gate One channel, This represents element-wise multiplication, where segmentation- and classification-specific feature maps are fed into the corresponding task head network to obtain the final result. The task header network includes a layer of 3 3 convolutions and one layer of 1 One convolution maps the features fed into the network to the original image size and two channels to predict the background and the target.
2. The gastrointestinal tumor segmentation method based on voting mechanism and feature transformation multi-task according to claim 1, characterized in that, At the spatial level, the feature transformation pyramid structure transforms features to enable interaction between features of the same scale but different spaces. At the scale level, a top-down approach is used to supplement shallow features with deep semantic information extracted from deep networks, while a bottom-up approach is used to supplement deep semantic information with specific features in the gradient features. The feature transformation pyramid consists of a feature self-transformer used at the spatial level, a deep feature transformer used at the scale level, and a shallow feature transformer. The spatial feature transformation uses a self-attention mechanism to compute the connections between information at different locations in the image. At the scale level, the deep feature transformer simultaneously extracts features from both the shallow and deep self-attention mechanisms. , and Where Q is the query vector, K is the key-value vector, and V is the value vector, calculated from the shallow layer. and from the depths The Euclidean distance matrix between deep and shallow features describes the correlation between them. This matrix is used to replace the self-attention matrix. and The intermediate variable obtained by multiplication limits the scope of attention application, focusing on regions with different semantic information, thus achieving feature transformation. This converts the original matrix multiplication into matrix subtraction, resulting in a feature map with the same size as the deep dimension. The specific calculation process is shown below: (2) (3) in, For deep features variance From shallow features, Derived from deep features; The feature transformation pyramid extracts features from different dimensions in the backbone network to obtain the corresponding feature pyramid. The feature pyramid obtains three feature maps with different correlations through three feature transformers. The three different feature maps are rearranged according to their size, and feature maps of the same size are concatenated and the number of channels is adjusted using 11 convolution, finally obtaining a set of feature pyramids.
3. The gastrointestinal tumor segmentation method based on voting mechanism and feature transformation multi-task according to claim 1, characterized in that, Assign N loss functions to N tasks. The total loss function is expressed as: (4) in, The weights for the task-specific loss are defined. In the segmentation task, Dice loss is used, and the calculation process is shown below, where TP, FP, and FN represent the number of true positive samples, false positive samples, and false negative samples, respectively: ; Classification tasks use cross-entropy loss, and the formula for calculating cross-entropy loss is: (5) Indicates sample The tag value, Indicates sample The probability of predicting a positive sample.
