Target area segmentation and recognition method and system for CT images

By combining the Transformer encoder and multi-scale encoder methods, feature extraction and fusion of CT images solves the problems of low delineation efficiency and large errors in existing radiotherapy technology, and achieves accurate, fast and universal detection of CT image target areas. Highly adaptable segmentation improves radiotherapy efficiency.

CN115018809BInactive Publication Date: 2024-09-10HUAZHONG UNIV OF SCI & TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210745666.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing radiotherapy technology is inefficient in delineating organs at risk and relies on doctors' subjective knowledge. Moreover, there are placement errors and changes in tissue structure during fractionated radiotherapy, resulting in dose deviations in the target area and increasing the workload of doctors.

Method used

The method of combining Transformer encoder and multi-scale encoder is used to extract and fuse features of CT images, and the feature adaptive attention module is used to perform end-to-end target segmentation, determine the location of organs at risk and diseased tissue, and improve segmentation accuracy. and universality.

Benefits of technology

It achieves accurate, fast, and highly universal recognition of target segmentation in CT images, reduces the workload of doctors’ delineation, reduces errors during fractionated radiotherapy, and improves radiotherapy efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115018809B
    Figure CN115018809B
Patent Text Reader

Abstract

The present invention discloses a target segmentation and recognition method and system for CT images, which belongs to the field of biomedical image segmentation. The method includes: obtaining a CT image, extracting features from the CT image using a Transformer encoder to obtain a first feature map, and extracting features from the CT image using a multi-scale encoder to obtain a second feature map; using a feature adaptive attention module to fuse the first feature map and the second feature map to obtain a fused feature map; using a decoder to decode the fused feature map layer by layer to achieve end-to-end target segmentation of the CT image. The system can automatically outline the CT image, greatly shortening the time and effort spent on the manual outline process, and improving the outline efficiency and accuracy. The results of the automatic outline can be intuitively displayed and saved locally for subsequent viewing and proofreading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of biomedical image segmentation, and more specifically, relates to a target area segmentation and recognition method and system for CT images. Background Art

[0002] Radiotherapy is one of the main means of treating malignant tumors. Its basic principle is to maximize the radiotherapy gain ratio, that is, to maximize the radiation dose to be concentrated in the radiotherapy target area and to minimize the radiation dose to the organs at risk. Therefore, accurate delineation of organs at risk and lesions is an important part of successful radiotherapy. Although radiotherapy technology has been changing with each passing day in recent years, there are still many problems in delineation. For example, when delineating organs at risk, doctors need to delineate the slices of the image layer by layer, which is time-consuming, labor-intensive, inefficient, and extremely dependent on the doctor's subjective knowledge and personal experience. It is worth noting that during fractionated radiotherapy, there are positioning errors and changes in the patient's tissue structure (such as tumor ablation, body shape changes, etc.), which cause the actual target area to deviate from the planned dose, and may even cause the normal tissue to receive an excessive dose. Re-acquisition of images, delineation of the target area, and formulation of radiotherapy plans can effectively avoid the errors caused by these factors, but doctors need to delineate multiple times during fractionated radiotherapy, which greatly increases the workload of doctors. Therefore, there is an urgent need for an artificial intelligence delineation system that can assist clinicians in automatically delineating tumors and organs at risk.

[0003] At present, the main application in clinical practice is the automatic delineation based on Atlas. Commonly used software includes Varian's Atlas-based auto-segmentation software (ABAS), Velocity, MIMvista, etc. This type of automatic delineation program uses medical image registration technology to optimize the anatomical features of the reference image and the image to be delineated using the deformation field, and then performs spatial mapping and transformation to complete the automatic delineation. However, these methods need to establish models for patients of different body shapes separately, lack universality, and require elastic registration of patient images. This process also takes some time and is not well applicable to clinical practice. Summary of the invention

[0004] In view of the defects of the prior art and the need for improvement, the present invention provides a method and system for target segmentation and recognition of CT images, the purpose of which is to provide an accurate, highly universal and fast segmentation speed target segmentation and recognition model for CT images.

