Image segmentation method, terminal device and computer readable storage medium
By obtaining a proton density fat fraction quantitative map of whole body fat distribution and performing image segmentation processing, the problem of being unable to segment and quantify whole body fat in the existing technology is solved, and accurate segmentation and quantitative analysis of human fat are achieved.
Patent Information
- Application Number
- CN202011247390.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-10
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-11-10
AI Technical Summary
Existing fat quantification and segmentation methods usually target a certain part, and cannot achieve segmentation of whole body fat, quantification of the degree of whole body fat deposition, and accurate segmentation of whole body fat.
By obtaining the proton density fat fraction quantitative map of the subject's whole body fat distribution, and inputting it into the preset image segmentation model for processing, the subcutaneous fat image and visceral fat image of each preset part are segmented, and multiple Magnetic resonance images and image segmentation models with different echo times extract and restore the edge features of adipose tissue to achieve accurate segmentation of body fat.
It achieves accurate segmentation of fat in various parts of the human body, solves the problem that existing technology cannot achieve whole-body fat segmentation and quantification, and improves the ability to accurately quantitatively analyze fat distribution.
Smart Images

Figure CN112435266B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image processing technology, and in particular, relates to an image segmentation method, a terminal device, and a computer-readable storage medium. Background Art
[0002] Obesity is caused by excessive accumulation of fat tissue in the body, which may lead to the occurrence of a variety of chronic diseases. In order to study the mechanism of obesity and explore ways to resist obesity, it is necessary to accurately quantify and segment body fat. However, existing fat quantification and segmentation methods usually target a certain part, and cannot achieve the segmentation of whole body fat, the quantification of whole body fat deposition, and the accurate segmentation of whole body fat. Summary of the invention
[0003] In view of this, the embodiments of the present application provide an image segmentation method, a terminal device and a computer-readable storage medium to solve the problem that the existing fat quantification and segmentation methods usually process a certain part and cannot achieve the segmentation of whole body fat, the quantification of the degree of whole body fat deposition and the accurate segmentation of whole body fat.
[0004] In a first aspect, an embodiment of the present application provides an image segmentation method, comprising:
[0005] Acquire a target image; the target image is a quantitative image of proton density fat fraction of the whole body fat distribution of the subject;
[0006] The target image is input into a preset image segmentation model for processing, and subcutaneous fat images and visceral fat images of various preset parts are segmented from the target image.
[0007] Optionally, the step of acquiring the target image includes:
[0008] acquiring a plurality of magnetic resonance images at different echo times;
[0009] A target image is determined according to the plurality of magnetic resonance images with different echo times.
[0010] Optionally, the step of inputting the target image into a preset image segmentation model for processing, and segmenting the subcutaneous fat image and the visceral fat image of each preset part from the target image, comprises:
[0011] Identify the precise proton density fat fraction quantitative image corresponding to each preset part from the target image;
[0012] Determine the total fat map corresponding to each preset part based on the accurate proton density fat fraction quantitative map corresponding to each preset part;
[0013] The subcutaneous fat map and the visceral fat map corresponding to each preset part are segmented according to the total fat map corresponding to each preset part.
[0014] Optionally, the step of segmenting the subcutaneous fat map and the visceral fat map corresponding to each preset part according to the total fat map corresponding to each preset part includes:
[0015] Performing a downsampling operation on the total fat map corresponding to each preset part, extracting edge features of the total fat map corresponding to each preset part, and obtaining an edge feature map;
[0016] An upsampling operation is performed on the edge feature map to restore the spatial information and edge information in the total fat map corresponding to each preset part, so as to obtain the subcutaneous fat map and the visceral fat map corresponding to each preset part.
[0017] Optionally, performing a downsampling operation on the total fat map corresponding to each preset part to extract edge features of the total fat map corresponding to each preset part to obtain an edge feature map includes:
[0018] Downsampling the total body fat map corresponding to each preset part to obtain a first downsampling feature map;
[0019] Downsampling the first downsampled feature map to obtain a second downsampled feature map;
[0020] Downsampling the second down-sampled feature map to obtain a third down-sampled feature map;
[0021] Downsampling is performed on the third downsampled feature map to obtain an edge feature map.
[0022] Optionally, performing an upsampling operation on the edge feature map to restore the spatial information and edge information in the total fat map corresponding to each preset part to obtain the subcutaneous fat map and the visceral fat map corresponding to each preset part includes:
[0023] Performing upsampling processing on the edge feature map to obtain a first upsampling feature map, and fusing the first upsampling feature map with the first channel feature map to obtain a first fused feature map;
[0024] Performing upsampling processing on the first fused feature map to obtain a second upsampling feature map, and fusing the second upsampling feature map with the second channel feature map to obtain a second fused feature map;
[0025] Performing upsampling processing on the second fused feature map to obtain a third upsampling feature map, and fusing the third upsampling feature map with the third channel feature map to obtain a third fused feature map;
[0026] The third fused feature map is upsampled to obtain a fourth upsampled feature map, and the fourth upsampled feature map is fused with the fourth channel feature map to obtain a segmentation result map.
[0027] Optionally, the above image segmentation method further includes:
[0028] Build an image segmentation model;
[0029] Acquire a sample data set; wherein the sample data set includes multiple groups of sample data, each group of sample data includes a sample image and a label image, the sample image refers to a proton density fat fraction quantitative map covering the neck to knee area of the human body, and the label image refers to a subcutaneous fat map and a visceral fat map corresponding to the proton density fat fraction quantitative map;
[0030] The pre-built image segmentation model is trained based on the sample data set to obtain the preset image segmentation model.
[0031] In a second aspect, an embodiment of the present application provides a terminal device, including:
[0032] A first acquisition unit is used to acquire a target image; the target image is a quantitative image of proton density fat fraction of the whole body fat distribution of the subject;
[0033] The first processing unit is used to input the target image into a preset image segmentation model for processing, and segment the subcutaneous fat image and the visceral fat image of each preset part from the target image.
[0034] In a third aspect, an embodiment of the present application provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect or any optional method of the first aspect is implemented.
[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect or any optional method of the first aspect is implemented.
[0036] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device executes the method described in the first aspect or any optional method of the first aspect.
[0037] The image segmentation method, terminal device, computer-readable storage medium and computer program product provided by the embodiments of the present application have the following beneficial effects:
[0038] By obtaining a quantitative proton density fat fraction map of the whole body fat distribution that can be accurately quantified, and then processing the quantitative proton density fat fraction map of the whole body fat distribution through a preset image segmentation model, the fat of each part of the human body can be accurately segmented. This solves the problem that the existing fat quantification and segmentation methods usually process a certain part and cannot achieve the segmentation of whole body fat, the quantification of the whole body fat deposition degree, and the accurate segmentation of whole body fat. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0040] Figure 1 is a schematic flow chart of an image segmentation method provided in an embodiment of the present application;
[0041] Figure 2 It is a schematic diagram of an implementation process of an image segmentation method provided in an embodiment of the present application;
[0042] Figure 3 It is a structural schematic diagram of an image segmentation model provided in an embodiment of the present application;
[0043] Figure 4 is a structural schematic diagram of an image segmentation model provided by another embodiment of the present application;
[0044] Figure 5 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0045] Figure 6 is a structural schematic diagram of a terminal device provided by another embodiment of the present application;
[0046] Figure 7 It is a structural schematic diagram of a computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0048] It should be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. In addition, in the description of the specification of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0049] It should also be understood that references to "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in the specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0050] The body fat of the human body mainly includes subcutaneous fat and visceral fat. Among them, subcutaneous fat refers to the fat tissue stored in the energy storage cells below the dermis and above the deep fascia layer, which is wrapped by the superficial fascia. It is mainly used for human body heat preservation and energy storage. Visceral fat refers to the fat tissue mainly stored in the abdominal cavity. Visceral fat surrounds the human organs and plays a role in supporting, stabilizing and protecting the internal organs. Excessive accumulation of visceral fat may lead to the occurrence of a variety of chronic diseases, such as cardiovascular disease, diabetes, fatty liver, etc. Therefore, determining the distribution and content of body fat in the human body plays an extremely important role in assessing the health of the human body.
[0051] With the development of medical imaging equipment, analyzing the health status of the human body based on medical images has become an important analytical method. Magnetic resonance imaging technology, with its advantages of multi-parameter imaging and no ionizing radiation, has become a powerful means of quantitative analysis of human fat. At present, the quantification and segmentation of human fat based on magnetic resonance imaging technology is mainly based on the difference in the longitudinal relaxation time T1 of the tissue to achieve the identification and segmentation of fat, or based on the difference in chemical shift to achieve the identification and segmentation of fat. Among them, quantification of human fat refers to determining the fat content in the human body, and segmentation refers to distinguishing subcutaneous fat from visceral fat in the human body.
[0052] Specifically, the method for identifying and segmenting fat based on the difference in tissue longitudinal relaxation time T1 generally uses fast spin echo (FSE) imaging, and uses manual or semi-automatic segmentation methods to achieve fat segmentation based on the contrast between the fat tissue signal and the surrounding tissue signal. The semi-automatic segmentation method mainly distinguishes fat tissue from surrounding tissue based on the grayscale histogram distribution of the echo image by continuously adjusting the segmentation threshold. Among them, the tissue longitudinal relaxation time T1 refers to the time required for the longitudinal magnetization vector of a 90 RF pulse to grow from zero to 63% of its maximum value.
[0053] The imaging method based on the difference in tissue chemical shift is also called magnetic resonance chemical shift coded imaging method. The magnetic resonance chemical shift coded imaging method uses the difference in chemical shift between water and fat to obtain a quantitative distribution map of fat content through water-fat signal separation. In this distribution map, the higher the fat content, the closer the quantitative value is to 100%. Conversely, the lower the fat content, the closer the quantitative value is to 0. Then, a semi-automatic or fully automatic segmentation method is used to achieve the segmentation of fat tissue. Commonly used segmentation methods include the atlas method and the convolutional neural network method. The atlas method first uses semi-automatic segmentation to obtain the fat segmentation image as an atlas, and then aligns the atlas to the image to be segmented, and realizes the fat segmentation of the target image according to the fat distribution characteristics in the atlas. The convolutional neural network method achieves fat segmentation by deep learning a certain part of the human body.
[0054] However, fat identification and segmentation methods based on differences in tissue longitudinal relaxation time T1 have the following major defects: 1. Tissue contrast (i.e., the contrast between adipose tissue signals and surrounding tissue signals) is easily affected by factors such as the inhomogeneity of the radio frequency field and the sensitivity of the multi-channel coil, resulting in errors in fat identification; 2. Manual or semi-automatic segmentation methods are time-consuming and labor-intensive; 3. It is impossible to accurately quantify the degree of visceral fat deposition.
[0055] The main defects of fat quantification and segmentation methods based on tissue chemical shift differences are: 1. The atlas method has a complex process and many free parameters, resulting in insufficient stability of the segmentation results; 2. Organ segmentation and accurate quantification of the deposition of visceral fat are not performed; 3. Only training and segmentation are performed on a certain part of the body, which cannot achieve accurate quantification and segmentation of whole body fat.
[0056] In order to solve the above defects, the embodiment of the present application uses the proton density fat fraction quantitative map of the whole body fat distribution of the subject as the target image, and then inputs the target image into a preset image segmentation model, and processes the target image through the preset image segmentation model, thereby realizing accurate segmentation of fat in various parts of the human body. The image segmentation method provided in the embodiment of the present application is described in detail below:
[0057] See also Figure 1 , Figure 1 This is a schematic flow chart of an image segmentation method provided in an embodiment of the present application. The execution subject of the image segmentation method provided in an embodiment of the present application is a terminal device, which can be a mobile terminal such as a smart phone, a tablet computer or a wearable device, or a computer, a cloud server, a medical auxiliary computer, etc. in various application scenarios.
[0058] like Figure 1 The image segmentation method shown may include S11 to S12, which are described in detail as follows:
[0059] S11: Acquire a target image.
[0060] In the embodiment of the present application, the target image is a proton density fat fraction (PDFF) quantitative image that can reflect the body fat distribution of the subject. The proton density fat fraction quantitative image can accurately reflect the proportion of adipose tissue.
[0061] In specific applications, the target image can be obtained through magnetic resonance chemical shift encoding imaging technology.
[0062] There is a chemical shift between hydrogen protons in water and hydrogen protons in fat in human tissues. Using magnetic resonance chemical shift coded imaging technology, a magnetic resonance gradient echo imaging sequence is used to collect multiple magnetic resonance images with different echo times. In the magnetic resonance images at different echo times, water hydrogen protons and fat hydrogen protons have different phase differences. Then, through the solution of the preset coded imaging model, water hydrogen protons and fat hydrogen protons can be separated to obtain pure water images and pure fat images, and then the proton density fat fraction can be obtained according to proton density fat fraction = fat image / (fat image + water image).
[0063] In practical applications, the terminal device can be connected to the magnetic resonance scanner for communication, and after acquiring the target image, the magnetic resonance scanner can send the acquired target image to the terminal device. Specifically, the magnetic resonance scanning parameters of the magnetic resonance scanner can be set, and then the magnetic resonance scanner can be controlled to continuously scan the preset parts of the object under test (covering the whole body), so that the magnetic resonance scanner can acquire multiple magnetic resonance images of different echo times at each preset part, and finally output a quantitative map of the proton density fat fraction of the whole body fat distribution of the object under test, that is, the target image.
[0064] In a possible implementation method of the embodiment of the present application, the above-mentioned magnetic resonance scanning parameters can be set to a three-dimensional magnetic resonance FLASH sequence, and six-echo data acquisition is performed. The repetition time is 10.5ms, and the echo times are set to 1.67ms / 3.15ms / 4.63ms / 6.11ms / 7.59ms / 9.07ms respectively. The flip angle is 3°, the field of view is set to 300mm×400mm, the image matrix size is 126×224, the layer thickness is 6mm, and 20 layers of data are collected for each part.
[0065] In the embodiment of the present application, the preset part of the object to be tested may be a part covering the neck to the knee of the object to be tested. It is understandable that the preset part of the object to be tested may also be set according to the test requirements, which is not limited here.
[0066] Specifically, the above preset coding imaging model is as follows:
[0067]
[0068] Among them, TE n is the echo time, S n is the echo time TE n The signal strength under the condition, N is the number of echoes, ρ W refers to the signal strength value of water, ρ f refers to the signal intensity value of fat; P is the number of peak components of fat, a P Refers to the relative amplitude corresponding to each peak component, f F,P is the chemical shift difference between hydrogen protons in water and hydrogen protons in fat, f B is the local main magnetic field inhomogeneity parameter.
[0069] In the embodiment of the present application, the number of echoes N is greater than or equal to 6; the relative amplitude a corresponding to each peak component P satisfy The chemical shift difference f between hydrogen protons in water and hydrogen protons in fat F,P It is proportional to the temperature. For example, in the human body environment at 37 degrees Celsius, the chemical shift difference between the two is -3.35ppm; in the phantom temperature of 20 degrees Celsius, the chemical shift difference between the two is -3.52ppm; the local main magnetic field inhomogeneity parameter f B =γΔB0, γ is the gyromagnetic ratio of hydrogen protons, γ=42.576MHz / T; B0 is the main magnetic field strength of magnetic resonance, ΔB0 is the local variation in the magnetic field due to factors such as system errors and the influence of the object being measured, which leads to the main magnetic field being not completely uniform.
[0070] In the embodiment of the present application, by acquiring a plurality of magnetic resonance images corresponding to different echo times, the chemical shift difference f between the hydrogen protons in water and the hydrogen protons in fat in each magnetic resonance image can be determined. F,P , the relative amplitude of the fat peak component a P , echo time TE n and echo time TE n The signal strength S n , the water signal strength value ρ can be obtained by using the above preset coded imaging model W , the signal intensity value of fat ρ f , the local change ΔB0 inside the magnetic field.
[0071] By determining the signal strength value ρ of the outflowing water W and the signal strength value of fat ρ f Afterwards, the proton density fat fraction is determined based on proton density fat fraction = signal intensity of fat / (signal intensity of fat + signal intensity of water). The volume percentage of body fat tissue can be accurately determined, achieving accurate quantification of body fat tissue.
[0072] S12: Inputting the target image into a preset image segmentation model for processing, and segmenting the subcutaneous fat image and the visceral fat image of each preset part from the target image.
[0073] In the embodiment of the present application, after obtaining a target image that can accurately quantify the proportion of body fat tissue, the target image is segmented using an image segmentation model, so that the distribution of body fat can be accurately obtained and the fat deposition of each organ tissue can be determined.
[0074] The above-mentioned image segmentation model is used to segment the subcutaneous fat image and visceral fat image of each preset part of the object under test in the target image, that is, the input of the image segmentation model is the target image, and the output is the subcutaneous fat image and visceral fat image of each preset part in the target image.
[0075] See also Figure 2 , Figure 2 The implementation process of the image segmentation method provided in the embodiment of the present application is shown. In the embodiment of the present application, after the target image is input into the image segmentation model, the image segmentation model can identify the accurate proton density fat fraction quantitative map corresponding to each preset part from the target image, and then determine the total fat map (including subcutaneous fat and visceral fat) corresponding to each preset part based on the accurate proton density fat fraction quantitative map corresponding to each preset part, and segment the subcutaneous fat map and visceral fat map corresponding to each preset part according to the total fat map corresponding to each preset part, and finally output the subcutaneous fat map and visceral fat map (mainly the abdominal visceral fat map) corresponding to each preset part.
[0076] In the embodiment of the present application, segmenting the subcutaneous fat map and the visceral fat map corresponding to each preset part according to the total fat map corresponding to each preset part may specifically include the following steps:
[0077] A downsampling operation is performed on the total fat map corresponding to each preset part, and the edge features of the total fat map corresponding to each preset part are extracted to obtain an edge feature map; then an upsampling operation is performed on the edge feature map to restore the spatial information and edge information in the total fat map corresponding to each preset part, and a segmentation result map (i.e., the subcutaneous fat map and the visceral fat map corresponding to each preset part) is obtained.
[0078] See also Figure 3 , Figure 3 Schematic diagram of the structure of an image segmentation model provided in an embodiment of the present application. Figure 3 As shown, in one embodiment of the present application, the image segmentation model 30 may include a downsampling network 31 and an upsampling network 32.
[0079] The downsampling network 31 is used to extract edge features of the subcutaneous fat map and the visceral fat map corresponding to each preset part. The edge features can be used to indicate the boundaries of the subcutaneous fat and the visceral fat.
[0080] The upsampling network 32 is used to restore the spatial information and edge information in the subcutaneous fat map and the visceral fat map corresponding to each preset part.
[0081] In practical applications, the image segmentation model can use a skip connection network to connect the downsampling network 31 and the upsampling network 32, so that the features extracted by the downsampling network 31 can be directly transferred to the upsampling network 32, solving the problem of gradient disappearance during training.
[0082] The image segmentation model in the embodiment of the present application can be obtained by training a pre-built image segmentation model based on a preset sample data set using a deep learning method.
[0083] In another embodiment of the present application, the above image segmentation method may further include the following steps:
[0084] Build an image segmentation model;
[0085] Get a sample dataset;
[0086] The pre-built image segmentation model is trained based on the sample data set to obtain the preset image segmentation model.
[0087] In the embodiment of the present application, a network structure can be constructed as follows: Figure 3In the image segmentation model shown, the initial value of each network parameter involved in the image segmentation model (such as various parameters of the convolution kernel) can be an arbitrary value assigned randomly, and the final value of each network parameter involved in the image segmentation model can be learned during the training process of the image segmentation model.
[0088] See also Figure 4 In the above image segmentation model, the downsampling network 31 may include a first downsampling layer, a second downsampling layer, a third downsampling layer and a fourth downsampling layer, and the upsampling network 32 may include a first upsampling layer, a second upsampling layer, a third upsampling layer and a fourth upsampling layer.
[0089] Please continue reading Figure 4 In order to solve the problem of gradient disappearance, the above-mentioned image segmentation model may also include a first skip connection network connected between the first downsampling layer and the fourth upsampling layer, a second skip connection network connected between the second downsampling layer and the third upsampling layer, a third skip connection network connected between the third downsampling layer and the second upsampling layer, and a fourth skip structure connected between the fourth downsampling layer and the first upsampling layer.
[0090] In a specific application, the above-mentioned first downsampling layer may include two 3*3 convolutional layers and one 2*2 maximum pooling layer; the second downsampling layer also includes two 3*3 convolutional layers and one 2*2 maximum pooling layer; the third downsampling layer also includes two 3*3 convolutional layers and one 2*2 maximum pooling layer; the fourth downsampling layer also includes two 3*3 convolutional layers and one 2*2 maximum pooling layer; the first upsampling layer may include two 3*3 convolutional layers and one 2*2 upsampling layer; the second upsampling layer also includes two 3*3 convolutional layers and one 2*2 upsampling layer, the third upsampling layer also includes two 3*3 convolutional layers and one 2*2 upsampling layer; the fourth upsampling layer also includes two 3*3 convolutional layers and one 2*2 upsampling layer.
[0091] In practical applications, the skip connection network copies and cuts the feature maps at the corresponding positions of each downsampling layer into the upsampling process, so that the underlying features are integrated with the high-level features to retain more high-resolution detail information and improve the image segmentation accuracy.
[0092] Correspondingly, the above-mentioned downsampling operation is performed on the total fat map corresponding to the various preset parts, and the edge features of the total fat map corresponding to the various preset parts are extracted to obtain the edge feature map. Specifically, it can be: downsampling the total fat map corresponding to the various preset parts through a first downsampling layer to obtain a first downsampling feature map; downsampling the first downsampling feature map through a second downsampling layer to obtain a second downsampling feature map; downsampling the second downsampling feature map through a third downsampling layer to obtain a third downsampling feature map; downsampling the third downsampling feature map through a fourth downsampling layer to obtain an edge feature map.
[0093] Correspondingly, the above-mentioned upsampling operation on the edge feature map restores the spatial information and edge information in the total fat map corresponding to each preset part to obtain the segmentation result map, which can be specifically: upsampling the edge feature map through the first upsampling layer to obtain a first upsampling feature map, and fusing the first upsampling feature map with the first channel feature map copied by the fourth jump connection network to obtain a first fused feature map; upsampling the first fused feature map through the second upsampling layer to obtain a second upsampling feature map, and fusing the second upsampling feature map with the second channel feature map copied by the third jump connection network to obtain a second fused feature map; upsampling the second fused feature map through the third upsampling layer to obtain a third upsampling feature map, and fusing the third upsampling feature map with the third channel feature map copied by the second jump connection network to obtain a third fused feature map; upsampling the third fused feature map through the fourth upsampling layer to obtain a fourth upsampling feature map, and fusing the fourth upsampling feature map with the fourth channel feature map copied by the first jump connection network to obtain the segmentation result map.
[0094] It should be noted that the fourth channel feature map is a channel feature map obtained after the convolution layer of the first downsampling layer performs convolution processing on the total fat map corresponding to each preset part, and the third channel feature map is a channel feature map obtained after the convolution layer of the second downsampling layer performs convolution processing on the first downsampling feature map; the second channel feature map is a channel feature map obtained after the convolution layer of the third downsampling layer performs convolution processing on the second downsampling feature map; the first channel feature map is a channel feature map obtained after the convolution layer of the fourth downsampling layer performs convolution processing on the third downsampling feature map.
[0095] After building the image segmentation model, sample data sets can be obtained through massive medical image resources on the Internet.
[0096] In an embodiment of the present application, a proton density fat fraction quantitative map (sample image) covering the human body from neck to knees and a subcutaneous fat map and a visceral fat map (label image) corresponding to the proton density fat fraction quantitative map are used as a set of sample data.
[0097] In a specific application, professionals can manually circle the subcutaneous fat images and visceral fat images of various preset parts in the proton density fat fraction quantitative map covering the neck to knee area of the human body as label images corresponding to the proton density fat fraction quantitative map.
[0098] In practical applications, no less than 1,000 sets of sample data can be selected to obtain a sample data set. The sample data set is divided into a training set, a validation set, and a test set. In order to meet the training requirements, 50% of the sample data can be used as a training set, and the rest as a validation set and a test set.
[0099] After obtaining the sample data, the image segmentation model is trained using the training set data, and the validation set is used for quick parameter adjustment. The image segmentation model is then tested using the test set to obtain a trained image segmentation model.
[0100] When training an image segmentation model, the sample image can be input into a pre-built image segmentation model for processing to obtain a segmentation result map corresponding to the sample image. Then, the network parameters in the above image segmentation model are adjusted based on the label image of the sample data and the segmentation result map output by the image segmentation model to obtain network parameters that can make the loss function of the image segmentation model converge. The image segmentation model with adjusted network parameters is then verified and tested based on the sample data in the verification set and the test set. If the verification and test pass, it means that the image segmentation model training is completed.
[0101] The terminal device may determine the trained image segmentation model as a preset image segmentation model, that is, the preset image segmentation model described in S12.
[0102] As can be seen from the above, the image segmentation method provided in the embodiment of the present application obtains a quantitative map of proton density fat fraction of whole body fat distribution that can be accurately quantified, and then processes the quantitative map of proton density fat fraction of whole body fat distribution through a preset image segmentation model, thereby realizing accurate segmentation of fat in various parts of the human body. This solves the problem that the existing fat quantification and segmentation methods usually process a certain part and cannot achieve the segmentation of whole body fat, the quantification of whole body fat deposition, and the accurate segmentation of whole body fat.
[0103] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0104] Based on the image segmentation method provided in the above embodiment, the embodiment of the present invention further provides an embodiment of a terminal device for implementing the above method embodiment.
[0105] See also Figure 5 , Figure 5 Schematic diagram of the structure of a terminal device provided in an embodiment of the present application. In the embodiment of the present application, each unit included in the terminal device is used to execute Figures 1 to 4 For details, please refer to the steps in the corresponding embodiment. Figures 1 to 4 as well as Figures 1 to 4 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 5 As shown, the terminal device 50 includes: a first acquisition unit 51 and a first processing unit 52. Among them:
[0106] The first acquisition unit 51 is used to acquire a target image, which is a quantitative image of proton density fat fraction of the whole body fat distribution of the subject.
[0107] The first processing unit 52 is used to input the target image into a preset image segmentation model for processing, and segment the subcutaneous fat image and the visceral fat image of each preset part from the target image.
[0108] Optionally, the first acquiring unit 51 includes a second acquiring unit and a first determining unit.
[0109] The second acquisition unit is used to acquire a plurality of magnetic resonance images with different echo times.
[0110] The first determining unit is used to determine a target image according to the multiple magnetic resonance images with different echo times.
[0111] Optionally, the first processing unit 52 includes a recognition unit, a second determination unit and a segmentation unit.
[0112] The recognition unit is used to recognize the accurate proton density fat fraction quantitative image corresponding to each preset part from the target image;
[0113] The second determination unit is used to determine the total body fat map corresponding to each preset part based on the accurate proton density fat fraction quantitative map corresponding to each preset part;
[0114] The segmentation unit is used to segment the subcutaneous fat map and the visceral fat map corresponding to each preset part according to the total fat map corresponding to each preset part.
[0115] Optionally, the segmentation unit may include a down-sampling unit and an up-sampling unit.
[0116] The downsampling unit is used to perform a downsampling operation on the total fat map corresponding to each preset part, extract edge features of the total fat map corresponding to each preset part, and obtain an edge feature map;
[0117] The upsampling unit is used to perform an upsampling operation on the edge feature map, restore the spatial information and edge information in the total fat map corresponding to each preset part, and obtain the subcutaneous fat map and visceral fat map corresponding to each preset part.
[0118] Optionally, the downsampling unit is specifically used to downsample the total fat map corresponding to each preset part to obtain a first downsampling feature map; downsample the first downsampling feature map to obtain a second downsampling feature map; downsample the second downsampling feature map to obtain a third downsampling feature map; downsample the third downsampling feature map to obtain an edge feature map.
[0119] Optionally, the upsampling unit is specifically used to upsample the edge feature map to obtain a first upsampled feature map, and fuse the first upsampled feature map with the first channel feature map to obtain a first fused feature map; upsample the first fused feature map to obtain a second upsampled feature map, and fuse the second upsampled feature map with the second channel feature map to obtain a second fused feature map; upsample the second fused feature map to obtain a third upsampled feature map, and fuse the third upsampled feature map with the third channel feature map to obtain a third fused feature map; upsample the third fused feature map to obtain a fourth upsampled feature map, and fuse the fourth upsampled feature map with the fourth channel feature map to obtain a segmentation result map.
[0120] Optionally, the terminal device further includes a construction unit, a third acquisition unit, and a training unit.
[0121] The construction unit is used to build an image segmentation model.
[0122] The third acquisition unit is used to acquire a sample data set; wherein the sample data set includes multiple groups of sample data, each group of sample data includes a sample image and a label image, the sample image refers to a proton density fat fraction quantitative map covering the human body from neck to knee, and the label image refers to a subcutaneous fat map and a visceral fat map corresponding to the proton density fat fraction quantitative map.
[0123] The training unit is used to train the pre-built image segmentation model based on the sample data set to obtain the preset image segmentation model.
[0124] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0125] Figure 6 FIG. 1 is a schematic diagram of a terminal device provided in another embodiment of the present application. Figure 6 As shown, the terminal device 6 provided in this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60, such as an image segmentation program. When the processor 60 executes the computer program 62, the steps in the above-mentioned various image segmentation method embodiments are implemented, such as Figure 1 Alternatively, when the processor 60 executes the computer program 62, the functions of the modules / units in the above-mentioned terminal device embodiments are realized, for example, Figure 5 The functions of the units 51-52 are shown.
[0126] Exemplarily, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 62 in the terminal device 6. For example, the computer program 62 may be divided into a first acquisition unit and a first processing unit. For specific functions of each unit, please refer to Figure 5 The relevant descriptions in the corresponding embodiments are not repeated here.
[0127] The terminal device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6 It is only an example of the terminal device 6 and does not constitute a limitation on the terminal device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0128] The processor 60 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0129] The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used to store the computer program and other programs and data required by the terminal device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0130] The present application also provides a computer-readable storage medium. Figure 7 , Figure 7 is a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of the present application, such as Figure 7 As shown, a computer program 71 is stored in a computer-readable storage medium 70, and the computer program 71 can implement the above-mentioned image segmentation method when executed by a processor.
[0131] The embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the above-mentioned image segmentation method when executing the computer program product.
[0132] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the terminal device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0133] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0134] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0135] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An image segmentation method, characterized in that: include: Acquire a target image; the target image is a quantitative image of proton density fat fraction of the whole body fat distribution of the subject; Input the target image into a preset image segmentation model for processing, and segment the subcutaneous fat image and the visceral fat image of each preset part from the target image; the preset part is the part covering the neck to the knee of the object under test; The step of inputting the target image into a preset image segmentation model for processing, and segmenting the subcutaneous fat image and the visceral fat image of each preset part from the target image comprises: Identify the precise proton density fat fraction quantitative image corresponding to each preset part from the target image; Determine the total fat map corresponding to each preset part based on the accurate proton density fat fraction quantitative map corresponding to each preset part; Segment the subcutaneous fat map and visceral fat map corresponding to each preset part according to the total fat map corresponding to each preset part; The step of segmenting the subcutaneous fat map and the visceral fat map corresponding to each preset part according to the total fat map corresponding to each preset part comprises: Performing a downsampling operation on the total fat map corresponding to each preset part, extracting edge features of the total fat map corresponding to each preset part, and obtaining an edge feature map; The downsampling operation is performed on the total fat map corresponding to each preset part to extract the edge features of the total fat map corresponding to each preset part to obtain the edge feature map, including: Downsampling the total body fat map corresponding to each preset part to obtain a first downsampling feature map; Downsampling the first downsampled feature map to obtain a second downsampled feature map; Downsampling the second down-sampled feature map to obtain a third down-sampled feature map; Downsampling the third downsampled feature map to obtain an edge feature map; Performing an upsampling operation on the edge feature map to restore the spatial information and edge information in the total fat map corresponding to each preset part, and obtaining the subcutaneous fat map and the visceral fat map corresponding to each preset part, including: Performing upsampling processing on the edge feature map to obtain a first upsampling feature map, and fusing the first upsampling feature map with the first channel feature map to obtain a first fused feature map; Performing upsampling processing on the first fused feature map to obtain a second upsampling feature map, and fusing the second upsampling feature map with the second channel feature map to obtain a second fused feature map; Performing upsampling processing on the second fused feature map to obtain a third upsampling feature map, and fusing the third upsampling feature map with the third channel feature map to obtain a third fused feature map; Upsampling the third fused feature map to obtain a fourth upsampling feature map, and fusing the fourth upsampling feature map with the fourth channel feature map to obtain a segmentation result map; The image segmentation model also includes a first skip connection network connected between the first downsampling layer and the fourth upsampling layer, a second skip connection network connected between the second downsampling layer and the third upsampling layer, a third skip connection network connected between the third downsampling layer and the second upsampling layer, and a fourth skip connection network connected between the fourth downsampling layer and the first upsampling layer, wherein the skip connection network is formed by copying and cutting feature maps at corresponding positions of each downsampling layer into the upsampling process; An upsampling operation is performed on the edge feature map to restore the spatial information and edge information in the total fat map corresponding to each preset part, and obtain the subcutaneous fat map and the visceral fat map corresponding to each preset part, specifically: the edge feature map is upsampled by a first upsampling layer to obtain a first upsampled feature map, and the first upsampled feature map is fused with the first channel feature map copied by the fourth jump connection network to obtain a first fused feature map; the first fused feature map is upsampled by a second upsampling layer to obtain a second upsampled feature map, and the second upsampled feature map is fused with the second channel feature map copied by the third jump connection network to obtain a second fused feature map; the second fused feature map is upsampled by a third upsampling layer to obtain a third upsampled feature map, and the third upsampled feature map is fused with the third channel feature map copied by the second jump connection network to obtain a third fused feature map; the third fused feature map is upsampled by a fourth upsampling layer to obtain a fourth upsampled feature map, and the fourth upsampled feature map is fused with the fourth channel feature map copied by the first jump connection network to obtain a segmentation result map; The fourth channel feature map is a channel feature map obtained after the convolution layer of the first downsampling layer performs convolution processing on the total fat map corresponding to each preset part; the third channel feature map is a channel feature map obtained after the convolution layer of the second downsampling layer performs convolution processing on the first downsampling feature map; the second channel feature map is a channel feature map obtained after the convolution layer of the third downsampling layer performs convolution processing on the second downsampling feature map; the first channel feature map is a channel feature map obtained after the convolution layer of the fourth downsampling layer performs convolution processing on the third downsampling feature map.
2. The image segmentation method according to claim 1, characterized in that: The acquiring of the target image comprises: acquiring a plurality of magnetic resonance images at different echo times; A target image is determined according to the plurality of magnetic resonance images with different echo times.
3. The image segmentation method according to any one of claims 1 to 2, characterized in that: Also includes: Build an image segmentation model; Acquire a sample data set; wherein the sample data set includes multiple groups of sample data, each group of sample data includes a sample image and a label image, the sample image refers to a proton density fat fraction quantitative map covering the neck to knee area of the human body, and the label image refers to a subcutaneous fat map and a visceral fat map corresponding to the proton density fat fraction quantitative map; The constructed image segmentation model is trained based on the sample data set to obtain the preset image segmentation model.
4. A terminal device, characterized in that: include: A first acquisition unit is used to acquire a target image; the target image is a quantitative image of proton density fat fraction of the whole body fat distribution of the subject; A first processing unit is used to input the target image into a preset image segmentation model for processing, and segment the subcutaneous fat image and the visceral fat image of each preset part from the target image, wherein the preset part is a part covering the neck to the knee of the object under test; The first processing unit is specifically used to identify the accurate proton density fat fraction quantitative image corresponding to each preset part from the target image; Determine the total fat map corresponding to each preset part based on the accurate proton density fat fraction quantitative map corresponding to each preset part; Segment the subcutaneous fat map and visceral fat map corresponding to each preset part according to the total fat map corresponding to each preset part; The step of segmenting the subcutaneous fat map and the visceral fat map corresponding to each preset part according to the total fat map corresponding to each preset part comprises: Performing a downsampling operation on the total fat map corresponding to each preset part, extracting edge features of the total fat map corresponding to each preset part, and obtaining an edge feature map; The downsampling operation is performed on the total fat map corresponding to each preset part to extract the edge features of the total fat map corresponding to each preset part to obtain the edge feature map, including: Downsampling the total body fat map corresponding to each preset part to obtain a first downsampling feature map; Downsampling the first downsampled feature map to obtain a second downsampled feature map; Downsampling the second down-sampled feature map to obtain a third down-sampled feature map; Downsampling the third downsampled feature map to obtain an edge feature map; Performing an upsampling operation on the edge feature map to restore the spatial information and edge information in the total fat map corresponding to each preset part, and obtaining the subcutaneous fat map and the visceral fat map corresponding to each preset part, including: Performing upsampling processing on the edge feature map to obtain a first upsampling feature map, and fusing the first upsampling feature map with the first channel feature map to obtain a first fused feature map; Performing upsampling processing on the first fused feature map to obtain a second upsampling feature map, and fusing the second upsampling feature map with the second channel feature map to obtain a second fused feature map; Performing upsampling processing on the second fused feature map to obtain a third upsampling feature map, and fusing the third upsampling feature map with the third channel feature map to obtain a third fused feature map; Upsampling the third fused feature map to obtain a fourth upsampling feature map, and fusing the fourth upsampling feature map with the fourth channel feature map to obtain a segmentation result map; The image segmentation model also includes a first skip connection network connected between the first downsampling layer and the fourth upsampling layer, a second skip connection network connected between the second downsampling layer and the third upsampling layer, a third skip connection network connected between the third downsampling layer and the second upsampling layer, and a fourth skip connection network connected between the fourth downsampling layer and the first upsampling layer, wherein the skip connection network is formed by copying and cutting feature maps at corresponding positions of each downsampling layer into the upsampling process; An upsampling operation is performed on the edge feature map to restore the spatial information and edge information in the total fat map corresponding to each preset part, and obtain the subcutaneous fat map and the visceral fat map corresponding to each preset part, specifically: the edge feature map is upsampled by a first upsampling layer to obtain a first upsampled feature map, and the first upsampled feature map is fused with the first channel feature map copied by the fourth jump connection network to obtain a first fused feature map; the first fused feature map is upsampled by a second upsampling layer to obtain a second upsampled feature map, and the second upsampled feature map is fused with the second channel feature map copied by the third jump connection network to obtain a second fused feature map; the second fused feature map is upsampled by a third upsampling layer to obtain a third upsampled feature map, and the third upsampled feature map is fused with the third channel feature map copied by the second jump connection network to obtain a third fused feature map; the third fused feature map is upsampled by a fourth upsampling layer to obtain a fourth upsampled feature map, and the fourth upsampled feature map is fused with the fourth channel feature map copied by the first jump connection network to obtain a segmentation result map; The fourth channel feature map is a channel feature map obtained after the convolution layer of the first downsampling layer performs convolution processing on the total fat map corresponding to each preset part; the third channel feature map is a channel feature map obtained after the convolution layer of the second downsampling layer performs convolution processing on the first downsampling feature map; the second channel feature map is a channel feature map obtained after the convolution layer of the third downsampling layer performs convolution processing on the second downsampling feature map; the first channel feature map is a channel feature map obtained after the convolution layer of the fourth downsampling layer performs convolution processing on the third downsampling feature map.
5. A terminal device, characterized in that: The terminal device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the method according to any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
