A method for segmenting subcutaneous fat and visceral fat regions based on abdominal CT images

By using a multi-network model with encoding-decoding structure and adversarial learning technology in abdominal CT images, the problem of segmenting subcutaneous fat and visceral fat areas in abdominal CT images is solved, achieving high-precision segmentation results and reducing the dependence on label data. .

CN114359302BActive Publication Date: 2024-10-29EAST CHINA NORMAL UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111548231.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2024-10-29
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

There are difficulties in automatic segmentation of subcutaneous fat and visceral fat areas in abdominal CT images, especially when there is little label data. Existing technology is difficult to achieve high-precision segmentation, and acquisition of label data is expensive.

Method used

A method for segmenting subcutaneous fat and visceral fat regions based on abdominal CT images is designed. It uses encoding-decoding structure and adversarial learning technology to build multiple specialized neural networks to learn medical image features and improve the accuracy of segmentation results by optimizing the network.

Benefits of technology

It achieves high-precision segmentation of subcutaneous fat and visceral fat areas under the condition of less label data, improves the precision of segmentation results of abdominal CT images, and has high practical value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114359302B_ABST
    Figure CN114359302B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for segmenting subcutaneous fat and visceral fat regions based on abdominal CT images. The present invention is characterized in that it is designed based on a semi-supervised adversarial learning method, adopts an adversarial learning strategy, and utilizes an untrusted region optimization mechanism to improve the accuracy of segmentation. The present invention can effectively achieve the segmentation of subcutaneous fat and visceral fat regions in CT images. The method can provide an effective solution for artificial intelligence-assisted medical diagnosis, and give full play to the role of artificial intelligence-assisted diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of computer technology and relates to a method for segmenting subcutaneous fat and visceral fat regions in abdominal CT images in medical auxiliary diagnosis. Background Art

[0002] In recent years, artificial intelligence technology has developed rapidly, and the research on key technologies of intelligent medical auxiliary diagnosis has a macroscopic significance in modern medical clinical practice. At present, there is a certain degree of difficulty in the segmentation of subcutaneous fat and visceral fat areas in abdominal CT medical images. Due to the objective fact that medical images have few textures and much noise, there are great challenges in the recognition and segmentation of fat. On the other hand, since the label data requires professional medical workers to annotate, it is very expensive to obtain labels for subcutaneous fat and visceral fat areas in abdominal CT medical images. How to establish an effective deep learning network model and learning method to solve the automatic segmentation of subcutaneous fat and visceral fat areas in CT images with few labels is a practical problem that needs to be solved urgently. Summary of the invention

[0003] The purpose of the present invention is to provide a method for segmenting subcutaneous fat and visceral fat regions based on abdominal CT images. The method combines the characteristics of medical images, adopts a coding and decoding structure, designs different networks according to the different characteristics of subcutaneous fat and visceral fat regions, fully learns the characteristics of medical images, and uses an optimized network to further optimize the prediction results, so that the present invention can obtain more precise subcutaneous fat and visceral fat region segmentation results of abdominal CT images, and therefore has high practical value.

[0004] The specific technical solution for achieving the purpose of the present invention is:

[0005] A method for segmenting subcutaneous fat and visceral fat regions based on abdominal CT images is characterized by using adversarial learning to train a model with higher accuracy under data conditions with few labeled samples. The method processes abdominal CT images with an image resolution of M×N, 100≤M≤2000, 100≤N≤2000. The subcutaneous fat and visceral fat region segmentation process specifically includes the following steps:

[0006] Step 1: Construct an abdominal CT image dataset

[0007] Select an abdominal CT image public website, download a abdominal CT images from the website, construct a dataset A, 300≤a≤20000, divide the dataset A into 20%, 10% and 70% respectively, construct a training dataset B, a validation dataset C and an unlabeled dataset X respectively, and annotate each CT image in dataset B and dataset C with subcutaneous fat and visceral fat respectively;

[0008] Step 2: Build the Neural Network

[0009] The resolution of CT images input to the neural network is p×o, where p is the width and o is the height in pixels, 100≤o≤2000, 100≤p≤2000;

[0010] The following six networks were constructed respectively: subcutaneous fat area segmentation network E, subcutaneous fat area discrimination network F, subcutaneous fat area optimization network G, visceral fat area segmentation network R, visceral fat area discrimination network T and visceral fat area optimization network W;

[0011] (1) Structure of network E

[0012] Tensor H is used as input with a scale of α×o×p×1, and tensor I is used as output with a scale of α×o×p×1, where α is the batch size;

[0013] The subcutaneous fat segmentation generation process requires preprocessing, encoding processing, and decoding processing;

[0014] The preprocessing of tensor H is as follows: convolution operation is performed, the kernel size is 7×7, the step length in the horizontal and vertical directions is 2, the number of convolution kernels is 64, and the initial feature D0 of network E is obtained;

[0015] After two encodings in sequence: in the first encoding, the initial feature D0 of the network E is processed by four dense layers in sequence, each dense layer consists of two convolution units, each convolution unit consists of one convolution operation, batch normalization and activation processing, when the first convolution unit is operated, the convolution kernel size is 1×1, and the number of convolution kernels is 64; when the second convolution unit is operated, the convolution kernel size is 3×3, and the number of convolution kernels is the number of channels of the input feature; the input features of each dense layer are the combination results of the output features of the dense layer; after the four dense layers are processed, the operation results of the four dense layers are concatenated respectively, and the concatenated results are processed as follows: batch normalization processing, activation processing and convolution operation, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, and the first encoding feature D1 of the network E is obtained;

[0016] In the second encoding, the first encoding feature D1 of network E is processed by 6 dense layers in sequence, each dense layer consists of two convolution units, each convolution unit consists of 1 convolution operation, batch normalization and activation processing, when the first convolution unit is operated, the convolution kernel size is 1×1, and the number of channels is 128; when the second convolution unit is operated, the convolution kernel size is 3×3, and the number of channels is 32; after the 6 dense layers are processed, the operation results of the 6 dense layers are concatenated, and the concatenated results are processed as follows: batch normalization processing, activation processing and convolution operation, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, and then the second encoding feature D2 of network E is obtained;

[0017] Expand the second encoding feature D2 of network E according to the channel dimension, and then perform self-attention processing: after sigmoid activation processing, batch normalization and activation processing, the attention feature D3 of network E is obtained;

[0018] The attention feature D3 of network E is input to the decoder for upsampling. The upsampling result is concatenated with the first encoding feature D1 of network E. The concatenated result is subjected to the following three-layer convolution processing: convolution operation, batch normalization processing and activation processing. The convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128. The first layer decoding feature D4 of network E is obtained. The first layer decoding feature D4 of network E is subjected to the following processing: convolution operation, batch normalization processing and activation processing. The convolution kernel size is 3×3. ×3, the step size is 1, the number of convolution kernels is 64, and the second layer decoding feature D5 of the network E is obtained; the second layer decoding feature D5 of the network E is then processed as follows: convolution operation, batch normalization processing and activation processing, the convolution kernel size is 5×5, the step size is 1, and the number of convolution kernels is 32, and the third layer decoding feature of the network E is obtained; the third layer decoding feature of the network E is processed as follows: wherein the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and then sigmoid activation is used to obtain the tensor I;

[0019] (2) Structure of network F

[0020] Tensors I and H are used as input, with scales of α×o×p×1, and tensor L is used as output, with scale of α×o×p×1, where α is the batch size;

[0021] The network F includes a preprocessing process, an encoding process, and a decoding process. During preprocessing, the tensor I is regarded as a subcutaneous fat generation probability map, and the tensor H is convolved with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32 to obtain an initial convolution feature; the initial convolution feature obtained is then subjected to the following attention operation with the subcutaneous fat generation probability map: the initial convolution feature and the subcutaneous fat generation probability map are convolved with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 16, respectively, and the two results after the convolution process are then multiplied by the corresponding matrix elements, and the multiplication result is then convolved with a convolution kernel size of 1×1, a step size of 1, and a number of convolution kernels of 32 to obtain an attention map, and the attention map is then element-wise added to the initial convolution feature to obtain to the initial discriminant feature S0 of the network F; the initial discriminant feature S0 of the network F is subjected to the following three feature encodings: in the first encoding, convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 64, so as to obtain the first encoding feature S1 of the network F; the first encoding feature S1 of the network F is subjected to the second encoding processing: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 128, so as to obtain the second encoding feature of the network F; the second encoding feature of the network F is subjected to the third encoding processing again: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 128, so as to obtain the discriminant encoding feature of the network F;

[0022] The discriminant coding features of network F are decoded as follows: the discriminant features of network F are upsampled, and the upsampled results are concatenated with the first coding features of network F, and then convolution and activation are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, so as to obtain the first layer decoding features of network F; the first layer decoding features of network F are upsampled, and the upsampled results are concatenated with the initial discriminant features of network F, and the convolution operation and activation processing are performed on the concatenated results, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then the obtained results are upsampled and convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then convolution processing is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the output tensor L is obtained after sigmoid activation processing;

[0023] (3) Structure of network G

[0024] For network G, in addition to the first-layer decoding feature D4, the second-layer decoding feature D5 of network E, the initial discriminant feature S0 and the first-time encoding feature S1 of network F as input, tensors I and L are also used as input, with scales of α×o×p×1, and tensor Z is used as output, with a scale of α×o×p×1, where α is the batch size;