[0005] To achieve the above-mentioned object, according to one aspect of the present invention, a method for target segmentation and recognition of a CT image is provided, comprising: S1, acquiring a CT image, performing feature extraction on the CT image using a Transformer encoder to obtain a first feature map, and performing feature extraction on the CT image using a multi-scale encoder to obtain a second feature map; wherein the multi-scale encoder comprises two sub-encoders of different scales, which are used to convert the CT image into an image with a scale consistent with the scale of the sub-encoder and input the image into the corresponding sub-encoder, and after feature extraction, output two sets of feature maps F with the same scale respectively. α and feature map F β ; Perform feature extraction, downsampling and inter-level feature concatenation on the hidden feature maps of each level of the sub-encoder in turn to generate a feature map H corresponding to each sub-encoder α And the feature map H β , the second feature map includes a feature map F α , feature map F β , feature map H α And the feature map H β ; S2, using the feature adaptive attention module to perform feature fusion on the first feature map and the second feature map to obtain a fused feature map; S3, using a decoder to perform layer-by-layer feature decoding on the fused feature map to perform end-to-end target segmentation on the CT image to determine the locations of endangered organs and diseased tissues.

[0006] Furthermore, the Transformer encoder includes a multi-head attention module and a multi-layer perceptron module, and the use of the Transformer encoder to extract features from the CT image includes: converting the CT image into a sequence that matches the Transformer encoder input; using the multi-head attention module to project the sequence into different subspaces of the original high-dimensional space for self-attention calculation to obtain self-attention scores in each subspace, and cascading the self-attention scores in each subspace to obtain a cascade score; using the multi-layer perceptron module to perform feature space conversion on the cascade score to obtain an output vector, and converting the output vector into a three-dimensional matrix form as the first feature map.

[0007] Furthermore, the self-attention calculation includes: calculating the query vector, key vector and value vector of the sequence in any subspace, performing a dot product operation on the query vector and the key vector to obtain an attention score; normalizing the attention score through a softmax activation function to obtain a normalized score, and multiplying the normalized score by the value vector to obtain a self-attention score of the subspace.

[0008] Furthermore, the cascade score is:

[0009] MHA(X l )=X l +Concat[HA(X l )1HA(X l )2…HA(X l ) h ]×W o

[0010] Among them, MHA(X l ) is the cascade score, X l is the sequence, Concat[·] is the feature channel fusion operator, HA(X l ) i is the self-attention score of subspace i, i = 1, 2, ..., h, h is the number of independent self-attention layers in the multi-head attention module, W o is a learnable matrix.

[0011] Furthermore, the output vector is:

[0012] X l+1 =MLP(MHA(X l ))+MHA(X l )

[0013] Among them, X l+1 is the output vector, MLP(·) is an MLP network consisting of two linear layers with GeLu activation function, MHA(X l ) is the cascade score, X l for the sequence.

[0014] Furthermore, the feature adaptive attention module includes a channel attention module and a spatial attention module, and S2 includes: combining the first feature map and the second feature map to generate an enhanced feature map; using the channel attention module to aggregate the spatial dimension information of the enhanced feature map, and derive the attention on finer channels to generate a channel attention map; using the spatial attention module to perform maximum pooling and average pooling on the channel attention map in sequence, and then linearly combining the pixels of each pixel point on different channels to obtain the fused feature map.

[0015] Furthermore, before S1, it also includes: training the Transformer encoder, multi-scale encoder, feature adaptive attention module and decoder with the goal of achieving a global optimal solution of the Dice loss function.

[0016] According to another aspect of the present invention, a target segmentation and recognition system for CT images is provided, comprising: an encoding module, configured to extract features from a CT image using a Transformer encoder to obtain a first feature map, and to extract features from the CT image using a multi-scale encoder to obtain a second feature map; wherein the multi-scale encoder comprises two sub-encoders of different scales, configured to convert the CT image into an image having a scale consistent with that of the sub-encoder and input the image into a corresponding sub-encoder, and output two sets of feature maps F having the same scale after feature extraction. α and feature map F β ; Perform feature extraction, downsampling and inter-level feature concatenation on the hidden feature maps of each level of the sub-encoder in turn to generate a feature map H corresponding to each sub-encoder α And the feature map H β , the second feature map includes a feature map F α , feature map F β , feature map H α And the feature map H β A feature fusion module is used to use the feature adaptive attention module to perform feature fusion on the first feature map and the second feature map to obtain a fused feature map; a decoding and recognition module is used to use a decoder to perform layer-by-layer feature decoding on the fused feature map to perform end-to-end target segmentation on the CT image to determine the locations of endangered organs and diseased tissues.

