Image classification method, device and equipment and storage medium thereof

By introducing interpretable models and image reconstruction mechanisms into medical image classification, we solve the problem of low trust in image classification results in the existing technology, achieve higher interpretability and accuracy, and help doctors and patients understand diagnosis. result.

CN118710981AActive Publication Date: 2024-09-27PING AN TECH (SHENZHEN) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410876834.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The existing technology lacks interpretability methods in medical image classification, resulting in low trust in the results.

Method used

Using the image classification method, by introducing interpretable models and image reconstruction mechanisms, the images are input into preset processing components and image classification models, and convolution fuzzy processing and feature extraction are performed to generate heat maps and reconstructed images to improve classification results. interpretability and confidence.

Benefits of technology

It improves the interpretability and trust of medical image classification results, helps doctors quickly identify abnormal tissues or organs, and enables patients to understand diagnostic results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710981A
    Figure CN118710981A
Patent Text Reader

Abstract

The embodiment of the invention belongs to the technical field of artificial intelligence, is applied to an image classification scene, and relates to an image classification method, device and equipment and a storage medium thereof.The method comprises the steps that to-be-classified images are obtained and input into a first processing assembly and a second processing assembly, and the images processed by the first processing assembly and the second processing assembly are obtained respectively; reconstructing the image processed by the first processing component and the second processing component to obtain a reconstructed image; and inputting the reconstructed image into an image classification model to obtain an image classification result. By introducing the interpretability model into the first processing component and the second processing component, the interpretability and confidence of the image classification result are improved. Particularly, the interpretable model is introduced into a medical image classification scene, so that a doctor can be assisted in accurately and quickly identifying tissues or organs with anomalies or pathological changes, and a patient can quickly understand a diagnosis result of the doctor on the basis of interpretation and characterization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology and is applied to image classification scenarios, and in particular to an image classification method, device, equipment and storage medium thereof. Background Art

[0002] In recent years, deep learning has been widely used in the medical field. For example, in pathology image classification, deep learning algorithms are used to diagnose tumor types and assess the quality of tissue samples. By training neural networks to identify different cell types and structures in images, pathologists can make diagnoses and plan treatments more quickly. By training on a large number of medical images, image classification models can learn how to distinguish between normal and abnormal tissues, organs, and lesions.

[0003] Although deep learning has been widely used in the medical field, there is still a large group of people who are skeptical about image classification or assisting doctors in case analysis, believing that machine / deep learning methods still have certain errors in assisting doctors in case analysis. At present, there is still a lack of a convincing and simple interpretable method for explaining the results of medical image classification, which leads to low trust in medical image classification results. Summary of the invention

[0004] The purpose of the embodiments of the present application is to propose an image classification method, apparatus, device and storage medium thereof to solve the problem that the prior art lacks a convincing and simple interpretable method for interpreting medical image classification results, resulting in low trust in medical image classification results.

[0005] In order to solve the above technical problems, the present application embodiment provides an image classification method, which adopts the following technical solutions:

[0006] An image classification method comprises the following steps:

[0007] Obtain batches of images to be classified and construct a target image set;

[0008] Inputting the target image set into a preset first processing component to obtain images processed by the first processing component, wherein the first processing component includes an input layer, a convolution layer, and an output layer of a preset interpretable model;

[0009] Inputting the target image set into a preset second processing component to obtain images processed by the second processing component, wherein the second processing component includes a pre-trained image classification model and an explanation representation layer of the interpretable model;

[0010] According to a preset image reconstruction mechanism, reconstruct the image processed by the first processing component and the image processed by the second processing component to obtain a reconstructed atlas;

[0011] The reconstructed atlas is input into the image classification model to obtain classification results of the batch of images to be classified.

[0012] Furthermore, before executing the step of inputting the target image set into a preset first processing component to obtain the image processed by the first processing component, the method further includes:

[0013] Obtain a training image set with labeled classification results as a target image set;

[0014] Inputting the target image set into a first processing component to be trained to obtain images processed by the first processing component;

[0015] Inputting the target image set into a preset second processing component to obtain images processed by the second processing component;

[0016] According to a preset image reconstruction mechanism, reconstruct the image processed by the first processing component and the image processed by the second processing component to obtain a reconstructed atlas;

[0017] Inputting the reconstructed atlas into the image classification model to obtain actual classification results of the training image set;

[0018] According to the actual classification results of the training image set and the labeled classification results, an output value of the last softmax layer of the image classification model is obtained;

[0019] According to the output value and the preset output threshold, the first processing component is tuned and trained until the output value meets the output threshold, then the tuning training of the first processing component is completed, and the trained first processing component is used as the preset first processing component.

[0020] Furthermore, the step of inputting the target image set into the first processing component to be trained to obtain the image processed by the first processing component specifically includes:

[0021] Inputting the training image set with the labeled classification results into the convolution layer via the input layer;

