Plasmodium classification and identification method and device based on artificial intelligence
Through nested learning of multiple expert models and online distillation technology, the problem of insufficient data samples and category imbalance in malaria identification is solved, and the identification accuracy and model robustness are improved.
Patent Information
- Application Number
- CN202411098787.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-08-12
AI Technical Summary
The accuracy of Plasmodium identification in the existing technology is poor, mainly due to the small number of data samples and the imbalance in the number of sample data categories, resulting in poor artificial intelligence classification methods.
Multiple expert models are used for nested learning and nested balanced online distillation, and the recognition accuracy of the model is improved through nested individual learning and knowledge transfer.
It effectively improves the identification accuracy of malaria parasites, solves the problem of fewer data samples and unbalanced categories, and enhances the model's robustness and detailed discrimination capabilities.
Smart Images

Figure CN118747890A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical data processing technology, and in particular to a method and device for classifying and identifying malarial parasites based on artificial intelligence. Background Art
[0002] Malaria is a parasitic disease prevalent in tropical and subtropical regions. It is caused by the bite of female Anopheles mosquitoes carrying malarial parasites. There are four main types of malarial parasites that infect humans: Plasmodium falciparum, Plasmodium vivax, Plasmodium malariae and Plasmodium ovale. The most common ones are Plasmodium falciparum and Plasmodium vivax, and Plasmodium falciparum is the most dangerous. Different types of malarial parasites can show obvious differences in thin blood film morphology, including parasitized red blood cells, small trophozoites (ring bodies), large trophozoites, immature schizonts, mature schizonts, male gametocytes, and female gametocytes. Therefore, the identification of the type of malarial parasites is of great significance for studying the course of malaria.
[0003] In the existing technology, the identification of malarial parasites can be carried out by traditional medical means and artificial intelligence means. Among them, the identification of malarial parasites by traditional medical means mainly includes the following four methods: (1) Microscopic examination: Doctors use a microscope to observe peripheral blood smears to check for malarial parasites. This is a routine method for diagnosing malaria. Usually, the entire blood slide needs to be observed under a 100x objective lens. Generally, thousands of fields of view need to be checked, which takes a day. If malarial parasites are found, the result is positive, which can be used as a reliable basis for diagnosis. A negative result cannot negate the diagnosis, and multiple reexaminations are required. (2) Cultivation: Cultivate the microorganisms in the sample under certain nutritional conditions and observe the growth characteristics of reproduction and amplification to determine whether parasites are present; (3) Antigen or antibody detection: by injecting specific antibodies (or antigens) into the sample and observing whether a specific reaction occurs, it is possible to infer whether the microorganism contains parasites; (4) Genetic testing: Use nucleic acid hybridization, gene chips, polymerase reaction and other technologies to detect the nucleic acid sequence of parasites to determine whether parasites are present.
[0004] Due to the small amount of data, there are relatively few artificial intelligence technologies for malarial parasite classification. There are currently four different solutions for medical image classification tasks with a small total data volume (small sample) and unbalanced data volume. Data imbalance refers to the fact that during the classification process, the data set used for network training has a serious imbalance in the proportion of the data volume in each category. The category with a large amount of data is called the head category, the category with a moderate amount of data is called the middle category, and the category with a small amount of data is called the tail category.
[0005] (1) Data augmentation: This type of method usually augments the data of the tail category to increase the amount of data in the tail category, thus transforming the problem into a balanced data classification problem. (2) Resampling: This method refers to selecting the same number of instances in each category from the existing data set to form a balanced data set to complete the classification task; (3) Reweighting: In the process of training the neural network, different weights are assigned to different categories of data, so that the network has a greater bias towards the tail category, thereby solving the problem of data imbalance; (4) Multi-expert model: Through a method similar to ensemble learning, multiple neural networks are established to classify data in parallel. During the training process of each network, the data received is different, and the number of rounds of tail data input is more than that of the head category, thus solving the problem of data imbalance to a certain extent.
[0006] However, for existing AI methods, in solving the long-tail problem of small data sets, data augmentation methods can cause overfitting of the network; resampling and reweighting can weaken the accuracy of the head category. None of these methods can effectively solve the problem of data imbalance, and since the overall number of native data sets is small, none of these methods can effectively solve the problem of insufficient data samples.
[0007] In view of this, a method and device for classifying and identifying Plasmodium based on artificial intelligence are provided, in the hope of solving the problem of poor accuracy in identifying Plasmodium due to the small number of data samples and the imbalance in the number of sample data categories in the prior art. Summary of the invention
[0008] The present invention provides a method and device for classifying and identifying malarial parasites based on artificial intelligence, in the hope of solving the problem in the prior art of poor malarial parasite identification accuracy caused by a small number of data samples and an imbalance in the number of sample data categories.
[0009] The present invention provides a method for classifying and identifying Plasmodium based on artificial intelligence, the method comprising: Obtaining an original image to be recognized; Inputting the original image to be identified into a pre-trained classification and recognition model to obtain a malarial parasite category recognition result output by the classification and recognition model; The classification recognition model is obtained by performing nested learning on multiple expert models, and the nested learning includes performing nested individual learning on each of the expert models and performing nested balanced online distillation on the multiple expert models.
[0010] In some embodiments, the training process of the classification recognition model includes: Using the image samples, each of the expert models is independently subjected to nested learning; The expert models trained by nested learning are subjected to nested balanced online distillation to obtain the classification recognition model.
[0011] In some embodiments, the process of performing nested learning on each of the expert models comprises the following steps: Input the image sample into the neural network; In the neural network, the image samples are converted into high-dimensional feature vectors through feature encoders; The high-dimensional feature vector is passed into the classifier for classification through the soft max function, and the cross entropy loss function is used as the supervision loss function.
[0012] In some embodiments, the image samples include original image samples and difficult samples, and the difficult samples are used to perform independent nested learning on each of the expert models.
[0013] In some embodiments, independent nested learning is performed on each of the expert models using image samples, specifically including: Using original image samples to perform independent nested learning on each of the expert models; The difficult samples are used to perform independent nested learning on each of the expert models.
[0014] In some embodiments, performing nested balanced online distillation on each of the expert models trained by nested learning specifically includes:
[0015] Since the three models simultaneously extract image data features and output classification results, at this time, for the intermediate stage, each sub-network will input image data, real labels and two sets of corresponding pseudo labels. In this process, if the pseudo labels are inconsistent with the real labels, the model will perform more delicate feature learning on such difficult sample data and amplify the penalty intensity. This nested model in which each serves as a teacher for the other has a strong discrimination difficulty.
[0016] In some embodiments, distillation learning is performed based on original image samples and difficult samples respectively.
[0017] The present invention also provides a device for classifying and identifying malarial parasites based on artificial intelligence, the device comprising: An image acquisition unit, used for acquiring an original image to be recognized; A result generating unit, used for inputting the original image to be identified into a pre-trained classification and recognition model to obtain a malarial parasite category recognition result output by the classification and recognition model; The classification recognition model is obtained by performing nested learning on multiple expert models, and the nested learning includes performing nested individual learning on each of the expert models and performing nested balanced online distillation on the multiple expert models.
[0018] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described above when executing the program.
[0019] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method described above when executed by a processor.
[0020] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method described above is implemented.
[0021] The artificial intelligence-based malarial parasite classification and recognition method provided by the present invention obtains an original image to be recognized; inputs the original image to be recognized into a pre-trained classification and recognition model to obtain a malarial parasite category recognition result output by the classification and recognition model; wherein the classification and recognition model is obtained by nested learning using multiple expert models, and the nested learning includes nested individual learning for each of the expert models, and nested balanced online distillation between multiple expert models. The problem of poor malarial parasite recognition accuracy caused by a small number of data samples and an unbalanced number of sample data in categories in the prior art is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 This is one of the flow charts of the artificial intelligence-based malarial parasite classification and identification method provided by the present invention; Figure 2 This is the second flow chart of the method for classifying and identifying Plasmodium based on artificial intelligence provided by the present invention; Figure 3 This is the third flow chart of the method for classifying and identifying Plasmodium based on artificial intelligence provided by the present invention; Figure 4 It is a structural block diagram of the Plasmodium classification and identification device based on artificial intelligence provided by the present invention; Figure 5It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0025] In actual usage scenarios, malarial parasites can cause disease in the ring, macrotrophozoite, schizont and gametocyte stages. Judging the proportion of different stages is of certain significance for predicting the direction of the disease. Therefore, this embodiment sets the recognition range to four major stages of Plasmodium falciparum, Plasmodium vivax, Plasmodium malariae, Plasmodium ovale, Plasmodium knowlesi, and the ring, macrotrophozoite, schizont, and gametocyte of different parasite species, for a total of 20 categories (5 parasite species × 4 stages).
[0026] In order to solve the problems existing in the prior art and overcome the problem of fewer data samples and difficulty in distinguishing difficult samples during artificial intelligence recognition, the present invention provides a Plasmodium classification and recognition method based on artificial intelligence.
[0027] In a specific embodiment, the artificial intelligence-based malarial parasite classification and identification method provided by the present invention comprises the following steps: S110: Acquire an original image to be recognized; S120: inputting the original image to be identified into a pre-trained classification and recognition model to obtain a malarial parasite category recognition result output by the classification and recognition model; The classification recognition model is obtained by performing nested learning on multiple expert models, and the nested learning includes performing nested individual learning on each of the expert models and performing nested balanced online distillation on the multiple expert models.
[0028] In general, in order to solve the small sample problem, this embodiment introduces a nested multi-expert learning algorithm, which solves this problem by collaboratively learning multiple models. The nested multi-expert learning algorithm consists of two core components, namely nested individual learning and nested balanced online distillation, which focus on individual supervised learning of a single model and knowledge transfer between multiple models, respectively.
[0029] In step S120, the training process of the classification recognition model includes: Using image samples, each of the expert models is independently nested. The image samples include original image samples and difficult samples. When using image samples to independently nest each of the expert models, both the original image samples are used to independently nest each of the expert models, and the difficult samples are used to independently nest each of the expert models to improve the model accuracy.
[0030] It should be understood that difficult samples refer to those that are easily misclassified by the model, have no obvious visual characteristics, and are often ambiguous cases between different categories. They do not fully conform to the common features of their categories and can be understood as samples that are difficult to identify.
[0031] In a specific usage scenario, the nested individual learning stage mainly focuses on the learning of a single expert network. A single expert first follows the traditional feature learning and classifier learning, that is, the image is input into the network and converted into a high-dimensional feature vector through the feature encoder, and then the high-dimensional vector is passed into the classifier for classification through the soft max function, using the cross entropy loss function as the supervision loss. In addition, a difficult sample learning module is added to alleviate the problem of misclassification.
[0032] The expert models trained by nested learning are subjected to nested balanced online distillation to obtain the classification recognition model. A training strategy for multiple experts to learn from each other is designed, that is, each expert has the opportunity to serve as a teacher model and other experts as student models. Each expert not only learns all categories from a complete perspective, but also learns some difficult categories from a partial perspective. In the nested learning training strategy, the learning from two perspectives is nested, highly related and complementary, which not only helps the network capture global and robust features, but also captures detailed discrimination capabilities.
[0033] The process of performing nested learning on each of the expert models includes the following steps: Input the image sample into the neural network; In the neural network, the image samples are converted into high-dimensional feature vectors through feature encoders; The high-dimensional feature vector is passed into the classifier for classification through the soft max function, and the cross entropy loss function is used as the supervision loss function.
[0034] In a specific usage scenario, such as Figure 2As shown, during the training process of a single expert model, firstly, independent training of n expert models is carried out. The expert model can be regarded as an integrated learning model, that is, using several neural networks with similar network structures to jointly complete a set of classification tasks. Each expert network is responsible for the complete data classification task. In this embodiment, three expert models are used. Regarding the classification of 20 categories (5 insect species × 4 periods) of malarial parasites, a single expert model needs to learn the classification task of the entire data. A module for mining difficult samples is designed for a single expert, and the original category and predicted category of the sample are separated to perform a binary classification task. The loss function set for each expert from the perspective of complete data and the perspective of difficult sample judgment is the cross entropy loss function, and the loss function of a single expert is the sum of the two.
[0035] In the process of performing nested balanced online distillation on each of the expert models trained by nested learning, at least three groups of expert models are set, and each two of the expert models in each group are trained as a teacher model and a student model respectively.
[0036] In principle, traditional distillation learning includes a teacher-student network, and the prediction results of the teacher model are used as the student labels. In order to improve the effect of model training, the online distillation algorithm proposed in this embodiment contains multiple network models. For the sake of convenience, Figure 3 As shown in the figure, taking three network models as an example, each of them is a teacher-student relationship, so that the proxy label will be updated online. Since the three models extract the features of image data and output the classification results at the same time, at this time, for the intermediate stage, each sub-network will input image data, real labels and 2 sets of corresponding pseudo labels. In this process, if the pseudo labels are inconsistent with the real labels, the model will perform more delicate feature learning on such difficult sample data and amplify the penalty intensity. This nested mode of mutual teachers has a strong discrimination difficulty.
[0037] In some embodiments, distillation learning is performed based on the original image samples and the difficult samples, respectively. Specifically, in the nested balanced online distillation process, in order to collaboratively learn multiple experts, online distillation is used to allow each model to learn additional knowledge from others. In the distillation process, not only is learning between experts performed on the complete data, but in order to ensure the accuracy of learning difficult samples, the difficult sample module is also separated for nested distillation learning. The distillation method used in this embodiment is to perform KL divergence between the logit of the teacher model and the logit of the student model. The loss function at this stage is the sum of the distillation loss on the complete data and the distillation loss of the difficult samples.
[0038] In the above specific implementation, the artificial intelligence-based malarial parasite classification and recognition method provided by the present invention obtains the original image to be identified; inputs the original image to be identified into a pre-trained classification and recognition model to obtain the malarial parasite category recognition result output by the classification and recognition model; wherein the classification and recognition model is obtained by nested learning using multiple expert models, and the nested learning includes nested individual learning for each of the expert models, and nested balanced online distillation between multiple expert models. The problem of poor malarial parasite recognition accuracy caused by the small number of data samples and the imbalanced number of sample data in categories in the prior art is solved.
[0039] In addition to the above method, the present invention also provides a malarial parasite classification and identification device based on artificial intelligence, such as Figure 4 As shown, the device comprises: An image acquisition unit 410 is used to acquire an original image to be recognized; A result generating unit 420 is used to input the original image to be identified into a pre-trained classification and recognition model to obtain a malarial parasite category recognition result output by the classification and recognition model; The classification recognition model is obtained by performing nested learning on multiple expert models, and the nested learning includes performing nested individual learning on each of the expert models and performing nested balanced online distillation on the multiple expert models.
[0040] In some embodiments, the training process of the classification recognition model includes: Using the image samples, each of the expert models is independently subjected to nested learning; The expert models trained by nested learning are subjected to nested balanced online distillation to obtain the classification recognition model.
[0041] In some embodiments, the process of performing nested learning on each of the expert models comprises the following steps: Input the image sample into the neural network; In the neural network, the image samples are converted into high-dimensional feature vectors through feature encoders; The high-dimensional feature vector is passed into the classifier for classification through the soft max function, and the cross entropy loss function is used as the supervision loss function.
[0042] In some embodiments, the image samples include original image samples and difficult samples, and the image samples are used to perform independent nested learning on each of the expert models, specifically including: Using original image samples to perform independent nested learning on each of the expert models; The difficult samples are used to perform independent nested learning on each of the expert models.
[0043] In some embodiments, during the process of performing nested balanced online distillation on each of the expert models trained by nested learning, at least three groups of expert models are set, and each two of the expert models in each group are trained as a teacher model and a student model, respectively.
[0044] In some embodiments, distillation learning is performed based on original image samples and difficult samples respectively.
[0045] In the above specific implementation, the artificial intelligence-based malarial parasite classification and recognition device provided by the present invention obtains the original image to be recognized; inputs the original image to be recognized into a pre-trained classification and recognition model to obtain the malarial parasite category recognition result output by the classification and recognition model; wherein the classification and recognition model is obtained by nested learning using multiple expert models, and the nested learning includes nested individual learning for each of the expert models, and nested balanced online distillation between multiple expert models. The problem of poor malarial parasite recognition accuracy caused by the small number of data samples and the imbalanced number of sample data in categories in the prior art is solved.
[0046] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other via the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the above method.
[0047] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the part of the technical solution of the present invention that essentially contributes to the prior art or the 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 a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0048] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the above method.
[0049] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0050] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0051] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for classifying and identifying malarial parasites based on artificial intelligence, characterized in that: The method comprises: Obtaining the original image to be recognized; Inputting the original image to be identified into a pre-trained classification and recognition model to obtain a malarial parasite category recognition result output by the classification and recognition model; The classification recognition model is obtained by performing nested learning on multiple expert models, and the nested learning includes performing nested individual learning on each of the expert models and performing nested balanced online distillation on the multiple expert models.
2. The method for classifying and identifying Plasmodium based on artificial intelligence according to claim 1, characterized in that: The training process of the classification recognition model includes: Using the image samples, each of the expert models is independently subjected to nested learning; The expert models trained by nested learning are subjected to nested balanced online distillation to obtain the classification recognition model.
3. The method for classifying and identifying Plasmodium based on artificial intelligence according to claim 2, characterized in that: The process of performing nested learning on each of the expert models includes the following steps: Input the image sample into the neural network; In the neural network, the image samples are converted into high-dimensional feature vectors through feature encoders; The high-dimensional feature vector is passed into the classifier for classification through the soft max function, and the cross entropy loss function is used as the supervision loss function.
4. The method for classifying and identifying Plasmodium based on artificial intelligence according to claim 2, characterized in that: The image samples include original image samples and difficult samples. The image samples are used to perform independent nested learning on each of the expert models, specifically including: Using original image samples to perform independent nested learning on each of the expert models; The difficult samples are used to perform independent nested learning on each of the expert models.
5. The method for classifying and identifying Plasmodium based on artificial intelligence according to claim 2, characterized in that: In the process of performing nested balanced online distillation on each of the expert models trained by nested learning, at least three groups of expert models are set, and each two of the expert models in each group are trained as a teacher model and a student model respectively.
6. The method for classifying and identifying Plasmodium based on artificial intelligence according to claim 5, characterized in that: Distillation learning is performed based on original image samples and difficult samples respectively.
7. An artificial intelligence-based malarial parasite classification and identification device, characterized in that: The device comprises: An image acquisition unit, used for acquiring an original image to be recognized; A result generating unit, used for inputting the original image to be identified into a pre-trained classification and recognition model to obtain a malarial parasite category recognition result output by the classification and recognition model; The classification recognition model is obtained by performing nested learning on multiple expert models, and the nested learning includes performing nested individual learning on each of the expert models and performing nested balanced online distillation on the multiple expert models.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Long-tail image recognition method and related device
CN116152612A
Cross-subject electroencephalogram signal classification method based on online test time domain adaptation
CN116746947A
Image classification method and system based on difficulty perception data enhancement and label correction
CN117636072A
Unbalanced image classification method based on knowledge distillation
CN118196493A
Feature enhancement collaborative relation knowledge distillation method for skin tumor image classification
CN118350460A
Cited By
Efficient protozoa identification method and electronic equipment
CN118962097A