[0017] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects: a target segmentation and recognition method for CT images is provided, the transformer algorithm is migrated, the self-attention architecture is used to fit more interrelated information between features, and the diffusion mechanism from local information to global information is used to seek efficient semantic expression, thereby improving the universality and generalization ability of the segmentation and recognition model; considering that the transformer does not have translation invariance, diagnostic errors may occur in the detection of certain key points, therefore, a parallel coding structure is designed, and the scale invariance of the convolutional neural network in the multi-scale encoder and the spatial long-distance feature fusion of the transformer are used to encode the original medical image features, thereby improving the segmentation accuracy of the segmentation and recognition model. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flow chart of a target area segmentation and recognition method for a CT image provided by an embodiment of the present invention;

[0019] Figure 2 A schematic diagram of an overall network architecture provided by an embodiment of the present invention;

[0020] Figure 3A schematic diagram of a dual attention mechanism in a feature adaptive attention module provided by an embodiment of the present invention;

[0021] Figure 4 for Figure 3 Schematic diagram of the channel attention mechanism in the dual attention mechanism shown;

[0022] Figure 5 for Figure 3 Schematic diagram of the spatial attention mechanism in the dual attention mechanism shown;

[0023] Figure 6 A schematic diagram of a software operation interface provided by an embodiment of the present invention;

[0024] Figure 7 A schematic diagram of a segmentation result provided by an embodiment of the present invention;

[0025] Figure 8 A block diagram of a target area segmentation and recognition system for CT images provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0027] In the present invention, the terms "first", "second", etc. (if any) in the present invention and the accompanying drawings are used to distinguish similar objects but not necessarily to describe a specific order or sequence.

[0028] Figure 1 Flow chart of the target area segmentation and recognition method of CT images provided by the embodiment of the present invention. Figure 1 , combined with Figure 2-Figure 7 , the target area segmentation and recognition method of the CT image in this embodiment is described in detail, and the method includes operations S1 to S3.

[0029] In this embodiment, the network architecture for automatically outlining the lesion target area is as follows: Figure 2As shown. The network architecture consists of three parts: an encoding module (including a Transformer encoder and a multi-scale encoder), a feature adaptive attention module for promoting the fusion of adjacent features, and a decoder that can effectively perform layer-by-layer feature decoding. Overall, this embodiment uses a symmetric encoding-decoding architecture with jump connections as the network backbone. By integrating the Transformer encoder and the multi-scale encoder, it can not only extract rich local features but also capture global context information; design a feature adaptive attention module and embed it between the encoder and the decoder to adaptively match the feature distribution between the encoder and the decoder; finally, use an efficient decoder to generate a dense prediction map.

[0030] According to an embodiment of the present invention, before performing operation S1, it is necessary to train Figure 2 The network architecture shown in the figure aims to achieve the global optimal solution of the Dice loss function, training the Transformer encoder, multi-scale encoder, feature adaptive attention module and decoder.

[0031] In the medical image segmentation task based on deep learning, the loss function is an important component used to evaluate the degree of match between the predicted segmentation results and the actual situation. In this embodiment, considering that the head and neck organs include small object organs such as the optic nerve and optic chiasm, and small object segmentation is a challenge for semantic segmentation, from the perspective of data integrity, this challenge is mainly caused by the imbalance of data distribution. Because medical image segmentation requires pixel labeling, but the labeling of small objects accounts for a very small proportion of the overall image, it is difficult for the network to learn accurate and useful information. Therefore, in the embodiment of the present invention, the Dice loss function proposed based on the small object organ segmentation problem is adopted, and its performance is tested on the central data set.

[0032] Preferably, the network is implemented based on Keras and trained on NVIDIA P100, and optimized using a gradient-based Adam optimizer. The hyperparameters of the Adam optimizer are set to: β1=0.9, β2=0.999, and a cosine annealing learning rate change scheme is adopted. The initial learning rate is set to 0.01, the minimum learning rate is set to 0.00001, and the learning rate change iteration cycle is set to 4.