[0025] The network G includes an encoder and a decoder. Before encoding, the tensor L is processed as follows: for the tensor L, the probability of each pixel is subtracted from 1, and the result is concatenated with the tensor I, and then the concatenated features are convolved, with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32, to obtain the probabilistic initial features of the network G. In addition, the tensor L and the initial discriminant feature S0 of the network F are squeezed and excited: first, a convolution unit operation is performed on the feature S0, including convolution, batch normalization and activation processing, with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 32. At the same time, the tensor L is downsampled, and then a sigmoid activation process is performed to obtain the activation weight, and then the activation weight is element-wise multiplied with the feature S0 to obtain the initial squeezed excitation feature, and the initial squeezed excitation feature is concatenated with the probabilistic initial feature of the network G to obtain the optimized initial feature of the network G;

[0026] The optimized initial features of the network G are then encoded as follows: convolution and activation processing, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 64, to obtain convolution coding features. In addition, the tensor L and the first coding feature S1 of the network F are squeezed and excited as follows: first, a convolution unit operation is performed on the feature S1, including convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, and the tensor L is downsampled at the same time, and then a sigmoid activation process is performed to obtain the activation weight, and then the activation weight is element-wise multiplied with the feature S1 to obtain the first layer of squeezed excitation features; the first layer of squeezed excitation features are concatenated with the convolution coding features, and the concatenation result is subjected to a convolution operation, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 128, and then activated to obtain the optimized coding features of the network G;

[0027] The optimized coding features of the network G are subjected to the following three-layer decoding processing: in the first layer decoding processing, the optimized coding features of the network G are upsampled to obtain optimized coding upsampled features. In addition, the tensor L and the first layer decoding feature D4 of the network E are subjected to squeeze excitation processing as follows: first, the feature D4 of the network E is subjected to convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128. At the same time, the tensor L is downsampled, and then sigmoid activation processing is performed to obtain activation weights, and then the activation weights are element-wise multiplied with the feature D4 of the network E to obtain the first layer decoding squeeze excitation features; then the optimized coding upsampled features are concatenated with the first layer decoding squeeze excitation features, and then input into the convolution unit for convolution operation and activation processing, wherein the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, to obtain the first layer decoding features of the network G;

[0028] During the second-layer decoding process, the first-layer decoding features of the network G are upsampled to obtain the first-layer decoding upsampled features. In addition, the tensor L and the second-layer decoding feature D5 of the network E are squeezed and excited: the feature D5 of the network E is first convolved, batch normalized and activated, with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 64. At the same time, the tensor L is downsampled, and then a sigmoid activation process is performed to obtain an activation weight. The activation weight is then element-wise multiplied with the feature D5 of the network E to obtain the second-layer decoding squeezed and excited features. The first-layer decoding upsampled features and the second-layer decoding squeezed and excited features are then concatenated and input into the convolution unit for convolution and activation, where the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, to obtain the second-layer decoding features of the network G.

[0029] During the third layer decoding process, the second layer decoding features of the network G are upsampled, and then convolution and activation processes are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. The obtained features are further convolved, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 1, and the output tensor Z of the network G is obtained after activation processing;

[0030] (4) Structure of network R

[0031] Tensor H, initial feature D0 of network E, first encoding feature D1, second encoding feature D2, attention feature D3, first layer decoding feature D4 and second layer decoding feature D5 are used as input. The scale of tensor H is α×o×p×1. Tensor K is used as output, with a scale of α×o×p×1, where α is the batch size.

[0032] The network R performs preprocessing, encoding processing and decoding processing;

[0033] The preprocessing of the tensor H is as follows: a convolution operation is performed, the kernel size is 7×7, the step size in the horizontal direction and the vertical direction is 2, the number of convolution kernels is 64, the initial convolution feature of the network R is obtained, and the initial convolution feature and the feature D0 of the network E are squeezed and excited: the initial feature D0 of the network E is subjected to probability inversion calculation, and then a convolution operation is performed again, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. Finally, the result is sigmoid activated and matrix multiplication is performed with the initial convolution feature of the input network R to obtain the initial excitation feature of the network R;

[0034] Then the initial excitation features of network R are encoded three times in sequence:

[0035] In the first encoding, the initial excitation features of the network R are processed by four dense layers in sequence. Each dense layer consists of two convolution units. Each convolution unit consists of one convolution operation, batch normalization and activation processing. When the first convolution unit is operated, the convolution kernel size is 1×1 and the number of convolution kernels is 64; when the second convolution unit is operated, the convolution kernel size is 3×3 and the number of convolution kernels is the number of channels of the input feature. After the four dense layers are processed, the operation results of the four dense layers are concatenated respectively, and the concatenated results are processed as follows: batch normalization, Activation processing and convolution operation, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, to obtain the first encoding feature of network R; the first encoding feature of network R and the feature D1 are squeezed and excited: the feature D1 is subjected to probability inversion calculation, and then a convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. Finally, the result is sigmoid activated and matrix multiplied with the first encoding feature of the input network R to obtain the first encoding excitation feature of network R;

[0036] In the second encoding, the first encoding excitation features of the network R are processed by 6 dense layers in sequence, each dense layer consists of two convolution units, each convolution unit consists of 1 convolution operation, batch normalization and activation processing, for the first convolution unit operation, the convolution kernel size is 1×1, the number of channels is 128; for the second convolution unit operation, the convolution kernel size is 3×3, the number of channels is 32; after the 6 dense layers are processed, the operation results of the 6 dense layers are concatenated, and the concatenated results are processed as follows: batch normalization processing, activation processing and convolution operation The convolution operation is performed with a convolution kernel size of 1×1, a step size of 2, and a number of convolution kernels of 0.6 times the number of input feature channels, and then the second encoding feature of the network R is obtained; the second encoding feature of the network R and the feature D2 are squeezed and excited, wherein the feature D2 is firstly subjected to a probability inversion calculation, and then a convolution operation is performed with a convolution kernel size of 1×1, a step size of 1, and a number of convolution kernels of 1, and finally the result is subjected to sigmoid activation and matrix multiplication operation is performed with the second encoding feature of the input network R to obtain the second encoding excitation feature of the network R;

[0037] In the third encoding, the second encoding excitation feature of the network R is processed by 12 dense layers in sequence, each dense layer is composed of two convolution units, each convolution unit is composed of one convolution operation, batch normalization and activation processing, when the first convolution unit is operated, the convolution kernel size is 1×1, and the number of channels is 128; when the second convolution unit is operated, the convolution kernel size is 3×3, and the number of channels is 32; after the 12 dense layers are processed, the operation results of the 12 dense layers are concatenated, and the concatenated results are processed as follows: batch normalization processing, activation processing and convolution operation, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, and then the third encoding excitation feature of the network R is obtained;

[0038] Perform decoding processing, perform convolution operation, batch normalization processing and activation processing on the third encoding excitation feature of network R, the convolution kernel size is 3×3, the step size is 1, and the number of convolutions is 32, and the obtained result is upsampled, and the upsampled result is concatenated with the first encoding excitation feature of network R, and the concatenation result is processed as follows: convolution operation, batch normalization processing, activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 256, to obtain the first layer decoding feature of network R; perform squeezing excitation processing on the first layer decoding feature and the feature D3: perform probability inversion calculation on the feature D3, and then perform convolution operation, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the result is sigmoid activated and matrix multiplication operation is performed with the first layer decoding feature to obtain the first layer decoding excitation feature of network R;

[0039] The first layer decoding excitation feature of the network R is upsampled, and the upsampling result is concatenated with the second encoding excitation feature of the network R, and the concatenated result is processed as follows: convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128, so as to obtain the second layer decoding feature of the network R; the second layer decoding feature of the network R and the feature D4 of the network E are squeezed and excited, wherein the feature D4 is firstly subjected to probability inversion calculation, and then convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the result is subjected to sigmoid activation and matrix multiplication operation is performed with the second layer decoding feature of the network R to obtain the second layer decoding excitation feature Q0 of the network R;

[0040] The second layer decoding excitation feature Q0 of network R is upsampled, and the upsampling result is concatenated with the third encoding excitation feature of network R, and the concatenation result is processed as follows: convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, to obtain the third layer decoding feature of network R, and the third layer decoding feature of network R and the feature D5 of network E are squeezed and excited: the feature D5 of network E is subjected to probability inversion calculation, and then convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the result is sigmoid activated, and the third layer decoding feature of network R is subjected to matrix multiplication operation to obtain the third layer decoding excitation feature Q1 of network R;

[0041] The decoded excitation feature Q1 of the third layer of network R is upsampled, and the upsampled result is subjected to convolution operation, batch normalization and activation processing, where the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. Then it is output through a convolution layer, where the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. Finally, the sigmoid activation processing is performed to output the tensor K;

[0042] (5) Structure of network T

[0043] Tensors K and H are used as input, with scales of α×o×p×1, and tensor Y is used as output, with scales of α×o×p×1, where α is the batch size;

[0044] The network T includes preprocessing, encoding and decoding processes;

