Image processing method, device, computer equipment and storage medium
Automatically analyzing the quality of coronary CT vascular images through the quality regression model solves the time-consuming and labor-intensive problem for doctors in selecting the best image quality, and realizes the automation and efficiency improvement of image processing.
Patent Information
- Application Number
- CN202011584703.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-12-28
AI Technical Summary
During coronary CT angiography, doctors need to compare coronary vascular images from multiple imaging phases in a time-consuming and labor-intensive manner to find the image with the best image quality, resulting in a waste of manpower and time.
By acquiring at least two medical images, inputting them into the preset quality regression model for quality analysis, determining the quantified quality value of the image, and selecting the target image based on the quantified value, the trained quality regression model is used to automatically determine the image quality, reducing reliance on doctors. The comparative process of experience.
Automated selection of coronary vessel images is achieved, saving doctors time and energy when selecting images, improving efficiency and reducing labor costs.
Smart Images

Figure CN112767307B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an image processing method, apparatus, computer device and storage medium. Background Art
[0002] Coronary artery refers to the coronary artery. Usually when a patient has problems with his or her coronary artery and goes to the hospital for examination, the doctor will mostly perform coronary CT (Computed Tomography) angiography (i.e. coronary CTA, Computed Tomography Angiography) on the patient's coronary artery to obtain the patient's coronary vascular image, and use the coronary vascular image to examine and analyze the patient's coronary artery.
[0003] In the related art, when a patient undergoes coronary CT angiography, the patient's coronary vessels are usually imaged according to different imaging phases (i.e., different imaging times during the scanning process), and coronary vessel images of the patient at multiple different phases are obtained. Afterwards, the doctor will compare the coronary vessel images of each phase based on his or her own experience, and find the coronary vessel image with the best image quality for subsequent examination and analysis.
[0004] However, in the above technology, doctors have the problem of being time-consuming and labor-intensive when searching for the coronary artery image with the best image quality. Summary of the invention
[0005] Based on this, it is necessary to provide an image processing method, device, computer equipment and storage medium that can save manpower and time when searching for coronary vascular images with the best image quality in response to the above technical problems.
[0006] An image processing method, the method comprising:
[0007] Acquire at least two medical images of the object to be detected;
[0008] Input each of the above medical images into a preset quality regression model for quality analysis to determine the quality quantification value corresponding to each of the above medical images; wherein the above quality regression model is obtained by training based on a training medical image set, and the above training medical image set includes a plurality of training image pairs and annotated quality labels corresponding to each training image pair;
[0009] According to the quality quantization values corresponding to the medical images, a target medical image of the object to be detected is determined from the medical images.
[0010] In one embodiment, the step of inputting each of the medical images into a preset quality regression model for quality analysis to determine a quality quantification value corresponding to each of the medical images includes:
[0011] Performing feature extraction on each of the above medical images to determine image features corresponding to each of the above medical images; the above image features are related to the quality of the above medical images;
[0012] The image features corresponding to each of the above medical images are input into a preset quality regression model for quality analysis to determine the quality quantification value corresponding to each of the above medical images.
[0013] In one embodiment, the training method of the quality regression model includes:
[0014] Acquire a training image set; the training medical image set includes a plurality of training image pairs and annotated quality labels corresponding to each training image pair, and each training image pair includes two training images;
[0015] Performing feature extraction on each training image in each of the training image pairs to determine image features corresponding to each of the training images;
[0016] The image features corresponding to each of the above training images are used as the input of the initial quality regression model, and the annotated quality labels corresponding to each training image pair are used as the reference output of the above initial quality regression model. The above initial quality regression model is trained to obtain the above quality regression model.
[0017] In one embodiment, the image features corresponding to each of the training images are used as inputs of the initial quality regression model, the annotated quality labels corresponding to each training image pair are used as reference outputs of the initial quality regression model, and the initial quality regression model is trained to obtain the quality regression model, including:
[0018] Inputting the image features corresponding to each of the above training images into an initial quality regression model for quality analysis to obtain a predicted quality quantization value corresponding to each of the above training images;
[0019] Obtaining a training image pair consisting of a 2nth training image and a 2n+1th training image in each of the above training images; the above n is an integer value greater than and / or equal to 0;
[0020] The initial quality regression model is trained according to the predicted quality quantization value of each training image in the training image pair and the annotated quality label corresponding to the training image pair to obtain the quality regression model.
[0021] In one embodiment, the initial quality regression model is trained according to the predicted quality quantization value of each training image in the training image pair and the annotated quality label corresponding to the training image pair to obtain the quality regression model, including:
[0022] Performing difference processing on the prediction quality quantization value of each training image in the training image pair to obtain the prediction quality quantization value difference corresponding to the training image pair;
[0023] Performing activation processing on the prediction quality quantization value difference corresponding to the training image pair to determine the prediction quality label corresponding to the training image pair;
[0024] The loss calculation is performed on the predicted quality labels and the annotated quality labels corresponding to the training image pairs, and the initial quality regression model is trained based on the calculated loss to obtain the quality regression model.
[0025] In one embodiment, the step of activating the prediction quality quantization value difference corresponding to the training image pair to determine the prediction quality label corresponding to the training image pair includes:
[0026] According to the number of training times of the initial quality regression model in the training process, dynamically linearly scale the predicted quality quantization value difference corresponding to the training image pair to obtain the scaled predicted quality quantization value difference of the training image pair;
[0027] An activation process is performed on the scaled prediction quality quantization value difference of the training image pair to determine the prediction quality label corresponding to the training image pair.
[0028] In one embodiment, determining the target medical image of the object to be detected from each of the medical images according to the quality quantization value corresponding to each of the medical images includes:
[0029] Sorting the quality quantization values corresponding to the medical images to obtain a sorting result of the quality quantization values of the medical images;
[0030] According to the above sorting result, the target medical image of the above object to be detected is determined from the above medical images.
[0031] In one embodiment, determining the target medical image of the object to be detected from the medical images according to the ranking result includes:
[0032] Obtain the maximum quality quantization value from the above sorting results;
[0033] The medical image corresponding to the maximum quality quantization value is determined as the target medical image of the object to be detected.
[0034] In one embodiment, the step of obtaining a training image set includes:
[0035] Obtain at least two training images of the same detection object;
[0036] Combining any two training images of the same detection object into a training image pair, to obtain at least one training image pair corresponding to the same detection object;
[0037] According to the quality levels of the two training images in each training image pair of the same object, the two training images in each training image pair of the same object are sorted by quality level to obtain a quality sorting result for each training image pair;
[0038] Based on the ranking result of each training image pair, the annotation quality label corresponding to each training image pair is determined.
[0039] In one embodiment, each of the training image pairs includes a first training image and a second training image; and determining the annotation quality label corresponding to each training image pair based on the sorting result of each of the training image pairs includes:
[0040] If the quality level of the first training image in the training image pair is higher than the quality level of the second training image, determining that the annotation quality label corresponding to the training image pair is the first annotation quality label;
[0041] Otherwise, it is determined that the annotation quality label corresponding to the training image pair is the second annotation quality label.
[0042] An image processing device, the device comprising:
[0043] An image acquisition module, used to acquire at least two medical images of the object to be detected;
[0044] A quality analysis module, used for inputting each of the above medical images into a preset quality regression model for quality analysis, and determining a quality quantization value corresponding to each of the above medical images; wherein the above quality regression model is obtained by training based on a training medical image set, and the above training medical image set includes a plurality of training image pairs and annotated quality labels corresponding to each training image pair;
[0045] The target image determination module is used to determine the target medical image of the object to be detected from the medical images according to the quality quantization values corresponding to the medical images.
[0046] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0047] Acquire at least two medical images of the object to be detected;
[0048] Input each of the above medical images into a preset quality regression model for quality analysis to determine the quality quantification value corresponding to each of the above medical images; wherein the above quality regression model is obtained by training based on a training medical image set, and the above training medical image set includes a plurality of training image pairs and annotated quality labels corresponding to each training image pair;
[0049] According to the quality quantization values corresponding to the medical images, a target medical image of the object to be detected is determined from the medical images.
[0050] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0051] Acquire at least two medical images of the object to be detected;
[0052] Input each of the above medical images into a preset quality regression model for quality analysis to determine the quality quantification value corresponding to each of the above medical images; wherein the above quality regression model is obtained by training based on a training medical image set, and the above training medical image set includes a plurality of training image pairs and annotated quality labels corresponding to each training image pair;
[0053] According to the quality quantization values corresponding to the medical images, a target medical image of the object to be detected is determined from the medical images.
[0054] The above-mentioned image processing method, device, computer equipment and storage medium respectively input at least two medical images of the object to be detected into a preset quality regression model for quality analysis, determine the quality quantification value corresponding to each medical image, and determine the target medical image of the object to be detected from each medical image according to the quality quantification value corresponding to each medical image; wherein the quality regression model is trained based on multiple training image pairs and the annotated quality labels corresponding to each training image pair. In this method, since the quality quantification value of each medical image can be determined by the trained quality regression model, and the target medical image can be determined by the quality quantification value of each medical image, there is no need for the doctor to compare and select the target image based on his own experience, that is, the doctor does not need to spend time and energy to find the target image, so the manpower and time cost of selecting the target image can be saved. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 is an internal structure diagram of a computer device in one embodiment;
[0056] Figure 2is a schematic flow chart of an image processing method in one embodiment;
[0057] Figure 3 is a schematic flow chart of an image processing step in one embodiment;
[0058] Figure 3a A diagram showing an example structure of a neural network performing feature extraction in one embodiment;
[0059] Figure 4 is a schematic flow chart of an image processing method in another embodiment;
[0060] Figure 4a is an example diagram of preprocessing a medical image in another embodiment;
[0061] Figure 4b This is an example diagram of the correspondence between the predicted quality labels and the difference values in another embodiment;
[0062] Figure 5 is a schematic flow chart of an image processing method in another embodiment;
[0063] Figure 6 is a schematic flow chart of an image processing method in another embodiment;
[0064] Figure 6a An example diagram of determining a quality label for a training image pair in another embodiment;
[0065] Figure 7 FIG. 4 is a structural block diagram of an image processing device in an embodiment. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.
[0067] The image processing method provided in the embodiment of the present application can be applied to a computer device, which can be connected to a scanning device. After scanning the object to be detected, the scanning device can transmit the acquired scanning data to the computer device, so that the computer device can post-process the scanning data. Here, the computer device can be a terminal or a server. Taking the computer device as a terminal as an example, its internal structure diagram can be as follows: Figure 1As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an image processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0068] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0069] It should be noted that the execution subject of the embodiments of the present application can be an image processing device, a computer device, an image processing system composed of a computer device and a scanning device, and of course other devices. The following is a detailed description of the technical solution of the present application with the computer device as the execution subject.
[0070] In one embodiment, an image processing method is provided. This embodiment relates to a specific process of determining a target medical image from multiple medical images of an object to be detected. Figure 2 As shown, the method may include the following steps:
[0071] S202: Acquire at least two medical images of the object to be detected.
[0072] The object to be detected refers to the same object to be detected. The at least two medical images are medical images of the same object to be detected in different phases, where the different phases can be considered as different imaging periods or different imaging stages in the same scanning imaging process of the object to be detected.
[0073] In addition, the modality of the medical image here can be CT (Computed Tomography) or other modalities. The medical image here can be a coronary artery image or an image of other parts. Taking the coronary artery image as an example, the medical image here can be an image including the segmentation result of the coronary vessels, that is, a mask image of the coronary vessels.
[0074] Specifically, during the scanning and imaging process of the object to be detected, corresponding scanning data can be acquired at different imaging periods or different imaging stages, and the scanning data at different imaging periods or different imaging stages can be reconstructed to obtain medical images at different imaging periods or different imaging stages, that is, to obtain at least two medical images of the object to be detected.
[0075] S204, inputting each of the above medical images into a preset quality regression model for quality analysis to determine the quality quantification value corresponding to each of the above medical images; wherein the above quality regression model is obtained by training based on a training medical image set, and the above training medical image set includes multiple training image pairs and annotated quality labels corresponding to each training image pair.
[0076] The quality quantization value corresponding to each medical image here can represent the quality of the medical image.
[0077] In addition, the quality regression model can be a neural network model or other types of models. Here, the quality regression model can be obtained by training multiple training image pairs and the annotated quality labels corresponding to each training image pair. In the specific training process, a medical image can be input to obtain a quality quantification value of a medical image. The quality regression model is comprehensively trained by the quality quantification value of the training image pair and the annotated quality label of the training image pair. The annotated quality label here can be a text that annotates the quality, or a number that annotates the quality, for example, it can be a number annotated with 0 or 1.
[0078] After the quality regression model is trained, in the specific application process, only the part of a medical image that can be input can be used to obtain the quality quantification value of a medical image. In this way, after obtaining at least two medical images of the object to be detected, each medical image can be input into the quality regression model in turn for quality analysis to obtain the quality quantification value corresponding to each medical image.
[0079] S206: Determine the target medical image of the object to be detected from the medical images according to the quality quantization values corresponding to the medical images.
[0080] In this step, after obtaining the quality quantization values corresponding to each medical image, the quality quantization values of each medical image can be compared, and a target medical image that meets the requirements can be selected. Here, meeting the requirements can be, for example, selecting a medical image with the highest quality quantization value as the target medical image, or removing a certain error and selecting a medical image with the second highest quality quantization value as the target medical image, or selecting a medical image with a median quality quantization value as the target medical image. In short, the target medical image selected here has a relatively high image quality.
[0081] As can be seen from the above description, the method of this embodiment uses a single image input to obtain the quality quantification value of a single image when quantifying the image quality, that is, a single channel input and a single channel output are used. Assuming that there are m (m is greater than 1) images of different phases, the method of this embodiment is calculated m times; while the method of using dual-channel input and pairwise comparison to process images in the prior art requires calculating C m 2 times, it can be seen that the method of this embodiment has a small amount of calculation in the image processing process, which can simplify the calculation process of image processing and improve the efficiency of image processing.
[0082] In the above-mentioned image processing method, at least two medical images of the object to be detected are respectively input into a preset quality regression model for quality analysis, and the quality quantification value corresponding to each medical image is determined. According to the quality quantification value corresponding to each medical image, the target medical image of the object to be detected is determined from each medical image; wherein the quality regression model is trained based on multiple training image pairs and the annotated quality labels corresponding to each training image pair. In this method, since the quality quantification value of each medical image can be determined by the trained quality regression model, and the target medical image is determined by the quality quantification value of each medical image, there is no need for the doctor to compare and select the target image based on his own experience, that is, the doctor does not need to spend time and energy to find the target image, so the manpower and time cost of selecting the target image can be saved.
[0083] In another embodiment, another image processing method is provided. This embodiment involves a specific process of how to perform quality analysis on each medical image through a quality regression model and determine the quality quantification value of each medical image. Figure 3 As shown, the above S204 may include the following steps:
[0084] S302, performing feature extraction on each of the medical images to determine image features corresponding to each of the medical images; the image features are related to the quality of the medical images.
[0085] In this step, a convolutional neural network model can be used to extract features from each medical image. For example, the convolutional neural network model here can include multiple downsampling modules, where the number of downsampling modules can be 5, and each downsampling module is composed of a convolution layer (3×3Conv) with a convolution kernel of 3×3, a Batch Normalization (normalization, abbreviated as BN) layer and an activation unit ReLU. Feature extraction can be performed on each medical image to obtain image features corresponding to each medical image.
[0086] Of course, traditional feature extraction methods can also be used to extract features from medical images. Taking the coronary artery as an example, the image features extracted here can include the number of blood vessel branches, the number of connected domains, the volume of each blood vessel, the length of the centerline, the mean curvature and the maximum curvature, etc. A total of 19 blood vessels were counted here (13 branches in 18 segments and OM3, OM4, OM5, PLB2, PLB3, PLB4), and a total of 78 image features were extracted. Here, OM is the obtuse marginal branch and PLB is the posterior branch of the left ventricle. However, because both OM and PLB have multiple branches, they are distinguished by numbers such as 1, 2, and 3. The Chinese names of OM3, OM4, and OM5 are the first obtuse marginal branch, the second obtuse marginal branch, and the third obtuse marginal branch. The 13 blood vessels within the 18 segments were defined according to the international SCCT standard. The 19 blood vessels here are detailed as follows: right coronary artery, posterior descending branch (left and right 2 branches), right ventricular posterior branch, left main trunk, anterior descending branch, circumflex branch, obtuse marginal branch (5 branches), diagonal branch, intermediate branch, and left ventricular posterior branch (5 branches).
[0087] Usually the features extracted here are related to the quality of medical images, that is, image features that can be used in the image quality quantification process later.
[0088] S304: Input the image features corresponding to each of the above medical images into a preset quality regression model to perform quality analysis, and determine the quality quantization value corresponding to each of the above medical images.
[0089] In this step, after obtaining the image features corresponding to each medical image, the image features of each medical image can be respectively input into the above-mentioned trained quality regression model for quality analysis to obtain the quality quantification value corresponding to each medical image.
[0090] In addition, the quality quantization value corresponding to the medical image here can be an integer or decimal between 0-1, or an integer or decimal in other ranges, for example, it can be an integer or decimal between 1-10, and of course it can also be an integer or decimal in other ranges, and this embodiment does not make any specific limitations on this.
[0091] For example, assuming that the convolutional neural network model used for feature extraction is an integer or decimal between 0 and 1, the convolutional neural network model and the quality regression model here can include multiple downsampling modules and multiple fully connected layers. The number and content of the downsampling modules here are the same as above, the number of fully connected layers can be 2, and the output is regressed to a decimal between 0 and 1 through the Sigmoid activation function. Figure 3a As shown in the figure, after the input image Input passes through five down-sampling modules (Down Block), the fully connected layer FC+ReLU and the fully connected layer FC+Sigmoid, the output is regressed to an integer or decimal between 0 and 1.
[0092] The image processing method of this embodiment can extract features from each medical image, and input the extracted image features into a quality regression model for quality analysis to determine the quality quantification value corresponding to each medical image; wherein the extracted image features are related to the quality of the medical image. In this embodiment, since the quality of the medical image can be quantified using the image features related to the quality of the medical image and the quality regression model, the quality quantification process is relatively accurate, and thus the quality quantification value of the medical image determined is also relatively accurate.
[0093] In another embodiment, another image processing method is provided. This embodiment relates to a specific process of how to train a quality regression model. Figure 4 As shown, the training process of the above quality regression model may include the following steps:
[0094] S402, obtaining a training image set; the training medical image set includes a plurality of training image pairs and annotated quality labels corresponding to each training image pair, and each training image pair includes two training images.
[0095] In this step, multiple training images of different detection objects can be acquired in advance, and the training images of the same detection object can be grouped into training image pairs in pairs, and a quality label can be marked for each training image pair according to the quality of the training images included in each training image pair to obtain a training image set.
[0096] In addition, after obtaining the training image set, each training image in the training image set can be preprocessed. The image preprocessing here can include dilation, resampling, truncation and other processing. Take the training image as the segmentation result image of the coronary artery as an example, see Figure 4aAs shown in the figure, the preprocessing process is as follows: after the segmentation result image of the coronary artery is expanded by 3 pixel units in a 26-neighborhood, the expanded image is resampled to a resolution of 2.4 mm; then, the minimum circumscribed rectangular frame is made for the segmentation result image of the coronary artery to determine the center point of the blood vessel, and a 64*64*64 rectangular frame of the image is intercepted according to the center point of the blood vessel as the input image for the next step of feature extraction.
[0097] It should be noted that the dilation neighborhood size, dilation pixel size, resampling size, and rectangular frame size can be set according to actual conditions. This is just an example. Figure 4a It is just an example and does not affect the essential content of the embodiments of the present application.
[0098] S404: Perform feature extraction on each training image in each of the training image pairs to determine image features corresponding to each of the training images.
[0099] In this step, when extracting features from each training image in each training image pair, the same method as S302 described above may be used, which will not be described in detail here.
[0100] S406, using the image features corresponding to each of the above training images as the input of the initial quality regression model, using the annotated quality labels corresponding to each training image pair as the reference output of the above initial quality regression model, training the above initial quality regression model, and obtaining the above quality regression model.
[0101] In this step, optionally, this step may include the following steps A1-A3:
[0102] Step A1: input the image features corresponding to each of the above training images into an initial quality regression model for quality analysis to obtain a predicted quality quantization value corresponding to each of the above training images.
[0103] In this step, after the image features corresponding to each training image are obtained, the image features of each training image can be input into the initial quality regression model to obtain the predicted quality quantization value of each training image.
[0104] Step A2, obtaining a training image pair consisting of a 2nth training image and a 2n+1th training image in each of the above training images; the above n is an integer value greater than and / or equal to 0.
[0105] In order to ensure that the training image pair for subsequent loss calculation is a training image pair composed of different training images of the same detection object, a training image pair consisting of the 2nth training image and the 2n+1th training image in the training image is selected for subsequent loss calculation.
[0106] For example, assume that the detection object No. 1 has 2 medical images, namely, image 11 and image 12, and the detection object No. 2 also has 2 medical images, namely, image 21 and image 22. The training image pairs formed here are the first training image pair of image 11 and image 12, and the second training image pair of image 21 and image 22. If n is 0, the 0th and 1st training images are the same training image pair, namely, the first training image pair; if n is 1, the 2nd and 3rd training images are the same training image pair, namely, the second training image pair. Each training image pair obtained here is for the same detection object.
[0107] Step A3: training the initial quality regression model according to the predicted quality quantization value of each training image in the training image pair and the annotated quality label corresponding to the training image pair to obtain the quality regression model.
[0108] Optionally, the above step A3 may include the following steps A31-A33:
[0109] Step A31, performing difference processing on the prediction quality quantization value of each training image in the above training image pair to obtain the prediction quality quantization value difference corresponding to the above training image pair.
[0110] In this step, after obtaining the training image pair consisting of the 2nth training image and the 2n+1th training image, the predicted quality quantization value of the 2nth training image and the predicted quality quantization value of the 2n+1th training image can also be obtained. Afterwards, the difference between the predicted quality quantization values of each training image in the training image pair can be calculated using the following formula (1):
[0111] diff=output(2n)-output(2n+1) (1)
[0112] Among them, output(2n) is the predicted quality quantization value of the 2nth training image, output(2n+1) is the predicted quality quantization value of the 2n+1th training image, and diff is the difference in the predicted quality quantization values of the two training images, which is recorded as the difference in the predicted quality quantization values corresponding to the training image pair composed of the two training images.
[0113] According to the calculation method of formula (1), the predicted quality quantization value differences corresponding to all training image pairs can be calculated.
[0114] Step A32: Activate the prediction quality quantization value difference corresponding to the training image pair to determine the prediction quality label corresponding to the training image pair.
[0115] In this step, the predicted quality quantization value difference corresponding to each training image pair can be activated by a dynamic adjustment method, or by a non-dynamic adjustment method. In short, after the activation process, the predicted quality label corresponding to each training image pair can be obtained. The following is a possible implementation method for obtaining the predicted quality label by these two different adjustment methods.
[0116] In a possible implementation, taking the activation processing of the predicted quality quantization value difference corresponding to each training image pair in a non-dynamic adjustment manner as an example, after obtaining the predicted quality quantization value difference corresponding to each training image pair as described above, the predicted quality label corresponding to each training image pair can be obtained by using the following formula (2), which is as follows:
[0117] predictresult=sigmoid(diff+1) / 2 (2)
[0118] Among them, predictresult is the predicted quality label corresponding to each training image pair, and sigmoid is the activation function.
[0119] By calculating the formula (2), the predicted quality label corresponding to each training image pair can be calculated. Here, the predicted quality label is usually an integer or decimal between 0 and 1.
[0120] In another possible implementation, taking the example of activating the predicted quality quantization value difference corresponding to each training image pair in a dynamic adjustment manner, optionally, the above step A32 may include the following steps A321-A322:
[0121] Step A321, according to the training times of the initial quality regression model in the training process, dynamically linearly scale the predicted quality quantization value difference corresponding to the training image pair to obtain the scaled predicted quality quantization value difference of the training image pair.
[0122] Step A322, performing activation processing on the predicted quality quantization value difference after scaling of the training image pair, and determining the predicted quality label corresponding to the training image pair.
[0123] The number of training times here refers to the number of iterations of the training set in the initial quality regression model training process. If the training time is one iteration, the number of training times is 1, if the training time is two iterations, the number of training times is 2, and so on. After obtaining the predicted quality quantization value difference corresponding to each training image pair and the number of training times, the following formula (3) can be used to obtain the predicted quality label corresponding to each training image pair. The formula is as follows:
[0124] predictresult=sigmoid[diff×5×(epoch / 30+1)] (3)
[0125] Where predictresult is the predicted quality label corresponding to each training image pair, sigmoid is the activation function, and epoch is the number of training times. The relationship between predictresult and diff can be found in Figure 4b As shown, the horizontal axis is diff, ranging from -1 to 1, and the vertical axis is predicted result, ranging from 0 to 1.
[0126] By calculating the formula (3), the predicted quality label corresponding to each training image pair can be calculated. Here, the predicted quality label is usually an integer or decimal between 0 and 1.
[0127] Step A33, performing loss calculation on the predicted quality labels and annotated quality labels corresponding to the training image pairs, and training the initial quality regression model based on the calculated loss to obtain the quality regression model.
[0128] In this step, after obtaining the predicted quality label corresponding to each training image pair, the loss function can be used to calculate the loss between the predicted quality label corresponding to each training image pair and the corresponding annotation quality label. The loss function here is generally a binary classification loss function, which can be MSE loss, BCE loss, etc.
[0129] Afterwards, the calculated loss of each training image pair can be used for parameter back propagation to adjust the parameters of the initial quality regression model, and then the initial quality regression model can be trained. During the training process, until the value of the loss function reaches the loss threshold, or the value of the loss function no longer changes, or the preset number of training times is reached, the initial quality regression model can be considered to have been trained. At this time, the parameters of the quality regression model can be fixed to obtain a trained quality regression model.
[0130] Furthermore, by introducing the number of training times in the dynamic adjustment method, the slope of the curve of the sigmoid activation function can be dynamically adjusted. When the curve becomes steeper, a smaller predicted result will be predicted to be close to 0 or 1. If the predicted quality label is correct, the loss will be reduced. If the predicted quality label is wrong, the loss will be magnified. In this way, as the number of training times increases, the quality regression model will be more inclined to focus on learning the training images with incorrect predicted quality labels, thereby improving the performance of the quality regression model.
[0131] In addition, the above-mentioned non-dynamic adjustment method is used to calculate the predicted quality label of each training image pair. The calculation process involves fewer parameters, that is, the amount of calculation is small, so the speed of obtaining the predicted quality label of each training image pair can be accelerated, thereby improving the training speed of the entire quality regression model.
[0132] The image processing method of this embodiment obtains a training image set, extracts features from each training image in each training image pair in the training image set, uses the extracted features as input to an initial quality regression model, and uses the annotated quality label of each training image pair as a reference output of the initial regression model to train the initial regression model to obtain a trained quality regression model; wherein the training image set includes multiple training image pairs and annotated quality labels for each training image pair. In this embodiment, since the quality regression model is obtained by training based on multiple training image pairs and their respective annotated quality labels, the trained quality regression model is relatively accurate, so that when the trained model is subsequently used to analyze the image quality, the quality quantification value obtained is also relatively accurate.
[0133] In another embodiment, another image processing method is provided. This embodiment relates to a specific process of determining a target medical image according to the quality quantification value of each medical image. Figure 5 As shown, the above S206 may include the following steps:
[0134] S502: sorting the quality quantization values corresponding to the medical images to obtain a sorting result of the quality quantization values of the medical images.
[0135] In this step, after obtaining the quality quantization value corresponding to each medical image, the quality quantization value of each medical image can be sorted. The sorting can be from small to large or from large to small. In short, the sorting result of the quality quantization value of each medical image can be obtained after sorting.
[0136] S504: Determine the target medical image of the object to be detected from the medical images according to the ranking result.
[0137] In this step, optionally, the following steps may be included: obtaining a maximum quality quantization value from the above-mentioned sorting results; and determining the medical image corresponding to the above-mentioned maximum quality quantization value as the target medical image of the above-mentioned object to be detected.
[0138] That is to say, after the above sorting is completed, if the sorting is from small to large, then the last quality quantization value in the sorting result is the maximum quality quantization value, and the medical image corresponding to the last quality quantization value can be used as the target medical image. If the sorting is from large to small, then the first quality quantization value in the sorting result is the maximum quality quantization value, and the medical image corresponding to the first quality quantization value can be used as the target medical image.
[0139] The image processing method of this embodiment ranks the quality quantization values of each medical image, and determines the target medical image of the object to be detected from each medical image according to the ranking result. The ranking process is relatively simple and clear, so the speed of determining the target medical image can be improved, that is, the efficiency of the overall image processing can be improved. Furthermore, the medical image corresponding to the maximum quality quantization value in the ranking result can be used as the target medical image, so that the target medical image determined in this way is the image with the best quality, and the determination result is also relatively objective, that is, the accuracy of the determined target medical image can be guaranteed.
[0140] In another embodiment, another image processing method is provided. This embodiment relates to a specific process of how to obtain a training image set. Figure 6 As shown, the above S402 may include the following steps:
[0141] S602: Acquire at least two training images of the same detection object.
[0142] In this step, the detection object for obtaining training images here can be one or more, usually multiple detection objects, and each detection object will obtain at least two training images. The at least two training images obtained by each detection object here are the same as the at least two medical images in S202 above, and are training images under different phases. In addition, the phases targeted by the at least two training images of each detection object can be the same or different. The number of training images corresponding to each detection object can be the same or different.
[0143] S604: any two training images of the same detection object are combined into a training image pair to obtain at least one training image pair corresponding to the same detection object.
[0144] In this step, at least two training images of the same detection object may be paired in pairs to obtain at least one training image pair corresponding to each detection object.
[0145] For example, assuming that a detection object has p phases, then C p2 pairings, assuming p = 3, that is, a detection object has three training images of different phases, which are respectively recorded as training image phase1, training image phase2, and training image phase3. Then, by pairing these three training images of different phases in pairs, three training image pairs can be obtained. The three training image pairs are (phase1, phase2), (phase2, phase3), and (phase3, phase1). This is just an example. The order of the two training images in each training image pair can be set according to actual conditions and is not specifically limited here.
[0146] S606, ranking the two training images in each training image pair of the same object according to the quality levels of the two training images in each training image pair of the same object, to obtain a quality ranking result for each training image pair.
[0147] In this step, when each training image is acquired in advance, the quality level of each training image corresponding to each detection object can also be known, that is, the quality of each training image can be known. Then, after obtaining at least one training image pair corresponding to the same detection object, for example, for one detection object, the quality levels of the two training images in each training image pair corresponding to the detection object can be sorted to obtain the quality level sorting result corresponding to each training image pair of the detection object, that is, the quality sorting result.
[0148] For example, assuming that the quality ranking of the three training images phase1, phase2, and phase3 is phase3>phase1>phase2, then continue to take the three training image pairs (phase1, phase2), (phase2, phase3), and (phase3, phase1) as an example, the quality ranking results of each training image pair are (phase1>phase2), (phase2, phase3), and (phase3, phase1).<phase3)、(phase3> phase1).
[0149] S608: Based on the ranking result of each training image pair, determine the annotation quality label corresponding to each training image pair.
[0150] In this step, optionally, each of the above-mentioned training image pairs includes a first training image and a second training image, so this step may include: if the quality level of the above-mentioned first training image in the above-mentioned training image pair is higher than the quality level of the above-mentioned second training image, then determining that the annotation quality label corresponding to the above-mentioned training image pair is the first annotation quality label; otherwise, determining that the annotation quality label corresponding to the above-mentioned training image pair is the second annotation quality label.
[0151] For example, continue to take the above three different phases of training images phase1, phase2, phase3 as an example, here refer to Figure 6a As shown, for the training images of the three phases of the detection object, two angles of pictures are captured in each phase. As mentioned above, three training image pairs will be generated, namely (phase1, phase2), (phase2, phase3) and (phase3, phase1). Here, a gold standard can be given to the comparison between each paired training image pair. For example, if the quality level of the first training image in the training image pair is higher than the quality level of the second training image, the annotation quality label corresponding to the training image pair is recorded as 1; if the quality level of the first training image in the training image pair is lower than the quality level of the second training image, the annotation quality label corresponding to the training image pair is recorded as 0. Through the above-mentioned annotation method, the annotation quality labels of the three training image pairs (phase1, phase2), (phase2, phase3) and (phase3, phase1) can be obtained as 1, 0, 1 respectively.
[0152] It should be noted that here Figure 6a It is just an example and does not affect the essential content of the embodiments of the present application.
[0153] The image processing method of this embodiment forms a training image pair by using any two training images of the same detection object, obtains a training image pair for each detection object, sorts the quality levels of the two training images in each training image pair, and determines the annotated quality label corresponding to each training image pair according to the sorting result. In this embodiment, since the annotated quality label can be determined for each training image pair by the quality level sorting result of the training images in the training image pair, the determined annotated quality label is relatively accurate, and the quality regression model subsequently trained by the training image pairs with the annotated quality labels is also relatively accurate. Furthermore, since the annotated quality label of the training image pair can be determined by comparing the quality levels of the two training image pairs in the training image pair, the process is relatively simple and direct, and thus the speed of determining the annotated quality label of the training image pair can be increased, thereby improving the training efficiency of the quality regression model, and further improving the efficiency of the overall image processing.
[0154] It should be understood that although Figure 2 , 3The steps in the flowcharts of , 4, 5, and 6 are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , 3 At least part of the steps in 4, 5, and 6 may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily one by one, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0155] In one embodiment, Figure 7 As shown, an image processing device is provided, comprising: an image acquisition module 10, a quality analysis module 11 and an image quality determination module 12, wherein:
[0156] An image acquisition module 10, used to acquire at least two medical images of the object to be detected;
[0157] The quality analysis module 11 is used to input each of the above medical images into a preset quality regression model for quality analysis, and determine the quality quantization value corresponding to each of the above medical images; wherein the above quality regression model is obtained by training based on a training medical image set, and the above training medical image set includes a plurality of training image pairs and annotated quality labels corresponding to each training image pair;
[0158] The target image determination module 12 is used to determine the target medical image of the object to be detected from the medical images according to the quality quantization values corresponding to the medical images.
[0159] For the specific definition of the image processing device, please refer to the definition of the image processing method above, which will not be repeated here.
[0160] In another embodiment, another image processing device is provided. Based on the above embodiment, the quality analysis module 11 may include a feature extraction unit and a quality analysis unit, wherein:
[0161] A feature extraction unit, used to extract features from each of the above medical images and determine image features corresponding to each of the above medical images; the above image features are related to the quality of the above medical images;
[0162] The quality analysis unit is used to input the image features corresponding to each of the above medical images into a preset quality regression model for quality analysis, and determine the quality quantization value corresponding to each of the above medical images.
[0163] In another embodiment, another image processing device is provided. Based on the above embodiment, the above device may further include a model training module, which includes a training set acquisition unit, a training set feature extraction unit and a model training unit, wherein:
[0164] A training set acquisition unit, used to acquire a training image set; the training medical image set includes a plurality of training image pairs and annotated quality labels corresponding to each training image pair, and each training image pair includes two training images;
[0165] A training set feature extraction unit, used to extract features from each training image in each of the training image pairs, and determine image features corresponding to each of the training images;
[0166] The model training unit is used to use the image features corresponding to each of the above training images as the input of the initial quality regression model, use the annotated quality label corresponding to each training image pair as the reference output of the above initial quality regression model, train the above initial quality regression model, and obtain the above quality regression model.
[0167] Optionally, the above-mentioned model training unit may include a quality analysis subunit, an image pair acquisition subunit and a model training subunit, wherein:
[0168] The quality analysis subunit is used to input the image features corresponding to each of the above training images into the initial quality regression model for quality analysis to obtain the predicted quality quantization value corresponding to each of the above training images;
[0169] An image pair acquisition subunit, used to acquire a training image pair consisting of a 2nth training image and a 2n+1th training image in each of the above training images; the above n is an integer value greater than and / or equal to 0;
[0170] The model training subunit is used to train the initial quality regression model according to the predicted quality quantization value of each training image in the training image pair and the annotated quality label corresponding to the training image pair to obtain the quality regression model.
[0171] Optionally, the above-mentioned model training subunit is specifically used to perform difference processing on the predicted quality quantization value of each training image in the above-mentioned training image pair to obtain the predicted quality quantization value difference corresponding to the above-mentioned training image pair; perform activation processing on the predicted quality quantization value difference corresponding to the above-mentioned training image pair to determine the predicted quality label corresponding to the above-mentioned training image pair; perform loss calculation on the predicted quality label and the annotated quality label corresponding to the above-mentioned training image pair, and train the above-mentioned initial quality regression model based on the calculated loss to obtain the above-mentioned quality regression model.
[0172] Optionally, the above-mentioned model training sub-unit is specifically used to perform dynamic linear scaling processing on the predicted quality quantization value difference corresponding to the above-mentioned training image pair according to the number of training times of the above-mentioned initial quality regression model in the training process, so as to obtain the predicted quality quantization value difference after scaling of the above-mentioned training image pair; and to perform activation processing on the predicted quality quantization value difference after scaling of the above-mentioned training image pair to determine the predicted quality label corresponding to the above-mentioned training image pair.
[0173] In another embodiment, another image processing device is provided. Based on the above embodiment, the target image determination module 12 may include a sorting unit and a target image determination unit, wherein:
[0174] A sorting unit, used for sorting the quality quantization values corresponding to the above-mentioned medical images to obtain a sorting result of the quality quantization values of the above-mentioned medical images;
[0175] The target image determining unit is used to determine the target medical image of the object to be detected from the medical images according to the sorting result.
[0176] Optionally, the target image determination unit is specifically configured to obtain a maximum quality quantization value from the sorting result; and determine the medical image corresponding to the maximum quality quantization value as the target medical image of the object to be detected.
[0177] In another embodiment, another image processing device is provided. Based on the above embodiment, the training set acquisition unit may include a training image acquisition subunit, a training image pair acquisition subunit, a quality ranking subunit and a quality label determination subunit, wherein:
[0178] A training image acquisition subunit, used to acquire at least two training images of the same detection object;
[0179] A training image pair acquisition subunit is used to form a training image pair by combining any two training images of the same detection object to obtain at least one training image pair corresponding to the same detection object;
[0180] a quality ranking subunit, configured to rank the two training images in each training image pair of the same object according to the quality levels of the two training images in each training image pair of the same object, to obtain a quality ranking result for each training image pair;
[0181] The quality label determination subunit is used to determine the annotation quality label corresponding to each training image pair based on the ranking result of each training image pair.
[0182] Optionally, each of the above-mentioned training image pairs includes a first training image and a second training image, and the above-mentioned quality label determination subunit is specifically used to determine that the annotation quality label corresponding to the above-mentioned training image pair is the first annotation quality label when the quality level of the above-mentioned first training image in the above-mentioned training image pair is higher than the quality level of the above-mentioned second training image; otherwise, determine that the annotation quality label corresponding to the above-mentioned training image pair is the second annotation quality label.
[0183] For the specific definition of the image processing device, please refer to the definition of the image processing method above, which will not be repeated here.
[0184] Each module in the above image processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0185] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0186] Acquire at least two medical images of the object to be detected; input each of the above medical images into a preset quality regression model for quality analysis to determine the quality quantization value corresponding to each of the above medical images; wherein the above quality regression model is trained based on a training medical image set, and the above training medical image set includes multiple training image pairs and annotated quality labels corresponding to each training image pair; according to the quality quantization value corresponding to each of the above medical images, determine the target medical image of the object to be detected from each of the above medical images.
[0187] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0188] Perform feature extraction on each of the above-mentioned medical images to determine image features corresponding to each of the above-mentioned medical images; the above-mentioned image features are related to the quality of the above-mentioned medical images; input the image features corresponding to each of the above-mentioned medical images into a preset quality regression model for quality analysis to determine the quality quantification value corresponding to each of the above-mentioned medical images.
[0189] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0190] Acquire a training image set; the training medical image set includes multiple training image pairs and annotated quality labels corresponding to each training image pair, and each training image pair includes two training images; perform feature extraction on each training image in each training image pair to determine the image features corresponding to each training image; use the image features corresponding to each training image as the input of an initial quality regression model, use the annotated quality labels corresponding to each training image pair as the reference output of the initial quality regression model, train the initial quality regression model, and obtain the quality regression model.
[0191] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0192] The image features corresponding to each of the above-mentioned training images are input into the initial quality regression model for quality analysis to obtain the predicted quality quantization value corresponding to each of the above-mentioned training images; a training image pair consisting of the 2nth training image and the 2n+1th training image in each of the above-mentioned training images is obtained; the above-mentioned n is an integer value greater than and / or equal to 0; according to the predicted quality quantization value of each training image in the above-mentioned training image pair and the annotated quality label corresponding to the above-mentioned training image pair, the above-mentioned initial quality regression model is trained to obtain the above-mentioned quality regression model.
[0193] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0194] The predicted quality quantization values of each training image in the above-mentioned training image pair are subjected to difference processing to obtain the predicted quality quantization value difference corresponding to the above-mentioned training image pair; the predicted quality quantization value difference corresponding to the above-mentioned training image pair is activated to determine the predicted quality label corresponding to the above-mentioned training image pair; the predicted quality label and the annotated quality label corresponding to the above-mentioned training image pair are subjected to loss calculation, and the above-mentioned initial quality regression model is trained based on the calculated loss to obtain the above-mentioned quality regression model.
[0195] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0196] According to the number of times the above-mentioned initial quality regression model is trained during the training process, the predicted quality quantization value difference corresponding to the above-mentioned training image pair is dynamically linearly scaled to obtain the predicted quality quantization value difference after scaling of the above-mentioned training image pair; the predicted quality quantization value difference after scaling of the above-mentioned training image pair is activated to determine the predicted quality label corresponding to the above-mentioned training image pair.
[0197] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0198] The quality quantization values corresponding to the above medical images are sorted to obtain a sorting result of the quality quantization values of the above medical images; and according to the sorting result, a target medical image of the object to be detected is determined from the above medical images.
[0199] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0200] A maximum quality quantization value is obtained from the above-mentioned sorting results; and a medical image corresponding to the above-mentioned maximum quality quantization value is determined as the target medical image of the above-mentioned object to be detected.
[0201] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0202] Acquire at least two training images of the same detection object; combine any two training images of the same detection object into a training image pair to obtain at least one training image pair corresponding to the same detection object; sort the two training images in each training image pair of the same object according to the quality levels of the two training images in each training image pair of the same object to obtain the quality sorting result of each training image pair; determine the annotation quality label corresponding to each training image pair based on the sorting result of each training image pair.
[0203] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0204] If the quality level of the first training image in the training image pair is higher than the quality level of the second training image, the annotation quality label corresponding to the training image pair is determined to be the first annotation quality label; otherwise, the annotation quality label corresponding to the training image pair is determined to be the second annotation quality label.
[0205] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0206] Acquire at least two medical images of the object to be detected; input each of the above medical images into a preset quality regression model for quality analysis to determine the quality quantization value corresponding to each of the above medical images; wherein the above quality regression model is trained based on a training medical image set, and the above training medical image set includes multiple training image pairs and annotated quality labels corresponding to each training image pair; according to the quality quantization value corresponding to each of the above medical images, determine the target medical image of the object to be detected from each of the above medical images.
[0207] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0208] Perform feature extraction on each of the above-mentioned medical images to determine image features corresponding to each of the above-mentioned medical images; the above-mentioned image features are related to the quality of the above-mentioned medical images; input the image features corresponding to each of the above-mentioned medical images into a preset quality regression model for quality analysis to determine the quality quantification value corresponding to each of the above-mentioned medical images.
[0209] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0210] Acquire a training image set; the training medical image set includes multiple training image pairs and annotated quality labels corresponding to each training image pair, and each training image pair includes two training images; perform feature extraction on each training image in each training image pair to determine the image features corresponding to each training image; use the image features corresponding to each training image as the input of an initial quality regression model, use the annotated quality labels corresponding to each training image pair as the reference output of the initial quality regression model, train the initial quality regression model, and obtain the quality regression model.
[0211] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0212] The image features corresponding to each of the above-mentioned training images are input into the initial quality regression model for quality analysis to obtain the predicted quality quantization value corresponding to each of the above-mentioned training images; a training image pair consisting of the 2nth training image and the 2n+1th training image in each of the above-mentioned training images is obtained; the above-mentioned n is an integer value greater than and / or equal to 0; according to the predicted quality quantization value of each training image in the above-mentioned training image pair and the annotated quality label corresponding to the above-mentioned training image pair, the above-mentioned initial quality regression model is trained to obtain the above-mentioned quality regression model.
[0213] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0214] The predicted quality quantization values of each training image in the above-mentioned training image pair are subjected to difference processing to obtain the predicted quality quantization value difference corresponding to the above-mentioned training image pair; the predicted quality quantization value difference corresponding to the above-mentioned training image pair is activated to determine the predicted quality label corresponding to the above-mentioned training image pair; the predicted quality label and the annotated quality label corresponding to the above-mentioned training image pair are subjected to loss calculation, and the above-mentioned initial quality regression model is trained based on the calculated loss to obtain the above-mentioned quality regression model.
[0215] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0216] According to the number of times the above-mentioned initial quality regression model is trained during the training process, the predicted quality quantization value difference corresponding to the above-mentioned training image pair is dynamically linearly scaled to obtain the predicted quality quantization value difference after scaling of the above-mentioned training image pair; the predicted quality quantization value difference after scaling of the above-mentioned training image pair is activated to determine the predicted quality label corresponding to the above-mentioned training image pair.
[0217] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0218] The quality quantization values corresponding to the above medical images are sorted to obtain a sorting result of the quality quantization values of the above medical images; and according to the sorting result, a target medical image of the object to be detected is determined from the above medical images.
[0219] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0220] A maximum quality quantization value is obtained from the above-mentioned sorting results; and a medical image corresponding to the above-mentioned maximum quality quantization value is determined as the target medical image of the above-mentioned object to be detected.
[0221] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0222] Acquire at least two training images of the same detection object; combine any two training images of the same detection object into a training image pair to obtain at least one training image pair corresponding to the same detection object; sort the two training images in each training image pair of the same object according to the quality levels of the two training images in each training image pair of the same object to obtain the quality sorting result of each training image pair; determine the annotation quality label corresponding to each training image pair based on the sorting result of each training image pair.
[0223] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0224] If the quality level of the first training image in the training image pair is higher than the quality level of the second training image, the annotation quality label corresponding to the training image pair is determined to be the first annotation quality label; otherwise, the annotation quality label corresponding to the training image pair is determined to be the second annotation quality label.
[0225] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0226] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0227] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. An image processing method, It is characterized in that The method comprises: Acquire at least two medical images of the object to be detected; the at least two medical images are medical images of the same object to be detected at different phases; Input each of the medical images into a preset quality regression model for quality analysis to determine the quality quantization value corresponding to each of the medical images; wherein the quality regression model is obtained by performing loss calculation on the predicted quality labels and annotated quality labels corresponding to the training image pairs in the training image set, and training the initial quality regression model based on the calculated loss, and the training image set includes a plurality of the training image pairs and annotated quality labels corresponding to each of the training image pairs; the predicted quality labels corresponding to the training image pairs are determined by subtracting the predicted quality quantization values of each training image in the processed training image pairs to obtain the predicted quality quantization value difference corresponding to the training image pairs, and activating the predicted quality quantization value difference corresponding to the training image pairs; the predicted quality quantization value corresponding to each of the training images is obtained by inputting the image features corresponding to each of the above-mentioned training images into the initial quality regression model for quality analysis; According to the quality quantization values corresponding to the medical images, a target medical image of the object to be detected is determined from the medical images.
2. The method according to claim 1, It is characterized in that The step of inputting each of the medical images into a preset quality regression model for quality analysis to determine a quality quantification value corresponding to each of the medical images includes: Extracting features from each of the medical images to determine image features corresponding to each of the medical images; the image features are related to the quality of the medical images; The image features corresponding to each of the medical images are input into a preset quality regression model for quality analysis to determine the quality quantification value corresponding to each of the medical images.
3. The method according to claim 2, It is characterized in that The training method of the quality regression model includes: Acquire the training image set; each of the training image pairs includes two training images; Performing feature extraction on each training image in each training image pair to determine image features corresponding to each training image; The image features corresponding to each of the training images are used as inputs of an initial quality regression model, and the annotated quality labels corresponding to each training image pair are used as reference outputs of the initial quality regression model. The initial quality regression model is trained to obtain the quality regression model.
4. The method according to claim 3, It is characterized in that The method of using the image features corresponding to each of the training images as the input of the initial quality regression model, using the annotated quality label corresponding to each training image pair as the reference output of the initial quality regression model, training the initial quality regression model, and obtaining the quality regression model includes: Inputting the image features corresponding to each of the training images into an initial quality regression model for quality analysis to obtain a predicted quality quantization value corresponding to each of the training images; Obtaining a training image pair consisting of a 2nth training image and a 2n+1th training image in each of the training images; wherein n is an integer value greater than and / or equal to 0; The initial quality regression model is trained according to the predicted quality quantization value of each training image in the training image pair and the annotated quality label corresponding to the training image pair to obtain the quality regression model.
5. The method according to claim 4, It is characterized in that The step of training the initial quality regression model according to the predicted quality quantization value of each training image in the training image pair and the annotated quality label corresponding to the training image pair to obtain the quality regression model includes: Performing difference processing on the prediction quality quantization value of each training image in the training image pair to obtain the prediction quality quantization value difference corresponding to the training image pair; Performing activation processing on the prediction quality quantization value difference corresponding to the training image pair to determine the prediction quality label corresponding to the training image pair; Loss calculation is performed on the predicted quality labels and the annotated quality labels corresponding to the training image pairs, and the initial quality regression model is trained based on the calculated losses to obtain the quality regression model.
6. The method according to claim 5, It is characterized in that The step of activating the prediction quality quantization value difference corresponding to the training image pair to determine the prediction quality label corresponding to the training image pair includes: According to the number of training times of the initial quality regression model in the training process, dynamically linearly scale the predicted quality quantization value difference corresponding to the training image pair to obtain the scaled predicted quality quantization value difference of the training image pair; An activation process is performed on the scaled prediction quality quantization value difference of the training image pair to determine a prediction quality label corresponding to the training image pair.
7. The method according to any one of claims 1 to 6, It is characterized in that Determining the target medical image of the object to be detected from each of the medical images according to the quality quantization values corresponding to each of the medical images includes: Sorting the quality quantization values corresponding to the medical images to obtain a sorting result of the quality quantization values of the medical images; According to the sorting result, a target medical image of the object to be detected is determined from each of the medical images.
8. An image processing device, It is characterized in that The device comprises: An image acquisition module, used to acquire at least two medical images of the object to be detected; the at least two medical images are medical images of the same object to be detected in different phases; A quality analysis module, used for inputting each of the medical images into a preset quality regression model for quality analysis, and determining the quality quantization value corresponding to each of the medical images; wherein the quality regression model is obtained by performing loss calculation on the predicted quality labels and annotated quality labels corresponding to the training image pairs in the training image set, and training the initial quality regression model based on the calculated loss, and the training image set includes a plurality of the training image pairs and annotated quality labels corresponding to each of the training image pairs; the predicted quality labels corresponding to the training image pairs are determined by performing difference processing on the predicted quality quantization values of each training image in the training image pairs to obtain the predicted quality quantization value difference corresponding to the training image pairs, and performing activation processing on the predicted quality quantization value difference corresponding to the training image pairs; the predicted quality quantization value corresponding to each of the training images is obtained by inputting the image features corresponding to each of the above-mentioned training images into the initial quality regression model for quality analysis; The target image determination module is used to determine the target medical image of the object to be detected from each of the medical images according to the quality quantization value corresponding to each of the medical images.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Medical imaging technology evaluation method and device
CN108171272A
Image processing method and device, electronic device and storage medium
CN109360197A
A fundus image quality automatic classification method based on a residual dense block network structure
CN109948719A
The invention discloses an OCT image quality evaluation method based on sorting learning and a simplified residual error network
CN109949277A
Medical image quality prediction method and device, equipment and storage medium
CN110458817A