[0033] Operation S1, obtaining a CT image, using a Transformer encoder to extract features from the CT image to obtain a first feature map, and using a multi-scale encoder to extract features from the CT image to obtain a second feature map, wherein the multi-scale encoder includes two sub-encoders of different scales, which are used to convert the CT image into an image with a scale consistent with the scale of the sub-encoder and input the image into the corresponding sub-encoder, and after feature extraction, output two sets of feature maps F with the same scale respectively.α and feature map F β ; Perform feature extraction, downsampling and inter-level feature concatenation on the hidden feature maps of each level of the sub-encoder in turn to generate feature maps H corresponding to each sub-encoder α And the feature map H β , the second feature map includes the feature map F α , feature map F β , feature map H α And the feature map H β .

[0034] According to an embodiment of the present invention, extracting features from a CT image using a Transformer encoder includes sub-operations S11 ′ to S15 ′.

[0035] In sub-operation S11′, the CT image is converted into a sequence that matches the Transformer encoder input.

[0036] In order to match the input of the Transformer encoder, the three-dimensional matrix X∈R corresponding to the CT image needs to be transformed through a linear projection function n×H×w Convert to a one-dimensional embedding sequence Then, the one-dimensional embedding sequence is added to the self-learning spatial parameters to obtain the sequence The sequence X l Can be directly fed into the Transformer encoder.

[0037] In sub-operation S12′, a multi-head attention module is used to project the sequence into different subspaces of the original high-dimensional space for self-attention calculation to obtain the self-attention score in each subspace.

[0038] The Transformer encoder includes a multi-head attention module and a multi-layer perceptron module, such as Figure 2 As shown in Figure 2, as the core component of the Transformer encoder, the multi-head attention mechanism projects the same query vector, key vector, and value vector into different subspaces of the original high-dimensional space for self-attention calculation, where the total number of parameters remains unchanged and each input information can be updated in parallel on the input feature sequence.

[0039] According to an embodiment of the present invention, the self-attention calculation includes: first, calculating the query vector, key vector and value vector of the sequence in any subspace:

[0040] Q i =X l W i Q

[0041] K i =Xl W i K

[0042] V i =X l W i V

[0043] Among them, Q i , K i 、V i The sequence X l query vector, key vector and value vector in the i-th subspace, i = 1, 2, ..., h; W i Q , W i K , W i V are the query matrix, key matrix and value matrix of the i-th subspace, respectively, and are all learnable matrices. d ki =d vi =c mi / h,d vi is the input dimension of the median vector in the ith subspace, d ki is the input dimension of the query vector and key vector in the i-th subspace, c mi is the dimension of the linear projection of the input feature vector in the i-th subspace, and h is the number of independent self-attention layers in the multi-head attention module.

[0044] Secondly, dot product operation is performed on the query vector and the key vector to obtain the attention score, the attention score is normalized by the softmax activation function to obtain the normalized score, and the normalized score is multiplied by the value vector to obtain the self-attention score of the subspace:

[0045]

[0046] Among them, HA(X l ) i is the self-attention score of the ith subspace, softmax(·) is the softmax activation function, Q i (K i ) T is the attention score of the i-th subspace.

[0047] In sub-operation S13′, the self-attention scores in each subspace are cascaded to obtain a cascade score.

[0048] In the embodiment of the present invention, on the one hand, the vector dimension is reduced when calculating the self-attention score of each head to prevent overfitting; on the other hand, since each vector has a regional distribution in different subspaces, the multi-head attention module can also capture the correlation of the sequence in different subspaces, and multiple heads used to calculate the self-attention scores in different subspaces are connected in series to obtain the cascade score MHA (X l ):

[0049] MHA(X l )=X l +Concat[HA(X l )1HA(X l )2…HA(X l ) h ]×W o

[0050] Among them, Concat[·] is the feature channel fusion operator, W o is a learnable matrix.

[0051] In sub-operation S14′, the cascade score is transformed into a feature space using a multi-layer perceptron module to obtain an output vector X l+1 :

[0052] X l+1 =MLP(MHA(X l ))+MHA(X l )