[0045] During preprocessing, the tensor I is regarded as the visceral fat generation probability map, and the tensor H is convolved with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32 to obtain the initial convolution features of the network T; the initial convolution features and the visceral fat generation probability map are then subjected to the following attention processing: the initial convolution features of the network T and the visceral fat generation probability map are convolved with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 16, respectively, and the two results after the convolution processing are then multiplied by the corresponding matrix elements, and the multiplication result is then convolved with a convolution kernel size of 1×1, a step size of 1, and a number of convolution kernels of 32 to obtain the attention map; the attention map is then element-wise added to the initial convolution features to obtain the initial judgment map of the network T. The initial discriminant feature V0 of the network T is subjected to feature encoding three times: in the first encoding, convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 64, so as to obtain the first encoding feature V1 of the network T; the first encoding feature V1 of the network T is subjected to the second encoding processing: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 128, so as to obtain the second encoding feature of the network T; the second encoding feature of the network T is subjected to the third encoding processing: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 128, so as to obtain the discriminant encoding feature of the network T;

[0046] The discriminant coding features of network T are subjected to the following two-layer decoding processing: in the first layer decoding processing, the discriminant features of network T are upsampled, and the upsampled results are concatenated with the first coding features of network T, and then convolution and activation processing are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, so as to obtain the first layer decoding features of network T; the first layer decoding features of network T are upsampled, and the upsampled results are concatenated with the initial discriminant features of network T, and the concatenated results are convolution and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then the obtained results are upsampled and then convolution and activation processing are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the output tensor Y is obtained after sigmoid activation processing;

[0047] (6) Structure of network W

[0048] Tensor K and tensor Y are used as input, with scales of α×o×p×1, and tensor J is used as output, with scales of α×o×p×1, where α is the batch size. The second layer decoding excitation feature Q0, the third layer decoding excitation feature Q1 of network R, the initial discriminant feature V0 of network T, and the first encoding feature V1 are also input to network W;

[0049] The network W includes an encoder and a decoder. Before encoding, the tensor Y is processed as follows: for Y, the probability of each pixel is subtracted from 1, and then the result is concatenated with the tensor K, and the concatenated features are convolved, with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32 to obtain a probabilistic initial feature. In addition, the tensor Y and the feature V0 are squeezed and excited: first, a convolution unit operation is performed on the feature V0, including convolution, batch normalization and activation processing, with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 32. At the same time, the tensor Y is downsampled, and then the result is sigmoid activated to obtain an activation weight, and then the activation weight is element-wise multiplied with the feature V0 to obtain an initial squeezed and excited feature of the network W; the initial squeezed and excited feature of the network W is concatenated with the probabilistic initial feature to obtain an optimized initial feature of the network W;

[0050] The optimized initial features of the network W are then encoded as follows: convolution and activation processing, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 64, to obtain convolution coding features; in addition, the tensor Y and the feature V1 are squeezed and excited: first, a convolution unit operation is performed on the feature V1, including convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, and the tensor Y is downsampled at the same time, and then the result is sigmoid activated to obtain the activation weight, and then the activation weight is element-wise multiplied with the feature V1 to obtain the first layer of squeezed excitation features; the first layer of squeezed excitation features are concatenated with the convolution coding features, and the concatenation result is subjected to a convolution operation, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 128, and then activated to obtain the optimized coding features of the network W;

[0051] The optimized coding features of the network W are subjected to the following three-layer decoding processing: in the first layer decoding processing, the optimized coding features of the network W are upsampled to obtain optimized coding upsampled features; in addition, the tensor Y and the feature Q0 of the network R are subjected to squeeze-excitation processing: first, a convolution unit operation is performed on the feature Q0 of the network R, including convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128, and the tensor Y is downsampled at the same time, and then the result is subjected to sigmoid activation processing to obtain activation weights, and then the activation weights are element-wise multiplied with the feature Q0 of the network R to obtain the first layer decoding squeeze-excitation features; then the optimized coding upsampled features are added to the first layer decoding squeeze-excitation features, the obtained added features are concatenated with the optimized coding features, and then input into the convolution unit, and convolution operation and activation processing are performed, wherein the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, and the first layer decoding features of the network W are obtained;

[0052] During the second-layer decoding process, the first-layer decoding features of the network W are upsampled to obtain the first-layer decoding upsampled features. In addition, the tensor Y and the feature Q1 are squeezed and excited: first, a convolution unit operation is performed on the feature Q1 of the network R, including convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64. At the same time, the tensor Y is downsampled, and then a sigmoid activation process is performed to obtain the activation weight, and then the activation weight is element-wise multiplied with the feature Q1 to obtain the second-layer decoding squeezed and excited features; then the first-layer decoding upsampled features and the second-layer decoding squeezed and excited features are added, and the obtained added features are concatenated with the optimized initial features, and then input into the convolution unit for convolution operation and activation processing, wherein the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and the second-layer decoding features of the network W are obtained;

[0053] During the third layer decoding process, the second layer decoding features of the network W are upsampled, and then convolution and activation processes are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. The obtained features are further convolved, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 1, and the output tensor J of the network W is obtained after activation processing;

[0054] Step 3: Training the Neural Network

[0055] During training, the training data is obtained from the training data set B, uniformly scaled to a resolution of p×o, input into the network, and iteratively optimized. By continuously modifying the network model parameters, the loss of each batch is minimized.

[0056] During the training process, the calculation method of each loss is:

[0057] The loss of subcutaneous fat area is calculated as the cross entropy loss and Dice loss between the network E output tensor I and the subcutaneous fat label;

[0058] The visceral fat area prediction loss is calculated as the cross entropy loss and Dice loss between the network R output tensor K and the visceral fat label;

[0059] Subcutaneous fat adversarial learning loss, based on the label of subcutaneous fat and the probability map generated by network F, the binary cross entropy classification loss is calculated;

[0060] Visceral fat adversarial learning loss, based on the visceral fat label, the binary cross entropy classification loss is calculated according to the probability map generated by the network T;

[0061] Subcutaneous fat area optimization loss is calculated as the fat area prediction loss, that is, the cross entropy loss and Dice loss are calculated between the network G output tensor Z and the subcutaneous fat label;

[0062] The visceral fat area optimization loss is calculated as the cross entropy calculation loss and Dice loss between the network W output tensor J and the visceral fat label;

[0063] Specific training steps:

[0064] (1) On dataset A, supervised training of networks E and F was performed using labeled data, and loss constraints were calculated using the subcutaneous fat region. At the same time, supervised training of networks R and T was performed using dataset A, and loss constraints were predicted using the visceral fat region. The number of iterations was 100.

[0065] (2) The data from dataset A and dataset X are respectively input into network E to generate two probability maps for subcutaneous fat region segmentation, and then the generated probability maps and the label data for subcutaneous fat region segmentation are input into network F, and subcutaneous fat region calculation loss and subcutaneous fat adversarial learning loss are used as constraints to train network F. At the same time, the data taken from dataset A and dataset X are input into network R to generate two probability maps for visceral fat region segmentation, and then the generated probability maps and the label data for visceral region segmentation are input into network T, and subcutaneous fat region calculation loss and subcutaneous fat adversarial learning loss are used as constraints to train network T. The number of iterations for training network F and network T is 20,000;

[0066] (3) On dataset A, use the labeled data and input them into network E and network F. The probability map generated by network E and the confidence map generated by network F are input into network G. The subcutaneous fat area optimization loss is used as a constraint to optimize network G. At the same time, the data and labeled data taken from dataset A are input into network R and network T. The probability map generated by network R and the confidence map generated by network T are input into network W. The visceral fat area optimization loss is used as a constraint to optimize network W. The number of training iterations for network G and network W is 20,000.

[0067] Step 4: Segmentation of subcutaneous fat and visceral fat regions

[0068] For a self-sampled CT image, it is input into network E, and the features generated by network E are input into network G. The subcutaneous fat area is predicted from network G using the trained network G parameters. At the same time, the image is input into network R, and the features generated by network R are input into network W. The visceral fat area is predicted from network W using the trained network W parameters.

[0069] Beneficial effects of the present invention:

[0070] The present invention provides a method for segmenting subcutaneous fat and visceral fat regions based on abdominal CT images. The method combines the characteristics of medical images, adopts a coding and decoding structure, designs different networks according to the different characteristics of subcutaneous fat and visceral fat regions, fully learns the characteristics of medical images, and uses an optimized network to further optimize the prediction results, so that the present invention can obtain more precise subcutaneous fat and visceral fat region segmentation results of abdominal CT images, and therefore has high practical value. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 This is a diagram showing the segmentation results of the subcutaneous fat and visceral fat regions according to the present invention. DETAILED DESCRIPTION

[0072] The present invention is further described below in conjunction with the accompanying drawings and embodiments. Example

[0073] This embodiment is implemented on a PC under Windows 10 64-bit operating system, the processor is Intel (R) Core (TM) i7-9700KF, its main frequency is 3.6GHz, and the graphics processor is an Nvidia 2080S-8G GPU graphics card. The deep learning library uses Tensorflow1.14. Programming uses Python language. The initial model network weights are generated by a random normal initializer with a standard deviation value of 0.02. The optimizer uses the Adam optimizer, and the learning rate of each network is 0.0002, and the momentum coefficient is 0.9. The public data set used in the experiment is CT Lymph Nodes.

[0074] This embodiment is a method for segmenting subcutaneous fat and visceral fat regions based on abdominal CT images. The method receives an abdominal CT image as input, and the image resolution is M×N, where M and N are both 512. The training process and the testing process for implementing the segmentation of subcutaneous fat and visceral fat regions specifically include the following steps:

[0075] Step 1: Construct an abdominal CT image dataset

[0076] Select an abdominal CT image public website, download a abdominal CT images from the website, construct a data set A, a is 500, divide A into 20%, 10% and 70% respectively, construct a training data set B, a validation set C and an unlabeled data set X respectively, and label each CT image in data set B and data set C with subcutaneous fat and visceral fat respectively;