[0022] Performing convolution blurring processing on all images in the training image set through the convolution layer to obtain blur images corresponding to all images in the training image set, wherein the convolution layer is composed of a single-layer convolutional neural network;

[0023] The fuzzy images corresponding to all the images in the training image set are outputted through the output layer.

[0024] Furthermore, the step of inputting the target image set into a preset first processing component to obtain the image processed by the first processing component specifically includes:

[0025] Inputting the batch of images to be classified into the convolutional layer via the input layer;

[0026] Performing convolution blur processing on the batch of images to be classified through the convolution layer to obtain blur images corresponding to all images to be classified;

[0027] The fuzzy images corresponding to all the images to be classified are outputted through the output layer.

[0028] Furthermore, the step of inputting the target image set into a preset second processing component to obtain the image processed by the second processing component specifically includes:

[0029] Performing feature extraction on all images in the target image set respectively through the image classification model to obtain feature extraction results corresponding to all images respectively, wherein the feature extraction includes image edge feature extraction and / or image texture feature extraction;

[0030] According to the feature extraction results corresponding to all images and the regional attention levels corresponding to different preset feature factors, the interpretation and representation layer generates heat maps corresponding to all images in the target image set, wherein the heat map refers to the regional attention levels corresponding to different feature factors represented by different colors and color intensities.

[0031] Furthermore, the step of reconstructing the image processed by the first processing component and the image processed by the second processing component according to a preset image reconstruction mechanism to obtain a reconstructed atlas specifically includes:

[0032] Performing image binarization processing on the thermal map to obtain a corresponding black and white image;

[0033] Extracting the original image area corresponding to the white area of ​​the black-and-white image from the original image corresponding to the heat map, and

[0034] Extracting a blurred image region corresponding to a black region of the black-and-white image from the blurred image corresponding to the original image;

[0035] Generate a reconstructed image corresponding to the original image by superimposing the original image area corresponding to the white area and the blurred image area corresponding to the black area, wherein the original image refers to any image in the current target image set;

[0036] Generate reconstructed images corresponding to all images in the current target image set to obtain the reconstructed atlas.

[0037] Furthermore, the step of obtaining the output value of the last softmax layer of the image classification model according to the actual classification results of the training image set and the labeled classification results specifically includes:

[0038] Comparing the actual classification result of the training image set with the labeled classification result, and using a cross entropy loss function to calculate a loss value after training the first processing component this time;

[0039] According to the preset difference calculation method:

[0040] O=1-L,

[0041] Calculate the output value, where O represents the output value, L represents the loss value, and the value range of L is between 0 and 1.

[0042] Further, the first processing component is tuned and trained according to the output value and the preset output threshold until the output value meets the output threshold, and the tuning training of the first processing component is completed, and the step of using the trained first processing component as the preset first processing component specifically includes:

[0043] Step 501, determining whether the output value exceeds the output threshold;

[0044] Step 502: If the output value does not exceed the output threshold, the convolution layer of the first processing component is subjected to parameter tuning, and after the parameter tuning is completed, the first processing component is subjected to a training step again to obtain the output value of the last softmax layer of the image classification model, and step 501 is repeated;

[0045] Step 503: until the output value exceeds the output threshold, the tuning training of the first processing component is completed, and the trained first processing component is used as the preset first processing component.

[0046] In order to solve the above technical problems, the embodiment of the present application also provides an image classification device, which adopts the following technical solution:

[0047] An image classification device, comprising:

[0048] The module for acquiring images to be classified is used to acquire batches of images to be classified and construct a target image set;

[0049] A first processing component processing module, used for inputting the target image set into a preset first processing component to obtain an image processed by the first processing component, wherein the first processing component includes an input layer, a convolution layer and an output layer of a preset interpretable model;

[0050] A second processing component processing module, used for inputting the target image set into a preset second processing component to obtain images processed by the second processing component, wherein the second processing component includes a pre-trained image classification model and an explanation representation layer of the interpretable model;

[0051] An image reconstruction module, used to reconstruct the image processed by the first processing component and the image processed by the second processing component according to a preset image reconstruction mechanism to obtain a reconstructed atlas;

[0052] The reconstructed image classification module is used to input the reconstructed atlas into the image classification model to obtain the classification results of the batch of images to be classified.

[0053] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0054] A computer device comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the above-mentioned image classification method when executing the computer-readable instructions.

[0055] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0056] A computer-readable storage medium stores computer-readable instructions, which implement the steps of the image classification method described above when executed by a processor.

[0057] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0058] The image classification method described in the embodiment of the present application obtains an image to be classified by inputting it into a preset first processing component to obtain an image processed by the first processing component; inputs the image to be classified into a preset second processing component to obtain an image processed by the second processing component; reconstructs the image processed by the first processing component and the second processing component to obtain a reconstructed image; and inputs the reconstructed image into an image classification model to obtain an image classification result. By introducing an interpretable model into the first processing component and the second processing component, the interpretability and confidence of the image classification results are improved. In particular, introducing the interpretable model into the medical image classification scenario can not only assist doctors in accurately and quickly identifying abnormal or diseased tissues or organs, but also enable patients to quickly understand the doctor's diagnosis results based on the interpretation representation. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0060] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0061] Figure 2 is a flow chart of an embodiment of an image classification method according to the present application;