[0053] Among them, MLP(·) is an MLP network composed of two linear layers with GeLu activation function, which is used to transform the feature space of MHA so that the transformer structure has better modeling ability. In addition, a residual connection is introduced to simplify network learning.

[0054] In sub-operation S15′, the output vector is converted into a three-dimensional matrix form as the first feature map. Specifically, the linear projection inverse transformation function is used to restore the one-dimensional vector output by the transformer layer to a three-dimensional matrix form, and a 512-dimensional convolution layer is used to perform a convolution operation on it to output the first feature map T out .

[0055] In the medical image segmentation task, the prediction of some small target areas is adapted to lower reasoning resolution, while the segmentation of large target areas is adapted to higher reasoning resolution. Specifically, the enlarged image contains more detailed information, such as fine structures or edges of contours; while the reduced image contains more global features and is generally more robust to large structures. Inspired by the multi-scale network, in this embodiment, a multi-scale model is used to extract feature information in medical images such as Figure 2 shown.

[0056] According to an embodiment of the present invention, the multi-scale encoder includes two sub-encoders of different scales, namely, a large-scale sub-encoder E and a large-scale sub-encoder E. α and the small-scale sub-encoder E β , which are used to process input tensors of different scales I α and I β Using a multi-scale encoder to extract features from a CT image to obtain a second feature map includes sub-operation S11″-sub-operation S12″.

[0057] In sub-operation S11″, the CT image is converted into an image with a scale consistent with the scale of the sub-encoder and input into the corresponding sub-encoder, and after feature extraction, two sets of feature maps F with the same scale are output respectively. α and feature map F β .

[0058] Preferably, each module of the multi-scale encoder adopts a residual-like structure, including: a batch normalization to accelerate model convergence and prevent gradient explosion and gradient vanishing; a nonlinear (ReLU) activation layer and an n-channel (n = 32, 64, 128, 256 and 512) two-dimensional convolution layer with a convolution kernel size of 3×3 and a step size of 1. Finally, the sub-encoder E α and sub-encoder E β After the output of is scale-normalized, two sets of feature maps F with the same scale are generated. α and feature map F β .

[0059] In sub-operation S12″, feature extraction, downsampling and inter-level feature concatenation are performed on the hidden feature maps of each level of the sub-encoder in turn to generate feature maps H corresponding to each sub-encoder α And the feature map H β , the second feature map includes the feature map F α , feature map F β , feature map H α And the feature map H β .

[0060] Since the features in the shallow neural network contain more underlying detail information, while the features in the deep neural network contain more global information, the accuracy of semantic segmentation can be greatly improved by fusing the information of deep and shallow features. α and the small-scale sub-encoder E β Each level takes the hidden feature map and Then downsample and concatenate to generate the feature map F α and feature map F βFinally, the feature map F α , feature map F β , feature map H α , feature map H β and the first feature map T out Will be utilized by the feature adaptive attention module.

[0061] Operation S2: Using the feature adaptive attention module to perform feature fusion on the first feature map and the second feature map to obtain a fused feature map.

[0062] According to an embodiment of the present invention, the feature adaptive attention module includes a channel attention module and a spatial attention module, such as Figure 3 As shown, operation S2 includes sub-operations S21 to S23.

[0063] In sub-operation S21, the first feature map and the second feature map are combined to generate an enhanced feature map.

[0064] Specifically, the feature map F output by the multi-scale encoder α and feature map F β , cascaded hidden feature map H α , feature map H β And the first feature map T output by the transformer encoder out Combined to generate enhanced feature map.

[0065] In sub-operation S22, the channel attention module is used to aggregate the spatial dimension information of the enhanced feature map, and the attention on finer channels is derived to generate a channel attention map.

[0066] The mechanism of the channel attention module is as follows Figure 4 As shown in the figure, the channel attention module adopts a linear structure. First, the input features will pass through two independent pooling layers (maximum pooling and mean pooling), which is used to aggregate the spatial dimension information of the input features while inferring the attention on finer channels. Secondly, the two descriptors pass through a shared network composed of multi-layer perceptrons to generate a channel attention map. After the shared network is applied to each descriptor, the output feature vectors are merged using element-by-element summation.