[0077] Step 2: Build the Neural Network

[0078] The resolution of CT images input to the neural network is p×o, where p is 512 and o is 512, in pixels. α is the batch size, which is 2.

[0079] When segmenting subcutaneous fat and visceral fat areas, the following six networks need to be constructed: subcutaneous fat area segmentation network E, subcutaneous fat area discrimination network F, subcutaneous fat area optimization network G, visceral fat area segmentation network R, visceral fat area discrimination network T and visceral fat area optimization network W;

[0080] (1) Structure of network E

[0081] The tensor H is used as input, with a scale of α×o×p×1, and the tensor I is used as output, with a scale of α×o×p×1;

[0082] The subcutaneous fat segmentation generation process requires preprocessing, encoding, and decoding: the preprocessing of the tensor H is: convolution operation, the kernel size is 7×7, the step length in the horizontal and vertical directions is 2, the number of convolution kernels is 64, and the initial feature D0 of the network E is obtained;

[0083] Then the initial features of network E are encoded twice in sequence: in the first encoding, the initial features of network E are processed by 4 dense layers in sequence, each dense layer consists of two convolution units, each convolution unit consists of 1 convolution operation, batch normalization, and activation processing. When the first convolution unit is operated, the convolution kernel size is 1×1, and the number of convolution kernels is 64. When the second convolution unit is operated, the convolution kernel size is 3×3, and the number of convolution kernels is the number of channels of the input features. The input features of each dense layer are the combined results of the output features of each dense layer. After the 4 dense layers are processed, the operation results of the 4 dense layers are concatenated respectively, and the concatenated results are processed as follows: batch normalization processing, activation processing and convolution operation, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, and the first encoded feature D1 of network E is obtained;

[0084] The first encoded features of network E are subjected to the following second encoding process: in the second encoding, the first encoded features of network E are sequentially processed by 6 dense layers, each dense layer consists of two convolution units, each convolution unit consists of 1 convolution operation, batch normalization, and activation processing. When the first convolution unit is operated, the convolution kernel size is 1×1, and the number of channels is 128. When the second convolution unit is operated, the convolution kernel size is 3×3, and the number of channels is 32. The input features of each dense layer are the combined results of the output features of each dense layer. After the 6 dense layers are processed, the operation results of the 6 dense layers are concatenated, and the concatenated results are subjected to the following processing: batch normalization processing, activation processing, and convolution operation. The convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels. Then, the second encoded features D2 of network E are obtained.

[0085] The output features of the second encoder of network E are expanded according to the channel dimension, and then self-attention is processed as follows: after sigmoid activation processing, batch normalization, and activation processing, the attention feature D3 of network E is obtained;

[0086] The attention feature of network E is input into the decoder for upsampling. The upsampling result is concatenated with the first encoding feature of network E. The concatenated result is subjected to the following three-layer convolution processing: convolution operation, batch normalization processing, activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128. The first layer decoding feature D4 of network E is obtained. The first layer decoding feature of network E is subjected to the following processing: convolution operation, batch normalization processing, activation processing, and the convolution kernel size is 3×3. The step size is 1, the number of convolution kernels is 64, and the second layer decoding feature D5 of the network E is obtained. The second layer decoding feature of the network E is then processed as follows: convolution operation, batch normalization processing, activation processing, the convolution kernel size is 5×5, the step size is 1, and the number of convolution kernels is 32. The third layer decoding feature of the network E is obtained. The third layer decoding feature of the network E is processed as follows: the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and then sigmoid activation is used to obtain the tensor I;

[0087] (2) Structure of network F

[0088] Tensors I and H are used as inputs, both with a scale of α×o×p×1, and tensor L is used as output, with a scale of α×o×p×1;

[0089] The network F includes a preprocessing process, an encoding process, and a decoding process. During preprocessing, the tensor I is regarded as a subcutaneous fat generation probability map, and the tensor H is convolved with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32 to obtain the initial convolution feature. The initial convolution feature obtained is then subjected to the following attention operation with the subcutaneous fat generation probability map: the initial convolution feature and the subcutaneous fat generation probability map are convolved with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 16, and the results of the two convolution processes are then multiplied by the corresponding matrix elements, and the multiplication result is then convolved with a convolution kernel size of 1×1, a step size of 1, and a number of convolution kernels of 32 to obtain the attention map, and the attention map is then element-wise added to the initial convolution feature. The initial discriminant feature S0 of the network F is obtained, and the initial discriminant feature of the network F is subjected to the following three feature encodings: in the first encoding, convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 64, to obtain the first encoding feature S1 of the network F, and the first encoding feature S1 of the network F is subjected to the second encoding processing: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 128, to obtain the second encoding feature of the network F, and the second encoding feature of the network F is subjected to the third encoding processing: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 128, to obtain the discriminant encoding feature of the network F;

[0090] The discriminant coding features of network F are subjected to the following two-layer decoding processing: in the first layer decoding processing, the discriminant features of network F are upsampled, and the sampling results are concatenated with the first encoding features of network F, and then convolution and activation processing are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, to obtain the first layer decoding features of network F, and then the first layer decoding features of network F are upsampled, and the upsampling results are concatenated with the initial discriminant features of network F, and the concatenation results are convolution operation and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then the obtained results are upsampled and convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then convolution processing is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the output tensor L is obtained after sigmoid activation processing;

[0091] (3) Structure of network G

[0092] For network G, in addition to the features D4 and D5 of network E and the features S0 and S1 of network F as input, tensors I and L are also used as inputs, with scales of α×o×p×1, and tensor Z is used as output, with scales of α×o×p×1;

[0093] The network G includes an encoder and a decoder. Before encoding, the tensor L is processed as follows: pixel-level probability inversion is performed on L, that is, the probability of each pixel is subtracted from 1. Then, the inversion result is concatenated with the tensor I, and the concatenated features are convolved. The convolution kernel size is 7×7, the step size is 2, and the number of convolution kernels is 32 to obtain the probabilistic initial features of the network G. In addition, the tensors L and S0 are squeezed and excited: first, a convolution unit operation is performed on the tensor S0, including convolution, batch normalization, and activation processing. The convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. At the same time, the tensor L is downsampled, and then a sigmoid activation process is performed to obtain the activation weight. The activation weight is then element-wise multiplied with S0 to obtain the initial squeezed excitation feature. The initial squeezed excitation feature is concatenated with the probabilistic initial feature of the network G to obtain the optimized initial feature of the network G.

[0094] Then the optimized initial features of the network G are encoded as follows: convolution and activation processing, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 64, to obtain convolution coding features. In addition, the tensors L and S1 are squeezed and excited as follows: first, a convolution unit operation is performed on the tensor S1, including convolution operation, batch normalization processing, and activation processing. The convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64. At the same time, the tensor L is downsampled, and then the sigmoid activation processing is performed to obtain the activation weight, and then the activation weight is element-wise multiplied with S1 to obtain the first layer of squeezed excitation features, the first layer of squeezed excitation features is concatenated with the convolution coding features, and the concatenation result is subjected to a convolution operation, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 128, and then after activation processing, the optimized coding features of the network G are obtained;

[0095] The coding features of the network G are subjected to the following three-layer decoding processing: in the first layer decoding processing, the optimized coding features of the network G are upsampled to obtain optimized coding upsampled features. In addition, the tensor L and the feature D4 of the network E are squeezed and excited as follows: first, the feature D4 of the network E is subjected to convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128. At the same time, the tensor L is downsampled, and then sigmoid activation processing is performed to obtain activation weights, and then the activation weights are element-wise multiplied with the feature D4 of the network E to obtain the first layer of decoding squeezed excitation features, and then the optimized coding upsampled features are concatenated with the first layer of decoding squeezed excitation features, and then input into the convolution unit for convolution operation and activation processing, wherein the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, to obtain the first layer of decoding features of the network G;

[0096] During the second-layer decoding process, the first-layer decoding features of the network G are upsampled to obtain the first-layer decoding upsampled features. In addition, the tensor L and the feature D5 of E are squeezed and excited: first, the feature D5 of E is convolved, batch normalized, and activated, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64. At the same time, the tensor L is downsampled, and then the sigmoid activation process is performed to obtain the activation weight, and then the activation weight is multiplied by the feature D5 of E element-wise to obtain the second-layer decoding squeezed and excited features, and then the first-layer decoding upsampled features and the second-layer decoding squeezed and excited features are concatenated, and then input into the convolution unit for convolution operation and activation processing, wherein the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, to obtain the second-layer decoding features of the network G;

[0097] During the third layer decoding process, the second layer decoding features of the network G are upsampled, and then convolution and activation processes are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. The obtained features are further convolved, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 1, and the output tensor Z of the network G is obtained after activation processing;

[0098] (4) Structure of network R

[0099] Tensor H and features D0, D1, D2, D3, D4, and D5 of network E are used as input. The scale of tensor H is α×o×p×1. Tensor K is used as output, and the scale is α×o×p×1.

[0100] The network R performs preprocessing, encoding processing, and decoding processing;

[0101] The preprocessing of tensor H is as follows: perform convolution operation with a kernel size of 7×7, a step size of 2 in the horizontal and vertical directions, and a number of convolution kernels of 64 to obtain the initial convolution features of network R. Perform squeezing excitation processing on the initial convolution features and feature D0 of E: perform probability inversion calculation on feature D0 of network E, and then perform one convolution operation with a convolution kernel size of 1×1, a step size of 1, and a number of convolution kernels of 1. After sigmoid activation, perform matrix multiplication operation with the initial convolution features of the input to obtain the initial excitation features of network R.

