Image classification method and device based on deep learning model, and electronic equipment
By extracting and combining deep learning feature vectors and correlation feature vectors of medical image data in deep learning models, the problem that the model is difficult to identify new labels is solved, precise classification and continuous learning of medical images are realized, and diagnostics are improved. Accuracy and reliability.
Patent Information
- Application Number
- CN202411004971.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-22
AI Technical Summary
Existing deep learning models are difficult to identify new labels in medical image classification, resulting in poor classification effectiveness, which may lead to doctors missing important information during the diagnosis process, affecting the early detection and treatment of the disease.
By obtaining medical image data sets, inputting a preset deep learning model for feature extraction, obtaining deep learning feature vectors and correlation feature vectors, combining label correlation for image classification, updating the model to adapt to new labels, and realizing the medical image Accurate classification.
It improves the prediction accuracy of medical images and the reliability of image classification, ensures that the model maintains accuracy in a changing environment, can continuously learn new labels, and enhances the ability to classify medical images.
Smart Images

Figure CN119006894A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of digital medical technology, and in particular to an image classification method, device and electronic device based on a deep learning model. Background Art
[0002] In the medical industry, multi-label image classification tasks can be applied to the automated processing of medical images and assist doctors in making quick diagnosis and treatment decisions. For example, there may be many different pathological features in a medical image, each of which can be regarded as a label. The multi-label image classification task is designed for this situation. By training the model, medical images can be classified into multi-labels, and the labels that need attention can be assigned values, thereby assisting doctors in making faster and more accurate judgments.
[0003] Over time, new labels may be introduced. However, the introduced new labels cannot be directly recognized by the model, resulting in poor classification effect of the model for medical images and may cause doctors to miss important information during the diagnosis process, thus affecting the early detection and treatment of the disease. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose an image classification method, device and electronic device based on a deep learning model, which can perform image classification in combination with the correlation of labels to improve the accuracy of image classification.
[0005] To achieve the above objectives, a first aspect of an embodiment of the present application proposes an image classification method based on a deep learning model, the method comprising:
[0006] Acquire a medical image dataset, wherein the medical image dataset includes a plurality of medical images;
[0007] Inputting the medical image data set into a preset deep learning model for feature extraction to obtain a deep learning feature vector and a correlation feature vector;
[0008] Predicting the medical image according to the deep learning feature vector and the correlation feature vector to obtain a predicted value;
[0009] Training the deep learning model according to the medical image data set and the predicted value to obtain a pre-trained deep learning model;
[0010] Collecting medical imaging data, and updating the medical imaging data set according to the medical imaging data to obtain a target data set;
[0011] The target data set is input into a pre-trained deep learning model for image classification to obtain a classification result.
[0012] In some embodiments, before inputting the medical image dataset into a preset deep learning model, the method further includes:
[0013] For each of the medical images, obtaining label information of the medical image, wherein the label information is used to characterize the category to which the medical image belongs;
[0014] Performing matrix conversion on the label information to obtain a label matrix;
[0015] A label matrix at a first moment is collected to obtain a first label set, and a label matrix at a second moment is collected to obtain a second label set, wherein the first moment is earlier than the second moment.
[0016] In some embodiments, the step of inputting the medical image data set into a preset deep learning model for feature extraction to obtain a deep learning feature vector and a correlation feature vector includes:
[0017] Inputting the medical image data set into a preset deep learning model;
[0018] Extracting features of the historical medical images at the first moment and the newly added medical images at the second moment through the convolutional neural network in the deep learning model to obtain a deep learning feature vector;
[0019] The correlation features of the first label set and the second label set are extracted through the graph neural network in the deep learning model to obtain a correlation feature vector.
[0020] In some embodiments, extracting correlation features from the first tag set and the second tag set using the graph neural network in the deep learning model to obtain a correlation feature vector includes:
[0021] Establishing a first relationship matrix from the first tag set to the second tag set, a second relationship matrix from the second tag set to the first tag set, and a third relationship matrix from the second tag set to the second tag set;
[0022] Creating a correlation matrix of all label matrices according to the first relationship matrix, the second relationship matrix, and the third relationship matrix;
[0023] Obtaining an initial graph representation in the medical image data set at a second moment, and obtaining a target correlation matrix at the second moment;
[0024] The graph neural network is used to extract graph features from the initial graph representation and the target correlation matrix to obtain a correlation feature vector.
[0025] In some embodiments, predicting the medical image according to the deep learning feature vector and the correlation feature vector to obtain a predicted value includes:
[0026] For each of the medical images, performing a dot product operation on the deep learning feature vector and the correlation feature vector to obtain a dot product result;
[0027] The confidence level of the dot product result of the medical image is calculated by using a preset activation function to obtain a predicted value.
[0028] In some embodiments, the predicted value includes a first predicted value at a first moment and a second predicted value at a second moment; and training the deep learning model according to the medical image dataset and the predicted value to obtain a pre-trained deep learning model includes:
[0029] Inputting the medical image data set into the deep learning model for image classification, and outputting historical prediction values and historical graph representations;
[0030] Performing loss calculation on the first prediction value and the label information using a preset cross entropy loss function to obtain a first loss value;
[0031] Performing loss calculation on the second prediction value and the historical prediction value by using a preset knowledge distillation loss function to obtain a second loss value;
[0032] Performing loss calculation on the historical graph representation and the correlation feature vector using a preset graph neural loss function to obtain a third loss value;
[0033] The deep learning model is trained according to the first loss value, the second loss value and the third loss value to obtain a pre-trained deep learning model.
[0034] In some embodiments, the establishing of a first relationship matrix from the first tag set to the second tag set, a second relationship matrix from the second tag set to the first tag set, and a third relationship matrix from the second tag set to the second tag set includes:
[0035] Obtaining the number of samples of medical images of a preset category in the medical image dataset;
[0036] Establishing a third relationship matrix from the second label set to the second label set according to the number of samples of the preset category;
[0037] Predicting the medical imaging dataset using the deep learning model to generate pseudo labels;
[0038] Generate a co-occurrence matrix based on the pseudo-labels and the label matrix;
[0039] Establishing a second relationship matrix from the second tag set to the first tag set according to the co-occurrence matrix and the number of samples;
[0040] The second relationship matrix, the number of samples, and the pseudo labels are calculated based on a preset Bayesian formula to establish a first relationship matrix from the first label set to the second label set.
[0041] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes an image classification device based on a deep learning model, the device comprising:
[0042] A data acquisition module, used to acquire a medical image data set, wherein the medical image data set includes a plurality of medical images;
[0043] A feature extraction module, used to input the medical image data set into a preset deep learning model for feature extraction, and obtain a deep learning feature vector and a correlation feature vector;
[0044] An image prediction module, used to predict the medical image according to the deep learning feature vector and the correlation feature vector to obtain a prediction value;
[0045] A model training module, used for training the deep learning model according to the medical image data set and the predicted value to obtain a pre-trained deep learning model;
[0046] A data updating module, used for collecting medical imaging data, and updating the medical imaging data set according to the medical imaging data to obtain a target data set;
[0047] The image classification module is used to input the target data set into a pre-trained deep learning model for image classification to obtain classification results.
[0048] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, an electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the image classification method based on the deep learning model as described in the first aspect when executing the computer program.
[0049] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the image classification method based on the deep learning model as described in the first aspect.
[0050] The image classification method, device, electronic device and storage medium based on the deep learning model proposed in the present application first obtain a medical image data set including multiple medical images, and then input the medical image data into a preset deep learning model for feature extraction. The deep learning model can analyze the correlation of labels in the medical image data to obtain a deep learning feature vector and a correlation feature vector, so as to facilitate the subsequent analysis of the correlation between labels through the correlation feature vector. After that, the medical image is predicted according to the deep learning feature vector and the correlation feature vector to obtain a prediction value, so that the medical image can be analyzed in combination with the label correlation to improve the prediction accuracy of the medical image. Then, the deep learning model is trained according to the medical image data set and the prediction value to improve the generalization ability of the deep learning model and the reliability of image classification to obtain a pre-trained deep learning model. Finally, new medical image data is collected, and the medical image data set is updated according to the medical image data to realize real-time update of the medical image data set. At the same time, new labels can be introduced into the medical image data set. Then, the target data set is input into the pre-trained deep learning model for image classification, so that the deep learning model can continuously learn the labels in the medical image data set to obtain classification results and improve the accuracy of image classification. The embodiment of the present application analyzes the correlation between labels through a deep learning model, and fuses this correlation feature vector with the deep learning feature vector, thereby improving the accuracy of the medical image classification task and achieving accurate classification of medical images. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 is a flowchart of an image classification method based on a deep learning model provided by an embodiment of the present application;
[0052] Figure 2 is a flowchart of an image classification method based on a deep learning model provided by another embodiment of the present application;
[0053] Figure 3 yes Figure 1 Flow chart of step S102 in FIG.
[0054] Figure 4 yes Figure 3 Flow chart of step S303 in FIG.
[0055] Figure 5 yes Figure 1 Flow chart of step S103 in FIG.
[0056] Figure 6 yes Figure 1 Flow chart of step S104 in FIG.
[0057] Figure 7A flow chart of a method for establishing a first relationship matrix, a second relationship matrix, and a third relationship matrix provided in an embodiment of the present application;
[0058] Figure 8 It is a structural schematic diagram of an image classification device based on a deep learning model provided in an embodiment of the present application;
[0059] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0063] First, some nouns involved in this application are analyzed:
[0064] Natural Language Processing (NLP): NLP uses computers to process, understand, and apply human languages (such as Chinese, English, etc.). NLP is a branch of artificial intelligence and an interdisciplinary subject between computer science and linguistics. It is often referred to as computational linguistics. Natural language processing includes grammatical analysis, semantic analysis, and text understanding. Natural language processing is commonly used in technical fields such as machine translation, handwritten and printed character recognition, speech recognition and text-to-speech conversion, information intent recognition, information extraction and filtering, text classification and clustering, public opinion analysis, and opinion mining. It involves data mining related to language processing, machine learning, knowledge acquisition, knowledge engineering, artificial intelligence research, and linguistic research related to language computing.
[0065] Graph Neural Network (GNN): Graph Neural Network is a deep learning model specifically designed to process graph structured data. Unlike traditional neural networks that process regular grid data (such as images) or sequence data (such as text or time series), GNN operates directly on graphs and can capture complex relationships and dependencies between nodes.
[0066] Convolutional Neural Network (CNN): Convolutional neural network is a type of feedforward neural network with deep structure and convolutional calculation, and is one of the representative algorithms of deep learning. Convolutional neural network has the ability of representation learning and can classify input information in a translation-invariant manner according to its hierarchical structure.
[0067] Based on this, the embodiments of the present application provide an image classification method and device, an electronic device and a storage medium based on a deep learning model, which can perform image classification in combination with the correlation of labels to improve the accuracy of image classification.
[0068] The image classification method and device based on the deep learning model, electronic device and storage medium provided in the embodiments of the present application are specifically illustrated by the following embodiments. First, the image classification method based on the deep learning model in the embodiments of the present application is described.
[0069] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0070] The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. Artificial intelligence software technologies mainly include computer vision technology, robotics technology, biometrics technology, module management technology of online meeting systems, natural language processing technology, and machine learning / deep learning.
[0071] The image classification method based on deep learning model provided in the embodiment of the present application relates to the field of data processing technology. The image classification method based on deep learning model provided in the embodiment of the present application can be applied to the terminal, can also be applied to the server side, and can also be software running in the terminal or the server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements an image classification method based on a deep learning model, etc., but is not limited to the above forms.
[0072] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0073] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with the relevant laws, regulations, and standards of the relevant countries and regions. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0074] In the medical industry, multi-label image classification tasks can be applied to the automated processing of medical images and assist doctors in making quick diagnosis and treatment decisions. For example, there may be many different pathological features in a medical image, each of which can be regarded as a label. The multi-label image classification task is designed for this situation. By training the model, medical images can be classified into multi-labels, and the labels that need attention can be assigned values, thereby assisting doctors in making faster and more accurate judgments.
[0075] Over time, new labels may be introduced that cannot be directly identified. If the model fails to identify new pathological features, it may cause doctors to miss important information during the diagnosis process, thereby affecting the early detection and treatment of the disease.
[0076] In order to solve the above problems, the present embodiment provides an image classification method, device, electronic device and storage medium based on a deep learning model. First, a medical image data set including multiple medical images is obtained, and then the medical image data is input into a preset deep learning model for feature extraction. The deep learning model can analyze the correlation of labels in the medical image data to obtain a deep learning feature vector and a correlation feature vector, so as to facilitate the subsequent analysis of the correlation between labels through the correlation feature vector. After that, the medical image is predicted according to the deep learning feature vector and the correlation feature vector to obtain a prediction value, so that the medical image can be analyzed in combination with the label correlation to improve the prediction accuracy of the medical image. Then, the deep learning model is trained according to the medical image data set and the prediction value to improve the generalization ability of the deep learning model and the reliability of image classification to obtain a pre-trained deep learning model. Finally, new medical image data is collected, and the medical image data set is updated according to the medical image data to realize real-time update of the medical image data set. At the same time, new labels can be introduced into the medical image data set. Then, the target data set is input into the pre-trained deep learning model for image classification, so that the deep learning model can continuously learn the labels in the medical image data set to obtain classification results and improve the accuracy of image classification. The embodiment of the present application analyzes the correlation between labels through a deep learning model, and fuses this correlation feature vector with the deep learning feature vector, thereby improving the accuracy of the medical image classification task and achieving accurate classification of medical images.
[0077] The following is a detailed description with reference to the accompanying drawings.
[0078] Figure 1 is an optional flowchart of the image classification method based on the deep learning model provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S106.
[0079] Step S101, obtaining a medical image data set.
[0080] It should be noted that the medical imaging dataset includes multiple medical images.
[0081] In step S101 in some embodiments, the embodiments of the present application first obtain a medical image data set, wherein the medical image data set is obtained by collecting medical image data and storing it in the form of an image file.
[0082] It is understandable that the medical imaging data set in the embodiments of the present application may include various types of medical images, such as cardiovascular images, electrocardiogram images, bone images, etc., and the embodiments of the present application do not impose specific limitations.
[0083] It is worth noting that the medical imaging data in the medical imaging dataset in the embodiment of the present application will continue to grow over time, which facilitates the subsequent continuous training of the deep learning model.
[0084] Step S102: Input the medical image data set into a preset deep learning model for feature extraction to obtain a deep learning feature vector and a correlation feature vector.
[0085] In step S102 of some embodiments, the medical image data set is input into a preset deep learning model for feature extraction, so that the convolutional neural network and graph neural network in the deep learning model can extract features of the medical image data set, thereby capturing the complex and abstract features in the medical images, and at the same time capturing the complex relationships and dependencies between nodes in the medical images, and obtaining deep learning feature vectors and correlation feature vectors, which is convenient for subsequent improvement of the label classification capability of the deep learning model and further enhancing the prediction capability of the deep learning model.
[0086] Step S103, predicting the medical image based on the deep learning feature vector and the correlation feature vector to obtain a predicted value.
[0087] In step S103 of some embodiments, the medical image is predicted based on the deep learning feature vector and the correlation feature vector, so that the deep learning feature vector and the correlation feature vector can be combined to provide a more comprehensive image representation, obtain a prediction value, and improve classification accuracy.
[0088] Step S104: training a deep learning model according to the medical image data set and the predicted value to obtain a pre-trained deep learning model.
[0089] In step S104 of some embodiments, a deep learning model is trained based on the medical imaging data set and the predicted value, so that the deep learning model can achieve complementary advantages in continuous learning, and obtain a pre-trained deep learning model, thereby ensuring the performance of the model on specific tasks. Knowledge distillation helps the model to maintain its knowledge of old tasks while continuously learning new tasks, thereby achieving effective transfer and accumulation of knowledge.
[0090] Step S105 , collecting medical image data, and updating the medical image data set according to the medical image data to obtain a target data set.
[0091] In step S105 of some embodiments, medical imaging data is collected, and a medical imaging data set is updated according to the medical imaging data to obtain a target data set, thereby achieving real-time updating of the medical data set and further achieving updating of labels in the medical data set.
[0092] Step S106: input the target data set into the pre-trained deep learning model for image classification to obtain a classification result.
[0093] In step S106 of some embodiments, the target data set is input into a pre-trained deep learning model for image classification, so that the deep learning model can continuously learn the labels in the medical imaging data set to obtain classification results, thereby improving the accuracy of image classification.
[0094] See also Figure 2 , Figure 2 is a flowchart of an image classification method based on a deep learning model provided by another embodiment of the present application. Figure 2 The method may include but is not limited to steps S201 to S203.
[0095] It should be noted that steps S201 to S203 occur before the medical image dataset is input into the preset deep learning model.
[0096] Step S201: for each medical image, obtain label information of the medical image.
[0097] It should be noted that the label information is used to characterize the category to which the medical image belongs.
[0098] Step S202, performing matrix conversion on the label information to obtain a label matrix.
[0099] Step S203: collect the label matrix at the first moment to obtain a first label set, and collect the label matrix at the second moment to obtain a second label set.
[0100] It should be noted that the first moment is earlier than the second moment.
[0101] In steps S201 to S203 of some embodiments, before the medical image data set is input into a preset deep learning model, for each medical image in the medical image data set, label information of each medical image is obtained, that is, the category to which each medical image belongs is determined, wherein the label information is obtained by annotating the medical image, and then the label information is matrix-converted to construct a 1xC matrix as the label of each image to obtain a label matrix of the medical image. Since new labels may be introduced over time, the embodiment of the present application collects the label matrices of all medical images at a first moment to obtain a first label set, and collects the label matrices of all medical images at a second moment to obtain a second label set, wherein the first moment is earlier than the second moment, which is equivalent to collecting the old data label set (first label set) and the new data label set (second label set), so as to facilitate the subsequent continuous learning of the deep learning model, so that the deep learning model can maintain accuracy in a constantly changing environment.
[0102] It is worth noting that in the process of matrix conversion of label information, first, determine how many different categories of medical images there are in the medical image data set based on the label information, and then create a vector of length C. If the medical image belongs to a certain category, place 1 at the index position of the corresponding category; if it does not belong, place 0, and finally convert this vector into a 1xC matrix, so that each image will have a corresponding 1xC binary matrix to represent its label. The embodiment of the present application unifies the labels of all medical images into a 1xC matrix form, which is convenient for subsequent deep learning model processing and can help the deep learning model understand the label distribution of each medical image.
[0103] Specifically, the medical image data set in the embodiment of the present application can be expressed as the following formula:
[0104]
[0105] Among them, x i represents the i-th picture, y i Represents the label of i pictures. As time goes by, new labels may be introduced. The label set at the tth stage is expressed as follows:
[0106]
[0107] in, represents the old data label set at stage t-1, Represents the new data label set at stage t.
[0108] See also Figure 3In some embodiments, step S102 may also include but is not limited to steps S301 to S303.
[0109] It should be noted that the deep learning model in the embodiments of the present application includes a convolutional neural network and a graph neural network.
[0110] Step S301, inputting the medical image data set into a preset deep learning model.
[0111] Step S302: extract features of the historical medical images at the first moment and the newly added medical images at the second moment through the convolutional neural network in the deep learning model to obtain a deep learning feature vector.
[0112] Step S303: extract correlation features of the first label set and the second label set through the graph neural network in the deep learning model to obtain a correlation feature vector.
[0113] In steps S301 to S303 of some embodiments, in the process of extracting features from a medical image dataset through a deep learning model, first, the medical image dataset is input into a preset deep learning model, and then the convolutional neural network in the deep learning model is used to extract features from the historical medical images at the first moment and the newly added medical images at the second moment, that is, the convolutional neural network is used to perform convolution calculations on the labels in the historical medical images and the labels in the newly added medical images to obtain a deep learning feature vector, so that the deep learning model can automatically learn the hierarchical features in the medical images without manually designing feature extraction methods, and can capture the complex and abstract features in the medical images to improve the accuracy of classification, and the graph neural network in the deep learning model performs correlation feature extraction on the first label set and the second label set, so as to capture the complex relationships and dependencies between nodes in the medical images, capture the associations between labels, and analyze in combination with label correlation to obtain a correlation feature vector, which is convenient for subsequent improvement of the label classification capability of the deep learning model and further enhances the prediction capability of the deep learning model.
[0114] Specifically, the deep learning feature vector obtained by the convolutional neural network can be expressed as follows:
[0115] F t =CNN(X t );
[0116] in, Contains historical data Also includes newly introduced label data Equivalent to the label data in the historical medical image at the first moment in the embodiment of the present application, This is equivalent to the label data in the newly added medical image at the second moment in the embodiment of the present application.
[0117] See also Figure 4 In some embodiments, step S303 may also include but is not limited to steps S401 to S404.
[0118] Step S401 : establishing a first relationship matrix from the first tag set to the second tag set, a second relationship matrix from the second tag set to the first tag set, and a third relationship matrix from the second tag set to the second tag set.
[0119] In step S401 of some embodiments, in the process of extracting correlation features of the first label set and the second label set through the graph neural network in the deep learning model, the embodiment of the present application first establishes a first relationship matrix from the first label set to the second label set, which is equivalent to establishing a relationship matrix from the old label to the new label, establishes a second relationship matrix from the second label set to the first label set, which is equivalent to establishing a relationship matrix from the new label to the old label, and establishes a third relationship matrix from the second label set to the second label set, which is equivalent to establishing a relationship matrix from the new label to the new label, so that the deep learning model in the embodiment of the present application can learn multiple related tasks at the same time, and by considering the relationship between the labels, it can improve the robustness of the deep learning model, which may help the deep learning model capture the label relationship that changes over time at any time. The specific process of establishing the first relationship matrix, the second relationship matrix and the third relationship matrix will be described in detail later, and the embodiment of the present application will not be repeated here.
[0120] It is worth noting that the first relationship matrix in the embodiment of the present application is used to characterize the mapping relationship between the old label and the new label, so as to help the deep learning model understand the mapping relationship between the old label and the new label, and realize the migration of knowledge from the old label to the new label. The second relationship matrix is used to characterize the mapping relationship between the new label and the old label, so as to help the deep learning model learn from the new label and feedback to the old label, forming a two-way knowledge migration, and can be used to calibrate the deep learning model's prediction of the old label, and improve the accuracy of the model on the old label. The third relationship matrix is used to reveal the intrinsic connection and dependency between the new labels. By analyzing the interaction between the new labels, the model's prediction ability for the new labels can be enhanced.
[0121] Step S402: Create a correlation matrix of all label matrices according to the first relationship matrix, the second relationship matrix and the third relationship matrix.
[0122] In step S402 of some embodiments, after establishing the first relationship matrix, the second relationship matrix and the third relationship matrix, the embodiment of the present application will create a correlation matrix of all labels based on the above three matrices, so as to integrate the relationships between all labels and provide a comprehensive perspective to observe and analyze the interactions between labels.
[0123] It can be understood that when processing data from different sources or with different labeling systems, the correlation matrix can help fuse the data and improve the consistency and usability of the data.
[0124] Specifically, in the tth stage, the first tag set in the embodiment of the present application is expressed as The second tag set is represented as The correlation matrix A of all data labels t , which is expressed as follows:
[0125]
[0126] Among them, R t represents the second relationship matrix, that is, the relationship matrix from new labels to old labels; Q t represents the first relationship matrix, that is, the relationship matrix from the old label to the new label; B t Represents the third relationship matrix, the relationship matrix from new labels to new labels.
[0127] Step S403, obtaining an initial graph representation in the medical image data set at the second moment, and obtaining a target correlation matrix at the second moment.
[0128] In step S403 of some embodiments, since the medical imaging dataset is a continuously growing dataset, the embodiments of the present application need to obtain the initial graph representation in the medical imaging dataset at the second moment, and obtain the target correlation matrix at the second moment, to facilitate the subsequent fusion of the initial graph representation and the target correlation matrix.
[0129] Step S404: extract graph features from the initial graph representation and the target correlation matrix through a graph neural network to obtain a correlation feature vector.
[0130] In step S404 of some embodiments, graph features are extracted from the initial graph representation and the target correlation matrix through a graph neural network, node features and variable features in the medical imaging dataset are integrated with the target correlation matrix through the graph neural network, and information is transmitted and aggregated through the graph neural network to obtain a correlation feature vector, so that the initial graph representation and the target correlation matrix can be combined to provide a more comprehensive perspective on the graph data, integrating structural and semantic information, and enabling the graph neural network to learn richer node and graph feature identifiers, and to capture complex graph structures and label relationships.
[0131] Specifically, input the target correlation matrix A of the tth stage t and the initial graph representation Get the correlation feature vector H t The formula is as follows:
[0132] H t =GCN(A t ,H t,0 );
[0133] Among them, GCN(·) represents the graph neural network, and the graph representation H t The dimensions are as follows: D is the vector dimension of each label, Indicates the total number of elements in the new and old label sets, that is, the total number of elements in the first label set and the second label set.
[0134] See also Figure 5 In some embodiments, step S103 may also include but is not limited to steps S501 to S502.
[0135] Step S501: For each medical image, perform a dot product operation on the deep learning feature vector and the correlation feature vector to obtain a dot product result.
[0136] Step S502, performing confidence calculation on the dot product result of the medical image using a preset activation function to obtain a predicted value.
[0137] In steps S501 to S502 of some embodiments, in the process of predicting medical images based on the deep learning feature vector and the correlation feature vector, for each medical image, a dot product operation is performed on the deep learning feature vector and the correlation feature vector to obtain a dot product result, so that the deep learning feature vector and the correlation feature vector can be combined to provide a more comprehensive image representation, and the deep learning feature vector can capture the visual information of the image, while the correlation feature vector provides the connection between labels. The combination of the two can make up for the shortcomings of a single feature, and then the confidence of the dot product result of the medical image is calculated through a preset activation function to obtain a predicted value, thereby improving the classification accuracy.
[0138] Specifically, the predicted values in the embodiments of the present application are expressed as follows:
[0139]
[0140] Among them, the predicted value represents the predicted value of historical medical imaging data, represents the predicted value of new medical imaging data, F t represents the deep learning feature vector, Ht represents the correlation feature vector, represents the dot product, and σ(·) represents the softmax function. It is worth noting that H t The dimension is F t The dimension of is, so the final dot product result is The dimension is
[0141] See also Figure 6 In some embodiments, step S104 may also include but is not limited to steps S601 to S605.
[0142] It should be noted that the predicted value includes the first predicted value at the first moment, that is, the predicted value of the historical medical imaging data mentioned above. and the second predicted value at the second moment, i.e., the predicted value of the new medical imaging data mentioned above
[0143] Step S601, input the medical image data set into the deep learning model for image classification, and output the historical prediction value and historical graph representation.
[0144] Step S602: performing loss calculation on the first prediction value and label information using a preset cross entropy loss function to obtain a first loss value.
[0145] Step S603, performing loss calculation on the second prediction value and the historical prediction value using a preset knowledge distillation loss function to obtain a second loss value.
[0146] In steps S601 to S603 of some embodiments, in the process of training a deep learning model based on a medical imaging dataset and a predicted value, first, the medical imaging dataset is input into the deep learning model for image classification, and a historical predicted value and a historical graph representation are output. Then, a loss calculation is performed on the first predicted value and the label information through a preset cross entropy loss function to obtain a first loss value, thereby being able to directly measure the difference between the probability distribution predicted by the model and the probability distribution of the true label, and a loss calculation is performed on the second predicted value and the historical predicted value through a preset knowledge distillation loss function to obtain a second loss value, thereby being able to transfer knowledge between different tasks. In an embodiment of the present application, the cross entropy loss function and the knowledge distillation loss function are used as loss functions of a convolutional neural network, thereby achieving complementary advantages in continuous learning, wherein the cross entropy loss ensures the performance of the model on a specific task, while the knowledge distillation helps the model maintain its knowledge of old tasks while continuously learning new tasks, thereby achieving effective transfer and accumulation of knowledge.
[0147] Specifically, the loss function of the convolutional neural network in the embodiment of the present application can be expressed as follows:
[0148]
[0149] Among them, L CE (*,*) represents the cross entropy loss function, is the first predicted value, L dist (*,*) represents the knowledge distillation loss function. Among them, z is the soft label (pseudo label), that is, the historical output of the model, which can be understood as That is the historical prediction value in the embodiment of the present application.
[0150] Step S604, performing loss calculation on the historical graph representation and the correlation feature vector using a preset graph neural loss function to obtain a third loss value.
[0151] In step S604 of some embodiments, as the graph representation expands, the embodiments of the present application need to use a constraint condition to prevent the iterative changes of the graph representation from being too large. Specifically, the embodiments of the present application calculate the loss of the historical graph representation and the correlation feature vector through a preset graph neural loss function to obtain a third loss value. The embodiments of the present application help maintain the stability of the model by limiting the rapid changes of the graph representation and avoid drastic fluctuations during training. The constraints can prevent the model from being overly sensitive to noise or outliers in the training data, thereby reducing the risk of overfitting.
[0152] It should be noted that the graph neural loss function in the embodiment of the present application is expressed as follows:
[0153]
[0154] in, is the correlation eigenvector, It represents the historical model graph representation (historical graph representation), that is, G t-1 =GCN xpt (A t-1 ,H t-1,0 ), because G t-1 The first dimension of The first dimension of The dimensions of the two are different, so we need to calculate the label vectors one by one and then sum them up.
[0155] Step S605: train the deep learning model according to the first loss value, the second loss value, and the third loss value to obtain a pre-trained deep learning model.
[0156] In step S605 of some embodiments, the deep learning model is trained according to the first loss value, the second loss value and the third loss value, so that the deep learning model can maintain the knowledge of old tasks while continuously learning new tasks, thereby achieving effective transfer and accumulation of knowledge. In continuous learning or incremental learning, limiting the rapid changes of graph representation helps the model gradually learn new knowledge.
[0157] See also Figure 7 , Figure 7 A flow chart of a method for establishing a first relationship matrix, a second relationship matrix, and a third relationship matrix provided in an embodiment of the present application. Figure 7 The method may include but is not limited to steps S701 to S706.
[0158] Step S701, obtaining the number of samples of medical images of a preset category in a medical image dataset.
[0159] Step S702: establishing a third relationship matrix from the second label set to the second label set according to the number of samples of the preset category.
[0160] Step S703: predict the medical image data set through a deep learning model to generate pseudo labels.
[0161] Step S704: Generate a co-occurrence matrix based on the pseudo-labels and the label matrix.
[0162] Step S705: Establish a second relationship matrix from the second tag set to the first tag set according to the co-occurrence matrix and the number of samples.
[0163] Step S706: Calculate the second relationship matrix, the number of samples, and the pseudo labels based on a preset Bayesian formula to establish a first relationship matrix from the first label set to the second label set.
[0164] In steps S701 to S706 of some embodiments, in the process of establishing the first relationship matrix and the second relationship matrix, the number of samples of medical images of a preset category in the medical image data set is first obtained, and then a third relationship matrix from the second label set to the second label set is established according to the number of samples of the preset category, so as to reveal the intrinsic connection and dependency between labels of different categories. By analyzing the interaction between labels, the prediction ability of the model for new labels can be enhanced. The medical image data set is predicted by a deep learning model to generate pseudo labels. After that, a co-occurrence matrix is generated according to the pseudo labels and the label matrix, so as to It is possible to obtain the co-occurrence patterns of pseudo-labels and labels of different categories in the label matrix, and then establish a second relationship matrix from the second label set to the first label set based on the co-occurrence matrix and the number of samples, so as to obtain the mapping relationship from the new label to the old label, which helps the deep learning model to learn from the new label and feed back to the old label, forming a two-way knowledge transfer. Finally, based on the preset Bayesian formula, the second relationship matrix, the number of samples and the pseudo-label are calculated to establish the first relationship matrix from the first label set to the second label set, which helps the deep learning model understand the mapping relationship between the old label and the new label, and realizes the transfer of knowledge from the old label to the new label.
[0165] Specifically, the solution formula of the third relationship matrix in the embodiment of the present application is as follows:
[0166]
[0167] Among them, B t Indicates new label to new label The third relationship matrix, N ij Indicates the number of samples that contain both the i-th category and the j-th category, N j Indicates the number of samples containing only the jth category.
[0168] The solution formula of the second relationship matrix in the embodiment of the present application is as follows:
[0169]
[0170] Among them, R t Indicates new label to old label The second relationship matrix, Can be seen as and The co-occurrence matrix of is the pseudo label calculated by the previous model.
[0171] The solution formula of the first relationship matrix in the embodiment of the present application is as follows:
[0172]
[0173] Among them, Q t Indicates the old label to the new label The first relationship matrix, at this time we need to use the Bayesian formula, is the pseudo label calculated by the previous model, is the second relationship matrix, N j Indicates the number of samples that only contain the jth category.
[0174] See also Figure 8 The present application also provides an image classification device based on a deep learning model, the device comprising:
[0175] A data acquisition module 801 is used to acquire a medical image data set, where the medical image data set includes a plurality of medical images;
[0176] A feature extraction module 802 is used to input the medical image data set into a preset deep learning model for feature extraction to obtain a deep learning feature vector and a correlation feature vector;
[0177] An image prediction module 803 is used to predict the medical image according to the deep learning feature vector and the correlation feature vector to obtain a prediction value;
[0178] A model training module 804 is used to train a deep learning model according to the medical image data set and the prediction value to obtain a pre-trained deep learning model;
[0179] The data updating module 805 is used to collect medical imaging data and update the medical imaging data set according to the medical imaging data to obtain a target data set;
[0180] The image classification module 806 is used to input the target data set into the pre-trained deep learning model for image classification to obtain classification results.
[0181] In addition, the image classification device based on the deep learning model of the embodiment of the present application also includes a matrix conversion module, which is used to obtain label information of the medical image for each medical image, wherein the label information is used to characterize the category to which the medical image belongs; perform matrix conversion on the label information to obtain a label matrix; collect the label matrix at a first moment to obtain a first label set, and collect the label matrix at a second moment to obtain a second label set, wherein the first moment is earlier than the second moment.
[0182] The specific implementation of the image classification device based on the deep learning model is basically the same as the specific implementation of the image classification method based on the deep learning model mentioned above, and will not be repeated here.
[0183] The embodiment of the present application also provides an electronic device, the electronic device comprising: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and the program is executed by the processor to realize the above-mentioned image classification method based on deep learning model. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0184] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0185] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0186] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the image classification method based on the deep learning model in the embodiment of this application;
[0187] Input / output interface 903, used to implement information input and output;
[0188] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0189] A bus 905 that transmits information between the various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0190] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0191] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned image classification method based on the deep learning model.
[0192] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0193] The image classification method, device, electronic device and storage medium based on the deep learning model provided in the embodiments of the present application first obtain a medical image data set including multiple medical images, and then input the medical image data into a preset deep learning model for feature extraction. The deep learning model can analyze the correlation of labels in the medical image data to obtain a deep learning feature vector and a correlation feature vector, so as to facilitate the subsequent analysis of the correlation between labels through the correlation feature vector. After that, the medical image is predicted according to the deep learning feature vector and the correlation feature vector to obtain a prediction value, so that the medical image can be analyzed in combination with the label correlation to improve the prediction accuracy of the medical image. Then, the deep learning model is trained according to the medical image data set and the prediction value to improve the generalization ability of the deep learning model and the reliability of image classification to obtain a pre-trained deep learning model. Finally, new medical image data is collected, and the medical image data set is updated according to the medical image data to realize real-time update of the medical image data set. At the same time, new labels can be introduced into the medical image data set. Then, the target data set is input into the pre-trained deep learning model for image classification, so that the deep learning model can continuously learn the labels in the medical image data set to obtain classification results and improve the accuracy of image classification. The embodiment of the present application analyzes the correlation between labels through a deep learning model, and fuses this correlation feature vector with the deep learning feature vector, thereby improving the accuracy of the medical image classification task and achieving accurate classification of medical images.
[0194] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0195] It can be understood by those skilled in the art that Figure 1-7 The technical solutions shown in the figure do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figure, or a combination of certain steps, or different steps.
[0196] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0197] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0198] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0199] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0200] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0201] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0202] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0203] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0204] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. An image classification method based on deep learning model, It is characterized in that The method comprises: Acquire a medical image dataset, wherein the medical image dataset includes a plurality of medical images; Inputting the medical image data set into a preset deep learning model for feature extraction to obtain a deep learning feature vector and a correlation feature vector; Predicting the medical image according to the deep learning feature vector and the correlation feature vector to obtain a predicted value; Training the deep learning model according to the medical image data set and the predicted value to obtain a pre-trained deep learning model; Collecting medical imaging data, and updating the medical imaging data set according to the medical imaging data to obtain a target data set; The target data set is input into a pre-trained deep learning model for image classification to obtain a classification result.
2. The image classification method based on the deep learning model according to claim 1, It is characterized in that Before inputting the medical image data set into a preset deep learning model, the method further includes: For each of the medical images, obtaining label information of the medical image, wherein the label information is used to characterize the category to which the medical image belongs; Performing matrix conversion on the label information to obtain a label matrix; A label matrix at a first moment is collected to obtain a first label set, and a label matrix at a second moment is collected to obtain a second label set, wherein the first moment is earlier than the second moment.
3. The image classification method based on the deep learning model according to claim 2, It is characterized in that The step of inputting the medical image data set into a preset deep learning model for feature extraction to obtain a deep learning feature vector and a correlation feature vector includes: Inputting the medical image data set into a preset deep learning model; Extracting features of the historical medical images at the first moment and the newly added medical images at the second moment through the convolutional neural network in the deep learning model to obtain a deep learning feature vector; The correlation features of the first label set and the second label set are extracted through the graph neural network in the deep learning model to obtain a correlation feature vector.
4. The image classification method based on the deep learning model according to claim 3, It is characterized in that The extracting correlation features of the first tag set and the second tag set by using the graph neural network in the deep learning model to obtain a correlation feature vector includes: Establishing a first relationship matrix from the first tag set to the second tag set, a second relationship matrix from the second tag set to the first tag set, and a third relationship matrix from the second tag set to the second tag set; Creating a correlation matrix of all label matrices according to the first relationship matrix, the second relationship matrix, and the third relationship matrix; Obtaining an initial graph representation in the medical image data set at a second moment, and obtaining a target correlation matrix at the second moment; The graph neural network is used to extract graph features from the initial graph representation and the target correlation matrix to obtain a correlation feature vector.
5. The image classification method based on the deep learning model according to claim 1, It is characterized in that The step of predicting the medical image according to the deep learning feature vector and the correlation feature vector to obtain a predicted value includes: For each of the medical images, performing a dot product operation on the deep learning feature vector and the correlation feature vector to obtain a dot product result; The confidence level of the dot product result of the medical image is calculated by using a preset activation function to obtain a predicted value.
6. The image classification method based on the deep learning model according to claim 2, It is characterized in that The predicted value includes a first predicted value at a first moment and a second predicted value at a second moment; and the deep learning model is trained according to the medical image data set and the predicted value to obtain a pre-trained deep learning model, including: Inputting the medical image data set into the deep learning model for image classification, and outputting historical prediction values and historical graph representations; Performing loss calculation on the first prediction value and the label information using a preset cross entropy loss function to obtain a first loss value; Performing loss calculation on the second prediction value and the historical prediction value by using a preset knowledge distillation loss function to obtain a second loss value; Performing loss calculation on the historical graph representation and the correlation feature vector using a preset graph neural loss function to obtain a third loss value; The deep learning model is trained according to the first loss value, the second loss value and the third loss value to obtain a pre-trained deep learning model.
7. The image classification method based on the deep learning model according to claim 4, It is characterized in that The establishing of a first relationship matrix from the first tag set to the second tag set, a second relationship matrix from the second tag set to the first tag set, and a third relationship matrix from the second tag set to the second tag set includes: Obtaining the number of samples of medical images of a preset category in the medical image dataset; Establishing a third relationship matrix from the second label set to the second label set according to the number of samples of the preset category; Predicting the medical imaging dataset using the deep learning model to generate pseudo labels; Generate a co-occurrence matrix based on the pseudo-labels and the label matrix; Establishing a second relationship matrix from the second tag set to the first tag set according to the co-occurrence matrix and the number of samples; The second relationship matrix, the number of samples, and the pseudo labels are calculated based on a preset Bayesian formula to establish a first relationship matrix from the first label set to the second label set.
8. An image classification device based on a deep learning model, It is characterized in that The device comprises: A data acquisition module, used to acquire a medical image data set, wherein the medical image data set includes a plurality of medical images; A feature extraction module, used to input the medical image data set into a preset deep learning model for feature extraction, and obtain a deep learning feature vector and a correlation feature vector; An image prediction module, used to predict the medical image according to the deep learning feature vector and the correlation feature vector to obtain a prediction value; A model training module, used for training the deep learning model according to the medical image data set and the predicted value to obtain a pre-trained deep learning model; A data updating module, used for collecting medical imaging data, and updating the medical imaging data set according to the medical imaging data to obtain a target data set; The image classification module is used to input the target data set into a pre-trained deep learning model for image classification to obtain classification results.
9. An electronic device, It is characterized in that The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the image classification method based on the deep learning model described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the image classification method based on a deep learning model described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Model training method and device, electronic equipment and readable storage medium
CN114611585A
Eye fundus image multi-label classification model generation method and system based on knowledge graph
CN117392470A
Model training method, training device and medical image classification method
CN117649565A
Method and device for training multi-label classification model
WO2019100723A1
Cited By
Electronic component classification prediction method and device
CN120449780A