[0067] In sub-operation S23, after the channel attention map is sequentially subjected to maximum pooling and average pooling using the spatial attention module, the pixels of each pixel point on different channels are linearly combined to obtain a fused feature map.

[0068] The mechanism of the spatial attention module is as follows Figure 5 As shown in Figure 1, it is a complement to channel attention, focusing on the most informative part of the space. The input features are firstly subjected to average pooling and maximum pooling operations along the channel axis.i ∈R n ×H×W Compress to I i ∈R 1×H×W , and then use the 1x1 convolution layer to linearly combine each pixel on different channels, and retain the original planar structure of the feature map, and finally obtain I through the softmax function i The importance of each pixel.

[0069] Operation S3, using a decoder to decode the fused feature map layer by layer, so as to perform end-to-end target segmentation on the CT image to determine the locations of the endangered organs and the diseased tissues.

[0070] After being processed by the feature adaptive attention module, the generated feature map Z will pass through the decoder. The decoder is mainly composed of an upsampling module, a batch normalization layer, a dropout layer, and a convolution layer. The convolution kernel size of the two-dimensional convolution layer is 3×3, and the number of channels is 32, 64, 128, 256, and 512, respectively, with a step size of 1. A batch normalization layer and an upsampling layer are connected after the two-dimensional convolution layer. Through the decoder, the feature information in the encoded CT image can be decompressed and the corresponding target segmentation can be adaptively generated.

[0071] In this embodiment, the evaluation indicators Dice score, Jaccard, Precision and Recall are used to evaluate the segmentation accuracy of the algorithm:

[0072]

[0073]

[0074]

[0075] Where P represents the prediction of the proposed network, T represents the true value label, P1 and P0 represent the voxels predicted as positive and negative in the region, T1 and T0 represent the voxels marked as positive and negative in the true value, and d(·) represents the distance function.

[0076] In order to facilitate users to identify different parts and intuitively display the results of automatic outlining, an end-to-end user operation interface was designed using PyQt5. PyQt5 is a framework for Python binding Digia Qt5 applications. Compared with other GUI development frameworks, Qt has the following advantages: good platform compatibility, mainstream operating systems such as Windows and Linux support corresponding development; high package integration, relatively simple modular design; many application programming interface functions, designers can directly call, reducing development time and improving design efficiency. The operation interface of the software is as follows Figure 6shown.

[0077] See also Figure 6 The operation interface consists of three parts. The left side is a menu bar where different organs and tumors can be selected, including: bladder, eyeball, head and neck, liver cancer, colon, and rectum; the upper right side is a test file import area where operators can select CT images to be imported through import file. This embodiment provides CT images of different organs and tumors for operators to test; the lower right side is a result display area where the results of automatic delineation will be displayed, and the software can save the results of automatic delineation to a local specified path for subsequent viewing and proofreading.

[0078] In this embodiment, AI software, U-Net, Multi-Net and other network architectures are firstly adopted, and the Dicescore evaluation index is used to quantitatively evaluate the segmentation performance of each network architecture. By evaluating the segmentation effects of these network architectures and the method proposed in the embodiment of the present invention on the bladder, eyeball, head and neck, liver cancer, colon and rectum, it can be concluded that the embodiment of the present invention has good performance in the segmentation of the above 7 organs at risk, and the delineation results are significantly improved compared with the four artificial intelligence companies. The overall results are shown in Table 1.

[0079] Table 1

[0080] AI software U-Net Multi-Net Our Net Our Net vs AI bladder 0.82 0.87 0.87 0.87 P=0.004 eyeball 0.70 0.82 0.80 0.83 P<0.001 Head and Neck 0.81 0.90 0.87 0.91 P<0.001 Liver cancer 0.71 0.85 0.83 0.85 P<0.001 colon 0.40 0.56 0.56 0.57 P<0.001 rectum 0.49 0.73 0.72 0.74 P<0.001 average 0.65 0.83 0.77 0.79 P<0.001

[0081] In order to further verify the feasibility of the algorithm, five evaluation indicators, namely Dice score, Jaccard, Precision, Recall and Hausdorff distance, are used to test the segmentation ability of the algorithm in the embodiment of the present invention, as shown in Table 2.

[0082] Table 2