[0102] Then the initial excitation features of network R are encoded three times in sequence: in the first encoding, the initial excitation features of network R are processed by four dense layers in sequence, each dense layer consists of two convolution units, each convolution unit consists of one convolution operation, batch normalization, and activation processing. For the first convolution unit operation, the convolution kernel size is 1×1, and the number of convolution kernels is 64. For the second convolution unit operation, the convolution kernel size is 3×3, and the number of convolution kernels is the number of channels of the input features; the input features of each dense layer are the combination of the output features of each dense layer; after the four dense layers are processed, the operations of the four dense layers are respectively The calculation results are concatenated, and the concatenated results are processed as follows: batch normalization, activation and convolution, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, to obtain the first encoding feature of network R, and the first encoding feature of network R and D1 are squeezed and excited: the feature D1 of network E is subjected to probability inversion calculation, and then a convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. After sigmoid activation, the matrix multiplication operation is performed with the first encoding feature of the input to obtain the first encoding excitation feature of network R.

[0103] The first encoded excitation features of network R are subjected to the following second encoding process: in the second encoding, the first encoded excitation features of network R are processed by 6 dense layers in sequence, each dense layer consists of two convolution units, each convolution unit consists of 1 convolution operation, batch normalization, and activation processing. For the first convolution unit operation, the convolution kernel size is 1×1, the number of channels is 128, and for the second convolution unit operation, the convolution kernel size is 3×3, the number of channels is 32; the input features of each dense layer are the combined results of the output features of each dense layer; after processing the 6 dense layers, the operation results of the 6 dense layers are The concatenation is performed, and the concatenation result is processed as follows: batch normalization, activation and convolution operation, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, and then the second encoding feature of the network R is obtained, and the second encoding feature of the network R and D2 are squeezed and excited, wherein D2 is firstly subjected to probability inversion calculation, and then a convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. After the sigmoid layer, a matrix multiplication operation is performed with the second encoding feature of the input to obtain the second encoding excitation feature of the network R.

[0104] The second coded excitation features of network R are coded for the third time: in the third coding, 12 dense layers are processed in sequence on the second coded excitation features of network R, each dense layer consists of two convolution units, each convolution unit consists of one convolution operation, batch normalization, and activation processing. When the first convolution unit is operated, the convolution kernel size is 1×1, and the number of channels is 128. When the second convolution unit is operated, the convolution kernel size is 3×3, and the number of channels is 32. The input features of each dense layer are the combined results of the output features of each dense layer. After 12 dense layers are processed, the operation results of the 12 dense layers are concatenated, and the concatenated results are processed as follows: batch normalization processing, activation processing and convolution operation. The convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels. Then the third coded features of network R are obtained.

[0105] Decoding processing is performed, and the third coding excitation feature of network R is convolved, batch normalized, and activated. The convolution kernel size is 3×3, the step size is 1, and the number of convolutions is 32. The obtained result is upsampled, and the upsampling result is concatenated with the first coding excitation feature of network R. The concatenation result is processed as follows: convolution operation, batch normalization, activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 256. The first layer decoding feature of network E is obtained, and the first layer decoding feature and feature D3 of network E are squeezed and excited: feature D3 of network E is subjected to probability inversion calculation, and then convolution operation is performed. The convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. After passing through the sigmoid layer, matrix multiplication operation is performed with the input first layer decoding feature to obtain the first layer coding excitation feature of network R.

[0106] The first layer coding excitation feature of the network R is upsampled, and the upsampling result is concatenated with the second coding excitation feature of the network R, and the concatenation result is processed as follows: convolution operation, batch normalization processing, activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128, to obtain the second layer decoding feature of the network R, and the second layer decoding feature of the network R and D4 are squeezed and excited, wherein D4 is firstly subjected to probability inversion calculation, and then convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and after sigmoid activation processing, a matrix multiplication operation is performed with the second layer decoding feature of the network R to obtain the second layer coding excitation feature Q0 of the network R.

[0107] The second layer coding excitation feature of network R is upsampled, and the upsampling result is concatenated with the third coding excitation feature of network R, and the concatenation result is processed as follows: convolution operation, batch normalization processing, activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, to obtain the third layer decoding feature of network R, and the third layer decoding feature of network R and the feature D5 of network E are squeezed and excited: the feature D5 of network E is subjected to probability inversion calculation, and then convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. After passing through the sigmoid layer, matrix multiplication operation is performed with the third layer decoding feature of network R to obtain the third layer coding excitation feature Q1 of network R.

[0108] The third layer of encoded excitation features of network R is upsampled, and the upsampling results are convolutionally processed, batch normalized, and activated. The convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. Then, it is output through another convolution layer. The convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. Finally, the sigmoid activation process is performed to output the tensor K.

[0109] (5) Structure of network T

[0110] Tensors K and H are used as input, both with a scale of α×o×p×1, and tensor Y is used as output, with a scale of α×o×p×1;

[0111] The network T includes preprocessing, encoding and decoding processes;

[0112] During preprocessing, the tensor I is regarded as the visceral fat generation probability map, and the tensor H is convolved with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32 to obtain the initial convolution features of the network T. The initial convolution features and the visceral fat generation probability map are then subjected to the following attention processing: the initial convolution features of the network T and the visceral fat generation probability map are convolved with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 16, respectively. The results of the two convolutions are then multiplied by the corresponding matrix elements, and the multiplication results are then convolved with a convolution kernel size of 1×1, a step size of 1, and a number of convolution kernels of 32 to obtain the attention map. The attention map is then element-wise added to the initial convolution features to obtain the initial network T. The initial discriminant feature V0 of the network T is subjected to feature encoding three times: in the first encoding, convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 64, so as to obtain the first encoding feature V1 of the network T, and the first encoding feature of the network T is subjected to the second encoding processing: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 128, so as to obtain the second encoding feature of the network T, and the second encoding feature of the network T is subjected to the third encoding processing: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 128, so as to obtain the discriminant encoding feature of the network T;

[0113] The discriminant coding features of network T are subjected to the following two-layer decoding processing: in the first layer decoding processing, the discriminant features of network T are upsampled, and the sampling results are concatenated with the first encoding features of network T, and then convolution and activation processing are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, to obtain the first layer decoding features of network T, and then the first layer decoding features of network T are upsampled, and the upsampled results are concatenated with the initial discriminant features of network T, and the concatenation results are convolution and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then the obtained results are upsampled and then convolution and activation processing are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the output tensor Y is obtained after sigmoid activation processing;

[0114] (6) Structure of network W

[0115] Tensors K and Y are used as inputs, with scales of α×o×p×1. Tensor J is used as output, with scales of α×o×p×1. Features Q0 and Q1 of network R and features V0 and V1 of network T are also input into network W.

[0116] The network W includes an encoder and a decoder. Before encoding, the tensor Y is processed as follows: pixel-level probability inversion processing is performed on Y, that is, the probability of each pixel is subtracted from 1, and then the inversion result is concatenated with the tensor K, and the concatenated features are convolved with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32 to obtain probabilistic initial features. In addition, the tensor Y and V0 are squeezed and excited: first, a convolution unit operation is performed on the tensor V0, including convolution, batch normalization, and activation processing. The convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. At the same time, the tensor Y is downsampled, and then a sigmoid activation process is performed to obtain the activation weight. The activation weight is then element-wise multiplied with V0 to obtain the initial squeezed excitation feature of the network W. The initial squeezed excitation feature of the network W is concatenated with the probabilistic initial feature to obtain the optimized initial feature of the network W.

[0117] Then the optimized initial features of the network W are encoded as follows: convolution and activation processing, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 64, to obtain convolution coding features. In addition, the tensors Y and V1 are squeezed and excited: first, a convolution unit operation is performed on the feature V1 of T, including convolution operation, batch normalization processing, and activation processing. The convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64. At the same time, the tensor Y is downsampled, and the activation weight is obtained through sigmoid activation processing. The activation weight is then element-wise multiplied with the feature V1 of T to obtain the first layer of squeezed excitation features. The first layer of squeezed excitation features is concatenated with the convolution coding features, and the concatenation result is subjected to a convolution operation. The convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 128. After activation processing, the optimized coding features of the network W are obtained.

[0118] The coding features of the network W are subjected to the following three-layer decoding processing: in the first layer decoding processing, the optimized coding features of the network W are upsampled to obtain optimized coding upsampled features. In addition, the tensor Y and the feature Q0 of the network R are squeezed and excited: first, a convolution unit operation is performed on the feature Q0 of the network R, including convolution operation, batch normalization processing, activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128. At the same time, the tensor Y is downsampled, and then a sigmoid activation process is performed to obtain the activation weight, and then the activation weight is element-wise multiplied with the feature Q0 of the network R to obtain the first layer decoding squeeze excitation feature, and then the optimized coding upsampled feature is added to the first layer decoding squeeze excitation feature, the obtained feature is concatenated with the optimized coding feature, and then input into the convolution unit for convolution operation and activation processing, wherein the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, and the first layer decoding feature of the network W is obtained;

