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
Can't use ChatGPT! Explaining the causes and solutions that can be tested immediately [Latest 2025]Can't use ChatGPT! Explaining the causes and solutions that can be tested immediately [Latest 2025]May 14, 2025 am 05:04 AM

ChatGPT is not accessible? This article provides a variety of practical solutions! Many users may encounter problems such as inaccessibility or slow response when using ChatGPT on a daily basis. This article will guide you to solve these problems step by step based on different situations. Causes of ChatGPT's inaccessibility and preliminary troubleshooting First, we need to determine whether the problem lies in the OpenAI server side, or the user's own network or device problems. Please follow the steps below to troubleshoot: Step 1: Check the official status of OpenAI Visit the OpenAI Status page (status.openai.com) to see if the ChatGPT service is running normally. If a red or yellow alarm is displayed, it means Open

Calculating The Risk Of ASI Starts With Human MindsCalculating The Risk Of ASI Starts With Human MindsMay 14, 2025 am 05:02 AM

On 10 May 2025, MIT physicist Max Tegmark told The Guardian that AI labs should emulate Oppenheimer’s Trinity-test calculus before releasing Artificial Super-Intelligence. “My assessment is that the 'Compton constant', the probability that a race to

An easy-to-understand explanation of how to write and compose lyrics and recommended tools in ChatGPTAn easy-to-understand explanation of how to write and compose lyrics and recommended tools in ChatGPTMay 14, 2025 am 05:01 AM

AI music creation technology is changing with each passing day. This article will use AI models such as ChatGPT as an example to explain in detail how to use AI to assist music creation, and explain it with actual cases. We will introduce how to create music through SunoAI, AI jukebox on Hugging Face, and Python's Music21 library. Through these technologies, everyone can easily create original music. However, it should be noted that the copyright issue of AI-generated content cannot be ignored, and you must be cautious when using it. Let’s explore the infinite possibilities of AI in the music field together! OpenAI's latest AI agent "OpenAI Deep Research" introduces: [ChatGPT]Ope

What is ChatGPT-4? A thorough explanation of what you can do, the pricing, and the differences from GPT-3.5!What is ChatGPT-4? A thorough explanation of what you can do, the pricing, and the differences from GPT-3.5!May 14, 2025 am 05:00 AM

The emergence of ChatGPT-4 has greatly expanded the possibility of AI applications. Compared with GPT-3.5, ChatGPT-4 has significantly improved. It has powerful context comprehension capabilities and can also recognize and generate images. It is a universal AI assistant. It has shown great potential in many fields such as improving business efficiency and assisting creation. However, at the same time, we must also pay attention to the precautions in its use. This article will explain the characteristics of ChatGPT-4 in detail and introduce effective usage methods for different scenarios. The article contains skills to make full use of the latest AI technologies, please refer to it. OpenAI's latest AI agent, please click the link below for details of "OpenAI Deep Research"

Explaining how to use the ChatGPT app! Japanese support and voice conversation functionExplaining how to use the ChatGPT app! Japanese support and voice conversation functionMay 14, 2025 am 04:59 AM

ChatGPT App: Unleash your creativity with the AI ​​assistant! Beginner's Guide The ChatGPT app is an innovative AI assistant that handles a wide range of tasks, including writing, translation, and question answering. It is a tool with endless possibilities that is useful for creative activities and information gathering. In this article, we will explain in an easy-to-understand way for beginners, from how to install the ChatGPT smartphone app, to the features unique to apps such as voice input functions and plugins, as well as the points to keep in mind when using the app. We'll also be taking a closer look at plugin restrictions and device-to-device configuration synchronization

How do I use the Chinese version of ChatGPT? Explanation of registration procedures and feesHow do I use the Chinese version of ChatGPT? Explanation of registration procedures and feesMay 14, 2025 am 04:56 AM

ChatGPT Chinese version: Unlock new experience of Chinese AI dialogue ChatGPT is popular all over the world, did you know it also offers a Chinese version? This powerful AI tool not only supports daily conversations, but also handles professional content and is compatible with Simplified and Traditional Chinese. Whether it is a user in China or a friend who is learning Chinese, you can benefit from it. This article will introduce in detail how to use ChatGPT Chinese version, including account settings, Chinese prompt word input, filter use, and selection of different packages, and analyze potential risks and response strategies. In addition, we will also compare ChatGPT Chinese version with other Chinese AI tools to help you better understand its advantages and application scenarios. OpenAI's latest AI intelligence

5 AI Agent Myths You Need To Stop Believing Now5 AI Agent Myths You Need To Stop Believing NowMay 14, 2025 am 04:54 AM

These can be thought of as the next leap forward in the field of generative AI, which gave us ChatGPT and other large-language-model chatbots. Rather than simply answering questions or generating information, they can take action on our behalf, inter

An easy-to-understand explanation of the illegality of creating and managing multiple accounts using ChatGPTAn easy-to-understand explanation of the illegality of creating and managing multiple accounts using ChatGPTMay 14, 2025 am 04:50 AM

Efficient multiple account management techniques using ChatGPT | A thorough explanation of how to use business and private life! ChatGPT is used in a variety of situations, but some people may be worried about managing multiple accounts. This article will explain in detail how to create multiple accounts for ChatGPT, what to do when using it, and how to operate it safely and efficiently. We also cover important points such as the difference in business and private use, and complying with OpenAI's terms of use, and provide a guide to help you safely utilize multiple accounts. OpenAI

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.