Medical image processing method, device and medium based on deep learning
Through the medical image processing method based on deep learning, the area of interest in the medical image is optimized to solve the problem that is difficult for doctors to diagnose, reduce the need for re-scanning, and improve the efficiency and safety of diagnosis.
Patent Information
- Application Number
- CN202111235591.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-22
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-10-22
AI Technical Summary
In medical image processing, factors such as the patient's voluntary movement, bleeding at the scan site, or the lack of obvious key diagnostic areas in the image make it difficult for doctors to make an accurate diagnosis, which usually requires re-scanning, increasing the burden on doctors and patients, and causing radiation to the patient. harm.
A medical image processing method based on deep learning is used to obtain the area of interest in the initial medical image and perform optimization processing, including repair or suppression processing, to generate a target medical image so that doctors can diagnose lesions better and faster and reduce the need for rescans. need.
This method helps doctors quickly and accurately diagnose lesions in images, reduces the burden on radiologists and patients, shortens the medical treatment process, saves costs, and reduces patients' radiation exposure.
Smart Images

Figure CN113792736B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a medical image processing method, device and medium based on deep learning. Background Art
[0002] Medical imaging technology is an important way to check and screen for various diseases. For example, diffusion-weighted imaging (DWI) is the only non-invasive method that can detect the diffusion movement of water molecules in living tissues and is mainly used for the diagnosis of ultra-early cerebral ischemia.
[0003] However, in actual applications, there may be various unfavorable factors in the scanned medical images that affect the doctor's diagnosis. For example, the patient's autonomous movement may cause artifacts in the image, bleeding in the scanned area may make it difficult for the doctor to accurately identify the image, or the key diagnostic area in the image may not be obvious (for example, the bladder area exists in the prostate DWI image, which makes the prostate area not prominent, affecting the doctor's observation). In this case, the patient usually needs to be rescanned, which not only increases the burden on radiologists and patients, but also the radiation generated by each scan will cause harm to the patient. Summary of the invention
[0004] In view of the problem in the prior art that medical images affect doctors' diagnosis and need to be re-scanned, the present invention provides a medical image processing method, device and medium based on deep learning.
[0005] In order to achieve the above object, the present invention provides a medical image processing method based on deep learning, comprising:
[0006] Acquiring an initial medical image;
[0007] Acquire a region of interest that affects diagnosis in the initial medical image;
[0008] By optimizing the region of interest, a target medical image corresponding to the initial medical image is obtained.
[0009] Preferably, the step of optimizing the region of interest to obtain a target medical image corresponding to the initial medical image comprises:
[0010] By performing restoration processing or suppression processing on the region of interest, a target medical image corresponding to the initial medical image is obtained.
[0011] Preferably, the step of optimizing the region of interest to obtain a target medical image corresponding to the initial medical image comprises:
[0012] Acquire a mask image of the region of interest;
[0013] Based on the initial medical image, obtaining a first image feature;
[0014] Based on the mask image, obtaining a second image feature having the same dimension as the first image feature;
[0015] The target medical image is generated based on the first image feature and the second image feature.
[0016] Preferably, generating the target medical image based on the first image feature and the second image feature includes:
[0017] fusing the first image feature and the second image feature to obtain a fused feature;
[0018] Based on the fused features, the target medical image is generated by a pre-trained image generation model.
[0019] Preferably, the image generation model is trained based on a pre-acquired data set, wherein the data set includes a plurality of training images and a gold standard corresponding to the training images, wherein the gold standard is a restored gold standard image or a suppressed gold standard image.
[0020] Preferably, the acquiring the second image feature based on the mask image includes:
[0021] The initial medical image and the mask image are subjected to feature extraction and compression processing to obtain the second image features.
[0022] Preferably, when optimizing the region of interest, the method further comprises:
[0023] The scanning parameters of the initial medical image are converted according to the input first target scanning parameters.
[0024] Preferably, when the initial medical image does not include the region of interest, the method further comprises:
[0025] The scanning parameters of the initial medical image are converted according to the input second target scanning parameters.
[0026] In order to achieve the above object, the present invention also provides a medical image processing method based on deep learning, comprising:
[0027] Acquiring an initial medical image;
[0028] The scanning parameters of the initial medical image are converted according to the input target scanning parameters to obtain a converted medical image corresponding to the initial medical image.
[0029] Preferably, the method further comprises:
[0030] Acquire a region of interest that affects diagnosis in the initial medical image;
[0031] By optimizing the region of interest, a target medical image corresponding to the initial medical image is obtained.
[0032] Preferably, the step of optimizing the region of interest to obtain a target medical image corresponding to the initial medical image comprises:
[0033] By performing restoration processing or suppression processing on the region of interest, a target medical image corresponding to the initial medical image is obtained.
[0034] Preferably, the step of optimizing the region of interest to obtain a target medical image corresponding to the initial medical image comprises:
[0035] Acquire a mask image of the region of interest;
[0036] Based on the initial medical image, obtaining a first image feature;
[0037] Based on the mask image, obtaining a second image feature having the same dimension as the first image feature;
[0038] The target medical image is generated based on the first image feature and the second image feature.
[0039] Preferably, generating the target medical image based on the first image feature and the second image feature includes:
[0040] fusing the first image feature and the second image feature to obtain a fused feature;
[0041] Based on the fused features, the target medical image is generated by a pre-trained image generation model.
[0042] Preferably, the image generation model is trained based on a pre-acquired data set, wherein the data set includes a training image and a gold standard corresponding to the training image, wherein the gold standard is a restored gold standard image or a suppressed gold standard image.
[0043] Preferably, the acquiring the second image feature based on the mask image includes:
[0044] The initial medical image and the mask image are subjected to feature extraction and compression processing to obtain the second image feature. In order to achieve the above object, the present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.
[0045] In order to achieve the above object, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and the computer program implements the above method when executed by a processor.
[0046] By adopting the above technical solution, the present invention has the following beneficial effects:
[0047] The present invention obtains the region of interest that affects diagnosis in the initial medical image and optimizes the region of interest to obtain a target medical image corresponding to the initial medical image, thereby helping doctors to diagnose lesions in the image better and faster, and no longer need to rescan the patient, which not only reduces the burden on radiologists and patients, shortens the medical consultation process, saves costs, and reduces the harm caused by radiation to patients. In addition, the present invention only optimizes the region of interest that affects diagnosis, and the optimization efficiency is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 This is a flowchart of a medical image processing method based on deep learning according to Embodiment 1 of the present invention;
[0049] Figure 2 This is a training flow chart of the multi-task learning model in Example 1 of the present invention;
[0050] Figure 3 This is a flowchart for implementing step S13 in Example 1 of the present invention;
[0051] Figure 4 This is a flowchart for implementing step S134 in Embodiment 1 of the present invention;
[0052] Figure 5 This is a training flow chart of the image generation model in Example 1 of the present invention;
[0053] Figure 6 This is a training flow chart of the image generation model in Example 2 of the present invention;
[0054] Figure 7 This is a flowchart of a medical image processing method based on deep learning according to Embodiment 3 of the present invention;
[0055] Figure 8 This is a flow chart for implementing step S14 in embodiment 3 of the present invention;
[0056] Fig. 9 The training flow chart of the parameter conversion model in Embodiment 3 of the present invention is implemented;
[0057] Fig.10 This is a structural block diagram of a medical image processing system based on deep learning according to Embodiment 5 of the present invention;
[0058] Fig.11 This is a hardware architecture diagram of an electronic device according to Embodiment 6 of the present invention. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0060] It should be noted that the terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure. The singular forms "a", "said" and "the" used in the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0061] Example 1
[0062] This embodiment provides a medical image processing method based on deep learning, such as Figure 1 As shown, the method specifically comprises the following steps:
[0063] S11, obtaining an initial medical image.
[0064] In this embodiment, the initial medical image refers to an image obtained by scanning according to medical imaging technology, that is, a medical image obtained by scanning a scanning part by a medical imaging device, such as an MR image (such as a DWI image), a CT image, a T2W image, etc. The scanning part may include tissues, organs, etc. of a living body.
[0065] S12, obtaining a region of interest that affects diagnosis in the initial medical image.
[0066] In this embodiment, a pre-trained multi-task learning model can be used to obtain the region of interest that affects diagnosis in the initial medical image, wherein the region of interest that affects diagnosis can be an artifact or noise region in the image, or other regions in the image except the key diagnosis part.
[0067] In the specific implementation process, after the initial medical image is input into the multi-task learning model, the multi-task learning model determines whether the initial medical image affects the diagnosis, and outputs a mask map of the region of interest that affects the diagnosis when the initial medical image affects the diagnosis.
[0068] Among them, in this embodiment, when training the multi-task learning model, such as Figure 2 As shown, the specific training process is as follows:
[0069] S21, obtaining a number of first training images, and labeling each first training image as to whether it affects the diagnosis (for example, when the first training image does not affect the diagnosis, the label is marked as 0, otherwise, the label is marked as 1), and at the same time marking a mask of a region of interest that affects the diagnosis in each first training image that affects the diagnosis, to obtain a corresponding first gold standard.
[0070] S22, inputting the first training image into the multi-task learning model to be trained for processing, the multi-task learning model outputs a judgment result of whether the first training image affects the diagnosis, and outputs a mask map of the region of interest that affects the diagnosis when the first training image affects the diagnosis;
[0071] S23: Calculate a corresponding first loss function according to the result output by the multi-task learning model and the first gold standard. The first loss function is used to characterize the error between the result output by the multi-task learning model and the first gold standard.
[0072] S24, iteratively training the multi-task learning model according to the first loss function until a preset first training termination condition is met.
[0073] Since the multi-task learning model learns the first gold standard during the training process, and the first gold standard includes both the label of whether each first training image affects the diagnosis and the mask of the region of interest when the first training image affects the diagnosis, the multi-task learning model trained through the above steps can accurately determine whether the initial medical image affects the diagnosis, and can accurately output the mask map of the region of interest that affects the diagnosis when the initial medical image affects the diagnosis.
[0074] It should be noted that there may be some areas in the training images with artifacts or distortions, but they do not affect the doctor's diagnosis. For these areas, they are not marked as regions of interest that affect the diagnosis.
[0075] In this embodiment, the multi-task learning model refers to a learning model that can complete multiple tasks at the same time, such as being able to complete image classification and segmentation tasks at the same time as described above. It should be understood that the multi-task learning model of this embodiment can also complete other tasks as needed, and only needs to perform corresponding learning during training. Among them, the multi-task learning model can be implemented using many models in natural image processing technology (such as the MASK R-CNN model).
[0076] S13, obtaining a target medical image corresponding to the initial medical image by optimizing the region of interest.
[0077] It can be seen that this embodiment obtains the region of interest that affects the diagnosis in the initial medical image and optimizes the region of interest to obtain a target medical image corresponding to the initial medical image. Therefore, it can help doctors diagnose lesions better and faster, and there is no need to rescan the patient, which not only reduces the burden on radiologists and patients, shortens the medical consultation process, saves costs, and reduces the damage caused by radiation to patients. In addition, the present invention only optimizes the region of interest that affects the diagnosis, and does not optimize certain areas that do not affect the doctor's diagnosis even if there are artifacts or distortions, thereby improving the optimization efficiency.
[0078] In this embodiment, step S13 obtains a target medical image corresponding to the initial medical image by performing a repair process or a suppression process on the region of interest. Specifically, when the region of interest includes an artifact or noise region in the image, the region of interest is optimized by performing a repair process on the region of interest, so that the region of interest is repaired into a clear image for easy identification by doctors; when the region of interest is other regions in the image except for the key diagnostic part, the region of interest is optimized by performing a suppression process on the region of interest, so that the region of interest is processed into a simple background (such as a solid color background), so that the key diagnostic part is highlighted for easy observation by doctors.
[0079] In this embodiment, if Figure 3 As shown, whether the region of interest is repaired or suppressed, step S13 can be implemented by the following steps:
[0080] S131, obtaining a mask image of the region of interest.
[0081] In this embodiment, the mask map of the region of interest can be obtained by acquiring the output result of the aforementioned multi-task learning model.
[0082] S132: Based on the initial medical image, obtain a first image feature.
[0083] In this embodiment, the encoding module of the pre-trained identity mapping model can be used as a feature extractor to extract high-dimensional features of the initial medical image, which are recorded as first image features.
[0084] The identity mapping model in this embodiment can be implemented by a convolutional neural network or an autoencoder model in the field of image mapping. The autoencoder model includes an encoding module and a decoding module, and the convolutional neural network can be designed to include a downsampling structure and an upsampling structure, the downsampling structure can be used as an encoding module, and the upsampling module can be used as a decoding module.
[0085] When training the identity mapping model, corresponding constraints (i.e., loss function) can be added to make the identity mapping model compatible with the registration function.
[0086] S133: Based on the mask image, obtain a second image feature having the same dimension as the first image feature.
[0087] In this embodiment, the second image feature can be obtained in two ways: Method 1, using a pre-trained feature compression model to directly perform feature extraction and compression processing on the mask image to obtain the second image feature; Method 2, using a feature compression model to perform feature extraction and compression processing on the initial medical image and the mask image to obtain the second image feature. Specifically, firstly, the area corresponding to the mask image is extracted from the initial medical image, and then the extracted area is subjected to feature extraction and compression processing by the feature compression model. Among them, Method 1 is conducive to removing the interference of the original image information in the mask image, and Method 2 is conducive to retaining and emphasizing the information of the original image in the mask. The specific selection of which method depends on the task requirements. For example, if the region of interest needs to be suppressed, Method 1 is better, and if the region of interest needs to be repaired, Method 2 is better.
[0088] Specifically, the feature compression model can reuse the encoding module of the aforementioned identity mapping model, or it can be implemented using a feature extractor trained in the visual field, and this implementation does not impose any specific restrictions on this.
[0089] S134: Generate the target medical image based on the first image feature and the second image feature.
[0090] This embodiment obtains the mask map of the region of interest, and based on the initial medical image, obtains the first image feature, and based on the mask map, obtains the second image feature with the same dimension as the first image feature; finally, based on the first image feature and the second image feature, a target medical image is generated. Since the first image feature reflects the overall feature of the initial medical image and the second image feature reflects the local image feature of the mask map of the region of interest, the target medical image is generated by combining the first image feature and the second image feature, which can improve the accuracy of the target medical image and help doctors diagnose lesions better and faster.
[0091] In this embodiment, if Figure 4 As shown, the specific implementation process of step S134 is as follows:
[0092] S1341: Fuse the first image feature and the second image feature to obtain a fused feature.
[0093] In this embodiment, the fusion of the first image feature and the second image feature can be achieved by correspondingly splicing, adding or multiplying the first image feature and the second image feature. Splicing refers to splicing the first image feature and the second image feature of the corresponding pixel points to obtain the fusion feature, adding refers to adding the first image feature and the second image feature of the corresponding pixel points to obtain the fusion feature, and multiplying refers to multiplying the first image feature and the second image feature of the corresponding pixel points to obtain the fusion feature.
[0094] S1342: Generate the target medical image through a pre-trained image generation model based on the fusion features.
[0095] In this embodiment, the generated target medical image is an image obtained by optimizing the initial medical image.
[0096] This embodiment can facilitate image generation model processing by fusing the first image feature and the second image feature. At the same time, because the image generation model has been trained in advance, it can accurately generate a target medical image corresponding to the fused feature.
[0097] In this embodiment, if Figure 5 As shown, the training process of the image generation model is as follows:
[0098] S31, acquiring a data set, the data set comprising a second training image and a second gold standard corresponding to the second training image. When the trained image generation model is for repairing the region of interest, the second gold standard comprises the repair gold standard image corresponding to the second training image; when the trained image generation model is for suppressing the region of interest, the second gold standard comprises the suppression gold standard image corresponding to the second training image.
[0099] S32, obtaining the region of interest in the second training image, and obtaining the fusion features corresponding to the second training image according to the following steps: obtaining a mask map of the region of interest in the second training image; obtaining a third image feature based on the second training image, and obtaining a fourth image feature having the same dimension as the third image feature based on the mask map of the region of interest in the second training image; fusing the third image feature with the fourth image feature to obtain the fusion features corresponding to the second training image.
[0100] S33, inputting the fusion features corresponding to the second training image into the image generation model to be trained for processing, and the image generation model will output the predicted medical image corresponding to the second training image.
[0101] S34, calculating a corresponding second loss function according to the result output by the image generation model and the second gold standard. The second loss function is used to characterize the error between the result output by the image generation model and the second gold standard.
[0102] S35, iteratively training the image generation model according to the second loss function until a preset second training termination condition is met.
[0103] This embodiment uses the second loss function calculated according to the results output by the image generation model and the second gold standard to perform supervised learning, and iteratively trains the image generation model so that the model can well learn the features in the second gold standard, and finally trains to obtain an accurate image generation model.
[0104] In addition, since it is difficult to obtain a large number of well-paired sample pairs in the medical field (generally not many patients are willing to undergo repeated scans), the image generation model is preferably trained using an unpaired data set, and the trained model is an unpaired image generation model.
[0105] Specifically, an unpaired dataset refers to a scanned image in which the second training image does not match the corresponding gold standard, and the two can come from different patients. For example, the second training image is a DWI image of the prostate region of patient A, and its corresponding gold standard is a DWI image of the prostate region of patient B, wherein the second training image affects the doctor's diagnosis, while its corresponding gold standard does not affect the doctor's diagnosis. The theoretical basis for using an unpaired dataset to train an image generation model is that the tissue structure characteristics of the same part of different patients are similar.
[0106] This embodiment uses an unpaired data set to train an image generation model, so that the trained image generation model can use similar tissue structure features in big data to repair images, thereby effectively repairing medical images without the need for a large amount of paired data, thereby overcoming the defect that it is difficult to obtain a large amount of well-paired data in medical imaging.
[0107] Specifically, the image generation model in this embodiment can be implemented using an unpaired image generation adversarial network.
[0108] In addition, when a medical training image with different scanning parameters and modalities from the second training image is added as an input image during training, the image generation model can be assisted in training with the help of information from the gold standard with different scanning parameters and different modalities, thereby improving the accuracy of the image generation model.
[0109] Example 2
[0110] In the actual medical imaging process, different hospitals may set different scanning parameters for different parts or different diseases. For example, for DWI images, the setting of B value is particularly important, and a reasonable B value setting can improve the ability to detect lesions. However, for a specific patient, specific part, and specific disease, the setting of B value is not unique, and doctors with many years of film reading experience are needed to give good advice, otherwise it may be necessary to repeat or take multiple films to obtain the desired DWI image.
[0111] In this regard, this embodiment makes further improvements on the basis of Embodiment 1. Specifically, when the target scanning parameters (referred to as the first target scanning parameters in this embodiment) input by the user are received before step S13, this embodiment can also convert the original scanning parameters of the initial medical image according to the input first target scanning parameters while optimizing the region of interest in step S13, so that the scanning parameters of the obtained target medical image are converted to the first target scanning parameters.
[0112] In this regard, this embodiment can train the image generation model used in step S1342 based on the idea of multi-task learning so that it can simultaneously convert the scanning parameters of the initial medical image while optimizing the region of interest, such as Figure 6 As shown, the specific training process is as follows:
[0113] S41, acquiring a data set, the data set comprising a plurality of second training images and a third gold standard corresponding to the second training image. The third gold standard comprises a repaired gold standard image or a suppressed gold standard image corresponding to the second training image, wherein a scanning parameter of the repaired gold standard image or the suppressed gold standard image is the first target scanning parameter and does not affect diagnosis, and a scanning parameter of the training image is the original scanning parameter.
[0114] S42, obtaining the region of interest in the second training image, and obtaining the fusion features corresponding to the second training image according to the following steps: obtaining a mask map of the region of interest in the second training image; obtaining a third image feature based on the second training image, and obtaining a fourth image feature having the same dimension as the third image feature based on the mask map of the region of interest in the second training image; fusing the third image feature with the fourth image feature to obtain the fusion features corresponding to the second training image.
[0115] S43, inputting the fusion features corresponding to the second training image into the image generation model to be trained for processing, and the image generation model outputs a predicted medical image corresponding to the second training image;
[0116] S44, calculating a corresponding third loss function according to the result output by the image generation model and the third gold standard. The third loss function is used to characterize the error between the result output by the image generation model and the third gold standard.
[0117] S45, iteratively training the image generation model according to the third loss function until a preset third training termination condition is met.
[0118] The image generation model trained through the above steps can optimize the region of interest while simultaneously converting the scanning parameters of the initial medical image.
[0119] In addition, when training the image generation model, corresponding constraints (i.e., loss functions) can be added to ensure that the diagnostic results of medical images before and after the optimization and scanning parameter conversion remain unchanged or improved.
[0120] This embodiment converts the scanning parameters of the initial medical image according to the input first target scanning parameters while optimizing the region of interest, thereby obtaining a target medical image with specified scanning parameters, further avoiding multiple or repeated filming.
[0121] In an optional implementation, when a target modality input by a user is received before step S13, this embodiment can also convert the modality of the initial medical image according to the input target modality while optimizing the region of interest in step S13, so that the modality of the obtained target medical image is the target modality. In this regard, when the image generation model is trained using the above steps S41 to S45, the third gold standard should be replaced with a restoration gold standard image or a suppression gold standard image corresponding to the second training image and having the target modality.
[0122] For example, assuming that the initial medical image is a DWI image, when the target modality received from the user is T2W, the initial medical image is converted into the T2W modality while the region of interest of the initial medical image is optimized.
[0123] It can be seen that this implementation can simultaneously realize the image optimization function and the modality conversion function, meet the diverse needs of users, and improve the user experience.
[0124] Example 3
[0125] This embodiment is a further improvement on embodiment 1. Figure 7 As shown, in this embodiment, when the multi-task learning model determines that the initial medical image does not affect the diagnosis, that is, it does not need to be optimized, and receives the target scanning parameters input by the user (referred to as the second target scanning parameters in this embodiment), the medical image processing method may also include: S14, directly converting the scanning parameters of the initial medical image according to the input second target scanning parameters.
[0126] like Figure 8 As shown, the specific implementation process of step S14 is as follows:
[0127] S141, acquiring a first image feature based on the initial medical image.
[0128] In this embodiment, the high-dimensional features of the initial medical image can also be extracted through the encoding module of the pre-trained identity mapping model, which are recorded as the first image features.
[0129] S142, processing the first image feature and the second target scanning parameter by a pre-trained parameter conversion model to obtain a converted medical image corresponding to the initial medical image, wherein the scanning parameter of the initial medical image may be equal to or not equal to the scanning parameter of the converted medical image.
[0130] In this embodiment, the parameter conversion model can be implemented using a decoding module of a pre-trained identity mapping model.
[0131] This embodiment converts the scanning parameters of the initial medical image directly according to the input second target scanning parameters when the initial medical image does not include a region of interest that affects diagnosis, thereby realizing a separate image scanning parameter conversion function to meet different scanning parameter requirements.
[0132] like Fig. 9 As shown, this implementation can specifically adopt the following steps to train the parameter conversion model:
[0133] S51, acquiring a third training image and a fourth gold standard corresponding to the third training image, wherein the fourth gold standard includes a standard converted medical image corresponding to the third training image.
[0134] S52, obtaining a fifth image feature corresponding to the third training image, and inputting the fifth image feature corresponding to the third training image into a parameter conversion model to be trained for processing, and the parameter conversion model will output a converted medical image corresponding to the third training image.
[0135] S53: Calculate a corresponding fourth loss function according to the result output by the parameter conversion model and the fourth gold standard. The fourth loss function is used to characterize the error between the result output by the parameter conversion model and the fourth gold standard.
[0136] S54, iteratively training the parameter conversion model according to the fourth loss function until a preset fourth training termination condition is met.
[0137] This embodiment uses the fourth loss function calculated according to the results output by the parameter conversion model and the fourth gold standard to perform supervised learning, and iteratively trains the parameter conversion model so that the model can well learn the features in the fourth gold standard. The parameter conversion model finally trained can accurately convert the scanning parameters of the initial medical image.
[0138] Among them, the parameter conversion model can learn a certain conversion range according to the specific part or specific disease. For example, when the parameter conversion model is used to convert the head DWI image, the B value of the image is generally converted to 1000. Of course, the higher the B value, the more sensitive it is to diffuse motion, but the SNR decreases. For head DWI images, a B value higher than 1000 may improve the detection rate of insensitive lesions, but the efficiency provided is not obvious compared to the decrease in signal-to-noise ratio.
[0139] It should be noted that the tasks of each model in the aforementioned embodiments can be changed. For example, more tasks can be completed by adding different constraints. In addition, the models complement each other and can be used as verification tools or input tools for each other. The order can be adjusted or they can be used multiple times. For example, after calling the unpaired image generation model, the data after and before the generation can be input into the multi-task learning model respectively to detect whether the generated image affects the diagnosis.
[0140] Example 4
[0141] This embodiment provides a medical image processing method based on deep learning, which specifically includes the following steps:
[0142] Acquiring an initial medical image;
[0143] The scanning parameters of the initial medical image are converted according to the input target scanning parameters to obtain a converted medical image corresponding to the initial medical image.
[0144] This embodiment directly converts the scanning parameters of the initial medical image according to the input target scanning parameters, thereby realizing the image scanning parameter conversion function and meeting different scanning parameter requirements.
[0145] Preferably, the method further comprises:
[0146] Acquire a region of interest that affects diagnosis in the initial medical image;
[0147] By optimizing the region of interest, a target medical image corresponding to the initial medical image is obtained.
[0148] This embodiment obtains the target medical image corresponding to the initial medical image by obtaining the region of interest that affects the diagnosis in the initial medical image and optimizing the region of interest. Thus, it can help doctors diagnose lesions better and faster, and no longer need to rescan the patient, which not only reduces the burden on radiologists and patients, shortens the medical consultation process, saves costs, but also reduces the harm caused by radiation to patients.
[0149] Preferably, the step of optimizing the region of interest to obtain a target medical image corresponding to the initial medical image comprises:
[0150] By performing restoration processing or suppression processing on the region of interest, a target medical image corresponding to the initial medical image is obtained.
[0151] Preferably, the step of optimizing the region of interest to obtain a target medical image corresponding to the initial medical image comprises:
[0152] Acquire a mask image of the region of interest;
[0153] Based on the initial medical image, obtaining a first image feature;
[0154] Based on the mask image, obtaining a second image feature having the same dimension as the first image feature;
[0155] The target medical image is generated based on the first image feature and the second image feature.
[0156] Preferably, generating the target medical image based on the first image feature and the second image feature includes:
[0157] fusing the first image feature and the second image feature to obtain a fused feature;
[0158] Based on the fused features, the target medical image is generated by a pre-trained image generation model.
[0159] Preferably, the image generation model is trained based on a pre-acquired data set, wherein the data set includes a plurality of training images and a gold standard corresponding to the training images, wherein the gold standard is a restored gold standard image or a suppressed gold standard image.
[0160] Preferably, the acquiring the second image feature based on the mask image includes:
[0161] The initial medical image and the mask image are subjected to feature extraction and compression processing to obtain the second image features.
[0162] It should be noted that the specific implementation process of each step in this embodiment can refer to the relevant part of the description in Examples 1-3, which will not be repeated here.
[0163] Example 5
[0164] This embodiment provides a medical image processing system based on deep learning, such as Fig.10 As shown, the system includes:
[0165] An image acquisition module 11, used for acquiring an initial medical image;
[0166] A region acquisition module 12, used to acquire a region of interest that affects diagnosis in the initial medical image;
[0167] The optimization module 13 is used to obtain a target medical image corresponding to the initial medical image by optimizing the region of interest.
[0168] Preferably, the optimization module obtains a target medical image corresponding to the initial medical image by performing a repair process or a suppression process on the region of interest.
[0169] Preferably, the optimization module comprises:
[0170] A mask image acquisition unit, used to acquire a mask image of the region of interest;
[0171] A first feature acquisition unit, configured to acquire a first image feature based on the initial medical image;
[0172] A second feature acquisition unit, configured to acquire, based on the mask image, a second image feature having the same dimension as the first image feature;
[0173] An image generating unit is used to generate the target medical image based on the first image feature and the second image feature.
[0174] Preferably, the image generating unit is specifically used for:
[0175] fusing the first image feature and the second image feature to obtain a fused feature;
[0176] Based on the fused features, the target medical image is generated by a pre-trained image generation model.
[0177] Preferably, the image generation model is trained based on a pre-acquired data set, wherein the data set includes a training image and a gold standard corresponding to the training image, wherein the gold standard is a restored gold standard image or a suppressed gold standard image.
[0178] Preferably, the second feature acquisition unit is specifically used to perform feature extraction and compression processing on the initial medical image and the mask image to obtain the second image feature.
[0179] Preferably, the optimization module is further used to convert the scanning parameters of the initial medical image according to the input first target scanning parameters.
[0180] Preferably, the system further comprises: a conversion module 14, configured to convert the scanning parameters of the initial medical image according to the input second target scanning parameters when the initial medical image does not include the region of interest.
[0181] This embodiment obtains the region of interest that affects the diagnosis in the initial medical image and optimizes the region of interest to obtain a target medical image corresponding to the initial medical image. This can help doctors diagnose lesions better and faster, and no longer need to rescan patients, which reduces the burden on radiologists and patients, shortens the medical consultation process, saves costs, and reduces the harm caused by radiation to patients. In addition, the present invention only optimizes the region of interest that affects the diagnosis, and does not optimize certain areas that do not affect the doctor's diagnosis even if there are artifacts or distortions, thereby improving the optimization efficiency.
[0182] Example 6
[0183] The present embodiment provides an electronic device, which can be expressed in the form of a computing device (for example, a server device), including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor can implement the medical image processing method in Embodiment 1, 2, 3 or 4 of the present invention when executing the computer program.
[0184] Specifically, the medical image processing method comprises the following steps: obtaining an initial medical image; obtaining a region of interest that affects diagnosis in the initial medical image; and obtaining a target medical image corresponding to the initial medical image by optimizing the region of interest. Preferably, obtaining a target medical image corresponding to the initial medical image by optimizing the region of interest comprises: obtaining a target medical image corresponding to the initial medical image by performing a repair process or a suppression process on the region of interest. Further preferably, obtaining a target medical image corresponding to the initial medical image by optimizing the region of interest comprises: obtaining a mask map of the region of interest; obtaining a first image feature based on the initial medical image; obtaining a second image feature having the same dimension as the first image feature based on the mask map; and generating the target medical image based on the first image feature and the second image feature.
[0185] Fig.11 FIG. 4 shows a schematic diagram of the hardware structure of this embodiment. Fig.11 As shown, the electronic device 9 specifically includes:
[0186] At least one processor 91, at least one memory 92, and a bus 93 for connecting different system components (including the processor 91 and the memory 92), wherein:
[0187] The bus 93 includes a data bus, an address bus, and a control bus.
[0188] The memory 92 includes a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .
[0189] Memory 92 also includes a program / utility 925 having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include an implementation of a network environment.
[0190] The processor 91 executes various functional applications and data processing by running the computer programs stored in the memory 92, such as the medical image processing method of embodiments 1, 2, 3 or 4 of the present invention.
[0191] The electronic device 9 can further communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.). Such communication can be performed through an input / output (I / O) interface 95. In addition, the electronic device 9 can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 96. The network adapter 96 communicates with other modules of the electronic device 9 through a bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 9, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0192] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0193] Example 7
[0194] This embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps of the medical image processing method of embodiment 1, 2, 3 or 4 of the present invention are implemented. Specifically, the above-mentioned medical image processing method includes the following steps: obtaining an initial medical image; obtaining a region of interest that affects diagnosis in the initial medical image; and obtaining a target medical image corresponding to the initial medical image by optimizing the region of interest. Preferably, obtaining a target medical image corresponding to the initial medical image by optimizing the region of interest includes: obtaining a target medical image corresponding to the initial medical image by performing a repair process or a suppression process on the region of interest. Further preferably, obtaining a target medical image corresponding to the initial medical image by optimizing the region of interest includes: obtaining a mask map of the region of interest; obtaining a first image feature based on the initial medical image; obtaining a second image feature with the same dimension as the first image feature based on the mask map; and generating the target medical image based on the first image feature and the second image feature.
[0195] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0196] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of the medical image processing method of embodiment 1, 2, 3 or 4 of the present invention.
[0197] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.
[0198] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A medical image processing method based on deep learning, characterized in that: include: Acquiring an initial medical image; Acquire a region of interest that affects diagnosis in the initial medical image; Obtaining a target medical image corresponding to the initial medical image by optimizing the region of interest; When optimizing the region of interest, the method includes: receiving input first target scanning parameters; converting the scanning parameters of the initial medical image according to the first target scanning parameters; The step of obtaining a target medical image corresponding to the initial medical image by optimizing the region of interest includes: Acquire a mask image of the region of interest; Based on the initial medical image, obtaining a first image feature; Based on the mask image, obtaining a second image feature having the same dimension as the first image feature; generating the target medical image based on the first image feature and the second image feature; The step of generating the target medical image based on the first image feature and the second image feature comprises: Fusing the first image feature and the second image feature to obtain a fused feature; Based on the fused features, the target medical image is generated by a pre-trained image generation model.
2. The medical image processing method according to claim 1, characterized in that: The step of obtaining a target medical image corresponding to the initial medical image by optimizing the region of interest includes: By performing restoration processing or suppression processing on the region of interest, a target medical image corresponding to the initial medical image is obtained.
3. The medical image processing method according to claim 1, characterized in that: The image generation model is trained based on a pre-acquired data set, wherein the data set includes a plurality of training images and a gold standard corresponding to the training images, wherein the gold standard is a restored gold standard image or a suppressed gold standard image.
4. The medical image processing method according to claim 1, characterized in that: The acquiring a second image feature based on the mask image includes: The initial medical image and the mask image are subjected to feature extraction and compression processing to obtain the second image features.
5. A medical image processing system based on deep learning, characterized in that: The medical image processing system comprises an image acquisition module, a region acquisition module and an optimization module; The image acquisition module is used to acquire an initial medical image; The region acquisition module is used to acquire a region of interest that affects diagnosis in the initial medical image; The optimization module is used to obtain a target medical image corresponding to the initial medical image by optimizing the region of interest; The optimization module is further used to receive an input first target scanning parameter, and convert the scanning parameter of the initial medical image according to the first target scanning parameter; The optimization module includes a mask map acquisition unit, a first feature acquisition unit, a second feature acquisition unit and an image generation unit; The mask image acquisition unit is used to acquire the mask image of the region of interest; The first feature acquisition unit is used to acquire a first image feature based on the initial medical image; The second feature acquisition unit is used to acquire a second image feature having the same dimension as the first image feature based on the mask image; The image generating unit is used for generating the target medical image based on the first image feature and the second image feature; The image generating unit is further used to fuse the first image feature and the second image feature to obtain a fused feature; Based on the fused features, the target medical image is generated by a pre-trained image generation model.
6. The medical image processing system according to claim 5, characterized in that: The optimization module is further configured to obtain a target medical image corresponding to the initial medical image by performing a repair process or a suppression process on the region of interest.
7. The medical image processing system according to claim 5, characterized in that: The image generation model is trained based on a pre-acquired data set, wherein the data set includes a training image and a gold standard corresponding to the training image, wherein the gold standard is a restored gold standard image or a suppressed gold standard image.
8. The medical image processing system according to claim 5, characterized in that: The second feature acquisition unit is further used to perform feature extraction and compression processing on the initial medical image and the mask image to obtain the second image feature.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