[0083] Dice Jaccard Precision Recall HD bladder 0.87 0.78 0.99 0.87 2.2 eyeball 0.83 0.75 0.88 0.84 1.1 Head and Neck 0.91 0.86 0.94 0.91 1.4 Liver cancer 0.85 0.75 0.94 0.82 1.5 colon 0.57 0.45 0.69 0.54 4.7 rectum 0.74 0.66 0.82 0.78 2.1

[0084] In order to intuitively demonstrate the effectiveness of the method of the embodiment of the present invention, Figure 7 The segmentation results of this network architecture are systematically demonstrated. Figure 7 Each column represents the medical images of different patients, and each row represents different target areas in the head and neck, from top to bottom: brainstem, esophagus, mandible, parotid gland, optic chiasm, left optic nerve. Figure 7It can be intuitively observed that the embodiment of the present invention can well capture the target area of ​​the endangered organ and outline a relatively accurate outline. In addition, the segmentation result of the N-Net algorithm in this embodiment for the core area of ​​the endangered organ is close to the gold standard, and small object organs can be detected relatively effectively. In summary, the target area segmentation and recognition method of CT images in the embodiment of the present invention can accurately and effectively segment areas with clear details and segment areas with fuzzy outlines with maximum performance to avoid misjudgment in certain specific areas.

[0085] Figure 8 A block diagram of a target area segmentation and recognition system for CT images provided by an embodiment of the present invention. Figure 8 The target area segmentation and recognition system 800 of the CT image includes an encoding module 810 , a feature fusion module 820 and a decoding and recognition module 830 .

[0086] The encoding module 810, for example, performs operation S1, which is used to extract features from the CT image using a Transformer encoder to obtain a first feature map, and to extract features from the CT image using a multi-scale encoder to obtain a second feature map, wherein the multi-scale encoder includes two sub-encoders of different scales, which are used to convert the CT image into an image with a scale consistent with the scale of the sub-encoder and input the image into the corresponding sub-encoder, and after feature extraction, output two sets of feature maps F with the same scale respectively. α and feature map F β ; Perform feature extraction, downsampling and inter-level feature concatenation on the hidden feature maps of each level of the sub-encoder in turn to generate feature maps H corresponding to each sub-encoder α And the feature map H β , the second feature map includes the feature map F α , feature map F β , feature map H α And the feature map H β .

[0087] The feature fusion module 820, for example, performs operation S2 to perform feature fusion on the first feature map and the second feature map using the feature adaptive attention module to obtain a fused feature map.

[0088] The decoding and identification module 830, for example, performs operation S3, which is used to use a decoder to perform layer-by-layer feature decoding on the fused feature map to perform target area segmentation on the CT image, identify and form the segmented target area.

[0089] The target area segmentation and recognition system 800 of CT images is used to perform the above Figure 1-Figure 7 The target area segmentation and recognition method of the CT image in the embodiment shown. For details not covered in this embodiment, please refer to the aforementioned Figure 1-Figure 7 The target area segmentation and recognition method of the CT image in the illustrated embodiment will not be described in detail here.

[0090] It will be easily understood by those skilled in the art that 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 in the protection scope of the present invention.

Claims

1. A target area segmentation and recognition method for CT images, characterized in that: include: S1, acquiring a CT image, performing feature extraction on the CT image using a Transformer encoder to obtain a first feature map, and performing feature extraction on the CT image using a multi-scale encoder to obtain a second feature map; The multi-scale encoder includes two sub-encoders of different scales, which are used to convert the CT image into an image with a scale consistent with the scale of the sub-encoder and input it into the corresponding sub-encoder, and then output two sets of feature maps F with the same scale after feature extraction. α and feature map F β ; Perform feature extraction, downsampling and inter-level feature concatenation on the hidden feature maps of each level of the sub-encoder in turn to generate a feature map H corresponding to each sub-encoder α And the feature map H β , the second feature map includes a feature map F α , feature map F β , feature map H α And the feature map H β ; S2, using a feature adaptive attention module to perform feature fusion on the first feature map and the second feature map to obtain a fused feature map; S3, using a decoder to perform layer-by-layer feature decoding on the fused feature map, so as to perform end-to-end target segmentation on the CT image, so as to determine the locations of the endangered organs and the diseased tissues.

