search
HomeTechnology peripheralsAIDeep ensemble learning algorithm for retinal image classification

Deep ensemble learning algorithm for retinal image classification

Apr 12, 2023 am 10:37 AM
deep learningintegrated model

Translator | Zhu Xianzhong

Revised | Sun Shujuan

Deep ensemble learning algorithm for retinal image classification

Picture 1 : Cover of the Iluminado project designed by the original author himself

In 2019, the World Health Organization estimated that there were approximately 2.2 billion people with visual impairments in the world, of which at least 1 billion could have been prevented or are still suffering from visual impairments. treat. When it comes to eye care, the world faces many challenges, including inequalities in coverage and quality of preventive, therapeutic and rehabilitative services. There is a lack of trained eye care staff and eye care services are poorly integrated into the main health system. My goal is to inspire action to address these challenges together. The project presented in this article is part of Iluminado, my current data science capstone project.

The design goals of the Capstone project

The purpose of creating this project is to train a deep learning ensemble model, and ultimately implement the model very easily for low-income families available, and initial disease risk diagnosis can be performed at low cost. By using my model procedure, ophthalmologists can determine whether immediate intervention is needed based on retinal fundus photography.

Project data set source

OphthAI provides a fundus multi-disease image data set (Retinal Fundus Multi-Disease Image Dataset, referred to as "RFMiD") Publicly available image dataset, this dataset contains 3200 fundus images captured by three different fundus cameras and annotated by two senior retinal experts based on adjudicated consensus.

These images were extracted from thousands of inspections performed during 2009-2010, selecting both high-quality images and quite a few low-quality images to make Data sets are more challenging.

The data set is divided into three parts, including training set (60% or 1920 images), evaluation set (20% or 640 images) and test set (20% and 640 photos). On average, the proportions of people with diseases in the training set, evaluation set, and test set were 60±7%, 20±7%, and 20±5%, respectively. The basic purpose of this dataset is to address various eye diseases that arise in daily clinical practice, with a total of 45 categories of diseases/pathologies identified. These labels can be found in three CSV files, namely RFMiD_Training_Labels.CSV, RFMiD_Validation_Labels.SSV and RFMiD_Testing_Labels.CSV.

Image source

The image below was taken using a tool called a fundus camera. A fundus camera is a specialized low-power microscope attached to a flash camera that is used to photograph the fundus, the retinal layer at the back of the eye.

Nowadays, most fundus cameras are handheld, so the patient only has to look directly into the lens. Among them, the bright flash part indicates that the fundus image has been taken.

Handheld cameras have their advantages as they can be carried to different locations and can accommodate patients with special needs, such as wheelchair users. Additionally, any employee with the required training can operate the camera, allowing underserved diabetic patients to have their annual check-ups quickly, safely and efficiently.

Fundus retinal imaging system photography situation:

Deep ensemble learning algorithm for retinal image classification

Figure 2: Images taken based on respective visual characteristics : (a) diabetic retinopathy (DR), (b) age-related macular degeneration (ARMD) and (c) moderate haze (MH).

Where is the final diagnosis done?

The initial screening process can be assisted by deep learning, but the final diagnosis is made by an ophthalmologist using slit lamp examination.

This process, also known as biomicroscopic diagnosis, involves the examination of living cells. The doctor can perform a microscopic examination to determine if there are any abnormalities in the patient's eyes.

Deep ensemble learning algorithm for retinal image classification

Figure 3: Illustration of slit lamp examination

Application of deep learning in retinal image classification

Different from traditional machine learning algorithms, depth Convolutional neural networks (CNN) can use multi-layer models to automatically extract and classify features from raw data.

Recently, a large number of academic articles have been published on the use of convolutional neural networks (CNN) to identify various eye diseases, such as diabetic retinopathy and abnormal outcomes (AUROC) >0.9) glaucoma, etc.

Data Metrics

The AUROC score summarizes the ROC curve into a number that describes how well the model performs when handling multiple thresholds simultaneously. It is worth noting that an AUROC score of 1 represents a perfect score, while an AUROC score of 0.5 corresponds to random guessing.

Deep ensemble learning algorithm for retinal image classification