[0119] During the second-layer decoding process, the first-layer decoding features of the network W are upsampled to obtain the first-layer decoding upsampled features. In addition, the tensors Y and Q1 are squeezed and excited: first, a convolution unit operation is performed on the feature Q1 of the network R, including convolution operation, batch normalization processing, and activation processing. The convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64. At the same time, the tensor Y is downsampled, and then the sigmoid activation process is performed to obtain the activation weight. The activation weight is then element-wise multiplied with Q1 to obtain the second-layer decoding squeezed and excited features. The first-layer decoding upsampled features and the second-layer decoding squeezed and excited features are then added. The obtained features are concatenated with the optimized initial features, and then input into the convolution unit for convolution operation and activation processing. The convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and the second-layer decoding features of the network W are obtained.

[0120] During the third layer decoding process, the second layer decoding features of the network W are upsampled, and then convolution and activation processes are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. The obtained features are further convolved, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 1, and the output tensor J of the network W is obtained after activation processing;

[0121] Step 3: Training the Neural Network

[0122] During training, the training data is obtained from the training data set B, uniformly scaled to a resolution of p×o, input into the corresponding network, iteratively optimized, and the loss of each batch is minimized by continuously modifying the network model parameters;

[0123] During the training process, the calculation method of each loss is:

[0124] Fat area prediction loss: When predicting the subcutaneous fat area, the fat area prediction loss is calculated as the cross entropy loss and Dice loss between the network E output tensor I and the subcutaneous fat label; when predicting the visceral fat area, the fat area prediction loss is calculated as the cross entropy loss and Dice loss between the network R output tensor K and the visceral fat label.

[0125] Adversarial learning loss: A probability map is predicted for the input data, and the discriminant network performs classification prediction on the generated probability map and the true label, and calculates the binary cross entropy classification loss.

[0126] Optimization loss: When predicting the subcutaneous fat area, the fat area prediction loss is calculated as the cross entropy loss and Dice loss between the network G output tensor Z and the subcutaneous fat label; when predicting the visceral fat area, the fat area prediction loss is calculated as the cross entropy loss and Dice loss between the network W output tensor J and the visceral fat label.

[0127] Specific training steps:

[0128] During training, network E, network R, network F, and network T were trained with labeled data for 100 iterations, and all the labeled training sets were used for training, with a batch size of 2. Then, the unlabeled training set was added, and the labeled training set was combined for training, with 20,000 iterations, with a batch size of 2. Finally, network G and network W were iterated for 20,000 times, with a batch size of 2. Specifically:

[0129] (1) On dataset A, supervised training of networks E and F is performed using labeled data, and loss constraints are calculated using the subcutaneous fat area. At the same time, supervised training of networks R and T is performed using dataset A, and loss constraints are predicted using the visceral fat area. The number of iterations is 100.

[0130] (2) Take data from dataset A and dataset X respectively, input them into network E, generate two probability maps of subcutaneous fat region segmentation, then input the generated probability maps and label data of subcutaneous fat region segmentation into network F, use subcutaneous fat region calculation loss and subcutaneous fat adversarial learning loss as constraints to train network F, at the same time, take data from dataset A and dataset X, input them into network R, generate two probability maps of visceral fat region segmentation, then input the generated probability maps and label data of visceral region segmentation into network T, use subcutaneous fat region calculation loss and subcutaneous fat adversarial learning loss as constraints to train network T, the number of iterations of training network F and network T is 20000;

[0131] (3) On dataset A, use the labeled data and input them into network E and network F. The probability map generated by network E and the confidence map generated by network F are input into network G. The subcutaneous fat area optimization loss is used as a constraint to optimize network G. At the same time, the data and labeled data taken from dataset A are input into network R and network T. The probability map generated by network R and the confidence map generated by network T are input into network W. The visceral fat area optimization loss is used as a constraint to optimize network W. The number of training iterations for network G and network W is 20,000.

[0132] Step 4: Subcutaneous fat and visceral fat area segmentation method

[0133] For a self-sampled CT image, it is input into network E, and the features generated by network E are input into network G. The subcutaneous fat area is predicted from network G using the trained network G parameters. At the same time, the image is input into network R, and the features generated by network R are input into network W. The visceral fat area is predicted from network W using the trained network W parameters.

[0134] In this embodiment, the Jaccard Score and Dice Coefficient numerical percentages are used for statistics to obtain the Jaccard Score and Dice Coefficient numerical percentages between the calculated results of the present invention and the labels. Figure 1 is the verification result of the experiment, SAT represents subcutaneous fat, VAT represents visceral fat, Jac represents the result performance obtained by the present invention on the test set using Jaccard Score statistics; Dic represents the result performance obtained by the present invention on the test set using Dice Coefficient statistics, and the calculated mean represents the average statistical results of subcutaneous fat and visceral fat. Figure 1 The results of the segmentation of the subcutaneous fat and visceral fat regions of the abdominal CT images obtained by the present invention are shown, from which it can be seen that the present invention can obtain effective segmentation results. Table 1 shows the effectiveness of the present invention on the public data test set.

[0135]

Claims