2. The target area segmentation and recognition method of CT images according to claim 1, characterized in that: The Transformer encoder includes a multi-head attention module and a multi-layer perceptron module, and the feature extraction of the CT image using the Transformer encoder includes: Converting the CT image into a sequence that matches the Transformer encoder input; Using the multi-head attention module, the sequence is projected into different subspaces of the original high-dimensional space to perform self-attention calculation, so as to obtain a self-attention score in each subspace, and the self-attention scores in each subspace are cascaded to obtain a cascade score; The multi-layer perceptron module is used to perform feature space transformation on the cascade score to obtain an output vector, and the output vector is converted into a three-dimensional matrix form as the first feature map.

3. The target area segmentation and recognition method of CT images according to claim 2, characterized in that: The self-attention calculation includes: Calculating a query vector, a key vector, and a value vector of the sequence in any subspace, performing a dot product operation on the query vector and the key vector to obtain an attention score; The attention score is normalized by a softmax activation function to obtain a normalized score, and the normalized score is multiplied by the value vector to obtain a self-attention score of the subspace.

4. The target area segmentation and recognition method of CT images according to claim 2, characterized in that: The cascade score is: MHA(X l )=X l +Concat[HA(X l )1HA(X l )2…HA(X l ) h ]×W o Among them, MHA(X l ) is the cascade score, X l is the sequence, Concat[·] is the feature channel fusion operator, HA(X l ) i is the self-attention score of subspace i, i = 1, 2, ..., h, h is the number of independent self-attention layers in the multi-head attention module, W o is a learnable matrix.

5. The target area segmentation and recognition method of CT images according to any one of claims 2 to 4, characterized in that: The output vector is: X l+1 =MLP(MHA(X l ))+MHA(X l ) Among them, X l+1 is the output vector, MLP(·) is an MLP network consisting of two linear layers with GeLu activation function, MHA(X l ) is the cascade score, X l for the sequence.

6. The target area segmentation and recognition method of CT images according to claim 1, characterized in that: The feature adaptive attention module includes a channel attention module and a spatial attention module, and S2 includes: Combining the first feature map and the second feature map to generate an enhanced feature map; The channel attention module is used to aggregate the spatial dimension information of the enhanced feature map, and to derive the attention on finer channels to generate a channel attention map; After using the spatial attention module to perform maximum pooling and average pooling on the channel attention map in sequence, the pixels of each pixel point on different channels are linearly combined to obtain the fused feature map.

7. The target area segmentation and recognition method of CT images according to claim 1, characterized in that: The S1 also includes: The Transformer encoder, multi-scale encoder, feature adaptive attention module and decoder are trained with the goal of achieving a global optimal solution for the Dice loss function.

8. A target area segmentation and recognition system for CT images, characterized in that: include: An encoding module, configured to extract features from the CT image using a Transformer encoder to obtain a first feature map, and to extract features from the CT image using a multi-scale encoder to obtain a second feature map; The multi-scale encoder includes two sub-encoders of different scales, which are used to convert the CT image into an image with a scale consistent with the scale of the sub-encoder and input it into the corresponding sub-encoder, and then output two sets of feature maps F with the same scale after feature extraction. α and feature map F β ; Perform feature extraction, downsampling and inter-level feature concatenation on the hidden feature maps of each level of the sub-encoder in turn to generate a feature map H corresponding to each sub-encoder α And the feature map H β , the second feature map includes a feature map F α , feature map F β , feature map H α And the feature map H β ; A feature fusion module, used for performing feature fusion on the first feature map and the second feature map by using a feature adaptive attention module to obtain a fused feature map; The decoding and identification module is used to use a decoder to perform layer-by-layer feature decoding on the fused feature map, so as to perform end-to-end target area segmentation on the CT image to determine the locations of endangered organs and diseased tissues.

Citation Information

Patent Citations

  • CT image-based nasopharyngeal carcinoma radiotherapy target region automatic sketching method

    CN111798462A

  • Nasopharyngeal carcinoma radiotherapy target region automatic segmentation method based on deep neural network

    CN112270660A

  • Automatic sketching method for CT image breast cancer clinical target region based on deep learning

    CN113288193A

  • Medical image processing method and system and data processing method

    WO2021202203A1