Model training method and device, image segmentation method and device
Through multiple sampling and weight adjustment of medical image sequences, combined samples are generated, the network model is trained, and the optimal nodule segmentation model is selected, which solves the problem of poor nodule segmentation effect in medical image sequences in the existing technology and improves the segmentation accuracy.
Patent Information
- Application Number
- CN202111663382.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-12-30
AI Technical Summary
Existing network models have poor performance in segmenting nodules in medical image sequences, mainly due to limited learning capabilities and the inability to infinitely increase training samples.
By sampling the lesion sampling area multiple times in the medical image sequence sample set, combined samples are generated, and based on these combined samples, the initial network model is trained, the optimal nodule segmentation model is selected, and differential sampling and lesion attribute weight adjustment are used To balance the impact of multiple lesion attributes on model training.
The nodule segmentation effect in medical image sequences is improved. Through multiple sampling and weight adjustment, the optimal nodule segmentation model is selected, which enhances the model's learning ability for different lesion attributes and improves segmentation accuracy.
Smart Images

Figure CN114332129B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a model training method and a model training device, an image segmentation method and an image segmentation device, and a computer-readable storage medium and an electronic device. Background Art
[0002] Image segmentation using network models means classifying each pixel in the image and marking the classification probability of each pixel. Since the nodules in medical image sequences are complex and diverse in morphology, and the learning ability of network models is limited, the training samples used to train network models cannot be increased infinitely. Therefore, the existing network models have poor effects on segmenting nodules in medical image sequences. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a model training method and a model training device, an image segmentation method and an image segmentation device, as well as a computer-readable storage medium and an electronic device, which solve the problem that the network model has poor effect in segmenting nodules in medical image sequences.
[0004] In a first aspect, an embodiment of the present application provides a model training method, comprising: sampling P lesion sampling areas contained in a medical image sequence sample set N times to obtain N combined samples, training the initial network model based on the N combined samples respectively, and obtaining loss results and nodule segmentation models corresponding to the N trainings, wherein each combined sample corresponds to a sampling allocation weight, each combined sample includes lesion samples of S lesion attributes, the sampling allocation weight is the ratio of the number of lesion samples corresponding to the S lesion attributes to the total number of lesion samples included in the combined sample, and P, N, and S are all positive integers; based on the loss results corresponding to the N trainings, determining the optimal nodule segmentation model among the nodule segmentation models corresponding to the N trainings, wherein the nodule segmentation models corresponding to the N trainings include at least one non-overfitted nodule segmentation model, and the optimal nodule segmentation model is the non-overfitted nodule segmentation model corresponding to the smallest loss result among the loss results corresponding to the at least one non-overfitted nodule segmentation model.
[0005] In combination with the first aspect of the present application, in some embodiments, the P lesion sampling areas contained in the medical image sequence sample set are sampled N times to obtain N combined samples, and the initial network model is trained based on the N combined samples to obtain the loss results and nodule segmentation models corresponding to the N trainings, including: based on the P lesion sampling areas contained in the medical image sequence sample set and the i-th sampling allocation weight, sampling to obtain the i-th combined sample, where i∈[2,N]; based on the i-th combined sample, the initial network model is trained for the i-th time, and the loss result and nodule segmentation model corresponding to the i-th training are determined, wherein the i-th sampling allocation weight is determined based on the loss result corresponding to the i-1-th training, the i-1-th sampling allocation weight and the preset weight adjustment parameter.
[0006] In combination with the first aspect of the present application, in some embodiments, based on the P lesion sampling areas and the i-th sampling allocation weight contained in the medical image sequence sample set, before sampling to obtain the i-th combined sample, it also includes: based on M trial trainings, determining the first sampling allocation weight and preset weight adjustment parameters.
[0007] In combination with the first aspect of the present application, in some embodiments, based on M trial trainings, determining the first sampling allocation weight and preset weight adjustment parameters includes: based on P lesion sampling areas corresponding to the medical image sequence sample set and M preset trial sampling allocation weights, sampling to obtain trial combination samples corresponding to each of the M preset trial sampling allocation weights, wherein each trial combination sample includes lesion samples of S types of lesion attributes, the preset trial sampling allocation weight is the ratio of the number of lesion samples corresponding to each of the S types of lesion attributes to the total number of lesion samples included in the trial combination sample, and M is a positive integer; based on the trial combination samples corresponding to each of the M preset trial sampling allocation weights, performing M trial trainings on the initial network model respectively, and determining the loss results corresponding to each of the M trial trainings; based on the loss results corresponding to each of the M trial trainings, determining the first sampling allocation weight and preset weight adjustment parameters.
[0008] In combination with the first aspect of the present application, in some embodiments, based on the P lesion sampling areas and the i-th sampling allocation weight contained in the medical image sequence sample set, sampling is performed to obtain the i-th combined sample, including: based on the P lesion sampling areas and the i-th sampling allocation weight contained in the medical image sequence sample set, the preset batch sampling quantity, determining Z batches of sub-combination samples, wherein the i-th combined sample includes Z batches of combined samples; wherein, based on the i-th combined sample, the initial network model is trained for the i-th time, and the loss result and nodule segmentation model corresponding to the i-th training are determined, including: for each batch of sub-combination samples in the Z batches of sub-combination samples, based on the current sub-combination sample, the initial network model or the nodule segmentation model obtained by the previous batch training is batch trained to determine the sub-loss result and nodule segmentation model corresponding to the current sub-combination sample; based on the sub-loss results and nodule segmentation models corresponding to each of the Z batches of sub-combination samples, the loss result and nodule segmentation model corresponding to the i-th training are determined.
[0009] In combination with the first aspect of the present application, in some embodiments, based on the P lesion sampling areas included in the medical image sequence sample set, the i-th sampling allocation weight, and the preset batch sampling number, Z batches of sub-combination samples are determined, including: based on the P lesion sampling areas included in the medical image sequence sample set, determining the preliminary sampling grids corresponding to each of the P lesion sampling areas; based on the P lesion sampling areas included in the medical image sequence sample set, the i-th sampling allocation weight, the preliminary sampling grids corresponding to each of the P lesion sampling areas, the preset batch sampling number, and the preset grid enhancement parameters for each batch, Z batches of sub-combination samples are determined.
[0010] In combination with the first aspect of the present application, in some embodiments, based on the P lesion sampling areas included in the medical image sequence sample set, the i-th sampling allocation weight, the preliminary sampling grids corresponding to each of the P lesion sampling areas, the preset batch sampling number, and the grid enhancement parameters of each batch, Z batches of sub-combination samples are determined, including: based on the P lesion sampling areas included in the medical image sequence sample set, the i-th sampling allocation weight, and the preset batch sampling number, Z batches of preset sampling data are determined, wherein each batch of preset sampling data includes P1 lesion sampling areas and the grid enhancement parameters corresponding to each of the P1 lesion sampling areas, wherein P1≤P; for each batch of preset sampling in the Z batches of preset sampling data, Sample data, based on the preliminary sampling grids and grid enhancement parameters corresponding to the P1 lesion sampling areas included in the current preset sampling data, enhance the preliminary sampling grids corresponding to the P1 lesion sampling areas included in the current preset sampling data, and determine the Q enhanced sampling grids corresponding to the P1 lesion sampling areas included in the current preset sampling data; based on the P1 lesion sampling areas included in the current preset sampling data and the Q enhanced sampling grids corresponding to the P1 lesion sampling areas included in the current preset sampling data, determine the sub-combination samples corresponding to the current preset sampling data; based on the sub-combination samples corresponding to each of the Z batches of preset sampling data, determine Z batches of sub-combination samples.
[0011] In combination with the first aspect of the present application, in some embodiments, the lesion sampling area includes an unlabeled lesion sampling area and a labeled lesion sampling area, and based on the P1 lesion sampling area included in the current preset sampling data and the Q enhanced sampling grids corresponding to each of the P1 lesion sampling areas included in the current preset sampling data, determining the sub-combination sample corresponding to the current preset sampling data includes: determining the unlabeled sub-combination sample corresponding to the current preset sampling data based on the P1 unlabeled lesion sampling area included in the current preset sampling data and the Q enhanced sampling grids corresponding to each of the P1 unlabeled lesion sampling areas included in the current preset sampling data; determining the labeled sub-combination sample corresponding to the current preset sampling data based on the P1 labeled lesion sampling area included in the current preset sampling data and the Q enhanced sampling grids corresponding to each of the P1 labeled lesion sampling areas included in the current preset sampling data, wherein the Q enhanced sampling grids corresponding to each of the P1 unlabeled lesion sampling areas are the same as the Q enhanced sampling grids corresponding to each of the P1 labeled lesion sampling areas; determining the sub-combination sample corresponding to the current preset sampling data based on the unlabeled sub-combination sample and the labeled sub-combination sample corresponding to the current preset sampling data.
[0012] In combination with the first aspect of the present application, in some embodiments, a medical image sequence sample set includes multiple medical image sequence samples, each medical image sequence sample includes at least one lesion sampling area, and based on the P lesion sampling areas corresponding to the medical image sequence sample set, preliminary sampling grids corresponding to each of the P lesion sampling areas are determined, including: for each lesion sampling area among the P lesion sampling areas, based on the image volume and physical spatial resolution corresponding to the current lesion sampling area, determining the physical spatial resolution of the preliminary sampling grid corresponding to the current lesion sampling area; performing isotropic processing on the physical spatial resolution of the preliminary sampling grid to determine the spatial resolution of the preliminary sampling grid; determining the preliminary sampling grid corresponding to the lesion sampling area based on the current lesion sampling area, the spatial resolution of the preliminary sampling grid, and a preset grid size; determining the preliminary sampling grid corresponding to the lesion sampling area based on the preliminary sampling grid corresponding to each lesion sampling area.
[0013] In combination with the first aspect of the present application, in some embodiments, the lesion sampling area includes a nodule lesion image, and based on the medical image sequence samples to which the current lesion sampling area belongs, the spatial resolution of the preliminary sampling grid, and a preset grid size, a preliminary sampling grid corresponding to the lesion sampling area is determined, including: determining a sampling center point based on the current lesion sampling area, the sampling center point being located within the current lesion sampling area; determining a preliminary sampling grid corresponding to the lesion sampling area based on the sampling center point, the medical image sequence samples to which the current lesion sampling area belongs, the spatial resolution of the preliminary sampling grid, and a preset grid size.
[0014] In combination with the first aspect of the present application, in some embodiments, the current sub-combination sample includes the current unlabeled sub-combination sample and the current labeled sub-combination sample, and based on the current sub-combination sample, the initial network model or the nodule segmentation model obtained by the previous batch training is batch trained to determine the sub-loss result and nodule segmentation model corresponding to the current sub-combination sample, including: inputting the current unlabeled sub-combination sample into the initial network model or the nodule segmentation model obtained by the previous batch training to obtain the nodule probability and nodule segmentation model of each pixel corresponding to the current unlabeled sub-combination sample; using an edge detection algorithm, based on the current labeled sub-combination sample, detecting the nodule edge in the current unlabeled sub-combination sample, and obtaining the gradient value of each pixel corresponding to the current labeled sub-combination sample; using a Gaussian algorithm, based on the gradient value of each pixel corresponding to the current labeled sub-combination sample, assigning a loss weight to each pixel corresponding to the current unlabeled sub-combination sample, and obtaining the loss weight of each pixel corresponding to the current unlabeled sub-combination sample; based on the nodule probability of each pixel corresponding to the current unlabeled sub-combination sample and the loss weight of each pixel corresponding to the current unlabeled sub-combination sample, determining the sub-loss result corresponding to the current sub-combination sample.
[0015] In combination with the first aspect of the present application, in some embodiments, the S types of lesion attributes include: S1 types of preset nodule sizes and S2 types of preset nodule morphologies.
[0016] In the second aspect, an embodiment of the present application provides an image segmentation method, comprising: obtaining an optimal nodule segmentation model based on the model training method mentioned in the first aspect; using the optimal nodule segmentation model to perform nodule segmentation on the medical image block to be detected, and obtaining a feature probability map corresponding to the medical image block to be detected, the feature probability map including the nodule segmentation probability of each pixel in the medical image block to be detected.
[0017] In the third aspect, an embodiment of the present application provides a model training device, comprising: a segmentation model training module, configured to sample P lesion sampling areas contained in a medical image sequence sample set N times to obtain N combined samples, and train the initial network model based on the N combined samples to obtain loss results and nodule segmentation models corresponding to the N trainings, wherein each combined sample corresponds to a sampling allocation weight, and each combined sample includes lesion samples with S lesion attributes. The sampling allocation weight is the ratio of the number of lesion samples corresponding to the S lesion attributes to the total number of lesion samples included in the combined sample, and P, N, and S are all positive integers; a segmentation model determination module, configured to determine the optimal nodule segmentation model among the nodule segmentation models corresponding to the N trainings based on the loss results corresponding to the N trainings, wherein the nodule segmentation models corresponding to the N trainings include at least one non-overfitted nodule segmentation model, and the optimal nodule segmentation model is the non-overfitted nodule segmentation model corresponding to the smallest loss result among the loss results corresponding to the at least one non-overfitted nodule segmentation model.
[0018] In the fourth aspect, an embodiment of the present application provides an image segmentation device, including: a nodule segmentation model acquisition module, configured to obtain an optimal nodule segmentation model based on the model training method mentioned in the first aspect; a nodule segmentation module, configured to use the optimal nodule segmentation model to perform nodule segmentation on a medical image block to be detected, and obtain a feature probability map corresponding to the medical image block to be detected, the feature probability map including the nodule segmentation probability of each pixel in the medical image block to be detected.
[0019] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed by a processor of an electronic device, the electronic device can execute the model training method mentioned in the first aspect and / or the image segmentation method mentioned in the second aspect.
[0020] In a sixth aspect, an embodiment of the present application provides an electronic device, which includes: a processor; a memory for storing computer-executable instructions; and a processor for executing computer-executable instructions to implement the model training method mentioned in the first aspect and / or the image segmentation method mentioned in the second aspect.
[0021] The model training method provided by the embodiment of the present application performs N samplings on the P lesion sampling areas included in the medical image sequence sample set, obtains N combined samples, and trains the initial network model based on the N combined samples respectively, obtains the loss results and nodule segmentation models corresponding to the N trainings, and determines the optimal nodule segmentation model in the nodule segmentation models corresponding to the N trainings based on the loss results corresponding to the N trainings. Each combined sample corresponds to a sampling allocation weight, and each combined sample includes lesion samples of S kinds of lesion attributes, and the sampling allocation weight is the ratio of the number of lesion samples corresponding to the S kinds of lesion attributes in the total number of lesion samples included in the combined sample. Therefore, a variety of combined samples can be used to train the initial network model, so as to select the optimal nodule segmentation model. In addition, the combined sample is determined according to the lesion attributes and the sampling allocation weight, so as to balance the influence of the various lesion attributes on the initial network model training, and differential sampling is achieved, so as to improve the segmentation effect of the optimal nodule segmentation model obtained by the model training method. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 The figure is a schematic diagram of an application scenario of the model training method provided in one embodiment of the present application.
[0023] Figure 2 The figure is a flow chart of a model training method provided in one embodiment of the present application.
[0024] Figure 3 Shown is a flow chart of a model training method provided in another embodiment of the present application.
[0025] Figure 4 Shown is a flow chart of a model training method provided in another embodiment of the present application.
[0026] Figure 5 Shown is a flow chart of a model training method provided in another embodiment of the present application.
[0027] Figure 6 Shown is a flow chart of a model training method provided in another embodiment of the present application.
[0028] Figure 7 Shown is a flow chart of a model training method provided in another embodiment of the present application.
[0029] Figure 8Shown is a flow chart of a model training method provided in another embodiment of the present application.
[0030] Fig. 9 Shown is a flow chart of a model training method provided in another embodiment of the present application.
[0031] Fig.10 Shown is a flow chart of a model training method provided in another embodiment of the present application.
[0032] Fig.11 Shown is a flow chart of a model training method provided in another embodiment of the present application.
[0033] Fig.12 Shown is a flow chart of a model training method provided in another embodiment of the present application.
[0034] Fig.13 The figure is a flow chart of an image segmentation method provided in one embodiment of the present application.
[0035] Fig.14 Shown is a schematic diagram of the structure of a model training device provided in one embodiment of the present application.
[0036] Fig.15 Shown is a schematic structural diagram of a model training device provided in another embodiment of the present application.
[0037] Fig.16 Shown is a schematic structural diagram of a model training device provided in another embodiment of the present application.
[0038] Fig.17 Shown is a schematic structural diagram of a model training device provided in another embodiment of the present application.
[0039] Fig.18 Shown is a schematic structural diagram of a model training device provided in another embodiment of the present application.
[0040] Fig.19 Shown is a schematic structural diagram of a model training device provided in another embodiment of the present application.
[0041] Fig. 20 Shown is a schematic structural diagram of a model training device provided in another embodiment of the present application.
[0042] Fig.21 Shown is a schematic structural diagram of a model training device provided in another embodiment of the present application.
[0043] Fig. 22 Shown is a schematic structural diagram of a model training device provided in another embodiment of the present application.
[0044] Fig.23Shown is a schematic structural diagram of a model training device provided in another embodiment of the present application.
[0045] Fig.24 Shown is a schematic structural diagram of a model training device provided in another embodiment of the present application.
[0046] Fig.25 Shown is a schematic structural diagram of an image segmentation device provided in one embodiment of the present application.
[0047] Fig.26 Shown is a schematic structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0049] Example scenarios
[0050] Figure 1 The figure is a schematic diagram of an application scenario of the model training method provided in one embodiment of the present application. Figure 1 The scene shown includes a server 110 and an image acquisition device 120 that is communicatively connected to the server 110. Specifically, the server 110 is used to perform N sampling of P lesion sampling areas included in the medical image sequence sample set to obtain N combined samples, and train the initial network model based on the N combined samples to obtain the loss results and nodule segmentation models corresponding to the N trainings, wherein each combined sample corresponds to a sampling allocation weight, each combined sample includes lesion samples of S lesion attributes, and the sampling allocation weight is the ratio of the number of lesion samples corresponding to the S lesion attributes to the total number of lesion samples included in the combined sample, and P, N, and S are all positive integers; based on the loss results corresponding to the N trainings, determine the optimal nodule segmentation model among the nodule segmentation models corresponding to the N trainings, wherein the nodule segmentation models corresponding to the N trainings include at least one non-overfitting nodule segmentation model, and the optimal nodule segmentation model is the non-overfitting nodule segmentation model corresponding to the minimum loss result among the loss results corresponding to the at least one non-overfitting nodule segmentation model. The image acquisition device 120 is used to acquire a medical image sequence sample set and send the medical image sequence sample set to the server 110 so that the server 110 performs the above operations.
[0051] Exemplary Methods
[0052] Figure 2 FIG. 1 is a flow chart of a model training method provided in an embodiment of the present application. Figure 2 As shown, the model training method includes the following steps.
[0053] Step 210, sampling the P lesion sampling areas contained in the medical image sequence sample set N times to obtain N combined samples, and training the initial network model based on the N combined samples respectively to obtain the loss results and nodule segmentation models corresponding to the N training times.
[0054] Specifically, the P lesion sampling areas may be areas determined by the detection frame. The area determined by the detection frame may be an area with poor accuracy obtained through preliminary lesion segmentation, that is, the area determined by the detection frame may include the entire nodule or only a part of the nodule. Each combined sample corresponds to a sampling allocation weight, and each combined sample includes lesion samples of S lesion attributes. The sampling allocation weight is the ratio of the number of lesion samples corresponding to each of the S lesion attributes to the total number of lesion samples included in the combined sample. P, N, and S are all positive integers. The initial network model may be a resunet network model. The loss result may be a loss value obtained based on a loss function. The nodule segmentation model may be a model obtained by training the initial network model.
[0055] In one embodiment of the present application, S types of lesion attributes include: S1 preset nodule sizes, S2 preset nodule morphologies. S, S1, and S2 are all positive integers. S can be the sum of S1 and S2. The preset nodule size can be 1mm*1mm*1mm, or 2mm*2mm*2mm. The preset nodule size can be set according to actual conditions, and this application does not make specific limitations. The preset nodule morphology can be an irregular shape such as a burr shape, or a regular shape such as a sphere or an ellipsoid.
[0056] Exemplarily, N can be 5. Each of the 5 combined samples contains 1000 lesion samples. The first combined sample may include: 500 lesion samples containing large nodules, and 500 lesion samples containing small nodules. The second combined sample may include: 300 lesion samples containing large nodules, and 700 lesion samples containing small nodules. The third combined sample may include: 800 lesion samples containing large nodules, and 200 lesion samples containing small nodules. The fourth combined sample may include: 100 lesion samples containing large nodules, and 900 lesion samples containing small nodules. The fifth combined sample may include: 650 lesion samples containing large nodules, and 350 lesion samples containing small nodules.
[0057] Exemplarily, N can be 3. The three combined samples each contain 2000 lesion samples. The first combined sample may include: 800 lesion samples containing burr-shaped nodules, 600 lesion samples containing spherical nodules, and 600 lesion samples containing ellipsoidal nodules. The second combined sample may include: 700 lesion samples containing burr-shaped nodules, 700 lesion samples containing spherical nodules, and 600 lesion samples containing ellipsoidal nodules. The third combined sample may include: 600 lesion samples containing burr-shaped nodules, 500 lesion samples containing spherical nodules, and 900 lesion samples containing ellipsoidal nodules.
[0058] Step 220, based on the loss results corresponding to the N training times, determine the optimal nodule segmentation model among the nodule segmentation models corresponding to the N training times.
[0059] Specifically, the nodule segmentation models corresponding to each of the N trainings include at least one non-overfitted nodule segmentation model, and the optimal nodule segmentation model is the non-overfitted nodule segmentation model corresponding to the smallest loss result among the loss results corresponding to each of the at least one non-overfitted nodule segmentation model.
[0060] Specifically, the specific value of N can be set according to actual needs. For example, N can be 60. That is, based on the loss results corresponding to each of the 60 trainings, the optimal nodule segmentation model among the nodule segmentation models corresponding to each of the 60 trainings is determined. The specific value of N can also be set according to the convergence of the loss function during the model training process. For example, when the model is trained for the 40th time, the convergence of the loss function has met the convergence condition, then N can be 40. The convergence condition can be a convergence threshold or a convergence speed, which is not specifically limited in this application.
[0061] Each combined sample used in the model training method provided in the embodiment of the present application corresponds to a sampling allocation weight. Therefore, the combined samples obtained according to a plurality of different sampling allocation weights can be used to train the initial network model, thereby selecting the nodule segmentation model with the best nodule segmentation effect. In addition, the sampling allocation weight is the ratio of the number of lesion samples corresponding to each of the S lesion attributes to the total number of lesion samples included in the combined sample, so that the influence of the various lesion attributes on the initial network model training can be balanced, and differential sampling is achieved, thereby improving the segmentation effect of the nodule segmentation model.
[0062] Figure 3 FIG. 1 is a flow chart of a model training method provided by another embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 3 The embodiment shown is described below in detail. Figure 3 The embodiment shown and Figure 2The differences and similarities of the illustrated embodiments are not described in detail.
[0063] like Figure 3 As shown, in an embodiment of the present application, the P lesion sampling areas contained in the medical image sequence sample set are sampled N times to obtain N combined samples, and the initial network model is trained based on the N combined samples respectively to obtain the loss results and nodule segmentation model corresponding to each of the N training times, including the following steps.
[0064] Step 310 , based on the P lesion sampling regions and the i-th sampling allocation weight included in the medical image sequence sample set, sampling is performed to obtain the i-th combined sample.
[0065] Step 320: Based on the i-th combined sample, the initial network model is trained for the i-th time to determine the loss result and nodule segmentation model corresponding to the i-th training.
[0066] Specifically, the i-th sampling allocation weight is determined based on the loss result corresponding to the i-1-th training, the i-1-th sampling allocation weight and the preset weight adjustment parameter.
[0067] Specifically, i∈[2,N]. Step 310 and step 320 are steps that are executed in a loop. When i=2, i-1=1, step 310 is to sample the second combined sample based on the P lesion sampling areas contained in the medical image sequence sample set and the second sampling allocation weight. The first sampling allocation weight may be preset. Step 320 is to perform a second training on the initial network model based on the second combined sample, and determine the loss result and nodule segmentation model corresponding to the second training. The second sampling allocation weight may be determined based on the loss result corresponding to the first training, the first sampling allocation weight, and the preset weight adjustment parameter.
[0068] Exemplarily, when i=3, i-1=2, step 310 is to sample the third combined sample based on the P lesion sampling areas and the third sampling allocation weight contained in the medical image sequence sample set. Step 320 is to train the initial network model for the third time based on the third combined sample, and determine the loss result and nodule segmentation model corresponding to the third training. The third sampling allocation weight can be determined based on the loss result corresponding to the second training, the second sampling allocation weight and the preset weight adjustment parameter. That is, the sampling allocation weight is determined based on the loss result corresponding to the previous training, the sampling allocation weight corresponding to the previous training and the preset weight adjustment parameter.
[0069] By looping through step 310 and step 320, and the sampling allocation weight is determined based on the loss result corresponding to the previous training, the sampling allocation weight corresponding to the previous training, and the preset weight adjustment parameters, the overall effect of the model training can be developed in a better direction, thereby further improving the training effect of the model.
[0070] Figure 4 FIG. 1 is a flow chart of a model training method provided by another embodiment of the present application. Figure 3 Based on the embodiment shown, Figure 4 The embodiment shown is described below in detail. Figure 4 The embodiment shown and Figure 3 The differences and similarities of the illustrated embodiments are not described in detail.
[0071] like Figure 4 As shown, in an embodiment of the present application, before the step of sampling to obtain the i-th combined sample based on the P lesion sampling areas and the i-th sampling weight contained in the medical image sequence sample set, the following steps are also included.
[0072] Step 410: Determine the first sampling allocation weight and preset weight adjustment parameters based on M trial trainings.
[0073] Specifically, the trial training can be to pre-set M trial sampling allocation weights, and then sample respectively according to the M trial sampling allocation weights, so as to obtain trial combination samples corresponding to each of the M trial sampling allocation weights, and finally perform trial training according to the trial combination samples corresponding to each of the M trial sampling allocation weights, so as to obtain the loss results corresponding to each of the M trial trainings.
[0074] By analyzing the loss results corresponding to each of the M trial trainings, the change trend of the loss results corresponding to each of the M trial trainings can be obtained, so that the first sampling allocation weight can be determined according to the trial sampling allocation weights of each of the M trial trainings. In addition, according to the change trend of the loss results corresponding to each of the M trial trainings, the adjustment direction and adjustment size of the sampling allocation weight can be obtained, so as to determine the preset weight adjustment parameter. Determining the preset weight adjustment parameter can be the adjustment direction and adjustment size of the sampling allocation weight. The adjustment direction of the sampling allocation weight can be to adjust the sampling allocation weight larger or to adjust the sampling allocation weight smaller. The adjustment size of the sampling allocation weight can be a specific value.
[0075] Through M times of trial training, the first sampling allocation weight and preset weight adjustment parameters are determined. The data obtained through M times of trial training can provide a reference for determining the first sampling allocation weight and preset weight adjustment parameters, thereby providing a more accurate data basis for subsequent model training.
[0076] Figure 5FIG. 1 is a flow chart of a model training method provided by another embodiment of the present application. Figure 4 Based on the embodiment shown, Figure 5 The embodiment shown is described below in detail. Figure 5 The embodiment shown and Figure 4 The differences and similarities of the illustrated embodiments are not described in detail.
[0077] like Figure 5 As shown, in an embodiment of the present application, based on M trial trainings, the step of determining the first sampling allocation weight and the preset weight adjustment parameter includes the following steps.
[0078] Step 510 , based on the P lesion sampling areas corresponding to the medical image sequence sample set and the M preset trial sampling allocation weights, sampling is performed to obtain trial combination samples corresponding to the M preset trial sampling allocation weights.
[0079] Specifically, each trial combination sample includes lesion samples of S lesion attributes. The preset trial sampling allocation weight is the ratio of the number of lesion samples corresponding to each of the S lesion attributes to the total number of lesion samples included in the trial combination sample. M is a positive integer.
[0080] Step 520, based on the trial combination samples corresponding to the M preset trial sampling allocation weights, respectively perform M trial training on the initial network model to determine the loss results corresponding to the M trial trainings.
[0081] Step 530, based on the loss results corresponding to each of the M training trials, determine the first sampling allocation weight and the preset weight adjustment parameter.
[0082] By determining the first sampling allocation weight and preset weight adjustment parameters based on the loss results corresponding to each of the M trial trainings, the loss results corresponding to each of the M trial trainings can provide a more accurate reference for determining the first sampling allocation weight and preset weight adjustment parameters, thereby providing a more accurate data basis for subsequent model training.
[0083] Figure 6 FIG. 1 is a flow chart of a model training method provided by another embodiment of the present application. Figure 3 Based on the embodiment shown, Figure 6 The embodiment shown is described below in detail. Figure 6 The embodiment shown and Figure 3 The differences and similarities of the illustrated embodiments are not described in detail.
[0084] like Figure 6 As shown, in an embodiment of the present application, based on the P lesion sampling areas and the i-th sampling allocation weight contained in the medical image sequence sample set, the step of sampling to obtain the i-th combined sample includes the following steps.
[0085] Step 610 , determining Z batches of sub-combination samples based on the P lesion sampling regions included in the medical image sequence sample set, the i-th sampling allocation weight, and the preset batch sampling quantity.
[0086] Specifically, the i-th combined sample includes Z batches of combined samples. That is, each combined sample includes Z batches of combined samples. For example, a combined sample includes 1000 samples, and Z is equal to 40, then each batch of combined samples includes 25 samples.
[0087] In an embodiment of the present application, based on the i-th combined sample, the initial network model is trained for the i-th time, and the steps of determining the loss result and nodule segmentation model corresponding to the i-th training include the following steps.
[0088] Step 620, for each batch of sub-combination samples in the Z batches of sub-combination samples, based on the current sub-combination samples, batch training is performed on the initial network model or the nodule segmentation model obtained by the previous batch training to determine the sub-loss results and nodule segmentation model corresponding to the current sub-combination samples.
[0089] Specifically, if the current sub-combination sample is the first sample to be batch trained, the initial network model is batch trained based on the current sub-combination sample to determine the sub-loss result and nodule segmentation model corresponding to the current sub-combination sample. If the current sub-combination sample is not the first sample to be batch trained, the nodule segmentation model obtained by the previous batch training is batch trained based on the current sub-combination sample to determine the sub-loss result and nodule segmentation model corresponding to the current sub-combination sample.
[0090] Step 630, based on the sub-loss results and nodule segmentation models corresponding to each of the Z batches of sub-combination samples, determine the loss result and nodule segmentation model corresponding to the i-th training.
[0091] By dividing the combined samples into Z batches of sub-combination samples, the changing trends among multiple sub-loss results can be analyzed according to the sub-loss results corresponding to each batch of sub-combination samples, thereby providing a rich data foundation for subsequent model training.
[0092] Figure 7 FIG. 1 is a flow chart of a model training method provided by another embodiment of the present application. Figure 6 Based on the embodiment shown, Figure 7 The embodiment shown is described below in detail. Figure 7 The embodiment shown and Figure 6 The differences and similarities of the illustrated embodiments are not described in detail.
[0093] like Figure 7As shown, in an embodiment of the present application, based on the P lesion sampling areas contained in the medical image sequence sample set, the i-th sampling allocation weight, and the preset batch sampling quantity, the step of determining Z batches of sub-combination samples includes the following steps.
[0094] Step 710: Based on the P lesion sampling regions included in the medical image sequence sample set, determine the preliminary sampling grids corresponding to the P lesion sampling regions.
[0095] Specifically, a lesion sampling area may correspond to a preliminary sampling grid, which is a sampling grid that has not been subjected to enhancement operations such as rotation and distortion.
[0096] Step 720, based on the P lesion sampling areas included in the medical image sequence sample set, the i-th sampling allocation weight, the preliminary sampling grids corresponding to the P lesion sampling areas, the preset batch sampling number, and the preset grid enhancement parameters for each batch, determine Z batches of sub-combination samples.
[0097] Sampling is performed using a preliminary sampling grid, a preset batch sampling number, and preset grid enhancement parameters for each batch to obtain Z batches of sub-combination samples. Different preset grid enhancement parameters can be set for each batch of sub-combination samples, thereby improving the diversity of the Z batches of sub-combination samples and providing a differentiated data basis for subsequent model training, thereby improving the learning ability of the nodule segmentation model for lesion samples with different lesion attributes and improving the training effect of the model.
[0098] Figure 8 FIG. 1 is a flow chart of a model training method provided by another embodiment of the present application. Figure 7 Based on the embodiment shown, Figure 8 The embodiment shown is described below in detail. Figure 8 The embodiment shown and Figure 7 The differences and similarities of the illustrated embodiments are not described in detail.
[0099] like Figure 8 As shown, in an embodiment of the present application, based on the P lesion sampling areas contained in the medical image sequence sample set, the i-th sampling allocation weight, the preliminary sampling grids corresponding to each of the P lesion sampling areas, the preset batch sampling number, and the grid enhancement parameters of each batch, the steps of determining Z batches of sub-combination samples include the following steps.
[0100] Step 810 , determining Z batches of preset sampling data based on the P lesion sampling regions included in the medical image sequence sample set, the i-th sampling allocation weight, and the preset batch sampling quantity.
[0101] Specifically, each batch of preset sampling data includes P1 lesion sampling areas and grid enhancement parameters corresponding to each of the P1 lesion sampling areas. P1≤P. The grid enhancement parameters include a spatial rotation angle and a spatial twisting angle. For example, the grid enhancement parameters may be a spatial rotation of 30 degrees first and then a spatial twist of 50 degrees.
[0102] Step 820, for each batch of preset sampling data in the Z batches of preset sampling data, based on the preliminary sampling grids and grid enhancement parameters corresponding to the P1 lesion sampling areas included in the current preset sampling data, an enhancement operation is performed on the preliminary sampling grids corresponding to the P1 lesion sampling areas included in the current preset sampling data, and Q enhanced sampling grids corresponding to the P1 lesion sampling areas included in the current preset sampling data are determined.
[0103] Exemplarily, P may be 200, and P1 may be 30. That is, 30 lesion sampling areas are selected from 200 lesion sampling areas according to the sampling allocation weight and the preset batch sampling quantity, and then the grid enhancement parameters corresponding to each of the 30 lesion sampling areas are determined.
[0104] Step 830 , based on the P1 lesion sampling regions included in the current preset sampling data and the Q enhanced sampling grids corresponding to the P1 lesion sampling regions included in the current preset sampling data, determine the sub-combination samples corresponding to the current preset sampling data.
[0105] Specifically, the P1 lesion sampling areas are sampled respectively through Q enhanced sampling grids, so as to determine the sub-combination samples corresponding to the current preset sampling data. For example, Q may be 10, P1 may be 5, and the number of sub-combination samples corresponding to the current preset sampling data may be 50.
[0106] Step 840: Determine Z batches of sub-combination samples based on the sub-combination samples corresponding to each of the Z batches of preset sampling data.
[0107] By performing an enhancement operation on the preliminary sampling grid to obtain an enhanced sampling grid, and then using the enhanced sampling grid for sampling, it is not necessary to perform multiple data enhancements on the sub-combination samples obtained by sampling, thereby reducing the amount of calculation. In addition, performing multiple data enhancements on the sub-combination samples obtained by sampling may cause problems such as loss of sub-combination sample data and black edges of the image. Therefore, the present application directly performs an enhancement operation on the preliminary sampling grid, thereby avoiding problems such as loss of sub-combination sample data and black edges of the image.
[0108] Fig. 9 FIG. 1 is a flow chart of a model training method provided by another embodiment of the present application. Figure 8 Based on the embodiment shown, Fig. 9 The embodiment shown is described below in detail. Fig. 9 The embodiment shown and Figure 8 The differences and similarities of the illustrated embodiments are not described in detail.
[0109] like Fig. 9 As shown, in an embodiment of the present application, based on the P1 lesion sampling areas included in the current preset sampling data and the Q enhanced sampling grids corresponding to the P1 lesion sampling areas included in the current preset sampling data, the steps of determining the sub-combination samples corresponding to the current preset sampling data include the following steps.
[0110] Step 910, based on the P1 unlabeled lesion sampling regions included in the current preset sampling data and the Q enhanced sampling grids corresponding to the P1 unlabeled lesion sampling regions included in the current preset sampling data, determine the unlabeled sub-combination samples corresponding to the current preset sampling data.
[0111] Specifically, the lesion sampling area includes an unlabeled lesion sampling area and a labeled lesion sampling area.
[0112] Step 920 , based on the P1 annotated lesion sampling regions included in the current preset sampling data and the Q enhanced sampling grids corresponding to the P1 annotated lesion sampling regions included in the current preset sampling data, determine the annotated sub-combination samples corresponding to the current preset sampling data.
[0113] Specifically, the Q enhanced sampling grids corresponding to each of the P1 unlabeled lesion sampling regions are the same as the Q enhanced sampling grids corresponding to each of the P1 labeled lesion sampling regions.
[0114] Step 930: Determine the sub-combination samples corresponding to the current preset sampling data based on the unlabeled sub-combination samples and the labeled sub-combination samples corresponding to the current preset sampling data.
[0115] By using Q enhanced sampling grids, unlabeled sub-combination samples and labeled sub-combination samples can be directly obtained, reducing the amount of calculation.
[0116] Fig.10 FIG. 1 is a flow chart of a model training method provided by another embodiment of the present application. Figure 7 Based on the embodiment shown, Fig.10 The embodiment shown is described below in detail. Fig.10 The embodiment shown and Figure 7 The differences and similarities of the illustrated embodiments are not described in detail.
[0117] like Fig.10 As shown, in an embodiment of the present application, based on the P lesion sampling regions corresponding to the medical image sequence sample set, the step of determining the preliminary sampling grids corresponding to each of the P lesion sampling regions includes the following steps.
[0118] Step 1010, for each of the P lesion sampling areas, based on the image volume and physical space resolution corresponding to the current lesion sampling area, determine the physical space resolution of the preliminary sampling grid corresponding to the current lesion sampling area.
[0119] Specifically, the medical image sequence sample set includes multiple medical image sequence samples. Each medical image sequence sample includes at least one lesion sampling area. The product of the image volume corresponding to the current lesion sampling area and the physical space resolution is the physical volume corresponding to the current lesion sampling area. The physical volume corresponding to the current lesion sampling area divided by the volume of the preliminary sampling grid is the physical space resolution of the preliminary sampling grid. The volume of the preliminary sampling grid can be 64*128*128 or other sizes, which is not specifically limited in this application.
[0120] Step 1020, performing isotropic processing on the physical spatial resolution of the preliminary sampling grid to determine the spatial resolution of the preliminary sampling grid.
[0121] Specifically, the isotropic processing is to adjust the pixel spacing in the three directions of x, y and z to the same spacing. For example, the physical spatial resolution of the preliminary sampling grid may be 0.5*1*1, and the physical spatial resolution of the preliminary sampling grid is isotropically processed, and the spatial resolution of the determined preliminary sampling grid may be 0.5*0.5*0.5.
[0122] Step 1030, based on the current lesion sampling area, the spatial resolution of the preliminary sampling grid, and the preset grid size, determine the preliminary sampling grid corresponding to the lesion sampling area.
[0123] Step 1040, based on the preliminary sampling grid corresponding to each lesion sampling area, determine the preliminary sampling grid corresponding to each of the P lesion sampling areas.
[0124] By isotropically processing the physical spatial resolution of the preliminary sampling grid, the spatial resolution of the preliminary sampling grid is made closer to the resolution of the actual nodule lesions, so that the sampled samples are closer to the actual state of the nodule lesions, reducing the calculation and learning costs of the model.
[0125] Fig.11 FIG. 1 is a flow chart of a model training method provided by another embodiment of the present application. Fig.10 Based on the embodiment shown, Fig.11 The embodiment shown is described below in detail. Fig.11 The embodiment shown and Fig.10 The differences and similarities of the illustrated embodiments are not described in detail.
[0126] like Fig.11As shown, in an embodiment of the present application, the step of determining the preliminary sampling grid corresponding to the lesion sampling area based on the medical image sequence sample to which the current lesion sampling area belongs, the spatial resolution of the preliminary sampling grid, and the preset grid size includes the following steps.
[0127] Step 1110, determining the sampling center point based on the current lesion sampling area.
[0128] Specifically, the sampling center point is located in the current lesion sampling area. The sampling center point can be randomly selected in the current lesion sampling area. The lesion sampling area includes a nodule lesion image.
[0129] Step 1120, determining a preliminary sampling grid corresponding to the lesion sampling area based on the sampling center point, the medical image sequence sample to which the current lesion sampling area belongs, the spatial resolution of the preliminary sampling grid, and the preset grid size.
[0130] Specifically, the preliminary sampling grid can be mapped to the [-1, 1] interval to adapt to the input interface of the initial network model.
[0131] By setting the sampling center point within the current lesion sampling area, the probability of sampling to obtain a nodule lesion is increased.
[0132] Fig.12 FIG. 1 is a flow chart of a model training method provided by another embodiment of the present application. Figure 6 Based on the embodiment shown, Fig.12 The embodiment shown is described below in detail. Fig.12 The embodiment shown and Figure 6 The differences and similarities of the illustrated embodiments are not described in detail.
[0133] like Fig.12 As shown, in an embodiment of the present application, based on the current sub-combination sample, the initial network model or the nodule segmentation model obtained by the previous batch training is batch trained to determine the sub-loss result and nodule segmentation model corresponding to the current sub-combination sample, including the following steps.
[0134] Step 1210, input the current unlabeled sub-combination sample into the initial network model or the nodule segmentation model obtained by the previous batch training, and obtain the nodule probability and nodule segmentation model of each pixel corresponding to the current unlabeled sub-combination sample.
[0135] Specifically, the current sub-combination sample includes the current unlabeled sub-combination sample and the current labeled sub-combination sample.
[0136] Step 1220 , using an edge detection algorithm, based on the currently labeled sub-combination sample, detect the nodule edge in the currently unlabeled sub-combination sample, and obtain the gradient value of each pixel corresponding to the currently labeled sub-combination sample.
[0137] Step 1230, using the Gaussian algorithm, based on the gradient value of each pixel corresponding to the current labeled sub-combination sample, assign a loss weight to each pixel corresponding to the current unlabeled sub-combination sample, and obtain the loss weight of each pixel corresponding to the current unlabeled sub-combination sample.
[0138] Specifically, the gradient value of each pixel corresponding to the current labeled sub-combination sample can be mapped to the interval [1,3], thereby obtaining a weight distribution with smooth distribution at the edge of the nodule.
[0139] Step 1240 , based on the nodule probability of each pixel corresponding to the current unlabeled sub-combination sample and the loss weight of each pixel corresponding to the current unlabeled sub-combination sample, determine the sub-loss result corresponding to the current sub-combination sample.
[0140] Using the Gaussian algorithm, based on the gradient value of each pixel corresponding to the current labeled sub-combination sample, a loss weight is assigned to each pixel corresponding to the current unlabeled sub-combination sample, and the loss weight of each pixel corresponding to the current unlabeled sub-combination sample is obtained, thereby increasing the weight of the nodule edge area, improving the model's learning effect on the nodule edge, and improving the segmentation accuracy of the nodule segmentation model.
[0141] Fig.13 FIG. 1 is a flow chart of an image segmentation method provided by an embodiment of the present application. Fig.13 As shown, the image segmentation method provided in the embodiment of the present application includes the following steps.
[0142] Step 1310: Obtain an optimal nodule segmentation model based on the model training method in the above embodiment.
[0143] Step 1320 , using the optimal nodule segmentation model, perform nodule segmentation on the medical image block to be detected, and obtain a feature probability map corresponding to the medical image block to be detected.
[0144] Specifically, the feature probability map includes the nodule segmentation probability of each pixel in the medical image block to be detected.
[0145] Combination of the above Figures 1 to 13 , describes the method embodiment of the present application in detail, and the following is combined with Figures 14 to 25 , describes the device embodiment of the present application in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous method embodiment.
[0146] Exemplary Devices
[0147] Fig.14 FIG. 1 is a schematic diagram of the structure of a model training device provided in an embodiment of the present application. Fig.14 As shown, the model training device 1400 of the embodiment of the present application includes a segmentation model training module 1410 and a segmentation model determination module 1420.
[0148] Specifically, the segmentation model training module 1410 is configured to perform N sampling on the P lesion sampling areas included in the medical image sequence sample set to obtain N combined samples, and train the initial network model based on the N combined samples to obtain the loss results and nodule segmentation models corresponding to the N trainings, wherein each combined sample corresponds to a sampling allocation weight, each combined sample includes lesion samples of S lesion attributes, and the sampling allocation weight is the ratio of the number of lesion samples corresponding to the S lesion attributes to the total number of lesion samples included in the combined sample, and P, N, and S are all positive integers. The segmentation model determination module 1420 is configured to determine the optimal nodule segmentation model among the nodule segmentation models corresponding to the N trainings based on the loss results corresponding to the N trainings, wherein the nodule segmentation models corresponding to the N trainings include at least one non-overfitting nodule segmentation model, and the optimal nodule segmentation model is the non-overfitting nodule segmentation model corresponding to the minimum loss result among the loss results corresponding to the at least one non-overfitting nodule segmentation model.
[0149] Fig.15 The figure shows a schematic diagram of the structure of a model training device provided by another embodiment of the present application. Fig.14 Based on the embodiment shown, Fig.15 The embodiment shown is described below in detail. Fig.15 The embodiment shown and Fig.14 The differences and similarities of the illustrated embodiments are not described in detail.
[0150] like Fig.15 As shown, the segmentation model training module 1410 of the embodiment of the present application includes: a combined sample determination unit 1411 and a model training unit 1412.
[0151] Specifically, the combined sample determination unit 1411 is configured to sample and obtain the i-th combined sample based on the P lesion sampling areas and the i-th sampling allocation weight contained in the medical image sequence sample set, where i∈[2,N]. The model training unit 1412 is configured to perform the i-th training on the initial network model based on the i-th combined sample, and determine the loss result and nodule segmentation model corresponding to the i-th training, where the i-th sampling allocation weight is determined based on the loss result corresponding to the i-1-th training, the i-1-th sampling allocation weight and the preset weight adjustment parameter.
[0152] Fig.16 The figure shows a schematic diagram of the structure of a model training device provided by another embodiment of the present application. Fig.15Based on the embodiment shown, Fig.16 The embodiment shown is described below in detail. Fig.16 The embodiment shown and Fig.15 The differences and similarities of the illustrated embodiments are not described in detail.
[0153] like Fig.16 As shown, the model training device 1400 of the embodiment of the present application also includes: a trial training module 1430.
[0154] Specifically, the trial training module 1430 is configured to determine the first sampling allocation weight and the preset weight adjustment parameter based on M trial trainings.
[0155] Fig.17 The figure shows a schematic diagram of the structure of a model training device provided by another embodiment of the present application. Fig.16 Based on the embodiment shown, Fig.17 The embodiment shown is described below in detail. Fig.17 The embodiment shown and Fig.16 The differences and similarities of the illustrated embodiments are not described in detail.
[0156] like Fig.17 As shown, the trial training module 1430 of the embodiment of the present application includes: a trial combination sample determination unit 1431, a trial training unit 1432 and a trial training result determination unit 1433.
[0157] Specifically, the trial combination sample determination unit 1431 is configured to sample and obtain trial combination samples corresponding to M preset trial sampling allocation weights based on P lesion sampling areas corresponding to the medical image sequence sample set and M preset trial sampling allocation weights, wherein each trial combination sample includes lesion samples of S lesion attributes, and the preset trial sampling allocation weight is the ratio of the number of lesion samples corresponding to each of the S lesion attributes to the total number of lesion samples included in the trial combination sample, and M is a positive integer. The trial training unit 1432 is configured to perform M trial trainings on the initial network model based on the trial combination samples corresponding to each of the M preset trial sampling allocation weights, and determine the loss results corresponding to each of the M trial trainings. The trial training result determination unit 1433 is configured to determine the first sampling allocation weight and the preset weight adjustment parameter based on the loss results corresponding to each of the M trial trainings.
[0158] Fig.18 The figure shows a schematic diagram of the structure of a model training device provided by another embodiment of the present application. Fig.15 Based on the embodiment shown, Fig.18 The embodiment shown is described below in detail. Fig.18 The embodiment shown and Fig.15 The differences and similarities of the illustrated embodiments are not described in detail.
[0159] like Fig.18 As shown, the combined sample determination unit 1411 of the embodiment of the present application includes: a sub-combined sample determination sub-unit 1810. The model training unit 1412 of the embodiment of the present application includes: a batch training sub-unit 1820 and a batch training result determination sub-unit 1830.
[0160] Specifically, the sub-combination sample determination sub-unit 1810 is configured to determine Z batches of sub-combination samples based on the P lesion sampling areas contained in the medical image sequence sample set, the i-th sampling allocation weight, and the preset batch sampling quantity, wherein the i-th combination sample includes Z batches of combination samples. The batch training sub-unit 1820 is configured to, for each batch of sub-combination samples in the Z batches of sub-combination samples, perform batch training on the initial network model or the nodule segmentation model obtained by the previous batch training based on the current sub-combination sample, and determine the sub-loss result and nodule segmentation model corresponding to the current sub-combination sample. The batch training result determination sub-unit 1830 is configured to determine the loss result and nodule segmentation model corresponding to the i-th training based on the sub-loss results and nodule segmentation models corresponding to each of the Z batches of sub-combination samples.
[0161] Fig.19 The figure shows a schematic diagram of the structure of a model training device provided by another embodiment of the present application. Fig.18 Based on the embodiment shown, Fig.19 The embodiment shown is described below in detail. Fig.19 The embodiment shown and Fig.18 The differences and similarities of the illustrated embodiments are not described in detail.
[0162] like Fig.19 As shown, the sub-combination sample determination sub-unit 1810 of the embodiment of the present application includes: a preliminary grid determination sub-unit 1811 and a Z batch sub-combination sample determination sub-unit 1812 .
[0163] Specifically, the preliminary grid determination subunit 1811 is configured to determine the preliminary sampling grids corresponding to the P lesion sampling regions based on the P lesion sampling regions included in the medical image sequence sample set. The Z batches of sub-combination sample determination subunit 1812 is configured to determine the Z batches of sub-combination samples based on the P lesion sampling regions included in the medical image sequence sample set, the i-th sampling allocation weight, the preliminary sampling grids corresponding to the P lesion sampling regions, the preset batch sampling number, and the preset grid enhancement parameters for each batch.
[0164] Fig. 20 The figure shows a schematic diagram of the structure of a model training device provided by another embodiment of the present application. Fig.19 Based on the embodiment shown, Fig. 20 The embodiment shown is described below in detail. Fig. 20 The embodiment shown and Fig.19 The differences and similarities of the illustrated embodiments are not described in detail.
[0165] like Fig. 20 As shown, the Z batch sub-combination sample determination sub-unit 1812 of the embodiment of the present application includes: a preset sampling data determination sub-unit 2010, an enhanced grid determination sub-unit 2020, a single batch sub-combination sample determination sub-unit 2030 and a Z batch sub-combination sample integration sub-unit 2040.
[0166] Specifically, the preset sampling data determination subunit 2010 is configured to determine Z batches of preset sampling data based on the P lesion sampling areas, the i-th sampling allocation weight, and the preset batch sampling quantity contained in the medical image sequence sample set, wherein each batch of preset sampling data includes P1 lesion sampling areas and grid enhancement parameters corresponding to each of the P1 lesion sampling areas, wherein P1≤P. The enhanced grid determination subunit 2020 is configured to, for each batch of preset sampling data in the Z batches of preset sampling data, perform an enhancement operation on the preliminary sampling grids corresponding to each of the P1 lesion sampling areas contained in the current preset sampling data and the grid enhancement parameters, and determine Q enhanced sampling grids corresponding to each of the P1 lesion sampling areas contained in the current preset sampling data. The single batch sub-combination sample determination subunit 2030 is configured to determine the sub-combination samples corresponding to the current preset sampling data based on the P1 lesion sampling areas contained in the current preset sampling data and the Q enhanced sampling grids corresponding to each of the P1 lesion sampling areas contained in the current preset sampling data. The Z batches of sub-combination samples integration sub-unit 2040 is configured to determine Z batches of sub-combination samples based on the sub-combination samples corresponding to the Z batches of preset sampling data.
[0167] Fig.21 The figure shows a schematic diagram of the structure of a model training device provided by another embodiment of the present application. Fig. 20 Based on the embodiment shown, Fig.21 The embodiment shown is described below in detail. Fig.21 The embodiment shown and Fig. 20 The differences and similarities of the illustrated embodiments are not described in detail.
[0168] like Fig.21 As shown, each batch of sub-combination sample determination sub-unit 2030 of the embodiment of the present application includes: an unlabeled sub-combination sample determination sub-unit 2031 , a labeled sub-combination sample determination sub-unit 2032 and a current sub-combination sample determination sub-unit 2033 .
[0169] Specifically, the lesion sampling area includes an unlabeled lesion sampling area and a labeled lesion sampling area. The unlabeled sub-combination sample determination subunit 2031 is configured to determine the unlabeled sub-combination sample corresponding to the current preset sampling data based on the P1 unlabeled lesion sampling areas included in the current preset sampling data and the Q enhanced sampling grids corresponding to the P1 unlabeled lesion sampling areas included in the current preset sampling data. The labeled sub-combination sample determination subunit 2032 is configured to determine the labeled sub-combination sample corresponding to the current preset sampling data based on the P1 labeled lesion sampling areas included in the current preset sampling data and the Q enhanced sampling grids corresponding to the P1 labeled lesion sampling areas included in the current preset sampling data, wherein the Q enhanced sampling grids corresponding to the P1 unlabeled lesion sampling areas are the same as the Q enhanced sampling grids corresponding to the P1 labeled lesion sampling areas. The current sub-combination sample determination subunit 2033 is configured to determine the sub-combination sample corresponding to the current preset sampling data based on the unlabeled sub-combination sample and the labeled sub-combination sample corresponding to the current preset sampling data.
[0170] Fig. 22 The figure shows a schematic diagram of the structure of a model training device provided by another embodiment of the present application. Fig.19 Based on the embodiment shown, Fig. 22 The embodiment shown is described below in detail. Fig. 22 The embodiment shown and Fig.19 The differences and similarities of the illustrated embodiments are not described in detail.
[0171] like Fig. 22 As shown, the preliminary grid determination subunit 1811 of the embodiment of the present application includes: a grid physical resolution determination subunit 2210, a grid spatial resolution determination subunit 2220, a single grid determination subunit 2230 and a grid integration subunit 2240.
[0172] Specifically, the medical image sequence sample set includes a plurality of medical image sequence samples. Each medical image sequence sample includes at least one lesion sampling region. The grid physical resolution determination subunit 2210 is configured to determine the physical spatial resolution of the preliminary sampling grid corresponding to the current lesion sampling region for each lesion sampling region among the P lesion sampling regions based on the image volume and physical spatial resolution corresponding to the current lesion sampling region. The grid spatial resolution determination subunit 2220 is configured to perform isotropic processing on the physical spatial resolution of the preliminary sampling grid to determine the spatial resolution of the preliminary sampling grid. The single grid determination subunit 2230 is configured to determine the preliminary sampling grid corresponding to the lesion sampling region based on the current lesion sampling region, the spatial resolution of the preliminary sampling grid, and the preset grid size. The grid integration subunit 2240 is configured to determine the preliminary sampling grids corresponding to each of the P lesion sampling regions based on the preliminary sampling grid corresponding to each lesion sampling region.
[0173] Fig.23 The figure shows a schematic diagram of the structure of a model training device provided by another embodiment of the present application. Fig. 22 Based on the embodiment shown, Fig.23 The embodiment shown is described below in detail. Fig.23 The embodiment shown and Fig. 22 The differences and similarities of the illustrated embodiments are not described in detail.
[0174] like Fig.23 As shown, the single grid determination subunit 2230 of the embodiment of the present application includes: a sampling center point determination subunit 2231 and a preliminary sampling grid determination subunit 2232 .
[0175] Specifically, the lesion sampling area includes a nodule lesion image. The sampling center point determination subunit 2231 is configured to determine the sampling center point based on the current lesion sampling area, and the sampling center point is located in the current lesion sampling area. The preliminary sampling grid determination subunit 2232 is configured to determine the preliminary sampling grid corresponding to the lesion sampling area based on the sampling center point, the medical image sequence sample to which the current lesion sampling area belongs, the spatial resolution of the preliminary sampling grid, and the preset grid size.
[0176] Fig.24 The figure shows a schematic diagram of the structure of a model training device provided by another embodiment of the present application. Fig.18 Based on the embodiment shown, Fig.24 The embodiment shown is described below in detail. Fig.24 The embodiment shown and Fig.18 The differences and similarities of the illustrated embodiments are not described in detail.
[0177] like Fig.24As shown, the batch training subunit 1820 of the embodiment of the present application includes: a single batch training subunit 1821, an edge detection subunit 1822, a Gaussian calculation subunit 1823 and a loss determination subunit 1824.
[0178] Specifically, the current sub-combination sample includes the current unlabeled sub-combination sample and the current labeled sub-combination sample. The single batch training sub-unit 1821 is configured to input the current unlabeled sub-combination sample into the initial network model or the nodule segmentation model obtained by the previous batch training, and obtain the nodule probability and nodule segmentation model of each pixel corresponding to the current unlabeled sub-combination sample. The edge detection sub-unit 1822 is configured to detect the nodule edge in the current unlabeled sub-combination sample based on the current labeled sub-combination sample using the edge detection algorithm, and obtain the gradient value of each pixel corresponding to the current labeled sub-combination sample. The Gaussian calculation sub-unit 1823 is configured to assign a loss weight to each pixel corresponding to the current unlabeled sub-combination sample based on the gradient value of each pixel corresponding to the current labeled sub-combination sample using the Gaussian algorithm, and obtain the loss weight of each pixel corresponding to the current unlabeled sub-combination sample. The loss determination sub-unit 1824 is configured to determine the sub-loss result corresponding to the current sub-combination sample based on the nodule probability of each pixel corresponding to the current unlabeled sub-combination sample and the loss weight of each pixel corresponding to the current unlabeled sub-combination sample.
[0179] Fig.25 FIG. 1 is a schematic diagram of the structure of an image segmentation device provided by an embodiment of the present application. Fig.15 As shown, the image segmentation device 2500 includes: a nodule segmentation model acquisition module 2510 and a nodule segmentation module 2520.
[0180] Specifically, the nodule segmentation model acquisition module 2510 is configured to obtain an optimal nodule segmentation model based on the model training method mentioned in the first aspect. The nodule segmentation module 2520 is configured to perform nodule segmentation on the medical image block to be detected using the optimal nodule segmentation model to obtain a feature probability map corresponding to the medical image block to be detected, and the feature probability map includes the nodule segmentation probability of each pixel in the medical image block to be detected.
[0181] Exemplary Electronic Devices
[0182] Fig.26 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Fig.26 As shown, the electronic device 2600 includes: one or more processors 2601 and a memory 2602; and computer program instructions stored in the memory 2602. When the computer program instructions are executed by the processor 2601, the processor 2601 executes a model training method and / or an image segmentation method as in any of the above-mentioned embodiments.
[0183] The processor 2601 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0184] The memory 2602 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on a computer-readable storage medium, and the processor 2601 may execute the program instructions to implement the steps in the model training method and / or image segmentation method of each embodiment of the present application described above and / or other desired functions.
[0185] In one example, the electronic device 2600 may further include: an input device 2603 and an output device 2604, which are connected via a bus system and / or other forms of connection mechanisms ( Fig.26 ) interconnected.
[0186] In addition, the input device 2603 may also include, for example, a keyboard, a mouse, a microphone, etc.
[0187] The output device 2604 can output various information to the outside, and can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.
[0188] Of course, to simplify, Fig.26 Only some of the components related to the present application in the electronic device 2600 are shown, and components such as a bus, an input device / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device 2600 may also include any other appropriate components.
[0189] Exemplary computer-readable storage media
[0190] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, including computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the model training method and / or image segmentation method of any of the above-mentioned embodiments.
[0191] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0192] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the model training method and / or image segmentation method according to various embodiments of the present application described in the above “Exemplary Method” section of this specification.
[0193] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0194] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.
[0195] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.
[0196] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0197] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0198] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
[0199] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A model training method, characterized in that: include: Perform N sampling on P lesion sampling areas included in the medical image sequence sample set to obtain N combined samples, and train the initial network model based on the N combined samples to obtain the loss results and nodule segmentation models corresponding to the N trainings, wherein each of the combined samples corresponds to a sampling allocation weight, each of the combined samples includes lesion samples with S lesion attributes, and the sampling allocation weight is the ratio of the number of lesion samples corresponding to each of the S lesion attributes to the total number of lesion samples included in the combined sample, and P, N, and S are all positive integers; Based on the loss results corresponding to each of the N training times, the optimal nodule segmentation model among the nodule segmentation models corresponding to each of the N training times is determined, wherein the nodule segmentation models corresponding to each of the N training times include at least one non-overfitted nodule segmentation model, and the optimal nodule segmentation model is the non-overfitted nodule segmentation model corresponding to the smallest loss result among the loss results corresponding to each of the at least one non-overfitted nodule segmentation model.
2. The model training method according to claim 1, characterized in that: The method of sampling the P lesion sampling areas included in the medical image sequence sample set N times to obtain N combined samples, and training the initial network model based on the N combined samples to obtain the loss results and nodule segmentation model corresponding to the N training times, includes: Based on the P lesion sampling areas and the i-th sampling allocation weight contained in the medical image sequence sample set, the i-th combined sample is sampled, where i∈[2,N]; Based on the i-th combined sample, the initial network model is trained for the i-th time to determine the loss result and nodule segmentation model corresponding to the i-th training, wherein the i-th sampling allocation weight is determined based on the loss result corresponding to the i-1-th training, the i-1-th sampling allocation weight and the preset weight adjustment parameter.
3. The model training method according to claim 2, characterized in that: The method further includes: before sampling the P lesion sampling areas and the i-th sampling weight contained in the medical image sequence sample set and obtaining the i-th combined sample: Based on M trial trainings, the first sampling allocation weight and the preset weight adjustment parameter are determined.
4. The model training method according to claim 3, characterized in that: The determining of the first sampling allocation weight and the preset weight adjustment parameter based on M trial trainings includes: Based on the P lesion sampling areas and M preset trial sampling allocation weights corresponding to the medical image sequence sample set, sampling is performed to obtain trial combination samples corresponding to the M preset trial sampling allocation weights, wherein each of the trial combination samples includes lesion samples with S lesion attributes, and the preset trial sampling allocation weight is the ratio of the number of lesion samples corresponding to each of the S lesion attributes to the total number of lesion samples included in the trial combination sample, and M is a positive integer; Based on the trial combination samples corresponding to the M preset trial sampling allocation weights, respectively perform the M trial trainings on the initial network model, and determine the loss results corresponding to the M trial trainings; Based on the loss results corresponding to the M training trials, the first sampling allocation weight and the preset weight adjustment parameters are determined.
5. The model training method according to claim 2, characterized in that: The method of sampling the P lesion sampling areas and the i-th sampling allocation weight contained in the medical image sequence sample set to obtain the i-th combined sample includes: Based on the P lesion sampling areas included in the medical image sequence sample set, the i-th sampling allocation weight, and the preset batch sampling quantity, Z batches of sub-combination samples are determined, wherein the i-th combination sample includes the Z batches of sub-combination samples; The step of training the initial network model for the i-th time based on the i-th combined sample and determining the loss result and nodule segmentation model corresponding to the i-th training includes: For each batch of sub-combination samples in the Z batches of sub-combination samples, Based on the current sub-combination sample, batch training is performed on the initial network model or the nodule segmentation model obtained by the previous batch training to determine the sub-loss result and the nodule segmentation model corresponding to the current sub-combination sample; Based on the sub-loss results and nodule segmentation models corresponding to each of the Z batches of sub-combination samples, the loss result and nodule segmentation model corresponding to the i-th training are determined.
6. The model training method according to claim 5, characterized in that: The method of determining Z batches of sub-combination samples based on the P lesion sampling areas, the i-th sampling allocation weight, and the preset batch sampling quantity included in the medical image sequence sample set includes: Based on the P lesion sampling regions included in the medical image sequence sample set, determining preliminary sampling grids corresponding to each of the P lesion sampling regions; Based on the P lesion sampling areas contained in the medical image sequence sample set, the i-th sampling allocation weight, the preliminary sampling grids corresponding to each of the P lesion sampling areas, the preset batch sampling number, and the preset grid enhancement parameters of each batch, Z batches of sub-combination samples are determined.
7. The model training method according to claim 6, characterized in that: The method of determining Z batches of sub-combination samples based on the P lesion sampling areas included in the medical image sequence sample set, the i-th sampling allocation weight, the preliminary sampling grids corresponding to the P lesion sampling areas, the preset batch sampling quantity, and the grid enhancement parameters of each batch, comprises: Based on the P lesion sampling areas, the i-th sampling allocation weight, and the preset batch sampling quantity contained in the medical image sequence sample set, Z batches of preset sampling data are determined, wherein each batch of preset sampling data includes P1 lesion sampling areas and grid enhancement parameters corresponding to the P1 lesion sampling areas, wherein P1≤P; For each batch of preset sampling data in the Z batches of preset sampling data, Based on the preliminary sampling grids and grid enhancement parameters corresponding to the P1 lesion sampling areas respectively included in the current preset sampling data, an enhancement operation is performed on the preliminary sampling grids corresponding to the P1 lesion sampling areas respectively included in the current preset sampling data, and Q enhanced sampling grids corresponding to the P1 lesion sampling areas respectively included in the current preset sampling data are determined; Determine a sub-combination sample corresponding to the current preset sampling data based on the P1 lesion sampling areas included in the current preset sampling data and the Q enhanced sampling grids corresponding to the P1 lesion sampling areas included in the current preset sampling data; Based on the sub-combination samples corresponding to each of the Z batches of preset sampling data, Z batches of sub-combination samples are determined.
8. The model training method according to claim 7, characterized in that: The lesion sampling area includes an unlabeled lesion sampling area and a labeled lesion sampling area, and the determining of the sub-combination samples corresponding to the current preset sampling data based on the P1 lesion sampling areas included in the current preset sampling data and the Q enhanced sampling grids corresponding to the P1 lesion sampling areas included in the current preset sampling data, includes: Determine the unlabeled sub-combination samples corresponding to the current preset sampling data based on the P1 unlabeled lesion sampling regions included in the current preset sampling data and the Q enhanced sampling grids corresponding to the P1 unlabeled lesion sampling regions included in the current preset sampling data; Based on the P1 annotated lesion sampling areas included in the current preset sampling data and the Q enhanced sampling grids corresponding to each of the P1 annotated lesion sampling areas included in the current preset sampling data, determining the annotated sub-combination sample corresponding to the current preset sampling data, wherein the Q enhanced sampling grids corresponding to each of the P1 unannotated lesion sampling areas are the same as the Q enhanced sampling grids corresponding to each of the P1 annotated lesion sampling areas; Based on the unlabeled sub-combination samples and the labeled sub-combination samples corresponding to the current preset sampling data, the sub-combination samples corresponding to the current preset sampling data are determined.
9. The model training method according to claim 6, characterized in that: The medical image sequence sample set includes a plurality of medical image sequence samples, each of the medical image sequence samples includes at least one lesion sampling region, and determining preliminary sampling grids corresponding to the P lesion sampling regions based on the P lesion sampling regions corresponding to the medical image sequence sample set includes: For each lesion sampling area among the P lesion sampling areas, Determining the physical spatial resolution of the preliminary sampling grid corresponding to the current lesion sampling area based on the image volume and the physical spatial resolution corresponding to the current lesion sampling area; Performing isotropic processing on the physical spatial resolution of the preliminary sampling grid to determine the spatial resolution of the preliminary sampling grid; Determine a preliminary sampling grid corresponding to the lesion sampling area based on the current lesion sampling area, the spatial resolution of the preliminary sampling grid, and a preset grid size; Based on the preliminary sampling grid corresponding to each of the lesion sampling regions, the preliminary sampling grids corresponding to each of the P lesion sampling regions are determined.
10. The model training method according to claim 9, characterized in that: The lesion sampling area includes a nodule lesion image, and determining the preliminary sampling grid corresponding to the lesion sampling area based on the current lesion sampling area, the spatial resolution of the preliminary sampling grid, and a preset grid size includes: Determine a sampling center point based on the current lesion sampling area, wherein the sampling center point is located within the current lesion sampling area; Based on the sampling center point, the medical image sequence sample to which the current lesion sampling area belongs, the spatial resolution of the preliminary sampling grid, and a preset grid size, a preliminary sampling grid corresponding to the lesion sampling area is determined.
11. The model training method according to claim 5, characterized in that: The current sub-combination samples include current unlabeled sub-combination samples and current labeled sub-combination samples. The batch training is performed on the initial network model or the nodule segmentation model obtained by the previous batch training based on the current sub-combination samples to determine the sub-loss results and nodule segmentation model corresponding to the current sub-combination samples, including: Inputting the current unlabeled sub-combination sample into the initial network model or the nodule segmentation model obtained by the previous batch training to obtain a nodule probability and a nodule segmentation model for each pixel corresponding to the current unlabeled sub-combination sample; Using an edge detection algorithm, based on the currently labeled sub-combination sample, detect the nodule edge in the currently unlabeled sub-combination sample to obtain a gradient value of each pixel corresponding to the currently labeled sub-combination sample; Using the Gaussian algorithm, based on the gradient value of each pixel corresponding to the current labeled sub-combination sample, a loss weight is assigned to each pixel corresponding to the current unlabeled sub-combination sample to obtain the loss weight of each pixel corresponding to the current unlabeled sub-combination sample; Based on the nodule probability of each pixel corresponding to the current unlabeled sub-combination sample and the loss weight of each pixel corresponding to the current unlabeled sub-combination sample, a sub-loss result corresponding to the current sub-combination sample is determined.
12. The model training method according to any one of claims 1 to 11, characterized in that: The S types of lesion attributes include: S1 types of preset nodule sizes and S2 types of preset nodule morphologies.
13. An image segmentation method, characterized in that: include: Obtaining an optimal nodule segmentation model based on the model training method described in any one of claims 1 to 12; The optimal nodule segmentation model is used to perform nodule segmentation on the medical image block to be detected, and a feature probability map corresponding to the medical image block to be detected is obtained, wherein the feature probability map includes the nodule segmentation probability of each pixel in the medical image block to be detected.
14. A model training device, characterized in that: include: A segmentation model training module is configured to perform N samplings on P lesion sampling areas included in a medical image sequence sample set to obtain N combined samples, and train the initial network model based on the N combined samples to obtain loss results and nodule segmentation models corresponding to the N trainings, wherein each of the combined samples corresponds to a sampling allocation weight, each of the combined samples includes lesion samples of S lesion attributes, and the sampling allocation weight is the ratio of the number of lesion samples corresponding to each of the S lesion attributes to the total number of lesion samples included in the combined sample, and P, N, and S are all positive integers; The segmentation model determination module is configured to determine the optimal nodule segmentation model among the nodule segmentation models corresponding to the N training times based on the loss results corresponding to the N training times, wherein the nodule segmentation models corresponding to the N training times include at least one non-overfitted nodule segmentation model, and the optimal nodule segmentation model is the non-overfitted nodule segmentation model corresponding to the smallest loss result among the loss results corresponding to the at least one non-overfitted nodule segmentation model.
15. An image segmentation device, characterized in that: include: A nodule segmentation model acquisition module, configured to obtain an optimal nodule segmentation model based on the model training method according to any one of claims 1 to 12; The nodule segmentation module is configured to use the optimal nodule segmentation model to perform nodule segmentation on the medical image block to be detected, and obtain a feature probability map corresponding to the medical image block to be detected, wherein the feature probability map includes the nodule segmentation probability of each pixel in the medical image block to be detected.
16. A computer-readable storage medium, characterized in that: The storage medium stores instructions, which, when executed by a processor of an electronic device, enable the electronic device to execute the model training method described in any one of claims 1 to 12 and / or the image segmentation method described in claim 13.
17. An electronic device, characterized in that: The electronic device comprises: processor; memory for storing computer executable instructions; The processor is used to execute the computer-executable instructions to implement the model training method described in any one of claims 1 to 12 and / or the image segmentation method described in claim 13.
Citation Information
Patent Citations
A citizen mediation case classification system and method based on feature migration and adaptive learning
CN109446332A
Object detection model training method and target object detection method
CN109697460A
Tumor image segmentation method and device, and terminal equipment
CN110533676A
Focus image sample determination method based on artificial intelligence and related device
CN111429414A
Deep neural network pruning method and system based on random sensitivity ST-SM
CN112884149A
