Image segmentation method, image segmentation model and training method thereof
By using the target directed distance field in the first neural network of the image segmentation model for delineation prediction and network parameter adjustment, and using the distance from pixel points to the area of interest for image segmentation, the change in gray value in the automatic segmentation of tumors and other tissues is solved. Solve the problem of insufficient segmentation and achieve good segmentation effect.
Patent Information
- Application Number
- CN202110997809.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-08-27
AI Technical Summary
The existing technology cannot meet clinical requirements due to the lack of obvious gray value changes in the automatic segmentation of tumors and other tissues.
By using the first neural network of the image segmentation model, the image is delineated and predicted and network parameters are adjusted based on the target directional distance field, and the distance from the pixel point to the area of interest is used for image segmentation.
It achieves good segmentation effects on images without obvious gray value change boundaries, and solves the problem that automatic segmentation of organs and tissues cannot meet clinical requirements.
Smart Images

Figure CN113570625B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image segmentation, and in particular to an image segmentation method, an image segmentation model and a training method thereof. Background Art
[0002] In the current medical field, automatic segmentation of organs, especially target areas, is a relatively hot technical field. As deep learning technology gradually matures, it has also become the main technical method for automatic segmentation.
[0003] Deep learning has shown significant technical advantages in the automatic segmentation of organs such as the heart, lungs, and liver. Since these organs have obvious grayscale value change boundaries in images such as computed tomography (CT) or magnetic resonance imaging (MR), the organs can be easily segmented automatically by learning these boundaries. However, some tissues such as tumors usually do not have obvious grayscale value changes in their contours, which makes the training results unsatisfactory. Therefore, the current automatic segmentation of tumors is far from meeting clinical requirements. Summary of the invention
[0004] The purpose of the present invention is to provide an image segmentation method, an image segmentation model and a training method thereof, so as to solve the problem that the automatic segmentation of some organ tissues without obvious gray value changes in their contours cannot meet clinical requirements.
[0005] In order to solve the above technical problems, the present invention provides a training method for an image segmentation model, wherein the image segmentation model includes a first neural network for image segmentation, and the training method includes:
[0006] At least one first target signed distance field and a first sample image are input into the first neural network, so that the first neural network performs delineation prediction on a region of interest of the first sample image based on the first target signed distance field, and adjusts network parameters of the first neural network based on the delineation prediction data, so as to complete the training of the first neural network.
[0007] Optionally, the first neural network adjusts the signed distance of the first sample image based on the first target signed distance field, thereby completing the delineation of the region of interest of the first sample image.
[0008] Optionally, adjusting the network parameters of the first neural network based on the delineation prediction data includes:
[0009] The network parameters of the first neural network are adjusted based on the difference between the delineation prediction data and the target delineation prediction data.
[0010] Optionally, the image segmentation model further includes a second neural network for predicting a signed distance field, and the training method further includes:
[0011] The second sample image is input into the second neural network so that the second neural network predicts a first signed distance field relative to the region of interest in the second sample image, and calculates a loss value between the first signed distance field and a second target signed distance field of the second sample image to adjust network parameters of the second neural network to complete the training of the second neural network.
[0012] Optionally, the first target directed distance field is predicted by inputting the first sample image or the second sample image into the trained second neural network; or,
[0013] The first target directed distance field is obtained by inputting the first sample image or the second sample image into the trained second neural network, and then activating the output result of the trained second neural network using an activation function; or,
[0014] The first target signed distance field is obtained by calculating the signed distance from a pixel point in the first sample image to the region of interest.
[0015] Optionally, the first sample image and / or the second sample image are obtained by processing an original image, and the method of processing the original image to obtain the first sample image and / or the second sample image includes:
[0016] Calculating the directed distance from each pixel in the original image to the contour of at least one first region of interest; and,
[0017] All calculated directed distances are compared with the standards specified in the contour drawing guide, and the contour of the second region of interest is adjusted to obtain the first sample image or the second sample image.
[0018] The present invention also provides a training method for an image segmentation model, wherein the image segmentation model includes a first neural network for image segmentation, and the training method further includes:
[0019] The first sample image is input into the first neural network so that the first neural network calculates a first signed distance field, and based on the first signed distance field and the first target signed distance field, a delineation prediction is performed on a region of interest of the first sample image, and based on the delineation prediction data, parameters of the first neural network are adjusted to complete the training of the first neural network.
[0020] Optionally, the first neural network adjusts the first signed distance field based on the first target signed distance field to complete the delineation prediction of the region of interest of the first sample image. Optionally, the first sample image is obtained by processing an original image, and the method of processing the original image to obtain the first sample image includes:
[0021] Calculating the directed distance from each pixel point in the original image to the contour of at least one first region of interest;
[0022] All calculated directed distances are compared with the standards specified in the contour drawing guide, and the contour of the second region of interest is adjusted to obtain the first sample image.
[0023] The present invention also provides a training method for an image segmentation model, the training method comprising:
[0024] Calculating the directed distance from each pixel in the original image to the contour of at least one first region of interest;
[0025] comparing all the calculated directed distances with the standards specified in the contouring guide, and adjusting the contour of the second region of interest to obtain a sample image;
[0026] The sample image is input into an image segmentation model to train the image segmentation model.
[0027] The present invention also provides an image segmentation model, which is trained using the image segmentation model training method.
[0028] The present invention also provides an image segmentation method, comprising:
[0029] At least the target image is input into the image segmentation model to obtain a segmentation matrix or tensor of the region of interest of the target image.
[0030] Optionally, the region of interest of the target image is a target area, and the image segmentation method is used to segment the target area.
[0031] Optionally, the image segmentation method further includes:
[0032] The partition matrix or the tensor is rounded to remove values between 0 and 1 in the partition matrix or the tensor.
[0033] In summary, the present invention provides an image segmentation method, an image segmentation model and a training method thereof. When training a first neural network of the image segmentation model, at least one first target signed distance field and a first sample image are input into the first neural network, so that the first neural network performs outlining prediction on a region of interest of the first sample image based on the first target signed distance field, and adjusts the network parameters of the first neural network based on the outlining prediction data, which is equivalent to using the distance from each pixel point to the region of interest as an object for training the first neural network, so that the obtained image segmentation model can perform image segmentation based on the distance between the pixel point and the region of interest. Therefore, for images without obvious grayscale value change boundaries, a good segmentation effect can also be produced, which can solve the problem that the current automatic segmentation of some organ tissues without obvious grayscale value changes in their contours cannot meet clinical requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flowchart of a method for training an image segmentation model provided in the first embodiment of the present invention;
[0035] Figure 2 A flow chart of automatically processing an original image to obtain a first sample image or a second sample image provided in the first embodiment of the present invention;
[0036] Figure 3 A flowchart of an image segmentation method provided in Embodiment 1 of the present invention;
[0037] Figure 4 A flowchart of a training method for an image segmentation model provided in Embodiment 2 of the present invention;
[0038] Figure 5 This is a flowchart of a method for training an image segmentation model provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, advantages and features of the present invention clearer, the present invention is described in detail in conjunction with the accompanying drawings and specific embodiments. It should be noted that the drawings are all in a very simplified form and are not drawn to scale, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In addition, the structure shown in the drawings is often a part of the actual structure. In particular, the emphasis of each drawing is different, and sometimes different proportions are used. It should also be understood that, unless otherwise specified or indicated, the terms "first", "second", "third", etc. in the specification are only used to distinguish the various components, elements, steps, etc. in the specification, and are not used to represent the logical relationship or sequential relationship between the various components, elements, steps, etc.
[0040] In this application document, although the region of interest (ROI) is not restrictive, the "region of interest" generally refers to an organ, a tumor, and auxiliary delineation in radiotherapy.
[0041] The core idea of the present invention is to use the distance from each pixel point to the region of interest as the object of the first neural network for training the image segmentation model, so that the obtained image segmentation model can perform image segmentation based on the distance between the pixel point and the region of interest. Therefore, for images without obvious grayscale value change boundaries, good segmentation effects can also be produced, which can solve the current problem that the automatic segmentation of some organ tissues without obvious grayscale value changes in their contours cannot meet clinical requirements.
[0042] Embodiment 1
[0043] This embodiment provides a training method for an image segmentation model, wherein the image segmentation model includes a first neural network for image segmentation, and the training method includes:
[0044] Step S100: inputting at least one first target signed distance field and a first sample image into the first neural network, so that the first neural network performs outlining prediction on the region of interest of the first sample image based on the first target signed distance field, and adjusting the network parameters of the first neural network based on the outlining prediction data to complete the training of the first neural network.
[0045] Figure 1 The flowchart of the training method of the image segmentation model provided in this embodiment is as follows. Figure 1 The training method of the image segmentation model is explained in detail.
[0046] Firstly, the first target signed distance field and the first sample image are prepared.
[0047] In this embodiment, the image segmentation model further includes a second neural network for predicting a signed distance field, the first target signed distance field is obtained through the second neural network, and the training method further includes training the second neural network.
[0048] It can be understood that the “signed distance” in this article refers to the signed distance from each pixel in the sample image to the outline of the region of interest. If the pixel is on the outline of the region of interest, the distance is counted as 0, if the pixel is within the outline of the region of interest, the distance is counted as positive, and if the pixel is outside the outline of the region of interest, the distance is counted as negative; the “signed distance field” refers to the combination of all calculated directed distances.
[0049] The second neural network can adopt a commonly used network for learning automatic organ segmentation, such as a combination of one or more of a U-net, a residual network (Res-net), a deformation network based on a U-net, and a deformation network based on a residual network. In actual operation, the most suitable second neural network can be selected according to the training effect. In other embodiments, the second neural network can also adopt other networks for learning automatic organ segmentation known to those skilled in the art, such as an FCN network, etc., and the present application is not limited thereto.
[0050] After selecting a specific second neural network, start training the second neural network. Specifically, input the second sample image into the second neural network so that the second neural network predicts a first signed distance field relative to the region of interest in the second sample image, and calculates a loss value between the first signed distance field and a second target signed distance field of the second sample image to adjust the network parameters of the second neural network to complete the training of the second neural network.
[0051] Optionally, the second target signed distance field of the second sample image may be obtained by calculating the signed distance from a pixel point in the second sample image to the region of interest, but the present invention is not limited thereto.
[0052] In this embodiment, a first loss function is used to calculate a loss value between the first signed distance field and a second target signed distance field of the second sample image, so as to adjust network parameters of the second neural network.
[0053] Optionally, the first loss function may adopt a root mean square function, that is, the second neural network uses the root mean square function to adjust its own network parameters. The expression of the root mean square function is:
[0054] WRMS=∑w(sl) 2 ;
[0055] Among them, s is the distance in training, l is the reference distance in training, and w is the training weight of the pixel.
[0056] In some other embodiments, the first loss function may also adopt the P-norm, a combination function of the P-norm and the root mean square function, or other objective functions, which will not be described in detail here.
[0057] After the second neural network is trained, the first sample image or the second sample image is input into the trained second neural network, and the output result of the second neural network is used as the first target signed distance field. The accuracy of the first target signed distance field obtained by training the second neural network is improved.
[0058] As an optional embodiment, the second sample image may be input into the trained second neural network, and then an activation function may be used to activate the output result of the trained second neural network, so as to obtain the first target signed distance field.
[0059] The activation function may adopt a hyperbolic tangent function, and the expression of the hyperbolic tangent function is as follows:
[0060]
[0061] Where S represents the signed distance field.
[0062] That is, by performing tanh transformation on the directed distance field through the hyperbolic tangent function, nonlinear factors can be introduced into the first neural network to enhance the learning ability of the first neural network.
[0063] In some other embodiments, the activation function may also use a softsign function, and the expression of the softsign function is as follows:
[0064]
[0065] Where S represents the signed distance field.
[0066] As explained above, the purpose of the activation function is to introduce nonlinear factors into the first neural network and enhance the learning ability of the first neural network. Therefore, the activation function can also adopt an activation function that is well known to those skilled in the art and can achieve this purpose. The specific selection of the activation function does not constitute a limitation to the present application.
[0067] As an optional embodiment, the first target signed distance field may also be obtained not through the second neural network, but directly by calculating the signed distance from the pixel point in the first sample image to the region of interest, which is not limited by the present invention.
[0068] It should be understood that there may be only one, or two or more first target signed distance fields, and each of the first target signed distance fields may be obtained by any of the above methods. For example, for two first target signed distance fields, two second neural networks need to be trained, which will not be explained one by one here.
[0069] As an optional embodiment, the first sample image and the second sample image may be the same or different, and the present invention is not limited thereto.
[0070] In this embodiment, the first sample image and / or the second sample image can be obtained by automatically processing the original image. Figure 2The flowchart of automatically processing the original image to obtain the first sample image or the second sample image provided in this embodiment. Figure 2 As shown, the method of processing the original image to obtain the first sample image and / or the second sample image includes:
[0071] Step S101: calculating the directed distance between each pixel point in the original image and the contour of at least one first region of interest;
[0072] Step S102: comparing all calculated directed distances with the standards specified in the contour delineation guide, adjusting the contour of the second region of interest, and obtaining the first sample image or the second sample image.
[0073] In this embodiment, the contour delineation guide is a target area delineation guide, which is a guideline for reaching consensus on target area delineation in the field of radiotherapy. Due to the difficulty of data annotation for target area delineation, there is no obvious boundary on the sample image, but the target area delineation guide will refer to the surrounding organs and determine the target area boundary based on the boundary of the surrounding organs. For example, the target area invades the boundary of a certain organ by several millimeters, or the target area needs to avoid the boundary of a certain organ by several millimeters. Therefore, the contour of the second region of interest (target area) is automatically adjusted after comparing the directed distance of each pixel point in the original image to the contour of at least one first region of interest (surrounding organ) with the standard specified in the contour delineation guide, which can solve the problem of low consistency of sample data caused by time or different delineators during manual delineation, and the consistency of sample data can be guaranteed, thereby improving the training effect of the first neural network.
[0074] It should be understood that there may be only one first region of interest or there may be two or more regions of interest, that is, the contour of the target area may be determined with reference to only one surrounding organ or to multiple surrounding organs, and the signed distance from each pixel point in the original image to the contour of each surrounding organ corresponds to a signed distance field. By comparing the multiple signed distance fields with the standards specified in the contour delineation guide, the target area can be better determined.
[0075] Optionally, when adjusting the contour of the second region of interest, the pixels in the contour of the second region of interest that do not conform to the contour drawing guidelines can be removed based on the calculated directed distance, or the missing pixels can be added to the contour of the second region of interest, which will not be elaborated here.
[0076] Of course, the first sample image and the second sample image are not limited to being obtained by processing the original image, and may also be obtained by other feasible methods, for example, by manual drawing.
[0077] Furthermore, the first neural network may adopt a network commonly used for learning automatic organ segmentation, such as a combination of one or more of a U-net, a residual network (Res-net), a deformation network based on a U-net, and a deformation network based on a residual network. In actual operation, the most suitable first neural network may be selected according to the training effect. In other embodiments, the first neural network may also adopt other networks for learning automatic organ segmentation known to those skilled in the art, such as an FCN network, etc., but the present application is not limited thereto.
[0078] Please continue reading Figure 1 After selecting a specific first neural network, start training the first neural network. Specifically, input the prepared first target signed distance field and the first sample image into the first neural network, and the first neural network predicts the delineation of the region of interest of the first sample image based on the first target signed distance field. Specifically, the first neural network adjusts the directed distance generated by the first target signed distance field for the first sample image, thereby completing the delineation prediction of the region of interest of the first sample image.
[0079] It should be understood that, when there is only one first target signed distance field, only one first target signed distance field will be referred to when outlining prediction is performed on the region of interest of the first sample image; and when there are two or more first target signed distance fields, all of the first target signed distance fields will be referred to when outlining prediction is performed on the region of interest of the first sample image.
[0080] Then, the second loss function is used to adjust the network parameters of the first neural network based on the outline prediction data to complete the training of the first neural network. Specifically, when adjusting the network parameters of the first neural network based on the outline prediction data, the second loss function is used to adjust the network parameters of the first neural network based on the difference between the outline prediction data and the target outline prediction data, thereby completing the training of the first neural network. This embodiment is equivalent to using the distance from each pixel point to the region of interest as the object for training the first neural network, so that the obtained image segmentation model can perform image segmentation based on the distance between the pixel point and the region of interest. Therefore, for images without obvious grayscale value change boundaries, good segmentation effects can also be produced, which can solve the current problem that the automatic segmentation of some organ tissues without obvious grayscale value changes in the contour cannot meet clinical requirements.
[0081] In this embodiment, the second loss function may adopt a loss function currently commonly used in automatic segmentation deep learning networks, including:
[0082] (1) Dice indicator function
[0083]
[0084] Among them, p is the reference object in training, and y is the predicted value in training;
[0085] (2) Cross-Entropy Function
[0086] Cross-Entropy(y,p)=-((p)log(y)+(1-p)log(1-y))
[0087] Among them, p is the reference object in training, and y is the predicted value in training;
[0088] (3) A combination of Dice indicator function, cross entropy function or their variants.
[0089] In this embodiment, the first sample image and the second sample image may adopt a layer of CT or MR image. When constructing the neural network, the first neural network and the second neural network accordingly adopt a two-dimensional neural network, and the directed distance is calculated in the two-dimensional space; or, the first sample image and the second sample image may directly adopt a complete three-dimensional CT or MR image. When constructing the neural network, the first neural network and the second neural network accordingly adopt a three-dimensional neural network, and the directed distance is calculated in the three-dimensional space.
[0090] It should be understood that although this embodiment describes training the second neural network first and then training the first neural network, in fact, the training of the first neural network and the second neural network can be performed simultaneously.
[0091] In addition, this embodiment further provides an image segmentation model, which is trained using the image segmentation model training method provided in this embodiment. That is, the image segmentation model may only include the first neural network that has been trained, or may include the first neural network and the second neural network that have been trained.
[0092] On this basis, this embodiment further provides an image segmentation method, including:
[0093] Step S200: at least input the target image into the image segmentation model to obtain a segmentation matrix or tensor of the region of interest of the target image.
[0094] Figure 3 FIG. 1 is a flowchart of the image segmentation method provided in this embodiment. Figure 3As shown, for example, when the image segmentation model only includes the first trained neural network, the signed distance from the pixel point in the first sample image to the region of interest can be calculated to obtain the first target signed distance field, and then the first target signed distance field and the target image are input into the first trained neural network. The first trained neural network can automatically segment the region of interest of the target image.
[0095] Furthermore, when the image segmentation model includes a first neural network and a second neural network that have been trained, the first target signed distance field can be predicted by inputting the first sample image or the second sample image into the second neural network that has been trained, or by inputting the first sample image or the second sample image into the second neural network that has been trained, and then activating the output result of the second neural network that has been trained using an activation function to obtain the first target signed distance field, and then inputting the first target signed distance field and the target image into the first neural network that has been trained. The first neural network that has been trained can automatically segment the region of interest of the target image.
[0096] Specifically, when the image segmentation model is a two-dimensional neural network model, after a two-dimensional image is input as a target image into the image segmentation model, a segmentation matrix of the region of interest of the target image is obtained; when the image segmentation model is a three-dimensional neural network model, after a three-dimensional image is input as a target image into the image segmentation model, a tensor of the region of interest of the target image is obtained.
[0097] For example, a layer of CT or MR images is input, and a signed distance field s is obtained through the trained Res-Net network (the second trained neural network), and is converted into a signed distance field S' through a tanh function, and the signed distance field S' is used as the first target signed distance field. Next, the CT or MR image and the signed distance field S' are input into the trained U-Net network (the first trained neural network), and the trained U-Net network automatically segments the region of interest of the CT or MR image based on the signed distance field S' to obtain a segmentation matrix or tensor of the region of interest of the CT or MR image.
[0098] In addition, the image segmentation model may output a value between 0 and 1. Therefore, preferably, the image segmentation method also includes rounding the segmentation matrix or tensor to remove the values between 0 and 1 in the segmentation matrix or tensor to obtain the final segmentation matrix or tensor.
[0099] In this embodiment, the region of interest of the target image is a target area, and the image segmentation method is used to segment the target area, but should not be limited thereto.
[0100] Embodiment 2
[0101] Figure 4 FIG. 1 is a flowchart of the training method of the image segmentation model provided in this embodiment. Figure 4 As shown, this embodiment provides another training method for an image segmentation model, wherein the image segmentation model includes a first neural network for image segmentation, and the training method further includes:
[0102] Step S300: inputting the first sample image into the first neural network so that the first neural network calculates a first signed distance field, and performs delineation prediction on a region of interest of the first sample image based on the first signed distance field and a first target signed distance field, and adjusting parameters of the first neural network based on the delineation prediction data to complete the training of the first neural network.
[0103] In this embodiment, the method for obtaining the first target signed distance field can refer to the method for obtaining the first target signed distance field in Embodiment 1, for example, it can be obtained by training a second neural network, or by calculating the signed distance from a pixel point in the first sample image to the region of interest, which will not be described in detail here.
[0104] Compared with the first embodiment, in this embodiment, when training the first neural network, only the first sample image is input into the first neural network, so that the first neural network calculates the first signed distance field, and performs delineation prediction on the region of interest of the first sample image based on the first signed distance field and the first target signed distance field. In this embodiment, after the first neural network calculates the first signed distance field of the first sample image, the calculated first signed distance field can be adjusted based on the first target signed distance field to complete the delineation prediction of the region of interest of the first sample image. After the delineation prediction is completed, the parameters of the first neural network are adjusted based on the delineation prediction data to complete the training of the first neural network.
[0105] In this embodiment, the network parameters of the first neural network are adjusted based on the delineation prediction data using the third loss function to complete the training of the first neural network. Similarly, when the network parameters of the first neural network are adjusted based on the delineation prediction data, the network parameters of the first neural network are adjusted based on the difference between the delineation prediction data and the target delineation prediction data using the third loss function, thereby completing the training of the first neural network.
[0106] Compared with the previous embodiment, the third loss function used in this embodiment is equivalent to the combined function formed by combining the first loss function and the second loss function, for example, WMRS+a*Dice, where a represents the training weight, so that the final image segmentation model can be trained using a neural network. For the description of the first loss function and the second loss function, please refer to the previous part and will not be repeated here.
[0107] It should be understood that the first sample image can also be obtained in the manner described above, which will not be described in detail here.
[0108] Based on this, the image segmentation model training method provided in this embodiment can also be used to train an image segmentation model for segmenting the target image; similarly, the image segmentation model in this embodiment can also be used to execute the image segmentation method in step S200, which will not be elaborated here.
[0109] Embodiment 3
[0110] Figure 5 Flow chart of the training method of the image segmentation model provided in this embodiment. Figure 5 As shown, the difference from the first embodiment and the second embodiment is that this embodiment provides another method for training an image segmentation model, and the training method for the image segmentation model includes:
[0111] Step S401: calculating the directed distance between each pixel point in the original image and the contour of at least one first region of interest;
[0112] Step S402: comparing all the calculated directed distances with the standards specified in the contour delineation guide, and adjusting the contour of the second region of interest to obtain a sample image;
[0113] Step S403: inputting the sample image into an image segmentation model to train the image segmentation model.
[0114] In this embodiment, step S401 and step S402 are similar to step S101 and step S102, respectively, and will not be described in detail here. It should be understood that the image segmentation model in this embodiment can be the image segmentation model in embodiment 1 and embodiment 2, or any other image segmentation model that can segment the target area; similarly, the training method for the neural network in the image segmentation model can adopt the training method described above, or other training methods, which are not limited in this embodiment.
[0115] Correspondingly, the loss function used in the training of the image segmentation model may also be the loss function in Embodiment 1 and Embodiment 2, but it should not be limited thereto.
[0116] Since this embodiment can solve the problem of low consistency of sample data caused by time or different outliners during manual outlining, the consistency of sample data can be guaranteed, thereby improving the training effect of the image segmentation model.
[0117] In summary, in the image segmentation method, image segmentation model and training method thereof provided in the present embodiment, when training the first neural network of the image segmentation model, at least one first target signed distance field and a first sample image are input into the first neural network, so that the first neural network performs outlining prediction on the region of interest of the first sample image based on the first target signed distance field, and adjusts the network parameters of the first neural network based on the outlining prediction data, which is equivalent to using the distance from each pixel point to the region of interest as the object for training the first neural network, so that the obtained image segmentation model can perform image segmentation based on the distance between the pixel point and the region of interest. Therefore, for images without obvious grayscale value change boundaries, good segmentation effects can also be produced, which can solve the problem that the current automatic segmentation of some organ tissues without obvious grayscale value changes in their contours cannot meet clinical requirements.
[0118] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0119] It should also be noted that, although the present invention has been disclosed as a preferred embodiment, the above embodiment is not intended to limit the present invention. For any technician familiar with the art, without departing from the scope of the technical solution of the present invention, the technical content disclosed above can be used to make many possible changes and modifications to the technical solution of the present invention, or modified into equivalent embodiments of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.
[0120] It should also be understood that, unless otherwise specified or indicated, the terms "first", "second", "third", etc. in the specification are merely used to distinguish between the various components, elements, steps, etc. in the specification, and are not used to indicate the logical relationship or sequential relationship between the various components, elements, steps, etc.
[0121] It should also be recognized that the terms described herein are only used to describe specific embodiments and are not intended to limit the scope of the invention. It should be noted that the singular forms "a" and "an" used herein and in the appended claims include plural references unless the context clearly indicates otherwise. For example, a reference to "a step" or "a device" means a reference to one or more steps or devices, and may include secondary steps and secondary devices. All conjunctions used should be understood in the broadest sense. And, the word "or" should be understood to have the definition of a logical "or", rather than a logical "exclusive or", unless the context clearly indicates otherwise. In addition, the implementation of the method and / or device in the embodiments of the present invention may include performing the selected task manually, automatically, or in combination.
Claims
1. A training method for an image segmentation model, It is characterized in that The image segmentation model includes a first neural network for image segmentation, and the training method includes: Inputting at least one first target signed distance field and a first sample image into the first neural network, so that the first neural network performs delineation prediction on a region of interest of the first sample image based on the first target signed distance field, and adjusting network parameters of the first neural network based on delineation prediction data, so as to complete training of the first neural network; The first target signed distance field is a set of signed distances from pixels in the first sample image to the region of interest, and the first target signed distance field is predicted by a trained second neural network or directly calculated.
2. The method for training an image segmentation model according to claim 1, It is characterized in that The first neural network adjusts the signed distance of the first sample image based on the first target signed distance field, thereby completing the delineation prediction of the region of interest of the first sample image.
3. The method for training an image segmentation model according to claim 1, It is characterized in that The adjusting the network parameters of the first neural network based on the delineation prediction data comprises: The network parameters of the first neural network are adjusted based on the difference between the delineation prediction data and the target delineation prediction data.
4. The method for training an image segmentation model according to any one of claims 1 to 3, It is characterized in that The image segmentation model also includes a second neural network for predicting a signed distance field, and the training method further includes: The second sample image is input into the second neural network so that the second neural network predicts a first signed distance field relative to the region of interest in the second sample image, and calculates a loss value between the first signed distance field and a second target signed distance field of the second sample image, and adjusts network parameters of the second neural network to complete the training of the second neural network, wherein the second target signed distance field is a set of directed distances from pixels in the second sample image to the region of interest, and the second target signed distance field is obtained by direct calculation.
5. The method for training an image segmentation model according to claim 4, It is characterized in that The first target directed distance field is predicted by inputting the first sample image or the second sample image into the trained second neural network; or, The first target directed distance field is obtained by inputting the first sample image or the second sample image into the trained second neural network, and then activating the output result of the trained second neural network using an activation function; or, The first target signed distance field is obtained by calculating the signed distance from a pixel point in the first sample image to the region of interest.
6. The method for training an image segmentation model according to claim 4, It is characterized in that The first sample image and / or the second sample image are obtained by processing an original image, and the method of processing the original image to obtain the first sample image and / or the second sample image includes: Calculating the directed distance from each pixel point in the original image to the contour of at least one surrounding organ region; and, All calculated directed distances are compared with the standards specified in the contour drawing guide, and the contour of the target area is adjusted to obtain the first sample image or the second sample image.
7. A training method for an image segmentation model, It is characterized in that The image segmentation model includes a first neural network for image segmentation, and the training method further includes: Inputting a first sample image into the first neural network so that the first neural network calculates a first signed distance field, and performing delineation prediction on a region of interest of the first sample image based on the first signed distance field and a first target signed distance field, and adjusting parameters of the first neural network based on delineation prediction data to complete training of the first neural network; The first target signed distance field is a set of signed distances from pixels in the first sample image to the region of interest, and the first target signed distance field is predicted by a trained second neural network or directly calculated.
8. The method for training an image segmentation model according to claim 7, It is characterized in that The first neural network adjusts the first signed distance field based on the first target signed distance field to complete the delineation prediction of the region of interest of the first sample image.
9. The method for training an image segmentation model as claimed in claim 7 or 8, It is characterized in that The first sample image is obtained by processing an original image, and the method of processing the original image to obtain the first sample image includes: Calculating the directed distance from each pixel point in the original image to the contour of at least one surrounding organ region; All calculated directed distances are compared with the standards specified in the contour drawing guide, and the contour of the target area is adjusted to obtain the first sample image.
10. An image segmentation model, It is characterized in that The image segmentation model is obtained by training using the training method of the image segmentation model as described in any one of claims 1 to 9.
11. An image segmentation method, It is characterized in that include: At least the target image is input into the image segmentation model as claimed in claim 10 to obtain a segmentation matrix or tensor of the region of interest of the target image.
12. The image segmentation method according to claim 11, It is characterized in that The region of interest of the target image is the target area, and the image segmentation method is used to segment the target area.
13. The image segmentation method according to claim 11, It is characterized in that The image segmentation method further comprises: The partition matrix or the tensor is rounded to remove values between 0 and 1 in the partition matrix or the tensor.
Citation Information
Patent Citations
Pulmonary nodule peripheral blood vessel quantitative evaluation system and method
CN107633514A
Cerebral hemorrhage image processing method, device, computer device and storage medium
CN109472786A
Organ sketching method and device, computer device and storage medium
CN109785306A
Automatic organ-at-risk sketching method and device based on neural network and storage medium
CN110310287A
Automatic lymph node sketching method and device
CN111105424A