Figure 4: Schematic diagram of ROC curve display

Method used - cross entropy loss function

Cross entropy is often used as a loss function in machine learning. Cross entropy is a metric in the field of information theory that builds on the definition of entropy and is typically used to calculate the difference between two probability distributions, while cross entropy can be thought of as calculating the total entropy between two distributions.

Cross entropy is also related to logistic loss, called logarithmic loss. Although these two measures come from different sources, when used as a loss function for a classification model, both methods calculate the same quantity and can be used interchangeably.

(For specific details, please refer to: https://machinelearningmastery.com/logistic-regression-with-maximum-likelihood-estimation/)

What is cross-entropy?

Cross entropy is a measure of the difference between two probability distributions given a random variable or set of events. You may recall that information quantifies the number of bits required to encode and transmit an event. Low-probability events tend to contain more information, while high-probability events contain less information.

In information theory, we like to describe the "surprise" of events. The less likely an event is to occur, the more surprising it is, which means it contains more information.

  • Low Probability Event (Surprising): More information.
  • High probability event (no surprise): less information.

Given the probability of event P(x), the information h(x) can be calculated for event x, as follows:

h(x) = -log(P(x))

Deep ensemble learning algorithm for retinal image classification

Figure 4: Perfect illustration (Image source: Vlastimil Martinek)

Entropy is the transmission of randomness from a probability distribution The number of bits required for the selected event. Skewed distributions have lower entropy, while distributions with equal probabilities of events generally have higher entropy.

Deep ensemble learning algorithm for retinal image classification

Figure 5: A perfect illustration of the ratio of target to predicted probability (Image source: Vlastimil Martinek)

Skewed probability distributions have fewer "surprises" and in turn have lower entropy because possible events dominate. Relatively speaking, the equilibrium distribution is more surprising and has higher entropy because the events are equally likely to occur.

  • Skewed probability distribution (no surprise): low entropy.
  • Balanced probability distribution (surprisingly): high entropy.

Entropy H(x) can be calculated for a random variable with a set x of x discrete states and its probability P(x), as shown in the following figure:

Deep ensemble learning algorithm for retinal image classification

Figure 6: Multi-level cross-entropy formula (Image source: Vlastimil Martinek)

Multi-category classification - we use multiple Categorical cross-entropy is a specific application case of cross-entropy where the target uses a one-hot encoding vector scheme. (Interested readers can refer to Vlastimil Martinek’s article)

Deep ensemble learning algorithm for retinal image classification

Figure 7: Perfect decomposition diagram of panda and cat loss calculation (Image source: Vlastimil Martinek)

Deep ensemble learning algorithm for retinal image classification

Figure 8: Perfect decomposition of loss value Figure 1 (Image source: Vlastimil Martinek)

Deep ensemble learning algorithm for retinal image classification

Figure 9: Perfect decomposition of loss value Figure 2 (Image source: Vlastimil Martinek)

Deep ensemble learning algorithm for retinal image classification

Figure 9: Visual representation on probability and loss (Image source: Vlastimil Martinek)

What about binary cross-entropy?

Deep ensemble learning algorithm for retinal image classification

Figure 10: Illustration of the categorical cross-entropy formula (Image source: Vlastimil Martinek)

In our project We chose to use binary classification - a binary cross-entropy scheme, that is, a cross-entropy scheme with a target of 0 or 1. If we convert the targets into hot encoding vectors of [0,1] or [1,0] respectively and predict, then we can use the cross-entropy formula to calculate.

Deep ensemble learning algorithm for retinal image classification

Figure 11: Illustration of the binary cross entropy calculation formula (Image source: Vlastimil Martinek)

Use asymmetry Loss algorithm handles imbalanced data

In a typical multi-label model environment, the features of the data set may have a disproportionate number of positive and negative labels. At this point, the tendency of the data set to favor negative labels has a dominant impact on the optimization process and ultimately leads to under-emphasis of the gradients of positive labels, thereby reducing the accuracy of the prediction results.

This is exactly the situation faced by the data set I currently choose.

This project uses the asymmetric loss algorithm developed by BenBaruch and others (refer to Figure 12). This is a method to solve multi-label classification, but there are also serious problems in the categories. Unbalanced distribution situation.

The way I think of it is: by asymmetrically modifying the positive and negative components of the cross entropy, thereby reducing the weight of the negative label part, and finally highlighting the above-mentioned positive labels that are more difficult to process. part weight.

Deep ensemble learning algorithm for retinal image classification

Figure 12: Asymmetric multi-label classification algorithm (2020, author: Ben-Baruch et al.)

To be Tested architecture

To summarize, the project in this article uses the architecture shown in the figure:

Deep ensemble learning algorithm for retinal image classification

## Figure 13 (Picture source: Sixu)

The key algorithms used in the above architecture mainly include:

  • DenseNet-121
  • InceptionV3
  • Xception
  • MobileNetV2
  • VGG16

In addition, the above-mentioned algorithm-related content will definitely be updated after I complete the Capstone project of this article! Interested readers please stay tuned!

Translator Introduction

Zhu Xianzhong, 51CTO community editor, 51CTO expert blogger, lecturer, computer teacher at a university in Weifang, and a veteran in the freelance programming industry.

Original title: ##​Deep Ensemble Learning for Retinal Image Classification (CNN) By Cathy Kam

The above is the detailed content of Deep ensemble learning algorithm for retinal image classification. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
What is Graph of Thought in Prompt EngineeringWhat is Graph of Thought in Prompt EngineeringApr 13, 2025 am 11:53 AM

Introduction In prompt engineering, “Graph of Thought” refers to a novel approach that uses graph theory to structure and guide AI’s reasoning process. Unlike traditional methods, which often involve linear s

Optimize Your Organisation's Email Marketing with GenAI AgentsOptimize Your Organisation's Email Marketing with GenAI AgentsApr 13, 2025 am 11:44 AM

Introduction Congratulations! You run a successful business. Through your web pages, social media campaigns, webinars, conferences, free resources, and other sources, you collect 5000 email IDs daily. The next obvious step is

Real-Time App Performance Monitoring with Apache PinotReal-Time App Performance Monitoring with Apache PinotApr 13, 2025 am 11:40 AM

Introduction In today’s fast-paced software development environment, ensuring optimal application performance is crucial. Monitoring real-time metrics such as response times, error rates, and resource utilization can help main

ChatGPT Hits 1 Billion Users? 'Doubled In Just Weeks' Says OpenAI CEOChatGPT Hits 1 Billion Users? 'Doubled In Just Weeks' Says OpenAI CEOApr 13, 2025 am 11:23 AM

“How many users do you have?” he prodded. “I think the last time we said was 500 million weekly actives, and it is growing very rapidly,” replied Altman. “You told me that it like doubled in just a few weeks,” Anderson continued. “I said that priv

Pixtral-12B: Mistral AI's First Multimodal Model - Analytics VidhyaPixtral-12B: Mistral AI's First Multimodal Model - Analytics VidhyaApr 13, 2025 am 11:20 AM

Introduction Mistral has released its very first multimodal model, namely the Pixtral-12B-2409. This model is built upon Mistral’s 12 Billion parameter, Nemo 12B. What sets this model apart? It can now take both images and tex

Agentic Frameworks for Generative AI Applications - Analytics VidhyaAgentic Frameworks for Generative AI Applications - Analytics VidhyaApr 13, 2025 am 11:13 AM

Imagine having an AI-powered assistant that not only responds to your queries but also autonomously gathers information, executes tasks, and even handles multiple types of data—text, images, and code. Sounds futuristic? In this a

Applications of Generative AI in the Financial SectorApplications of Generative AI in the Financial SectorApr 13, 2025 am 11:12 AM

Introduction The finance industry is the cornerstone of any country’s development, as it drives economic growth by facilitating efficient transactions and credit availability. The ease with which transactions occur and credit

Guide to Online Learning and Passive-Aggressive AlgorithmsGuide to Online Learning and Passive-Aggressive AlgorithmsApr 13, 2025 am 11:09 AM

Introduction Data is being generated at an unprecedented rate from sources such as social media, financial transactions, and e-commerce platforms. Handling this continuous stream of information is a challenge, but it offers an

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function