Image classification method and device
By extracting and fusing deep convolutional features and morphological features, the accuracy of image classification is improved and the problem of poor classification of similar images in the existing technology is solved.
Patent Information
- Application Number
- CN202011233250.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-06
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-11-06
AI Technical Summary
When existing image classification technology processes two or more types of images with a high degree of similarity, the classification effect still needs to be improved.
An image classification method is adopted, by inputting the target to-be-classified human brain image into a pre-trained multiple feature extraction neural network model and image classification model, extracting deep convolution features and morphological features respectively, and fusing them, inputting the pre-trained The trained image classification model performs classification.
By fusing different types of feature information, more discriminative classification features are obtained, which improves the accuracy and classification effect of image classification.
Smart Images

Figure CN112348083B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to an image classification method and device. Background Art
[0002] Image classification in the field of image processing technology refers to the classification of different types of images by their underlying features such as grayscale, color, texture, shape, and position. Currently, convolutional neural networks are mainly used to capture the convolution features of images, and then the images are classified by analyzing the captured convolution features.
[0003] However, due to the limited image features captured by convolutional neural networks, the classification effect of existing image classification techniques still needs to be improved for two or more categories of images with a high degree of similarity. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide an image classification method and device to improve the classification effect of image classification.
[0005] In order to achieve the above object, an embodiment of the present invention provides an image classification method, comprising:
[0006] Obtain a target human brain image to be classified;
[0007] Input the target human brain image to be classified into a pre-trained first feature extraction neural network model, a second feature extraction neural network model and a third feature extraction neural network model, and respectively extract the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified; wherein the first feature extraction neural network model is trained based on a plurality of first sample images and labels of a plurality of first sample images, the second feature extraction neural network model is trained based on a plurality of second sample images and labels of a plurality of second sample images, and the third feature extraction neural network model is trained based on a plurality of third sample images and labels of a plurality of third sample images; wherein the first sample image is a human brain image with AD (Alzheimer, Alzheimer's disease) characteristics, the second sample image is a human brain image with MCI (Mild cognitive impairment, mild cognitive impairment) characteristics, and the third sample image is a human brain image with neither AD characteristics nor MCI characteristics;
[0008] Using the specified image processing software to extract the morphological features of the target human brain image to be classified;
[0009] The morphological features of the target human brain image to be classified are respectively fused with the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified to obtain the first fusion feature, the second fusion feature and the third fusion feature of the target human brain image to be classified;
[0010] The first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained first image classification model to obtain three first classification results that the target human brain image to be classified is a first type of human brain image or a second type of human brain image; and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained second image classification model to obtain three second classification results that the target human brain image to be classified is a second type of human brain image or a third type of human brain image; and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained third image classification model to obtain three third classification results that the target human brain image to be classified is a first type of human brain image or a third type of human brain image; wherein the first image classification model is based on multiple fourth samples The second image classification model is obtained by training based on the fusion features of the present image and the labels of multiple fourth sample images, and the label of each fourth sample image indicates that the fourth sample image is a human brain image with AD features or a human brain image with MCI features; the second image classification model is obtained by training based on the fusion features of multiple fifth sample images and the labels of multiple fifth sample images, and the label of each fifth sample image indicates that the fifth sample image is a human brain image with MCI features or a human brain image with neither AD features nor MCI features; the third image classification model is obtained by training based on the fusion features of multiple sixth sample images and the labels of multiple sixth sample images, and the label of each sixth sample image indicates that the sixth sample image is a human brain image with AD features or a human brain image with neither AD features nor MCI features;
[0011] Based on each of the first classification results, each of the second classification results and each of the third classification results, it is determined that the target human brain image to be classified is a first type of human brain image, a second type of human brain image or a third type of human brain image.
[0012] In order to achieve the above object, an embodiment of the present invention further provides an image classification device, comprising:
[0013] An image acquisition module, used to obtain a target human brain image to be classified;
[0014] A first feature extraction module is used to input the target human brain image to be classified into a pre-trained first feature extraction neural network model, a second feature extraction neural network model and a third feature extraction neural network model, and respectively extract the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified; wherein the first feature extraction neural network model is trained based on a plurality of first sample images and labels of a plurality of first sample images, the second feature extraction neural network model is trained based on a plurality of second sample images and labels of a plurality of second sample images, and the third feature extraction neural network model is trained based on a plurality of third sample images and labels of a plurality of third sample images; wherein the first sample image is a human brain image with AD (Alzheimer, Alzheimer's disease) characteristics, the second sample image is a human brain image with MCI (Mildcognitive impairment, mild cognitive impairment) characteristics, and the third sample image is a human brain image with neither AD characteristics nor MCI characteristics;
[0015] A second feature extraction module, used to extract the morphological features of the target human brain image to be classified using the specified image processing software;
[0016] A feature fusion module, used to fuse the morphological features of the target human brain image to be classified with the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified, respectively, to obtain the first fusion feature, the second fusion feature and the third fusion feature of the target human brain image to be classified;
[0017] The image classification module is used to input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained first image classification model respectively, and obtain three first classification results that the target human brain image to be classified is a first type of human brain image or a second type of human brain image; and input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained second image classification model respectively, and obtain three second classification results that the target human brain image to be classified is a second type of human brain image or a third type of human brain image; and input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained third image classification model respectively, and obtain three third classification results that the target human brain image to be classified is a first type of human brain image or a third type of human brain image; wherein the first image classification model is based on The second image classification model is obtained by training based on the fusion features of multiple fourth sample images and the labels of multiple fourth sample images, and the label of each fourth sample image indicates that the fourth sample image is a human brain image with AD features or a human brain image with MCI features; the second image classification model is obtained by training based on the fusion features of multiple fifth sample images and the labels of multiple fifth sample images, and the label of each fifth sample image indicates that the fifth sample image is a human brain image with MCI features or a human brain image with neither AD features nor MCI features; the third image classification model is obtained by training based on the fusion features of multiple sixth sample images and the labels of multiple sixth sample images, and the label of each sixth sample image indicates that the sixth sample image is a human brain image with AD features or a human brain image with neither AD features nor MCI features;
[0018] A classification result determination module is used to determine whether the target human brain image to be classified is a first type of human brain image, a second type of human brain image or a third type of human brain image based on each of the first classification results, each of the second classification results and each of the third classification results.
[0019] In order to achieve the above object, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0020] Memory, used to store computer programs;
[0021] The processor is used to implement any of the above-mentioned steps of the image classification method when executing the program stored in the memory.
[0022] In order to achieve the above-mentioned purpose, an embodiment of the present invention provides a computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the above-mentioned steps of the image classification method is implemented.
[0023] In order to achieve the above object, an embodiment of the present invention further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the steps of the above-mentioned image classification method.
[0024] Beneficial effects of the embodiments of the present invention:
[0025] By adopting the method provided in the embodiment of the present invention, a target human brain image to be classified is obtained; the target human brain image to be classified is input into a pre-trained first feature extraction neural network model, a second feature extraction neural network model and a third feature extraction neural network model, and the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified are respectively extracted; the morphological features of the target human brain image to be classified are extracted using designated image processing software; the morphological features of the target human brain image to be classified are respectively fused with the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified, and the first fusion feature, the second fusion feature and the third fusion feature of the target human brain image to be classified are respectively input into the pre-trained first feature extraction neural network model, the second feature extraction neural network model and the third feature extraction neural network model, and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into the pre-trained The first image classification model is trained first, and three first classification results of the target human brain image to be classified are obtained as the first type of human brain image or the second type of human brain image; and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into the pre-trained second image classification model, and three second classification results of the target human brain image to be classified are obtained as the second type of human brain image or the third type of human brain image; and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into the pre-trained third image classification model, and three third classification results of the target human brain image to be classified are obtained as the first type of human brain image or the third type of human brain image; based on each first classification result, each second classification result and each third classification result, it is determined that the target human brain image to be classified is the first type of human brain image, the second type of human brain image or the third type of human brain image. That is, the fusion feature is obtained by fusing the morphological features and the deep convolution features of the target human brain image to be classified, and then the fusion feature is input into the pre-trained image classification model to classify the target human brain image to be classified. Since the fusion feature combines different types of feature information, it can obtain more discriminative classification features, thereby improving the classification accuracy of the target human brain image to be classified, that is, improving the classification effect of image classification.
[0026] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A flow chart of an image classification method provided by an embodiment of the present invention;
[0029] Figure 2 Another flow chart of the image classification method provided by the embodiment of the present invention;
[0030] Figure 3 The present invention is applied to human brain images before and after grayscale normalization processing;
[0031] Figure 4 The images of human brain images before and after the designated area removal process are performed by applying the embodiment of the present invention;
[0032] Figure 5 A structural diagram of a feature extraction neural network model pre-trained in an embodiment of the present invention;
[0033] Figure 6 Another flow chart of the image classification method provided by the embodiment of the present invention;
[0034] Figure 7 A flow chart of training a first feature extraction neural network model in an embodiment of the present invention;
[0035] Figure 8 A flow chart of training a first image classification model in an embodiment of the present invention;
[0036] Fig. 9 A schematic diagram of the structure of an image classification device provided by an embodiment of the present invention;
[0037] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] Since the classification effect of the existing image classification method needs to be improved, in order to improve the classification effect of image classification, the embodiments of the present invention provide an image classification method and device.
[0040] See also Figure 1 , Figure 1 A process of an image classification method provided by an embodiment of the present invention includes:
[0041] Step 101: Obtain a target human brain image to be classified.
[0042] Step 102: Input the target human brain image to be classified into the pre-trained first feature extraction neural network model, the second feature extraction neural network model and the third feature extraction neural network model to respectively extract the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified.
[0043] Among them, the first feature extraction neural network model is trained based on multiple first sample images and labels of multiple first sample images, the second feature extraction neural network model is trained based on multiple second sample images and labels of multiple second sample images, and the third feature extraction neural network model is trained based on multiple third sample images and labels of multiple third sample images; wherein the first sample image is a human brain image with AD (Alzheimer's disease) characteristics, the second sample image is a human brain image with MCI (Mild cognitive impairment) characteristics, and the third sample image is a human brain image with neither AD characteristics nor MCI characteristics.
[0044] Step 103: Use designated image processing software to extract morphological features of the target human brain image to be classified.
[0045] In the embodiment of the present invention, the morphological features of the target human brain image to be classified may include: surface area, gray matter volume, average curvature, cortical thickness and hippocampal subregion volume of the target human brain image to be classified, etc.
[0046] The designated image processing software may be FreeSurfer software.
[0047] Step 104, respectively fuse the morphological features of the target human brain image to be classified and the first deep convolution features, the second deep convolution features, and the third deep convolution features of the target human brain image to be classified to obtain the first fusion features, the second fusion features, and the third fusion features of the target human brain image to be classified.
[0048] For example, if the morphological features are: the surface area h1, gray matter volume h2, mean curvature h3, cortical thickness h4 and hippocampal subregion volume h5 of the target human brain image to be classified, the extracted morphological features of the target human brain image to be classified can be expressed as: [h1 h2 h3 h4 h5];
[0049] The first deep convolution feature can be expressed as: [g1 g2 g3 g4 g5], where g1-g5 all represent the deep convolution features of the target human brain image to be classified extracted by the first feature extraction neural network model;
[0050] The first fused feature obtained by fusing the morphological feature with the first deep convolutional feature is:
[0051]
[0052] The second deep convolution feature can be expressed as: [k1 k2 k3 k4 k5], where k1-k5 all represent the deep convolution features of the target human brain image to be classified extracted by the second feature extraction neural network model;
[0053] The second fused feature obtained by fusing the morphological feature with the second deep convolutional feature is:
[0054]
[0055] The third deep convolution feature can be expressed as: [m1 m2 m3 m4 m5], where m1-m5 all represent the deep convolution features of the target human brain image to be classified extracted by the third feature extraction neural network model;
[0056] The third fused feature obtained by fusing the morphological feature with the third deep convolutional feature is:
[0057]
[0058] Step 105, respectively input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained first image classification model to obtain three first classification results of the target human brain image to be classified as the first type of human brain image or the second type of human brain image; and respectively input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained second image classification model to obtain three second classification results of the target human brain image to be classified as the second type of human brain image or the third type of human brain image; and respectively input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained third image classification model to obtain three third classification results of the target human brain image to be classified as the first type of human brain image or the third type of human brain image.
[0059] Among them, the first image classification model is obtained by training based on the fusion features of multiple fourth sample images and the labels of multiple fourth sample images, and the label of each fourth sample image indicates that the fourth sample image is a human brain image with AD features or a human brain image with MCI features; the second image classification model is obtained by training based on the fusion features of multiple fifth sample images and the labels of multiple fifth sample images, and the label of each fifth sample image indicates that the fifth sample image is a human brain image with MCI features or a human brain image with neither AD features nor MCI features; the third image classification model is obtained by training based on the fusion features of multiple sixth sample images and the labels of multiple sixth sample images, and the label of each sixth sample image indicates that the sixth sample image is a human brain image with AD features or a human brain image with neither AD features nor MCI features.
[0060] Step 106: Based on each first classification result, each second classification result and each third classification result, determine whether the target human brain image to be classified is a first type of human brain image, a second type of human brain image or a third type of human brain image.
[0061] By adopting the method provided in the embodiment of the present invention, a target human brain image to be classified is obtained; the target human brain image to be classified is input into a pre-trained first feature extraction neural network model, a second feature extraction neural network model and a third feature extraction neural network model, and the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified are respectively extracted; the morphological features of the target human brain image to be classified are extracted using designated image processing software; the morphological features of the target human brain image to be classified are respectively fused with the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified, and the first fusion feature, the second fusion feature and the third fusion feature of the target human brain image to be classified are respectively input into the pre-trained first feature extraction neural network model, the second feature extraction neural network model and the third feature extraction neural network model, and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into the pre-trained The first image classification model is trained first, and three first classification results of the target human brain image to be classified are obtained as the first type of human brain image or the second type of human brain image; and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into the pre-trained second image classification model, and three second classification results of the target human brain image to be classified are obtained as the second type of human brain image or the third type of human brain image; and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into the pre-trained third image classification model, and three third classification results of the target human brain image to be classified are obtained as the first type of human brain image or the third type of human brain image; based on each first classification result, each second classification result and each third classification result, it is determined that the target human brain image to be classified is the first type of human brain image, the second type of human brain image or the third type of human brain image. That is, the fusion feature is obtained by fusing the morphological features and the deep convolution features of the target human brain image to be classified, and then the fusion feature is input into the pre-trained image classification model to classify the target human brain image to be classified. Since the fusion feature combines different types of feature information, it can obtain more discriminative classification features, thereby improving the classification accuracy of the target human brain image to be classified, that is, improving the classification effect of image classification.
[0062] See also Figure 2 , Figure 2 Another process of the image classification method provided by the embodiment of the present invention includes:
[0063] Step 201: obtaining a human brain image to be classified.
[0064] Specifically, the head of the tested person may be scanned to obtain a human brain image of the tested person as the human brain image to be classified.
[0065] Step 202: preprocess the human brain image to be classified using designated image processing software to obtain the preprocessed human brain image to be classified.
[0066] In the embodiment of the present invention, the designated image processing software may be FreeSurfer software. In this step, the operation of preprocessing the human brain image to be classified using FreeSurfer software may include steps A1 to A4:
[0067] Step A1, using FreeSurfer software to perform motion correction processing on the human brain image to be classified, to obtain the human brain image after motion correction processing.
[0068] Specifically, when obtaining the human brain image to be classified, the human brain image data to be classified may be affected by a slight shaking of the head of the person being tested. Therefore, in this step, FreeSurfer software can be used to perform motion correction processing on the human brain image to be classified to correct the impact of the slight shaking of the head of the person being tested on the human brain image data to be classified.
[0069] Step A2: Use FreeSurfer software to perform spatial normalization on the human brain image after motion correction to obtain a human brain image after spatial normalization.
[0070] Specifically, using FreeSurfer software to perform spatial standardization on human brain images after motion correction is actually to convert human brain images of different volumes and shapes into a standard space, and use the same coordinate system to describe the specific position of the brain in each human brain image.
[0071] Step A3, using FreeSurfer software to perform grayscale normalization processing on the human brain image after the spatial normalization processing, to obtain the human brain image after grayscale normalization processing.
[0072] Specifically, using designated image processing software to perform grayscale normalization on the human brain image after spatial normalization can reduce the impact of grayscale value fluctuations in the human brain image. Figure 3 , Figure 3 The left side in the middle is a human brain image 310 before grayscale normalization processing. Figure 3 The middle right side is a human brain image 320 after grayscale normalization processing.
[0073] Step A4, using designated image processing software to perform designated area removal processing on the human brain image after grayscale normalization processing, to obtain a pre-processed human brain image to be classified.
[0074] The designated area may be a non-human brain area in the image, such as a human skull area and a human neck area. Specifically, the non-human brain area in the human brain image after grayscale normalization processing can be removed by using a hybrid algorithm based on a watershed algorithm and a deformable surface model in FreeSurfer software to obtain a preprocessed human brain image to be classified. Figure 4, Figure 4 The left side in the middle is a human brain image 410 before the designated area removal process is performed. Figure 4 The right side of the figure is a human brain image 420 after the designated area is removed. Figure 4 After removing the skull and neck regions in the left-center human brain image, we can get Figure 4 Image 420 of a human brain on the middle right.
[0075] Step 203 , cropping the target region of the preprocessed human brain image to be classified to obtain a target human brain image to be classified.
[0076] In this step, the area that only covers the human brain in the preprocessed human brain image to be classified can be used as the target area, and the image of the target area can be cropped as the target human brain image to be classified.
[0077] Step 204, input the target human brain image to be classified into the pre-trained first feature extraction neural network model, the second feature extraction neural network model and the third feature extraction neural network model, and respectively extract the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified.
[0078] The first feature extraction neural network model, the second feature extraction neural network model and the third feature extraction neural network model pre-trained in the embodiment of the present invention all include: a preset number of dense blocks, each dense block includes a specified number of dense layers, and the last dense layer of the last dense block is a global average pooling layer. The preset number can be set to 2 or 3 or 4, etc., without specific limitation.
[0079] Specifically, if the preset number is set to 2, see Figure 5 , Figure 5 A structural diagram of a pre-trained feature extraction neural network model, including: input layer, dense block, transition layer, global average pooling layer and activation function Softmax.
[0080] If the preset number is set to 3, the pre-trained first feature extraction neural network model, the second feature extraction neural network model and the third feature extraction neural network model all include: 3 dense blocks, each dense block may include 4 dense layers. Every two dense layers are connected by a transition layer, and the last dense layer of the last dense block is a global average pooling layer with Softmax as the activation function. Specifically, the operation of each dense block is as follows:
[0081] x l =H l ([x0,x1,...,x l-1 ])
[0082] Among them, xl represents the output of the lth layer in the dense block, [x0,x1,...,x l-1 ] represents the connection of the output of the 0th, ..., l-1th layer, and the nonlinear transformation H l (·) It consists of three operations: batch normalization, linear rectification function, and k 3×3×3 convolution kernels.
[0083] And the transition layer between every two dense layers consists of a 1×1×1 convolutional layer and a 2×2×2 pooling layer.
[0084] In an embodiment of the present invention, the target human brain image to be classified can be input into a pre-trained first feature extraction neural network model, a second feature extraction neural network model, and a third feature extraction neural network model, and the output of the global average pooling layer of the first feature extraction neural network model, the output of the global average pooling layer of the second feature extraction neural network model, and the output of the global average pooling layer of the third feature extraction neural network model are respectively extracted as the first deep convolution feature, the second deep convolution feature, and the third deep convolution feature of the target human brain image to be classified.
[0085] Step 205 corresponds to step 103, and step 206 corresponds to step 104, which will not be repeated here.
[0086] Step 207, respectively input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained first image classification model to obtain three first classification results of the target human brain image to be classified as the first type of human brain image or the second type of human brain image; and respectively input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained second image classification model to obtain three second classification results of the target human brain image to be classified as the second type of human brain image or the third type of human brain image; and respectively input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained third image classification model to obtain three third classification results of the target human brain image to be classified as the first type of human brain image or the third type of human brain image.
[0087] In this step, the output results of the first image classification model, the second image classification model and the third image classification model are all image category information of the target human brain image to be classified.
[0088] In the embodiment of the present invention, the output results of the first image classification model, the second image classification model and the third image classification model may also be the probabilities of the various image categories to which the target human brain image to be classified belongs. That is, the output of the first image classification model may be the probability that the target human brain image to be classified is the first category of human brain images and the probability of the second category of human brain images; the output of the second image classification model may be the probability that the target human brain image to be classified is the second category of human brain images and the probability of the third category of human brain images; the output of the third image classification model may be the probability that the target human brain image to be classified is the first category of human brain images and the probability of the third category of human brain images.
[0089] Step 208: Based on each first classification result, each second classification result and each third classification result, determine whether the target human brain image to be classified is a first type of human brain image, a second type of human brain image or a third type of human brain image.
[0090] Among them, the first type of human brain images are human brain images with AD characteristics, the second type of human brain images are human brain images with MCI characteristics, and the third type of human brain images are human brain images with neither AD characteristics nor MCI characteristics.
[0091] In an embodiment of the present invention, a method for determining whether a target human brain image to be classified is a first type of human brain image, a second type of human brain image, or a third type of human brain image may include the following steps B1 to B2:
[0092] Step B1, respectively counting the number of target human brain images to be classified as the first type of human brain images, the number of target human brain images to be classified as the second type of human brain images, and the number of target human brain images to be classified as the third type of human brain images in each first classification result, each second classification result, and each third classification result;
[0093] Step B2, if the number of target human brain images to be classified as the first category of human brain images is the largest, then the target human brain images to be classified are determined to be the first category of human brain images, that is, the target human brain images to be classified are determined to be human brain images with AD features; if the number of target human brain images to be classified as the second category of human brain images is the largest, then the target human brain images to be classified are determined to be the second category of human brain images, that is, the target human brain images to be classified are determined to be human brain images with MCI features; if the number of target human brain images to be classified as the third category of human brain images is the largest, then the target human brain images to be classified are determined to be the third category of human brain images, that is, the target human brain images to be classified are determined to be human brain images with neither AD features nor MCI features.
[0094] For example, if among the three first classification results, the number of first classification results of the target human brain images to be classified as the first type of human brain images is 2, and the number of first classification results of the target human brain images to be classified as the second type of human brain images is 1; if among the three second classification results, the number of second classification results of the target human brain images to be classified as the second type of human brain images is 1, and the number of second classification results of the target human brain images to be classified as the third type of human brain images is 2; if among the three third classification results, the number of third classification results of the target human brain images to be classified as the first type of human brain images is 2, and the number of third classification results of the target human brain images to be classified as the third type of human brain images is 1. Then it can be counted that the number of target human brain images to be classified as the first type of human brain images is 4, the number of target human brain images to be classified as the second type of human brain images is 2, and the number of target human brain images to be classified as the third type of human brain images is 3. Among them, the number of target human brain images to be classified as the first type of human brain images is the largest, and it can be determined that the target human brain images to be classified are the first type of human brain images, that is, the target human brain images to be classified are human brain images with AD image characteristics.
[0095] By adopting the method provided by the embodiment of the present invention, the morphological features and deep convolution features of the target human brain image to be classified are fused to obtain fused features, and then the fused features are input into a pre-trained image classification model to classify the target human brain image to be classified. Since the fused features fuse different types of feature information, more discriminative classification features can be obtained, thereby improving the classification accuracy of the target human brain image to be classified, that is, improving the classification effect of image classification.
[0096] See also Figure 6 , Figure 6 Another process of the image classification method provided by the embodiment of the present invention includes:
[0097] Steps 601 to 606 correspond to steps 201 to 206 respectively and are the same, and are not repeated here.
[0098] In the embodiment of the present invention, the output results of the pre-trained first image classification model, the second image classification model and the third image classification model are the probabilities of the target human brain image to be classified belonging to each image category.
[0099] Step 607, input the first fusion feature, the second fusion feature and the third fusion feature into the pre-trained first image classification model respectively, obtain the probability that the first fusion feature, the second fusion feature and the third fusion feature are correspondingly classified as the first type of human brain image and the second type of human brain image, and then execute step 608.
[0100] Step 608, add up the probabilities that the first fusion feature, the second fusion feature and the third fusion feature are classified as the first category of human brain images, and take the average value as the probability average of the first category of images; and add up the probabilities that the first fusion feature, the second fusion feature and the third fusion feature are classified as the second category of human brain images, and take the average value as the probability average of the first and second categories of images; take the probability average of the first and second categories of images and the probability average of the first and second categories of images as the first classification results, and then execute step 613.
[0101] In step 609 , the first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained second image classification model to obtain the probabilities that the first fusion feature, the second fusion feature and the third fusion feature are classified as the second type of human brain image and the third type of human brain image respectively, and then step 610 is executed.
[0102] Step 610, add up the probabilities that the first fusion feature, the second fusion feature and the third fusion feature are classified as the second category human brain image and take the average value as the second category image probability average; add up the probabilities that the first fusion feature, the second fusion feature and the third fusion feature are classified as the third category human brain image and take the average value as the first category image probability average; take the second category image probability average and the first category image probability average as the second classification result, and then execute step 613.
[0103] In step 611, the first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained third image classification model to obtain the probability that the first fusion feature, the second fusion feature and the third fusion feature are correspondingly classified as the first type of human brain image and the third type of human brain image, and then step 612 is executed.
[0104] Step 612, add up the probabilities that the first fusion feature, the second fusion feature and the third fusion feature are classified as the first category of human brain images and take the average value as the second category image probability average; add up the probabilities that the first fusion feature, the second fusion feature and the third fusion feature are classified as the third category human brain images and take the average value as the second category image probability average; take the second category image probability average and the second category image probability average as the third classification result, and then execute step 613.
[0105] Step 613, add the mean probability of the first class image and the mean probability of the second class image to obtain the probability of the first class image; add the mean probability of the first class II image and the mean probability of the second class II image to obtain the probability of the second class image; add the mean probability of the first class III image and the mean probability of the second class III image to obtain the probability of the third class image.
[0106] Step 614, comparing the probabilities of the first-category image, the second-category image, and the third-category image.
[0107] Step 615, if the probability of the first category image is the largest, then the target human brain image to be classified is determined to be the first category human brain image; if the probability of the second category image is the largest, then the target human brain image to be classified is determined to be the second category human brain image; if the probability of the third category image is the largest, then the target human brain image to be classified is determined to be the third category human brain image.
[0108] The execution order of step 607, step 609 and step 611 is not specifically limited.
[0109] For example, the image to be classified has a first fusion feature α, a second fusion feature β and a third fusion feature γ. If the first fusion feature α, the second fusion feature β and the third fusion feature γ are respectively input into the pre-trained first image classification model, if the probability of the first fusion feature α being classified as the first type of human brain image and the second type of human brain image is 60% and 40% respectively, the probability of the second fusion feature β being classified as the first type of human brain image and the second type of human brain image is 70% and 30% respectively, and the probability of the third fusion feature γ being classified as the first type of human brain image and the second type of human brain image is 80% and 20% respectively; the average of the probabilities of the first fusion feature α, the second fusion feature β and the third fusion feature γ being classified as the first type of human brain image is 70%, then the average probability of the first type of image is 70%; and the average of the probabilities of the first fusion feature α, the second fusion feature β and the third fusion feature γ being classified as the second type of human brain image is 30%, then the average probability of the first type of image is 30%;
[0110] Furthermore, if the first fusion feature α, the second fusion feature β and the third fusion feature γ are respectively input into the pre-trained second image classification model; if the probabilities of the first fusion feature α being classified as the second type of human brain image and the third type of human brain image are 60% and 40% respectively, the probabilities of the second fusion feature β being classified as the second type of human brain image and the third type of human brain image are 65% and 35% respectively, and the probabilities of the third fusion feature γ being classified as the second type of human brain image and the third type of human brain image are 55% and 45% respectively; the probabilities of the first fusion feature, the second fusion feature and the third fusion feature being classified as the second type of human brain image are added and the average value is 60%, then the average probability of the second type of image is 60%; and the probabilities of the first fusion feature α, the second fusion feature β and the third fusion feature γ being classified as the third type of human brain image are added and the average value is 40%, then the average probability of the first type of image is 40%;
[0111] In addition, the first fusion feature α, the second fusion feature β and the third fusion feature γ are respectively input into the pre-trained third image classification model. If the probabilities of the first fusion feature α being classified as the first type of human brain image and the third type of human brain image are 80% and 20% respectively, the probabilities of the second fusion feature β being classified as the first type of human brain image and the third type of human brain image are 85% and 15% respectively, and the probabilities of the third fusion feature γ being classified as the first type of human brain image and the third type of human brain image are 65% and 35% respectively; the average value of the probabilities of the first fusion feature α, the second fusion feature β and the third fusion feature γ being classified as the first type of human brain image is 76.7%, and the average value of the probability of the second type of image is 76.7%; and the average value of the probabilities of the first fusion feature α, the second fusion feature β and the third fusion feature γ being classified as the third type of human brain image is 23.3%, and the average value of the probability of the second type of image is 23.3%.
[0112] Then, adding the mean probability of the first category image and the mean probability of the second category image, the probability of the first category image is 146.7%; adding the mean probability of the first and second category image and the mean probability of the second category image is 90%; adding the mean probability of the first and third category image and the mean probability of the second and third category image is 63.3%, and the probability of the third category image is 63.3%. It can be obtained that the probability of the first category image is 146.7%, which is the largest, and the type of the image to be classified can be determined as the first category human brain image, that is, the image to be classified has the characteristics of an AD image.
[0113] By adopting the method provided by the embodiment of the present invention, the morphological features and deep convolution features of the target human brain image to be classified are fused to obtain fused features, and then the fused features are input into a pre-trained image classification model to classify the target human brain image to be classified. Since the fused features fuse different types of feature information, more discriminative classification features can be obtained, thereby improving the classification accuracy of the target human brain image to be classified, that is, improving the classification effect of image classification.
[0114] See also Figure 7 , Figure 7 A process for training a first feature extraction neural network model provided by an embodiment of the present invention includes:
[0115] Step 701: input a first sample image into a first neural network model to be trained, and obtain a feature classification corresponding to the first sample image as a first output result.
[0116] Step 702: Determine the cross entropy loss function of the current first neural network model to be trained based on the label of the first sample image and the first output result.
[0117] The label of the first sample image is 0 or 1. If the label is 1, it indicates that the first sample image is a human brain image with AD image features. If the label is 0, it indicates that the first sample image is a human brain image without AD image features.
[0118] Step 703, determine whether the cross entropy loss function of the current first neural network model to be trained has converged, if the judgment result is yes, execute step 704, if the judgment result is no, execute step 705.
[0119] Specifically, the cross entropy loss function of the current first neural network model to be trained can be determined by the following formula:
[0120]
[0121] Among them, CrossEntropy represents the cross entropy loss function of the current first neural network model to be trained, m represents the number of first sample images, and y (i) represents the label value of the first sample image i, h θ (x (i) ) represents the first output result of the first sample image i.
[0122] Step 704: determine that the current first neural network model to be trained is the first feature extraction neural network model obtained through training.
[0123] Step 705, adjust the parameters of the current first neural network model to be trained, and return to execute step 701.
[0124] In an embodiment of the present invention, the method described in steps 701 to 705 above can also be used to train a second feature extraction neural network model based on the second sample image and the label of the second sample image and the second neural network model to be trained. The label of the second sample image is 0 or 1, and if the label is 1, it means that the second sample image is a human brain image with MCI image features, and if the label is 0, it means that the second sample image is a human brain image without MCI image features.
[0125] In an embodiment of the present invention, the method described in steps 701 to 705 above can also be used to train a third feature extraction neural network model based on the third sample image and the label of the third sample image and the third neural network model to be trained. The label of the third sample image is 0 or 1. If the third sample image is a human brain image that has neither AD image features nor MCI image features, the label is 1. Otherwise, the label of the third sample image is 0.
[0126] See also Figure 8 , Figure 8 A process for training a first image classification model provided by an embodiment of the present invention includes:
[0127] Step 801: Input the fusion features of the fourth sample image into the first support vector machine to be trained to obtain a classification result corresponding to the fourth sample image.
[0128] The support vector machine may specifically be SVM (Support Vector Machine). The classification result of the support vector machine may be the image category information to which the fourth sample image belongs; the classification result of the support vector machine may also be the probability of each image category to which the fourth sample image belongs.
[0129] Step 802: Determine a first loss function of the current first support vector machine to be trained based on the label of the fourth sample image and the classification result corresponding to the fourth sample image.
[0130] The label of the fourth sample image is 0 or 1. If the label is 1, it indicates that the fourth sample image is a human brain image with AD image features. If the label is 0, it indicates that the fourth sample image is a human brain image without AD image features.
[0131] Step 803, determine whether the first loss function converges, if the determination result is yes, execute step 804, if the determination result is no, execute step 805.
[0132] Step 804: determine that the current first support vector machine to be trained is the first image classification model obtained through training.
[0133] Step 805 , adjusting the parameters of the current first support vector machine to be trained, and returning to execute step 801 .
[0134] In the embodiment of the present invention, the method described in the above steps 801 to 805 can also be used to train a second image classification model based on the fifth sample image and the label of the fifth sample image and the second support vector machine to be trained. The label of the fifth sample image is 0 or 1, and if the label is 1, it means that the fifth sample image is a human brain image with MCI image features, and if the label is 0, it means that the fifth sample image is a human brain image without MCI image features.
[0135] In the embodiment of the present invention, the method described in the above steps 801 to 805 can also be used to train a third image classification model based on the sixth sample image and the label of the sixth sample image and the third support vector machine to be trained. The label of the sixth sample image is 0 or 1. If the sixth sample image is a human brain image that has neither AD image features nor MCI image features, the label is 1. Otherwise, the label of the sixth sample image is 0.
[0136] Based on the same inventive concept, see Fig. 9The embodiment of the present invention further provides an image classification device, comprising:
[0137] An image acquisition module 901 is used to obtain a target human brain image to be classified;
[0138] A first feature extraction module 902 is used to input the target human brain image to be classified into a pre-trained first feature extraction neural network model, a second feature extraction neural network model and a third feature extraction neural network model, and respectively extract the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified; wherein the first feature extraction neural network model is trained based on a plurality of first sample images and labels of a plurality of first sample images, the second feature extraction neural network model is trained based on a plurality of second sample images and labels of a plurality of second sample images, and the third feature extraction neural network model is trained based on a plurality of third sample images and labels of a plurality of third sample images; wherein the first sample image is a human brain image with AD (Alzheimer, Alzheimer's disease) features, the second sample image is a human brain image with MCI (Mildcognitive impairment, mild cognitive impairment) features, and the third sample image is a human brain image with neither AD features nor MCI features;
[0139] A second feature extraction module 903 is used to extract the morphological features of the target human brain image to be classified using the specified image processing software;
[0140] A feature fusion module 904 is used to fuse the morphological features of the target human brain image to be classified with the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified, respectively, to obtain the first fusion feature, the second fusion feature and the third fusion feature of the target human brain image to be classified;
[0141] The image classification module 905 is used to input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained first image classification model respectively, and obtain three first classification results that the target human brain image to be classified is a first type of human brain image or a second type of human brain image; and input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained second image classification model respectively, and obtain three second classification results that the target human brain image to be classified is a second type of human brain image or a third type of human brain image; and input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained third image classification model respectively, and obtain three third classification results that the target human brain image to be classified is a first type of human brain image or a third type of human brain image; wherein the first image classification model is based on The first image classification model is obtained by training based on the fusion features of multiple fourth sample images and the labels of multiple fourth sample images, and the label of each fourth sample image indicates that the fourth sample image is a human brain image with AD features or a human brain image with MCI features; the second image classification model is obtained by training based on the fusion features of multiple fifth sample images and the labels of multiple fifth sample images, and the label of each fifth sample image indicates that the fifth sample image is a human brain image with MCI features or a human brain image with neither AD features nor MCI features; the third image classification model is obtained by training based on the fusion features of multiple sixth sample images and the labels of multiple sixth sample images, and the label of each sixth sample image indicates that the sixth sample image is a human brain image with AD features or a human brain image with neither AD features nor MCI features;
[0142] The classification result determination module 906 is used to determine whether the target human brain image to be classified is a first type of human brain image, a second type of human brain image or a third type of human brain image based on each of the first classification results, each of the second classification results and each of the third classification results.
[0143] By using the device provided by the embodiment of the present invention, the morphological features and deep convolution features of the target human brain image to be classified are fused to obtain fused features, and then the fused features are input into a pre-trained image classification model to classify the target human brain image to be classified. Since the fused features fuse different types of feature information, more discriminative classification features can be obtained, thereby improving the classification accuracy of the target human brain image to be classified, that is, improving the classification effect of image classification.
[0144] The embodiment of the present invention further provides an electronic device, such as Fig.10As shown, it includes a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002, and the memory 1003 communicate with each other through the communication bus 1004.
[0145] Memory 1003, used for storing computer programs;
[0146] The processor 1001 is used to execute the program stored in the memory 1003, and implements the following steps:
[0147] Obtain a target human brain image to be classified;
[0148] Input the target human brain image to be classified into a pre-trained first feature extraction neural network model, a second feature extraction neural network model and a third feature extraction neural network model, and respectively extract the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified; wherein the first feature extraction neural network model is trained based on a plurality of first sample images and labels of a plurality of first sample images, the second feature extraction neural network model is trained based on a plurality of second sample images and labels of a plurality of second sample images, and the third feature extraction neural network model is trained based on a plurality of third sample images and labels of a plurality of third sample images; wherein the first sample image is a human brain image with AD (Alzheimer, Alzheimer's disease) characteristics, the second sample image is a human brain image with MCI (Mild cognitive impairment, mild cognitive impairment) characteristics, and the third sample image is a human brain image with neither AD characteristics nor MCI characteristics;
[0149] Using the specified image processing software to extract the morphological features of the target human brain image to be classified;
[0150] The morphological features of the target human brain image to be classified are respectively fused with the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified to obtain the first fusion feature, the second fusion feature and the third fusion feature of the target human brain image to be classified;
[0151] The first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained first image classification model to obtain three first classification results that the target human brain image to be classified is a first type of human brain image or a second type of human brain image; and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained second image classification model to obtain three second classification results that the target human brain image to be classified is a second type of human brain image or a third type of human brain image; and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained third image classification model to obtain three third classification results that the target human brain image to be classified is a first type of human brain image or a third type of human brain image; wherein the first image classification model is based on multiple fourth samples The second image classification model is obtained by training based on the fusion features of the present image and the labels of multiple fourth sample images, and the label of each fourth sample image indicates that the fourth sample image is a human brain image with AD features or a human brain image with MCI features; the second image classification model is obtained by training based on the fusion features of multiple fifth sample images and the labels of multiple fifth sample images, and the label of each fifth sample image indicates that the fifth sample image is a human brain image with MCI features or a human brain image with neither AD features nor MCI features; the third image classification model is obtained by training based on the fusion features of multiple sixth sample images and the labels of multiple sixth sample images, and the label of each sixth sample image indicates that the sixth sample image is a human brain image with AD features or a human brain image with neither AD features nor MCI features;
[0152] Based on each of the first classification results, each of the second classification results and each of the third classification results, it is determined that the target human brain image to be classified is a first type of human brain image, a second type of human brain image or a third type of human brain image; wherein the first type of human brain image is a human brain image with AD features, the second type of human brain image is a human brain image with MCI features, and the third type of human brain image is a human brain image with neither AD features nor MCI features.
[0153] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0154] The communication interface is used for communication between the above electronic device and other devices.
[0155] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0156] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0157] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned image classification methods are implemented.
[0158] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes any one of the image classification methods in the above embodiments.
[0159] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0160] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0161] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0162] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. An image classification method, characterized in that: include: Obtain a target human brain image to be classified; Input the target human brain image to be classified into a pre-trained first feature extraction neural network model, a second feature extraction neural network model and a third feature extraction neural network model, and respectively extract the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified; wherein the first feature extraction neural network model is trained based on a plurality of first sample images and labels of a plurality of first sample images, the second feature extraction neural network model is trained based on a plurality of second sample images and labels of a plurality of second sample images, and the third feature extraction neural network model is trained based on a plurality of third sample images and labels of a plurality of third sample images; wherein the first sample image is a human brain image with AD (Alzheimer, Alzheimer's disease) characteristics, the second sample image is a human brain image with MCI (Mild cognitive impairment, mild cognitive impairment) characteristics, and the third sample image is a human brain image with neither AD characteristics nor MCI characteristics; Using the specified image processing software to extract the morphological features of the target human brain image to be classified; The morphological features of the target human brain image to be classified are respectively fused with the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified to obtain the first fusion feature, the second fusion feature and the third fusion feature of the target human brain image to be classified; The first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained first image classification model to obtain three first classification results that the target human brain image to be classified is a first type of human brain image or a second type of human brain image; and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained second image classification model to obtain three second classification results that the target human brain image to be classified is a second type of human brain image or a third type of human brain image; and the first fusion feature, the second fusion feature and the third fusion feature are respectively input into a pre-trained third image classification model to obtain three third classification results that the target human brain image to be classified is a first type of human brain image or a third type of human brain image; wherein the first image classification model is based on multiple fourth samples The second image classification model is obtained by training based on the fusion features of the present image and the labels of multiple fourth sample images, and the label of each fourth sample image indicates that the fourth sample image is a human brain image with AD features or a human brain image with MCI features; the second image classification model is obtained by training based on the fusion features of multiple fifth sample images and the labels of multiple fifth sample images, and the label of each fifth sample image indicates that the fifth sample image is a human brain image with MCI features or a human brain image with neither AD features nor MCI features; the third image classification model is obtained by training based on the fusion features of multiple sixth sample images and the labels of multiple sixth sample images, and the label of each sixth sample image indicates that the sixth sample image is a human brain image with AD features or a human brain image with neither AD features nor MCI features; Based on each of the first classification results, each of the second classification results and each of the third classification results, it is determined that the target human brain image to be classified is a first type of human brain image, a second type of human brain image or a third type of human brain image; wherein the first type of human brain image is a human brain image with AD features, the second type of human brain image is a human brain image with MCI features, and the third type of human brain image is a human brain image with neither AD features nor MCI features.
2. The method according to claim 1, characterized in that: The step of obtaining a target human brain image to be classified comprises: Obtain a human brain image to be classified; Use designated image processing software to preprocess the human brain image to be classified to obtain the preprocessed human brain image to be classified; The target region of the preprocessed human brain image to be classified is obtained by cropping to obtain a target human brain image to be classified.
3. The method according to claim 1, characterized in that: The step of extracting the morphological features of the target human brain image to be classified using the specified image processing software comprises: The designated image processing software is used to extract the surface area, gray matter volume, mean curvature, cortical thickness and hippocampal subregion volume of the target human brain image to be classified as the morphological features of the target human brain image to be classified.
4. The method according to claim 1, characterized in that: The determining, based on each of the first classification results, each of the second classification results, and each of the third classification results, that the target human brain image to be classified is a first type of human brain image, a second type of human brain image, or a third type of human brain image comprises: Respectively counting the number of the target human brain images to be classified that are the first type of human brain images, the number of the target human brain images to be classified that are the second type of human brain images, and the number of the target human brain images to be classified that are the third type of human brain images in each of the first classification results, each of the second classification results, and each of the third classification results; If the number of the target human brain images to be classified as the first type of human brain images is the largest, determining that the target human brain images to be classified are the first type of human brain images; If the number of the target human brain images to be classified as the second type of human brain images is the largest, determining that the target human brain images to be classified are the second type of human brain images; If the number of the target human brain images to be classified as the third type of human brain images is the largest, it is determined that the target human brain images to be classified are the third type of human brain images.
5. The method according to claim 1, characterized in that The first fusion feature, the second fusion feature, and the third fusion feature are respectively input into a pre-trained first image classification model to obtain three first classification results that the target human brain image to be classified is a first type of human brain image or a second type of human brain image, including: Inputting the first fusion feature, the second fusion feature, and the third fusion feature into a pre-trained first image classification model respectively, to obtain the probabilities that the first fusion feature, the second fusion feature, and the third fusion feature are correspondingly classified as a first type of human brain image and a second type of human brain image; The probabilities that the first fusion feature, the second fusion feature, and the third fusion feature are classified as the first type of human brain images are added and averaged, and the average value is used as the first type of image probability mean; and the probabilities that the first fusion feature, the second fusion feature, and the third fusion feature are classified as the second type of human brain images are added and averaged, and the average value is used as the first type of image probability mean; the first type of image probability mean and the first type of image probability mean are both used as the first classification result; The first fusion feature, the second fusion feature, and the third fusion feature are respectively input into a pre-trained second image classification model to obtain three second classification results that the target human brain image to be classified is a second type of human brain image or a third type of human brain image, including: Inputting the first fusion feature, the second fusion feature, and the third fusion feature into a pre-trained second image classification model respectively, to obtain the probabilities that the first fusion feature, the second fusion feature, and the third fusion feature are correspondingly classified as the second type of human brain image and the third type of human brain image; The probabilities that the first fusion feature, the second fusion feature, and the third fusion feature are classified as the second type of human brain images are added and averaged, and the average value is used as the second type of image probability mean; and the probabilities that the first fusion feature, the second fusion feature, and the third fusion feature are classified as the third type of human brain images are added and averaged, and the first type of image probability mean is used as the second classification result; the second type of image probability mean and the first type of image probability mean are both used as the second classification result; The first fusion feature, the second fusion feature, and the third fusion feature are respectively input into a pre-trained third image classification model to obtain three third classification results of the target human brain image to be classified as a first type of human brain image or a third type of human brain image, including: Inputting the first fusion feature, the second fusion feature, and the third fusion feature into a pre-trained first image classification model respectively, to obtain the probabilities that the first fusion feature, the second fusion feature, and the third fusion feature are correspondingly classified as a first type of human brain image and a third type of human brain image; The probabilities that the first fusion feature, the second fusion feature, and the third fusion feature are classified as the first type of human brain images are added and averaged, and the average value is used as the second type of image probability average; and the probabilities that the first fusion feature, the second fusion feature, and the third fusion feature are classified as the third type of human brain images are added and averaged, and the second type of image probability average is used as the third type of image probability average; the second type of image probability average and the second type of image probability average are both used as the third classification result; The determining, based on each of the first classification results, each of the second classification results, and each of the third classification results, that the target human brain image to be classified is a first type of human brain image, a second type of human brain image, or a third type of human brain image comprises: Add the mean probability of the first class of images and the mean probability of the second class of images to obtain the probability of the first class of images; Add the mean probability of the first two-category image and the mean probability of the second two-category image to obtain the probability of the second category image; Add the mean probability of the first three categories of images and the mean probability of the second three categories of images to obtain the probability of three categories of images; Compare the probabilities of the first, second and third categories of images; If the probability of one type of image is the largest, determining that the target human brain image to be classified is a first type of human brain image; If the probability of the second type of image is the largest, determining that the target human brain image to be classified is the second type of human brain image; If the probability of the three types of images is the largest, it is determined that the target human brain image to be classified is the third type of human brain image.
6. The method according to claim 1, characterized in that The pre-trained first feature extraction neural network model, the second feature extraction neural network model and the third feature extraction neural network model all include: a preset number of dense blocks, each dense block includes a specified number of dense layers, and the last dense layer of the last dense block is a global average pooling layer; The step of inputting the target human brain image to be classified into a pre-trained first feature extraction neural network model, a second feature extraction neural network model, and a third feature extraction neural network model to respectively extract a first deep convolution feature, a second deep convolution feature, and a third deep convolution feature of the target human brain image to be classified includes: The target human brain image to be classified is input into a pre-trained first feature extraction neural network model, a second feature extraction neural network model and a third feature extraction neural network model, and the output of the global average pooling layer of the first feature extraction neural network model, the output of the global average pooling layer of the second feature extraction neural network model and the output of the global average pooling layer of the third feature extraction neural network model are respectively extracted as the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified.
7. The method according to claim 1, characterized in that The first feature extraction neural network model is obtained by training based on the first sample image and the label of the first sample image using the following steps: Inputting the first sample image into the first neural network model to be trained, and obtaining a feature classification corresponding to the first sample image as a first output result; Determine a cross entropy loss function of a current first neural network model to be trained based on the label of the first sample image and the first output result; Determine whether the cross entropy loss function of the current first neural network model to be trained converges, and if so, determine that the current first neural network model to be trained is the first feature extraction neural network model obtained by training; If not, adjust the parameters of the current first neural network model to be trained, and return to the step of inputting the first sample image into the first neural network model to be trained to obtain the feature classification corresponding to the first sample image as the first output result; The second feature extraction neural network model is obtained based on the second sample image and the label training of the second sample image by adopting the following steps: Inputting the second sample image into the second neural network model to be trained, and obtaining a feature classification corresponding to the second sample image as a second output result; Determine a cross entropy loss function of a current second neural network model to be trained based on the label of the second sample image and the second output result; Determine whether the cross entropy loss function of the current second neural network model to be trained converges, and if so, determine that the current second neural network model to be trained is the trained second feature extraction neural network model; If not, adjust the parameters of the current second neural network model to be trained, and return to the step of inputting the second sample image into the second neural network model to be trained to obtain the feature classification corresponding to the second sample image as the second output result; The third feature extraction neural network model is obtained based on the third sample image and the label training of the third sample image by adopting the following steps: Inputting the third sample image into the third neural network model to be trained, and obtaining a feature classification corresponding to the third sample image as a third output result; Determine a cross entropy loss function of a current third neural network model to be trained based on the label of the third sample image and the third output result; Determine whether the cross entropy loss function of the current third neural network model to be trained converges, and if so, determine that the current third neural network model to be trained is the trained third feature extraction neural network model; If not, adjust the parameters of the current third neural network model to be trained, and return to the step of inputting the third sample image into the third neural network model to be trained to obtain the feature classification corresponding to the third sample image as the third output result.
8. The method according to claim 7, characterized in that The cross entropy loss function of the current first neural network model to be trained is determined using the following formula: Among them, CrossEntropy represents the cross entropy loss function of the current first neural network model to be trained, m represents the number of first sample images, and y (i) represents the label value of the first sample image i, h θ (x (i) ) represents the first output result of the first sample image i.
9. The method according to claim 1, characterized in that: Before training the first image classification model, the second image classification model, and the third image classification model, the following steps are used to obtain the fusion features of the fourth sample image, the fusion features of the fifth sample image, and the fusion features of the sixth sample image: Inputting the fourth sample image, the fifth sample image, and the sixth sample image into a pre-trained feature extraction neural network model, and extracting the deep convolution features of the fourth sample image, the deep convolution features of the fifth sample image, and the deep convolution features of the sixth sample image, respectively; Using designated image processing software to extract morphological features of the fourth sample image, the fifth sample image, and the sixth sample image, respectively; fusing the deep convolution feature of the fourth sample image with the morphological feature of the fourth sample image to obtain a fused feature of the fourth sample image; and fusing the deep convolution feature of the fifth sample image with the morphological feature of the fifth sample image to obtain a fused feature of the fifth sample image; and fusing the deep convolution feature of the sixth sample image with the morphological feature of the sixth sample image to obtain a fused feature of the sixth sample image; The first image classification model is obtained by training based on the fusion features of the plurality of fourth sample images and the labels of the plurality of fourth sample images using the following steps: Inputting the fusion features of the fourth sample image into the first support vector machine to be trained to obtain a classification result corresponding to the fourth sample image; Determine a first loss function of the current first support vector machine to be trained based on the label of the fourth sample image and the classification result corresponding to the fourth sample image; Determine whether the first loss function converges, and if so, determine that the current first support vector machine to be trained is the first image classification model obtained by training; If not, adjust the parameters of the current first support vector machine to be trained, and return to the step of inputting the fusion features of the fourth sample image into the first support vector machine to be trained to obtain the classification result corresponding to the first sample image; The second image classification model is obtained by training based on the fusion features of the plurality of fifth sample images and the labels of the plurality of fifth sample images using the following steps: Inputting the fusion features of the fifth sample image into the second support vector machine to be trained to obtain a classification result corresponding to the fifth sample image; Determine a second loss function of the current second support vector machine to be trained based on the label of the fifth sample image and the classification result corresponding to the fifth sample image; Determine whether the second loss function converges, and if so, determine that the current second support vector machine to be trained is the trained second image classification model; If not, adjust the parameters of the current second support vector machine to be trained, and return to the step of inputting the fusion features of the fifth sample image into the second support vector machine to be trained to obtain the classification result corresponding to the fifth sample image; The third image classification model is obtained by training based on the fusion features of the plurality of sixth sample images and the labels of the plurality of sixth sample images using the following steps: Inputting the fusion features of the sixth sample image into the third support vector machine to be trained to obtain a classification result corresponding to the sixth sample image; Determine a third loss function of the current third support vector machine to be trained based on the label of the sixth sample image and the classification result corresponding to the sixth sample image; Determine whether the third loss function converges, and if so, determine that the current third support vector machine to be trained is the trained third image classification model; If not, adjust the parameters of the current third support vector machine to be trained, and return to the step of inputting the fusion features of the sixth sample image into the third support vector machine to be trained to obtain the classification result corresponding to the sixth sample image.
10. An image classification device, characterized in that: include: An image acquisition module, used to obtain a target human brain image to be classified; A first feature extraction module is used to input the target human brain image to be classified into a pre-trained first feature extraction neural network model, a second feature extraction neural network model and a third feature extraction neural network model, and respectively extract the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified; wherein the first feature extraction neural network model is trained based on a plurality of first sample images and labels of a plurality of first sample images, the second feature extraction neural network model is trained based on a plurality of second sample images and labels of a plurality of second sample images, and the third feature extraction neural network model is trained based on a plurality of third sample images and labels of a plurality of third sample images; wherein the first sample image is a human brain image with AD (Alzheimer, Alzheimer's disease) characteristics, the second sample image is a human brain image with MCI (Mildcognitive impairment, mild cognitive impairment) characteristics, and the third sample image is a human brain image with neither AD characteristics nor MCI characteristics; A second feature extraction module, used to extract the morphological features of the target human brain image to be classified using the specified image processing software; A feature fusion module, used to fuse the morphological features of the target human brain image to be classified with the first deep convolution feature, the second deep convolution feature and the third deep convolution feature of the target human brain image to be classified, respectively, to obtain the first fusion feature, the second fusion feature and the third fusion feature of the target human brain image to be classified; The image classification module is used to input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained first image classification model respectively, and obtain three first classification results that the target human brain image to be classified is a first type of human brain image or a second type of human brain image; and input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained second image classification model respectively, and obtain three second classification results that the target human brain image to be classified is a second type of human brain image or a third type of human brain image; and input the first fusion feature, the second fusion feature and the third fusion feature into a pre-trained third image classification model respectively, and obtain three third classification results that the target human brain image to be classified is a first type of human brain image or a third type of human brain image; wherein the first image classification model is based on The second image classification model is obtained by training based on the fusion features of multiple fourth sample images and the labels of multiple fourth sample images, and the label of each fourth sample image indicates that the fourth sample image is a human brain image with AD features or a human brain image with MCI features; the second image classification model is obtained by training based on the fusion features of multiple fifth sample images and the labels of multiple fifth sample images, and the label of each fifth sample image indicates that the fifth sample image is a human brain image with MCI features or a human brain image with neither AD features nor MCI features; the third image classification model is obtained by training based on the fusion features of multiple sixth sample images and the labels of multiple sixth sample images, and the label of each sixth sample image indicates that the sixth sample image is a human brain image with AD features or a human brain image with neither AD features nor MCI features; A classification result determination module is used to determine whether the target human brain image to be classified is a first type of human brain image, a second type of human brain image or a third type of human brain image based on each of the first classification results, each of the second classification results and each of the third classification results.
Citation Information
Patent Citations
Alzheimer's disease classification method based on depth neural network and multi-mode images
CN107506797A
Image discrimination model training method and device and readable storage medium
CN107609598A
Image classification method and device, electronic equipment and storage medium
CN110163300A
Alzheimer's disease classification method based on fusion network
CN111242233A
Method for integrating and fusing heterogeneous data types to perform predictive analysis
US20140236872A1