[0062] Figure 3 is a flowchart of a specific embodiment of training the first processing component in the image classification method described in the present application;

[0063] Figure 4 yes Figure 3 A flowchart of a specific embodiment of step 302 is shown in FIG.

[0064] Figure 5 yes Figure 3 A flowchart of a specific embodiment of step 307 is shown in FIG.

[0065] Figure 6 yes Figure 2 A flowchart of a specific embodiment of step 202 is shown in FIG.

[0066] Figure 7 yes Figure 2 A flowchart of a specific embodiment of step 203 is shown in FIG.

[0067] Figure 8 yes Figure 2 A flowchart of a specific embodiment of step 204 is shown in FIG.

[0068] Fig. 9 is a schematic structural diagram of an embodiment of an image classification device according to the present application;

[0069] Fig.10 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0070] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0071] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0072] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0073] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0074] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0075] The terminal devices 101, 102, and 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.

[0076] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .

[0077] It should be noted that the image classification method provided in the embodiment of the present application is generally executed by a terminal device, and accordingly, the image classification device is generally arranged in the terminal device.

[0078] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0079] Continue to refer Figure 2 , shows a flow chart of an embodiment of an image classification method according to the present application. The image classification method comprises the following steps:

[0080] Step 201: obtain a batch of images to be classified and construct a target image set.

[0081] In this embodiment, the image to be classified includes medical images to be classified and identified by doctors. By training a large number of medical images, the corresponding image classification model can be obtained, and it can be learned how to distinguish normal and abnormal tissues, organs and lesions, and identify different cell types and structures in the image, which can help pathologists to make diagnosis and treatment plans more quickly, and in the classification of pathological images, it can predict tumor types and evaluate the quality of tissue samples. Commonly used medical images include cardiovascular angiography, X-ray CT scans, ultrasonic CT, magnetic resonance imaging, medical ultrasound examinations, etc.

[0082] Step 202: input the target image set into a preset first processing component to obtain images processed by the first processing component, wherein the first processing component includes an input layer, a convolutional layer, and an output layer of a preset interpretable model.

[0083] Through the input layer, convolution layer and output layer of the preset interpretable model in the first processing component, a fuzzy image of the target image is obtained, that is, a fuzzy image of the medical image that the patient has taken and is waiting to be classified and identified by the doctor, so as to facilitate the subsequent use of the fuzzy image.

[0084] In this embodiment, before executing the step of inputting the target image set into a preset first processing component to obtain the image processed by the first processing component, the method also includes a method for training the first processing component.

[0085] Continue to refer Figure 3 , Figure 3 is a flowchart of a specific embodiment of training the first processing component in the image classification method of the present application, including:

[0086] Step 301, obtaining a training image set with labeled classification results as a target image set;

[0087] In this embodiment, the training image set with labeled classification results includes medical images with labeled classification results, such as medical images with labeled normal and abnormal cell tissues, or with labeled tumor types. By using the training image set with labeled classification results, the confidence of the trained interpretable model is guaranteed.

[0088] Step 302, inputting the target image set into a first processing component to be trained to obtain images processed by the first processing component;

[0089] Continue to refer Figure 4 , Figure 4 yes Figure 3 The flowchart of a specific embodiment of step 302 shown in FIG. 1 includes:

[0090] Step 401, inputting the training image set with the labeled classification results into the convolution layer through the input layer;

[0091] Step 402, performing convolution blurring processing on all images in the training image set through the convolution layer to obtain blur images corresponding to all images in the training image set, wherein the convolution layer is composed of a single-layer convolutional neural network;

[0092] Step 403: outputting fuzzy images corresponding to all images in the training image set through the output layer.

[0093] By passing the medical images with normal and abnormal cell tissues or tumor types marked successively through the output layer, convolution layer and output layer of the analyzable model, the corresponding fuzzy image is output, wherein the convolution layer can be composed of a single-layer convolutional neural network with a convolution kernel size of 9×9. It is ensured that when the medical images of the patient that have been taken and are to be classified and identified by the doctor are processed to obtain the fuzzy image in actual classification, the steps are consistent with those during training, making the credibility of the interpretable model higher.

[0094] Step 303, inputting the target image set into a preset second processing component to obtain images processed by the second processing component;

[0095] In this embodiment, the step of inputting the target image set into a preset second processing component to obtain images processed by the second processing component specifically includes: performing feature extraction on all images in the target image set through the image classification model to obtain feature extraction results corresponding to all images, wherein the feature extraction includes image edge feature extraction and / or image texture feature extraction; according to the feature extraction results corresponding to all images and the regional attention levels corresponding to preset different feature factors, generating a heat map corresponding to all images in the target image set through the interpretation and representation layer, wherein the heat map refers to the regional attention levels corresponding to different feature factors represented by different colors and color intensities.