1. A method for segmenting subcutaneous fat and visceral fat regions based on abdominal CT images, characterized in that: The method processes an abdominal CT image, whose image resolution is M×N, 100≤M≤2000, 100≤N≤2000, and the subcutaneous fat and visceral fat region segmentation process specifically includes the following steps: Step 1: Construct an abdominal CT image dataset Select an abdominal CT image public website, download a abdominal CT images from the website, construct a dataset A, 300≤a≤20000, divide the dataset A into 20%, 10% and 70% respectively, construct a training dataset B, a validation dataset C and an unlabeled dataset X respectively, and annotate each CT image in dataset B and dataset C with subcutaneous fat and visceral fat respectively; Step 2: Build the Neural Network The resolution of CT images input to the neural network is p×o, where p is the width and o is the height in pixels, 100≤o≤2000, 100≤p≤2000; The following six networks were constructed respectively: subcutaneous fat area segmentation network E, subcutaneous fat area discrimination network F, subcutaneous fat area optimization network G, visceral fat area segmentation network R, visceral fat area discrimination network T and visceral fat area optimization network W; (1) Structure of network E Tensor H is used as input with a scale of α×o×p×1, and tensor I is used as output with a scale of α×o×p×1, where α is the batch size; The subcutaneous fat segmentation generation process requires preprocessing, encoding processing, and decoding processing; The preprocessing of tensor H is as follows: convolution operation is performed, the kernel size is 7×7, the step length in the horizontal and vertical directions is 2, the number of convolution kernels is 64, and the initial feature D0 of network E is obtained; After two encodings in sequence: in the first encoding, the initial feature D0 of the network E is processed by four dense layers in sequence, each dense layer consists of two convolution units, each convolution unit consists of one convolution operation, batch normalization and activation processing, when the first convolution unit is operated, the convolution kernel size is 1×1, and the number of convolution kernels is 64; when the second convolution unit is operated, the convolution kernel size is 3×3, and the number of convolution kernels is the number of channels of the input feature; the input features of each dense layer are the combination results of the output features of the dense layer; after the four dense layers are processed, the operation results of the four dense layers are concatenated respectively, and the concatenated results are processed as follows: batch normalization processing, activation processing and convolution operation, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, and the first encoding feature D1 of the network E is obtained; In the second encoding, the first encoding feature D1 of network E is processed by 6 dense layers in sequence, each dense layer consists of two convolution units, each convolution unit consists of 1 convolution operation, batch normalization and activation processing, when the first convolution unit is operated, the convolution kernel size is 1×1, and the number of channels is 128; when the second convolution unit is operated, the convolution kernel size is 3×3, and the number of channels is 32; after the 6 dense layers are processed, the operation results of the 6 dense layers are concatenated, and the concatenated results are processed as follows: batch normalization processing, activation processing and convolution operation, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, and then the second encoding feature D2 of network E is obtained; Expand the second encoding feature D2 of network E according to the channel dimension, and then perform self-attention processing: after sigmoid activation processing, batch normalization and activation processing, the attention feature D3 of network E is obtained; The attention feature D3 of network E is input to the decoder for upsampling. The upsampling result is concatenated with the first encoding feature D1 of network E. The concatenated result is subjected to the following three-layer convolution processing: convolution operation, batch normalization processing and activation processing. The convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128. The first layer decoding feature D4 of network E is obtained. The first layer decoding feature D4 of network E is subjected to the following processing: convolution operation, batch normalization processing and activation processing. The convolution kernel size is 3×3. ×3, the step size is 1, the number of convolution kernels is 64, and the second layer decoding feature D5 of the network E is obtained; the second layer decoding feature D5 of the network E is then processed as follows: convolution operation, batch normalization processing and activation processing, the convolution kernel size is 5×5, the step size is 1, and the number of convolution kernels is 32, and the third layer decoding feature of the network E is obtained; the third layer decoding feature of the network E is processed as follows: wherein the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and then sigmoid activation is used to obtain the tensor I; (2) Structure of network F Tensors I and H are used as input, with scales of α×o×p×1, and tensor L is used as output, with scale of α×o×p×1, where α is the batch size; The network F includes a preprocessing process, an encoding process, and a decoding process. During preprocessing, the tensor I is regarded as a subcutaneous fat generation probability map, and the tensor H is convolved with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32 to obtain an initial convolution feature; the initial convolution feature obtained is then subjected to the following attention operation with the subcutaneous fat generation probability map: the initial convolution feature and the subcutaneous fat generation probability map are convolved with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 16, respectively, and the two results after the convolution process are then multiplied by the corresponding matrix elements, and the multiplication result is then convolved with a convolution kernel size of 1×1, a step size of 1, and a number of convolution kernels of 32 to obtain an attention map, and the attention map is then element-wise added to the initial convolution feature to obtain to the initial discriminant feature S0 of the network F; the initial discriminant feature S0 of the network F is subjected to the following three feature encodings: in the first encoding, convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 64, so as to obtain the first encoding feature S1 of the network F; the first encoding feature S1 of the network F is subjected to the second encoding processing: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 128, so as to obtain the second encoding feature of the network F; the second encoding feature of the network F is subjected to the third encoding processing again: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 128, so as to obtain the discriminant encoding feature of the network F; The discriminant coding features of network F are decoded as follows: the discriminant features of network F are upsampled, and the upsampled results are concatenated with the first coding features of network F, and then convolution and activation are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, so as to obtain the first layer decoding features of network F; the first layer decoding features of network F are upsampled, and the upsampled results are concatenated with the initial discriminant features of network F, and the convolution operation and activation processing are performed on the concatenated results, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then the obtained results are upsampled and convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then convolution processing is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the output tensor L is obtained after sigmoid activation processing; (3) Structure of network G For network G, in addition to the first-layer decoding feature D4, the second-layer decoding feature D5 of network E, the initial discriminant feature S0 and the first-time encoding feature S1 of network F as input, tensors I and L are also used as input, with scales of α×o×p×1, and tensor Z is used as output, with a scale of α×o×p×1, where α is the batch size; The network G includes an encoder and a decoder. Before encoding, the tensor L is processed as follows: for the tensor L, the probability of each pixel is subtracted from 1, and the result is concatenated with the tensor I, and then the concatenated features are convolved, with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32, to obtain the probabilistic initial features of the network G. In addition, the tensor L and the initial discriminant feature S0 of the network F are squeezed and excited: first, a convolution unit operation is performed on the feature S0, including convolution, batch normalization and activation processing, with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 32. At the same time, the tensor L is downsampled, and then a sigmoid activation process is performed to obtain the activation weight, and then the activation weight is element-wise multiplied with the feature S0 to obtain the initial squeezed excitation feature, and the initial squeezed excitation feature is concatenated with the probabilistic initial feature of the network G to obtain the optimized initial feature of the network G; The optimized initial features of the network G are then encoded as follows: convolution and activation processing, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 64, to obtain convolution coding features. In addition, the tensor L and the first coding feature S1 of the network F are squeezed and excited as follows: first, a convolution unit operation is performed on the feature S1, including convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, and the tensor L is downsampled at the same time, and then a sigmoid activation process is performed to obtain the activation weight, and then the activation weight is element-wise multiplied with the feature S1 to obtain the first layer of squeezed excitation features; the first layer of squeezed excitation features are concatenated with the convolution coding features, and the concatenation result is subjected to a convolution operation, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 128, and then activated to obtain the optimized coding features of the network G; The optimized coding features of the network G are subjected to the following three-layer decoding processing: in the first layer decoding processing, the optimized coding features of the network G are upsampled to obtain optimized coding upsampled features. In addition, the tensor L and the first layer decoding feature D4 of the network E are subjected to squeeze excitation processing as follows: first, the feature D4 of the network E is subjected to convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128. At the same time, the tensor L is downsampled, and then sigmoid activation processing is performed to obtain activation weights, and then the activation weights are element-wise multiplied with the feature D4 of the network E to obtain the first layer decoding squeeze excitation features; then the optimized coding upsampled features are concatenated with the first layer decoding squeeze excitation features, and then input into the convolution unit for convolution operation and activation processing, wherein the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, to obtain the first layer decoding features of the network G; During the second-layer decoding process, the first-layer decoding features of the network G are upsampled to obtain the first-layer decoding upsampled features. In addition, the tensor L and the second-layer decoding feature D5 of the network E are squeezed and excited: the feature D5 of the network E is first convolved, batch normalized and activated, with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 64. At the same time, the tensor L is downsampled, and then a sigmoid activation process is performed to obtain an activation weight. The activation weight is then element-wise multiplied with the feature D5 of the network E to obtain the second-layer decoding squeezed and excited features. The first-layer decoding upsampled features and the second-layer decoding squeezed and excited features are then concatenated and input into the convolution unit for convolution and activation, where the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, to obtain the second-layer decoding features of the network G. During the third layer decoding process, the second layer decoding features of the network G are upsampled, and then convolution and activation processes are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. The obtained features are further convolved, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 1, and the output tensor Z of the network G is obtained after activation processing; (4) Structure of network R Tensor H, initial feature D0 of network E, first encoding feature D1, second encoding feature D2, attention feature D3, first layer decoding feature D4 and second layer decoding feature D5 are used as input. The scale of tensor H is α×o×p×1. Tensor K is used as output, with a scale of α×o×p×1, where α is the batch size. The network R performs preprocessing, encoding processing and decoding processing; The preprocessing of the tensor H is as follows: a convolution operation is performed, the kernel size is 7×7, the step size in the horizontal direction and the vertical direction is 2, the number of convolution kernels is 64, the initial convolution feature of the network R is obtained, and the initial convolution feature and the feature D0 of the network E are squeezed and excited: the initial feature D0 of the network E is subjected to probability inversion calculation, and then a convolution operation is performed again, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. Finally, the result is sigmoid activated and matrix multiplication is performed with the initial convolution feature of the input network R to obtain the initial excitation feature of the network R; Then the initial excitation features of network R are encoded three times in sequence: In the first encoding, the initial excitation features of the network R are processed by four dense layers in sequence. Each dense layer consists of two convolution units. Each convolution unit consists of one convolution operation, batch normalization and activation processing. When the first convolution unit is operated, the convolution kernel size is 1×1 and the number of convolution kernels is 64; when the second convolution unit is operated, the convolution kernel size is 3×3 and the number of convolution kernels is the number of channels of the input feature. After the four dense layers are processed, the operation results of the four dense layers are concatenated respectively, and the concatenated results are processed as follows: batch normalization, Activation processing and convolution operation, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, to obtain the first encoding feature of network R; the first encoding feature of network R and the feature D1 are squeezed and excited: the feature D1 is subjected to probability inversion calculation, and then a convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. Finally, the result is sigmoid activated and matrix multiplied with the first encoding feature of the input network R to obtain the first encoding excitation feature of network R; In the second encoding, the first encoding excitation features of the network R are processed by 6 dense layers in sequence, each dense layer consists of two convolution units, each convolution unit consists of 1 convolution operation, batch normalization and activation processing, for the first convolution unit operation, the convolution kernel size is 1×1, the number of channels is 128; for the second convolution unit operation, the convolution kernel size is 3×3, the number of channels is 32; after the 6 dense layers are processed, the operation results of the 6 dense layers are concatenated, and the concatenated results are processed as follows: batch normalization processing, activation processing and convolution operation The convolution operation is performed with a convolution kernel size of 1×1, a step size of 2, and a number of convolution kernels of 0.6 times the number of input feature channels, and then the second encoding feature of the network R is obtained; the second encoding feature of the network R and the feature D2 are squeezed and excited, wherein the feature D2 is firstly subjected to a probability inversion calculation, and then a convolution operation is performed with a convolution kernel size of 1×1, a step size of 1, and a number of convolution kernels of 1, and finally the result is subjected to sigmoid activation and matrix multiplication operation is performed with the second encoding feature of the input network R to obtain the second encoding excitation feature of the network R; In the third encoding, the second encoding excitation feature of the network R is processed by 12 dense layers in sequence, each dense layer is composed of two convolution units, each convolution unit is composed of one convolution operation, batch normalization and activation processing, when the first convolution unit is operated, the convolution kernel size is 1×1, and the number of channels is 128; when the second convolution unit is operated, the convolution kernel size is 3×3, and the number of channels is 32; after the 12 dense layers are processed, the operation results of the 12 dense layers are concatenated, and the concatenated results are processed as follows: batch normalization processing, activation processing and convolution operation, the convolution kernel size is 1×1, the step size is 2, and the number of convolution kernels is 0.6 times the number of input feature channels, and then the third encoding excitation feature of the network R is obtained; Perform decoding processing, perform convolution operation, batch normalization processing and activation processing on the third encoding excitation feature of network R, the convolution kernel size is 3×3, the step size is 1, and the number of convolutions is 32, and the obtained result is upsampled, and the upsampled result is concatenated with the first encoding excitation feature of network R, and the concatenation result is processed as follows: convolution operation, batch normalization processing, activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 256, to obtain the first layer decoding feature of network R; perform squeezing excitation processing on the first layer decoding feature and the feature D3: perform probability inversion calculation on the feature D3, and then perform convolution operation, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the result is sigmoid activated and matrix multiplication operation is performed with the first layer decoding feature to obtain the first layer decoding excitation feature of network R; The first layer decoding excitation feature of the network R is upsampled, and the upsampling result is concatenated with the second encoding excitation feature of the network R, and the concatenated result is processed as follows: convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128, so as to obtain the second layer decoding feature of the network R; the second layer decoding feature of the network R and the feature D4 of the network E are squeezed and excited, wherein the feature D4 is firstly subjected to probability inversion calculation, and then convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the result is subjected to sigmoid activation and matrix multiplication operation is performed with the second layer decoding feature of the network R to obtain the second layer decoding excitation feature Q0 of the network R; The second layer decoding excitation feature Q0 of network R is upsampled, and the upsampling result is concatenated with the third encoding excitation feature of network R, and the concatenation result is processed as follows: convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, to obtain the third layer decoding feature of network R, and the third layer decoding feature of network R and the feature D5 of network E are squeezed and excited: the feature D5 of network E is subjected to probability inversion calculation, and then convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the result is sigmoid activated, and the third layer decoding feature of network R is subjected to matrix multiplication operation to obtain the third layer decoding excitation feature Q1 of network R; The decoded excitation feature Q1 of the third layer of network R is upsampled, and the upsampled result is subjected to convolution operation, batch normalization and activation processing, where the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. Then it is output through a convolution layer, where the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1. Finally, the sigmoid activation processing is performed to output the tensor K; (5) Structure of network T Tensors K and H are used as input, with scales of α×o×p×1, and tensor Y is used as output, with scales of α×o×p×1, where α is the batch size; The network T includes preprocessing, encoding and decoding processes; During preprocessing, the tensor I is regarded as the visceral fat generation probability map, and the tensor H is convolved with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32 to obtain the initial convolution features of the network T; the initial convolution features and the visceral fat generation probability map are then subjected to the following attention processing: the initial convolution features of the network T and the visceral fat generation probability map are convolved with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 16, respectively, and the two results after the convolution processing are then multiplied by the corresponding matrix elements, and the multiplication result is then convolved with a convolution kernel size of 1×1, a step size of 1, and a number of convolution kernels of 32 to obtain the attention map; the attention map is then element-wise added to the initial convolution features to obtain the initial judgment map of the network T. The initial discriminant feature V0 of the network T is subjected to feature encoding three times: in the first encoding, convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 64, so as to obtain the first encoding feature V1 of the network T; the first encoding feature V1 of the network T is subjected to the second encoding processing: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 128, so as to obtain the second encoding feature of the network T; the second encoding feature of the network T is subjected to the third encoding processing: convolution operation and activation processing are performed, the convolution kernel size is 3×3, the step length is 2, and the number of convolution kernels is 128, so as to obtain the discriminant encoding feature of the network T; The discriminant coding features of network T are subjected to the following two-layer decoding processing: in the first layer decoding processing, the discriminant features of network T are upsampled, and the upsampled results are concatenated with the first coding features of network T, and then convolution and activation processing are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, so as to obtain the first layer decoding features of network T; the first layer decoding features of network T are upsampled, and the upsampled results are concatenated with the initial discriminant features of network T, and the concatenated results are convolution and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then the obtained results are upsampled and then convolution and activation processing are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and then convolution operation is performed, the convolution kernel size is 1×1, the step size is 1, and the number of convolution kernels is 1, and finally the output tensor Y is obtained after sigmoid activation processing; (6) Structure of network W Tensor K and tensor Y are used as input, with scales of α×o×p×1, and tensor J is used as output, with scales of α×o×p×1, where α is the batch size. The second layer decoding excitation feature Q0, the third layer decoding excitation feature Q1 of network R, the initial discriminant feature V0 of network T, and the first encoding feature V1 are also input to network W; The network W includes an encoder and a decoder. Before encoding, the tensor Y is processed as follows: for Y, the probability of each pixel is subtracted from 1, and then the result is concatenated with the tensor K, and the concatenated features are convolved, with a convolution kernel size of 7×7, a step size of 2, and a number of convolution kernels of 32 to obtain a probabilistic initial feature. In addition, the tensor Y and the feature V0 are squeezed and excited: first, a convolution unit operation is performed on the feature V0, including convolution, batch normalization and activation processing, with a convolution kernel size of 3×3, a step size of 1, and a number of convolution kernels of 32. At the same time, the tensor Y is downsampled, and then the result is sigmoid activated to obtain an activation weight, and then the activation weight is element-wise multiplied with the feature V0 to obtain an initial squeezed and excited feature of the network W; the initial squeezed and excited feature of the network W is concatenated with the probabilistic initial feature to obtain an optimized initial feature of the network W; The optimized initial features of the network W are then encoded as follows: convolution and activation processing, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 64, to obtain convolution coding features; in addition, the tensor Y and the feature V1 are squeezed and excited: first, a convolution unit operation is performed on the feature V1, including convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, and the tensor Y is downsampled at the same time, and then the result is sigmoid activated to obtain the activation weight, and then the activation weight is element-wise multiplied with the feature V1 to obtain the first layer of squeezed excitation features; the first layer of squeezed excitation features are concatenated with the convolution coding features, and the concatenation result is subjected to a convolution operation, the convolution kernel size is 3×3, the step size is 2, and the number of convolution kernels is 128, and then activated to obtain the optimized coding features of the network W; The optimized coding features of the network W are subjected to the following three-layer decoding process: During the first layer decoding process, the optimized coding features of the network W are upsampled to obtain optimized coding upsampled features; in addition, the tensor Y and the feature Q0 of the network R are squeezed and excited: first, a convolution unit operation is performed on the feature Q0 of the network R, including convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 128. At the same time, the tensor Y is downsampled, and the result is sigmoid activated to obtain the activation weight, and then the activation weight is element-wise multiplied with the feature Q0 of the network R to obtain the first layer decoding squeezed excitation feature; then the optimized coding upsampled feature is added to the first layer decoding squeezed excitation feature, the obtained added feature is concatenated with the optimized coding feature, and then input into the convolution unit for convolution operation and activation processing, wherein the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64, to obtain the first layer decoding feature of the network W; During the second-layer decoding process, the first-layer decoding features of the network W are upsampled to obtain the first-layer decoding upsampled features. In addition, the tensor Y and the feature Q1 are squeezed and excited: first, a convolution unit operation is performed on the feature Q1 of the network R, including convolution operation, batch normalization processing and activation processing, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 64. At the same time, the tensor Y is downsampled, and then a sigmoid activation process is performed to obtain the activation weight, and then the activation weight is element-wise multiplied with the feature Q1 to obtain the second-layer decoding squeezed and excited features; then the first-layer decoding upsampled features and the second-layer decoding squeezed and excited features are added, and the obtained added features are concatenated with the optimized initial features, and then input into the convolution unit for convolution operation and activation processing, wherein the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32, and the second-layer decoding features of the network W are obtained; During the third layer decoding process, the second layer decoding features of the network W are upsampled, and then convolution and activation processes are performed, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 32. The obtained features are further convolved, the convolution kernel size is 3×3, the step size is 1, and the number of convolution kernels is 1, and the output tensor J of the network W is obtained after activation processing; Step 3: Training the Neural Network During training, the training data is obtained from the training data set B, uniformly scaled to a resolution of p×o, input into the network, and iteratively optimized. By continuously modifying the network model parameters, the loss of each batch is minimized. During the training process, the calculation method of each loss is: The loss of subcutaneous fat area is calculated as the cross entropy loss and Dice loss between the network E output tensor I and the subcutaneous fat label; The visceral fat area prediction loss is calculated as the cross entropy loss and Dice loss between the network R output tensor K and the visceral fat label; Subcutaneous fat adversarial learning loss, based on the label of subcutaneous fat and the probability map generated by network F, the binary cross entropy classification loss is calculated; Visceral fat adversarial learning loss, based on the visceral fat label, the binary cross entropy classification loss is calculated according to the probability map generated by the network T; Subcutaneous fat area optimization loss is calculated as the fat area prediction loss, that is, the cross entropy loss and Dice loss are calculated between the network G output tensor Z and the subcutaneous fat label; The visceral fat area optimization loss is calculated as the cross entropy calculation loss and Dice loss between the network W output tensor J and the visceral fat label; Specific training steps: (1) On dataset A, supervised training of networks E and F was performed using labeled data, and loss constraints were calculated using the subcutaneous fat region. At the same time, supervised training of networks R and T was performed using dataset A, and loss constraints were predicted using the visceral fat region. The number of iterations was 100. (2) The data from dataset A and dataset X are respectively input into network E to generate two probability maps for subcutaneous fat region segmentation, and then the generated probability maps and the label data for subcutaneous fat region segmentation are input into network F, and subcutaneous fat region calculation loss and subcutaneous fat adversarial learning loss are used as constraints to train network F. At the same time, the data taken from dataset A and dataset X are input into network R to generate two probability maps for visceral fat region segmentation, and then the generated probability maps and the label data for visceral region segmentation are input into network T, and subcutaneous fat region calculation loss and subcutaneous fat adversarial learning loss are used as constraints to train network T. The number of iterations for training network F and network T is 20,000; (3) On dataset A, use the labeled data and input them into network E and network F. The probability map generated by network E and the confidence map generated by network F are input into network G. The subcutaneous fat area optimization loss is used as a constraint to optimize network G. At the same time, the data and labeled data taken from dataset A are input into network R and network T. The probability map generated by network R and the confidence map generated by network T are input into network W. The visceral fat area optimization loss is used as a constraint to optimize network W. The number of training iterations for network G and network W is 20,000. Step 4: Segmentation of subcutaneous fat and visceral fat regions For a self-sampled CT image, it is input into network E, and the features generated by network E are input into network G. The subcutaneous fat area is predicted from network G using the trained network G parameters. At the same time, the image is input into network R, and the features generated by network R are input into network W. The visceral fat area is predicted from network W using the trained network W parameters.

Citation Information

Patent Citations

  • Semi-supervised learning cell segmentation method based on a generative adversarial network

    CN109614921A

  • Semi-supervised coronary artery segmentation system and segmentation method combined with multiple networks

    CN111476796A