[0096] Specifically, the step of performing feature extraction on all images in the target image set respectively through the image classification model to obtain feature extraction results corresponding to all images is specifically implemented as follows: an edge detection algorithm is introduced into the feature extraction layer of the image classification model to extract image edge features. For example, an edge detection algorithm is introduced into the feature extraction layer based on a CNN convolutional neural network of the image classification model to extract the image edge features. Similarly, a texture description factor can be introduced into the feature extraction layer of the image classification model to extract image texture features. For example, a texture description factor is introduced into the feature extraction layer based on a CNN convolutional neural network of the image classification model to extract the image texture features.

[0097] The image classification model is used to perform feature extraction on the medical images that have been labeled with normal and abnormal cell tissues, or labeled with tumor types, to extract edge features and / or texture features in the medical images. Based on the interpretation and representation layer of the parseable model, different colors and color intensities are used to represent the degree of regional attention corresponding to different feature factors, and a heat map corresponding to the medical image is generated. This realizes the use of an interpretable model to directly indicate where the focus of the image classification model is, and to ensure the confidence of interpretability during the interpretable model training stage. The use of different colors and color intensities in the heat map is convenient for doctors and patients to view, and also convenient for doctors and patients to simply understand the content represented in the heat map.

[0098] Step 304, reconstructing the image processed by the first processing component and the image processed by the second processing component according to a preset image reconstruction mechanism to obtain a reconstructed atlas;

[0099] In this embodiment, the step of reconstructing the image processed by the first processing component and the image processed by the second processing component according to the preset image reconstruction mechanism to obtain the reconstructed atlas specifically includes: performing image binarization processing on the heat map to obtain the corresponding black and white image; extracting the original image area corresponding to the white area of ​​the black and white image from the original image corresponding to the heat map, and extracting the fuzzy image area corresponding to the black area of ​​the black and white image from the fuzzy image corresponding to the original image; generating a reconstructed image corresponding to the original image by superimposing the original image area corresponding to the white area and the fuzzy image area corresponding to the black area, wherein the original image refers to any image in the current target image set; generating reconstructed images corresponding to all images in the current target image set, respectively, to obtain the reconstructed atlas. At this time, the current target image set refers to the training image set of the labeled classification results.

[0100] In this embodiment, the extraction of the original image area corresponding to the white area of ​​the black-and-white image from the original image corresponding to the thermal map, and the extraction of the fuzzy image area corresponding to the black area of ​​the black-and-white image from the fuzzy map corresponding to the original image can also be replaced by extracting the thermal image area corresponding to the white area of ​​the black-and-white image from the thermal map, and extracting the fuzzy image area corresponding to the black area of ​​the black-and-white image from the fuzzy map corresponding to the original image; by superimposing the thermal image area corresponding to the white area and the fuzzy image area corresponding to the black area, a reconstructed image corresponding to the original image is generated, wherein the original image refers to any image in the current target image set; and reconstructed images corresponding to all images in the current target image set are generated to obtain the reconstructed atlas. At this time, the current target image set refers to the training image set of the labeled classification results.

[0101] Specifically, the step of performing image binarization processing on the heat map to obtain the corresponding black and white image can be performed by performing an expansion operation on the heat map so that the size of the heat map is the same as the size of the fuzzy image, and then only extracting the red channel image of the RGB three colors corresponding to the heat map, and calculating the mean of all pixels in the red channel image, pixel points less than the mean are uniformly converted to white, and pixel points greater than the mean are uniformly converted to black, thereby realizing image binarization processing on the heat map to obtain the corresponding black and white image.

[0102] In this embodiment, when executing the steps of extracting the original image area corresponding to the white area of ​​the black-and-white image from the original image corresponding to the heat map, and extracting the blurred image area corresponding to the black area of ​​the black-and-white image from the blurred image corresponding to the original image, the optimal solution is to perform a dilation operation to make the sizes of the heat map, the blurred image and the original image consistent before extracting the original image area and the blurred image area, so as to facilitate subsequent image reconstruction.

[0103] In essence, the image reconstruction process is to hide and blur the areas corresponding to features with lower attention levels, and enhance or not enhance the features with higher attention levels, and then reconstruct the image, selectively enhance or weaken the features of the image area, so that doctors or patients can pay direct or more attention to the key feature areas, without wasting a lot of time on irrelevant or less influential feature areas.

[0104] Step 305, inputting the reconstructed atlas into the image classification model to obtain the actual classification result of the training image set;

[0105] Step 306, obtaining the output value of the last softmax layer of the image classification model according to the actual classification results of the training image set and the labeled classification results;

[0106] In this embodiment, the step of obtaining the output value of the last softmax layer of the image classification model based on the actual classification results of the training image set and the labeled classification results specifically includes: comparing the actual classification results of the training image set and the labeled classification results, and using the cross entropy loss function to calculate the loss value after training the first processing component this time; calculating the output value according to the preset difference operation method: O=1-L, wherein O represents the output value, L represents the loss value, and the value range of L is between 0 and 1.

[0107] Step 307, tuning and training the first processing component according to the output value and the preset output threshold, until the output value meets the output threshold, then the tuning and training of the first processing component is completed, and the trained first processing component is used as the preset first processing component.

[0108] Continue to refer Figure 5 , Figure 5 yes Figure 3 The flowchart of a specific embodiment of step 307 shown in FIG. 1 includes:

[0109] Step 501, determining whether the output value exceeds the output threshold;

[0110] Step 502: If the output value does not exceed the output threshold, the convolution layer of the first processing component is subjected to parameter tuning, and after the parameter tuning is completed, the first processing component is subjected to a training step again to obtain the output value of the last softmax layer of the image classification model, and step 501 is repeated;

[0111] Specifically, since the image classification model is a trained model, there is no need to perform too much model tuning processing. Moreover, the interpretable model is composed of an input layer, a convolutional layer, an explanatory representation layer and an output layer. It is only necessary to continuously tune the convolutional layer. Without consuming a lot of cost for training and adjustment, interpretable output of image classification results can be achieved.

[0112] Step 503: until the output value exceeds the output threshold, the tuning training of the first processing component is completed, and the trained first processing component is used as the preset first processing component.

[0113] Continue to refer Figure 6 , Figure 6 yes Figure 2The flowchart of a specific embodiment of step 202 shown in FIG. 1 includes:

[0114] Step 601, inputting the batch of images to be classified into the convolutional layer via the input layer;

[0115] Step 602, performing convolution blurring processing on the batch of images to be classified through the convolution layer to obtain blur images corresponding to all the images to be classified;

[0116] Step 603: output the fuzzy images corresponding to all the images to be classified through the output layer.

[0117] In this embodiment, the image to be classified is a medical image that has just been taken by the patient and is to be classified and identified by a doctor; by inputting the medical image into a first processing component that has been trained, since the medical image needs to be interpreted and represented to obtain a thermal map later, the medical image can also be input into a trained interpretable model, and a fuzzy map corresponding to the medical image is obtained through the first processing component or the interpretable model.

[0118] Step 203: input the target image set into a preset second processing component to obtain images processed by the second processing component, wherein the second processing component includes a pre-trained image classification model and an explanation representation layer of the interpretable model.

[0119] Continue to refer Figure 7 , Figure 7 yes Figure 2 The flowchart of a specific embodiment of step 203 shown in FIG. 1 includes:

[0120] Step 701, performing feature extraction on all images in the target image set respectively through the image classification model to obtain feature extraction results corresponding to all images respectively, wherein the feature extraction includes image edge feature extraction and / or image texture feature extraction;

[0121] Correspondingly, for feature extraction of the medical images of the patient that have just been taken and are to be classified and identified by the doctor, an edge detection algorithm may be introduced into the feature extraction layer of the image classification model to extract the edge features of the image. For example, an edge detection algorithm may be introduced into the feature extraction layer of the image classification model based on the CNN convolutional neural network to extract the edge features of the image. Similarly, a texture description factor may be introduced into the feature extraction layer of the image classification model to extract the texture features of the image. For example, a texture description factor may be introduced into the feature extraction layer of the image classification model based on the CNN convolutional neural network to extract the texture features of the image. In actual application, it is necessary to ensure that the edge detection algorithm is introduced during training and the edge detection algorithm is also introduced during subsequent actual classification predictions, or the texture description factor is introduced during training and the texture description factor is also introduced during subsequent actual classification predictions, so that the feature extraction before and after is consistent.

[0122] Step 702, based on the feature extraction results corresponding to all images and the regional attention levels corresponding to different preset feature factors, a heat map corresponding to all images in the target image set is generated through the interpretation and representation layer, wherein the heat map refers to the regional attention levels corresponding to different feature factors represented by different colors and color intensities.

[0123] The image classification model is used to extract features from the medical images that have just been taken of the patient and are to be classified and identified by the doctor, and the edge features and / or texture features in the medical images are extracted. Then, based on the interpretation representation layer of the parseable model, different colors and color intensities are used to represent the degree of regional attention corresponding to different feature factors, and a heat map corresponding to the medical image is generated. This realizes the use of an interpretable model to directly indicate where the focus of the image classification model is, and can improve the accuracy of image classification on the premise of dividing the key positions of image classification, thereby better playing an important auxiliary role in the field of medical applications.

[0124] Step 204: reconstruct the image processed by the first processing component and the image processed by the second processing component according to a preset image reconstruction mechanism to obtain a reconstructed atlas.

[0125] Continue to refer Figure 8 , Figure 8 yes Figure 2 The flowchart of a specific embodiment of step 204 shown in FIG. 1 includes:

[0126] Step 801, performing image binarization processing on the thermal map to obtain a corresponding black and white image;

[0127] In this embodiment, in order to simplify the processing steps, the method of performing image binarization processing in step 801 to obtain the corresponding black and white image is preferably consistent with the method of performing image binarization processing in the aforementioned training step to obtain the corresponding black and white image.

[0128] Step 802: extracting the original image area corresponding to the white area of ​​the black-and-white image from the original image corresponding to the heat map, and

[0129] Step 803, extracting the blurred image area corresponding to the black area of ​​the black-and-white image from the blurred image corresponding to the original image;

[0130] Step 804, generating a reconstructed image corresponding to the original image by superimposing the original image area corresponding to the white area and the blurred image area corresponding to the black area, wherein the original image refers to any image in the current target image set;

[0131] Step 805, generating reconstructed images corresponding to all images in the current target image set, and obtaining the reconstructed atlas. At this time, the current target image set refers to the image set composed of the batch of images to be classified.

[0132] In this embodiment, the step 802 of extracting the original image area corresponding to the white area of ​​the black-and-white image from the original image corresponding to the thermal map can also be replaced by extracting the thermal image area corresponding to the white area of ​​the black-and-white image from the thermal map; correspondingly, in step 804, the reconstructed image corresponding to the original image is generated by superimposing the thermal image area corresponding to the white area and the fuzzy image area corresponding to the black area, wherein the original image refers to any image in the current target image set. At this time, the current target image set refers to the image set consisting of the batch of images to be classified.

[0133] In actual image classification, the areas corresponding to features with lower attention levels are hidden and blurred, while features with higher attention levels are enhanced or not enhanced. Image reconstruction is then performed, and the features of the image areas are selectively enhanced or weakened, so that doctors or patients can pay direct or more attention to key feature areas without wasting a lot of time on irrelevant or less influential feature areas.

[0134] Step 205: input the reconstructed atlas into the image classification model to obtain classification results for the batch of images to be classified.

[0135] Of course, in the actual classification prediction stage, the input image to be classified may also be a single image, specifically a single image to be classified or a batch of images to be classified, which is determined by the actual application scenario and does not affect the processing steps proposed in this application.

[0136] The present application obtains the image to be classified by inputting it into a preset first processing component to obtain the image processed by the first processing component; inputs the image to be classified into a preset second processing component to obtain the image processed by the second processing component; reconstructs the image processed by the first processing component and the second processing component to obtain a reconstructed image; and inputs the reconstructed image into an image classification model to obtain an image classification result. By introducing an interpretable model into the first processing component and the second processing component, the interpretability and confidence of the image classification results are improved. In particular, introducing the interpretable model into the medical image classification scenario can not only assist doctors in accurately and quickly identifying abnormal or diseased tissues or organs, but also enable patients to quickly understand the doctor's diagnosis results based on the interpretation representation.

[0137] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0138] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0139] In an embodiment of the present application, an image to be classified is input into a preset first processing component to obtain an image processed by the first processing component; the image to be classified is input into a preset second processing component to obtain an image processed by the second processing component; the image processed by the first processing component and the second processing component is reconstructed to obtain a reconstructed image; the reconstructed image is input into an image classification model to obtain an image classification result. By introducing an interpretable model into the first processing component and the second processing component, the interpretability and confidence of the image classification results are improved. In particular, introducing the interpretable model into the medical image classification scenario can not only assist doctors to accurately and quickly identify abnormal or diseased tissues or organs, but also enable patients to quickly understand the doctor's diagnosis results based on the interpretation representation.

[0140] Further references Fig. 9 , as a response to the above Figure 2 The present application provides an embodiment of an image classification device, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0141] like Fig. 9 As shown, the image classification device 900 described in this embodiment includes: a to-be-classified image acquisition module 901, a first processing component processing module 902, a second processing component processing module 903, an image reconstruction module 904 and a reconstructed image classification module 905. Among them:

[0142] The to-be-classified image acquisition module 901 is used to acquire batches of to-be-classified images and construct a target image set;

[0143] A first processing component processing module 902, configured to input the target image set into a preset first processing component to obtain an image processed by the first processing component, wherein the first processing component includes an input layer, a convolution layer, and an output layer of a preset interpretable model;

[0144] A second processing component processing module 903, used for inputting the target image set into a preset second processing component to obtain images processed by the second processing component, wherein the second processing component includes a pre-trained image classification model and an explanation representation layer of the interpretable model;

[0145] An image reconstruction module 904 is used to reconstruct the image processed by the first processing component and the image processed by the second processing component according to a preset image reconstruction mechanism to obtain a reconstructed atlas;

[0146] The reconstructed image classification module 905 is used to input the reconstructed atlas into the image classification model to obtain the classification results of the batch of images to be classified.

[0147] The present application obtains the image to be classified by inputting it into a preset first processing component to obtain the image processed by the first processing component; inputs the image to be classified into a preset second processing component to obtain the image processed by the second processing component; reconstructs the image processed by the first processing component and the second processing component to obtain a reconstructed image; and inputs the reconstructed image into an image classification model to obtain an image classification result. By introducing an interpretable model into the first processing component and the second processing component, the interpretability and confidence of the image classification results are improved. In particular, introducing the interpretable model into the medical image classification scenario can not only assist doctors in accurately and quickly identifying abnormal or diseased tissues or organs, but also enable patients to quickly understand the doctor's diagnosis results based on the interpretation representation.

[0148] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0149] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0150] To solve the above technical problems, the present application also provides a computer device. Fig.10 , Fig.10 This is a basic structural block diagram of the computer device in this embodiment.

[0151] The computer device 10 includes a memory 10a, a processor 10b, and a network interface 10c that are interconnected through a system bus. It should be noted that the figure only shows a computer device 10 having components 10a-10c, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital processors (DSPs), embedded devices, etc.

[0152] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0153] The memory 10a includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10a can be an internal storage unit of the computer device 10, such as a hard disk or memory of the computer device 10. In other embodiments, the memory 10a can also be an external storage device of the computer device 10, such as a plug-in hard disk equipped on the computer device 10, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10a can also include both the internal storage unit of the computer device 10 and its external storage device. In this embodiment, the memory 10a is generally used to store an operating system and various application software installed on the computer device 10, such as a computer-readable instruction of an image classification method, etc. In addition, the memory 10a can also be used to temporarily store various data that have been output or will be output.

[0154] The processor 10b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 10b is generally used to control the overall operation of the computer device 10. In this embodiment, the processor 10b is used to run the computer-readable instructions stored in the memory 10a or process data, such as computer-readable instructions for running the image classification method.

[0155] The network interface 10c may include a wireless network interface or a wired network interface. The network interface 10c is generally used to establish a communication connection between the computer device 10 and other electronic devices.

[0156] The computer device proposed in this embodiment belongs to the field of artificial intelligence technology and is applied to image classification scenarios. The present application obtains an image processed by the first processing component by obtaining an image to be classified and inputting it into a preset first processing component; inputs the image to be classified into a preset second processing component to obtain an image processed by the second processing component; reconstructs the image processed by the first processing component and the second processing component to obtain a reconstructed image; and inputs the reconstructed image into an image classification model to obtain an image classification result. By introducing an interpretable model into the first processing component and the second processing component, the interpretability and confidence of the image classification results are improved. In particular, introducing the interpretable model into the medical image classification scenario can not only assist doctors in accurately and quickly identifying abnormal or diseased tissues or organs, but also enable patients to quickly understand the doctor's diagnosis results based on the interpretation representation.

[0157] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by a processor to enable the processor to perform the steps of the image classification method as described above.

[0158] The computer-readable storage medium proposed in this embodiment belongs to the field of artificial intelligence technology and is applied to image classification scenarios. This application obtains an image processed by the first processing component by obtaining an image to be classified and inputting it into a preset first processing component; inputs the image to be classified into a preset second processing component to obtain an image processed by the second processing component; reconstructs the image processed by the first processing component and the second processing component to obtain a reconstructed image; and inputs the reconstructed image into an image classification model to obtain an image classification result. By introducing an interpretable model into the first processing component and the second processing component, the interpretability and confidence of the image classification results are improved. In particular, introducing the interpretable model into the medical image classification scenario can not only assist doctors in accurately and quickly identifying abnormal or diseased tissues or organs, but also enable patients to quickly understand the doctor's diagnosis results based on the interpretation representation.

[0159] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0160] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. An image classification method, characterized in that: The steps include: Obtain batches of images to be classified and construct a target image set; Inputting the target image set into a preset first processing component to obtain images processed by the first processing component, wherein the first processing component includes an input layer, a convolution layer, and an output layer of a preset interpretable model; Inputting the target image set into a preset second processing component to obtain images processed by the second processing component, wherein the second processing component includes a pre-trained image classification model and an explanation representation layer of the interpretable model; According to a preset image reconstruction mechanism, reconstruct the image processed by the first processing component and the image processed by the second processing component to obtain a reconstructed atlas; The reconstructed atlas is input into the image classification model to obtain classification results of the batch of images to be classified.

2. The image classification method according to claim 1, characterized in that: Before executing the step of inputting the target image set into a preset first processing component to obtain the image processed by the first processing component, the method further includes: Obtain a training image set with labeled classification results as a target image set; Inputting the target image set into a first processing component to be trained to obtain images processed by the first processing component; Inputting the target image set into a preset second processing component to obtain images processed by the second processing component; According to a preset image reconstruction mechanism, reconstruct the image processed by the first processing component and the image processed by the second processing component to obtain a reconstructed atlas; Inputting the reconstructed atlas into the image classification model to obtain actual classification results of the training image set; According to the actual classification results of the training image set and the labeled classification results, an output value of the last softmax layer of the image classification model is obtained; According to the output value and the preset output threshold, the first processing component is tuned and trained until the output value meets the output threshold, then the tuning training of the first processing component is completed, and the trained first processing component is used as the preset first processing component.

3. The image classification method according to claim 2, characterized in that: The step of inputting the target image set into the first processing component to be trained to obtain the image processed by the first processing component specifically includes: Inputting the training image set with the labeled classification results into the convolution layer via the input layer; Performing convolution blurring processing on all images in the training image set through the convolution layer to obtain blur images corresponding to all images in the training image set, wherein the convolution layer is composed of a single-layer convolutional neural network; The fuzzy images corresponding to all the images in the training image set are outputted through the output layer.

4. The image classification method according to claim 1, characterized in that: The step of inputting the target image set into a preset first processing component to obtain the image processed by the first processing component specifically includes: Inputting the batch of images to be classified into the convolutional layer via the input layer; Performing convolution blur processing on the batch of images to be classified through the convolution layer to obtain blur images corresponding to all images to be classified; The fuzzy images corresponding to all the images to be classified are outputted through the output layer.

5. The image classification method according to claim 1 or 2, characterized in that: The step of inputting the target image set into a preset second processing component to obtain the image processed by the second processing component specifically includes: Performing feature extraction on all images in the target image set respectively through the image classification model to obtain feature extraction results corresponding to all images respectively, wherein the feature extraction includes image edge feature extraction and / or image texture feature extraction; According to the feature extraction results corresponding to all images and the regional attention levels corresponding to different preset feature factors, the interpretation and representation layer generates heat maps corresponding to all images in the target image set, wherein the heat map refers to the regional attention levels corresponding to different feature factors represented by different colors and color intensities.

6. The image classification method according to claim 5, characterized in that: The step of reconstructing the image processed by the first processing component and the image processed by the second processing component according to a preset image reconstruction mechanism to obtain a reconstructed atlas specifically includes: Performing image binarization processing on the thermal map to obtain a corresponding black and white image; Extracting the original image area corresponding to the white area of ​​the black-and-white image from the original image corresponding to the heat map, and Extracting a blurred image region corresponding to a black region of the black-and-white image from the blurred image corresponding to the original image; Generate a reconstructed image corresponding to the original image by superimposing the original image area corresponding to the white area and the blurred image area corresponding to the black area, wherein the original image refers to any image in the current target image set; Generate reconstructed images corresponding to all images in the current target image set to obtain the reconstructed atlas.

7. The image classification method according to claim 2, characterized in that: The step of obtaining the output value of the last softmax layer of the image classification model according to the actual classification results of the training image set and the labeled classification results specifically includes: Comparing the actual classification result of the training image set with the labeled classification result, and using a cross entropy loss function to calculate a loss value after training the first processing component this time; According to the preset difference calculation method: O=1-L, Calculate the output value, where O represents the output value, L represents the loss value, and the value range of L is between 0 and 1.

8. The image classification method according to claim 2, characterized in that: The step of performing tuning training on the first processing component according to the output value and the preset output threshold until the output value meets the output threshold, and then completing the tuning training of the first processing component, and using the trained first processing component as the preset first processing component, specifically includes: Step 501, determining whether the output value exceeds the output threshold; Step 502: If the output value does not exceed the output threshold, the convolution layer of the first processing component is subjected to parameter tuning, and after the parameter tuning is completed, the first processing component is subjected to a training step again to obtain the output value of the last softmax layer of the image classification model, and step 501 is repeated; Step 503: until the output value exceeds the output threshold, the tuning training of the first processing component is completed, and the trained first processing component is used as the preset first processing component.

9. An image classification device, characterized in that: include: The module for acquiring images to be classified is used to acquire batches of images to be classified and construct a target image set; A first processing component processing module, used for inputting the target image set into a preset first processing component to obtain an image processed by the first processing component, wherein the first processing component includes an input layer, a convolution layer and an output layer of a preset interpretable model; A second processing component processing module, used for inputting the target image set into a preset second processing component to obtain images processed by the second processing component, wherein the second processing component includes a pre-trained image classification model and an explanation representation layer of the interpretable model; An image reconstruction module, used to reconstruct the image processed by the first processing component and the image processed by the second processing component according to a preset image reconstruction mechanism to obtain a reconstructed atlas; The reconstructed image classification module is used to input the reconstructed atlas into the image classification model to obtain the classification results of the batch of images to be classified.

10. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the image classification method according to any one of claims 1 to 8 when executing the computer-readable instructions.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the image classification method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Medical image classification method, device and equipment, computer equipment and storage medium

    CN111310841A

  • Human body key point heat map feature combined portrait scene identification method

    CN114529944A

  • Image processing method, electronic device and storage medium

    CN116645307A

  • Image classification model training method and device, equipment and medium

    CN117636010A

  • Assessment of image quality for optical character recognition using machine learning

    US20220366179A1