Two-Stage AI Pipeline Shows Feasibility for Retinal Biomarker Detection in

Bioengineer.org

Source published: Site published:

Original article · فارسی

Researchers have built a two-step artificial intelligence (AI) system that can find tiny signs of inflammation in eye scans from people with diabetic retinopathy. Diabetic retinopathy is an eye disease caused by diabetes and is a major cause of vision problems worldwide among people ages 25 to 74. It can become worse when fluid builds up in the central part of the retina, a condition called diabetic macular edema. This can happen at any stage of the disease. Doctors use several kinds of digital eye images, including optical coherence tomography (OCT) scans, to choose care for each patient. One feature they look for is called hyper-reflective foci. These are tiny, separate bright dots inside the retina. They do not cast shadows behind them and are as bright as, or brighter than, the retina's nerve fiber layer. Growing medical evidence suggests that these dots may be groups of activated immune cells called microglia. These cells release substances that cause inflammation. The dots appear to be linked to how active the disease is and how patients respond differently to corticosteroid medicines and treatments that block vascular endothelial growth factor, known as anti-VEGF treatments. Counting these tiny dots by hand takes so much specialist time that it is not practical during normal busy clinic days. The researchers created an automated system to help solve this problem. On a separate group of test scans, it achieved an average F1 detection score of 0.630 and located the dots with an average error of just 1.19 pixels.

One major problem for computer systems that examine medical images is that different studies have used different definitions of hyper-reflective foci. Many older programs treated every bright spot inside the retina as the same thing. This meant they mixed up tiny signs of inflammation with much larger collections of fat, reflections from blood vessel walls, and deposits called hard exudates. Hard exudates and vessel walls are very bright and create clear shadows behind them. This makes them fairly easy to find with standard computer methods that look for brightness differences or label different parts of an image. True inflammatory hyper-reflective foci are much harder to detect. They are no more than 30 micrometers across, have only a small difference in brightness from nearby tissue, do not create shadows, and can appear in many different layers of the retina. Older AI systems that included the easier-to-see hard exudates sometimes reported accuracy scores that looked better than their ability to find the tiny inflammatory dots alone. In this study, the researchers used strict rules. They looked only for spots smaller than 30 micrometers, with medium brightness and no shadow behind them. Their goal was to identify the tiny cell-related markers believed to show active inflammation in the retina's nerve tissue.

To train and test the AI using real medical images, the researchers collected 98 OCT B-scans from 61 people with diabetes. The group included patients with Type 1 and Type 2 diabetes who had routine eye appointments at the Retina and Imaging Unit of IRCCS MultiMedica in Milan, Italy, between January and April 2023. The patients had mild, moderate, or severe diabetic retinopathy, and some also had diabetic macular edema. The images came from ordinary medical visits, not from a study that required both eyes to be scanned. As a result, 37 patients provided scans of both eyes, while 24 provided scans of only one eye because the disease affected one eye or image problems affected a particular area. The researchers used a Spectralis HRA plus OCT2 machine to take straight-line, high-resolution scans centered on the fovea, the middle of the retina's central vision area. The machine averaged 100 automatically captured frames for each scan to reduce random grainy image noise before saving the images.

Because the dots were so small, the researchers needed very careful labels showing their true positions. Two medical experts independently examined the scans by hand. When they disagreed, a senior retina specialist made the final decision. The labels covered the central macula, within two millimeters on each side of the fovea's center, where these inflammatory dots are most common. The scans varied greatly in shape and size. Their heights ranged from 102 to 266 pixels, and their widths ranged from 296 to 730 pixels. Instead of stretching every image to the same size, which could change how the dots looked, the AI divided the images into smaller, adjustable sections. Each labeled image contained an average of 80.32 dots, and each dot covered an area of about three by three pixels. Their average grayscale brightness was 157.78, with a standard deviation of 25.31. This showed how little the dots stood out from nearby tissue. To prevent the AI from being tested on images from people it had already seen during training, the researchers separated the data by patient. They used 83 images for training and kept 15 completely separate images for testing. Every scan from the same patient stayed in only one of these groups.

Instead of using one standard AI network to find and classify everything at once, the researchers designed a system with two separate steps. This was meant to solve the difficulty of finding most real dots while also avoiding too many false alarms. The first step tries to find nearly every possible dot in the image, even if some of its guesses are wrong. The second step checks those guesses and removes spots that are probably not real inflammatory dots. The first AI network is called DualStreamMicroSegmenter. It examines overlapping small sections of each image. It also receives extra information about where each section is located, helping it learn which parts of the retina are more likely to contain the dots. The network has two paths that work together. The detail path uses mathematical image filters called multi-scale dilated convolutions to examine the texture of each tiny spot and the tissue around it without shrinking the image. The context path uses more efficient filters called depthwise separable convolutions to look at a wider area and create a map showing where the network should pay attention. The system then combines information from both paths by adding it together. This design lets learning signals flow directly back to the detail path and helps stop uncertain information from the wider image from hiding real tiny dots.

Training the first AI network required a special mathematical scoring method because the dots covered very few pixels compared with the large amount of normal retinal tissue. The researchers changed the hand-labeled dot positions into smooth, two-dimensional Gaussian probability maps, with the highest values at the center of each dot. This replaced simple yes-or-no pixel labels with smoother targets that allowed for small uncertainties in the exact positions. The main training method used a modified penalty-reduced focal loss, which helps the network learn from difficult examples. It also included a soft recall term, a mathematical penalty for missing real dots that could be used directly during training. Another part of the training method used a retinal band mask, which marked the active layers of the retina. Inside those layers, the system made the penalty for false alarms five times larger because normal grainy tissue can look very similar to the tiny dots. The researchers tested 40 different sets of training settings using Optuna and its Tree-structured Parzen Estimator method. They checked these settings using validation groups separated by patient. They chose the best saved model versions using an F-beta score with beta set to two, giving more importance to finding real dots than to avoiding false alarms.

The first network passed possible dot locations to the second step using a detection threshold of about 0.40, chosen to find as many real dots as possible. For each possible dot, the system calculated 22 specially designed measurements describing its shape, appearance, and position. These measurements fell into four groups. The first described the shape of the probability map, including how sharp the bright peak was and how evenly the spot spread out around its center. The second measured brightness in the original scan, including contrast with nearby tissue, changes in brightness from top to bottom, and the amount of shadow underneath. The third measured how deep the spot was compared with the boundaries of the retina. The fourth examined how dots were grouped together, using a method called density-based spatial clustering. The researchers then trained a machine-learning classifier called XGBoost, which uses extreme gradient boosting, to decide whether each possible dot was real. They trained it using predictions made on held-out portions of the data across five validation groups, so the classifier would not unfairly benefit from seeing the same examples during training. When the researchers checked which measurements mattered most, they found that spot size and the first network's confidence together provided about half of the model's ability to make predictions. The other 20 measurements of texture and shape supplied important extra details that helped tell real cell-related dots apart from blood vessel walls and reflections near tissue boundaries.

The researchers tested the complete two-step system on 15 patient scans that had not been used for training. It achieved an average F1 score of 0.630, precision of 0.637, and recall of 0.662. Precision measures how many spots identified by the AI are actually correct. Recall measures how many real spots the AI successfully finds. The F1 score combines these two measures. The system also located the spots very accurately, with an average difference of only 1.19 pixels between its predicted positions and the expert labels. The researchers compared their system with older AI models using the same rule that a prediction could be counted as a match if it was within four pixels of the correct position. Their two-step system performed better overall. A standard residual U-Net model based on earlier research found many real dots, with recall of 0.917, but also made many incorrect guesses. Its precision was only 0.357, giving it an F1 score of 0.504. Many of its false alarms occurred along tissue boundaries. A different, single-step U-Net trained with the special focal loss achieved an F1 score of 0.611 and precision of 0.520. Adding the second step, which used gradient boosting, increased precision by another 12 percentage points. This showed that carefully chosen measurements of spot shape and texture helped remove false alarms that the first AI network could not reliably identify on its own.

The researchers also ran tests in which they removed individual parts of their system to see how much each part helped. Removing the extra position information lowered the coordinate-level F1 score on held-out validation predictions by 0.014. This mainly happened because precision became worse when the network could no longer use what it had learned about the usual depth of the dots in the retina. Removing the soft recall term made the best detection thresholds less stable across the validation groups. This showed that the term helped stop the network from settling on poorly working settings with very low thresholds. The biggest problem came when the researchers removed the retinal band mask that gave extra weight to false alarms inside the retina. Without it, the validation F-beta score fell by 0.082, and precision dropped from 0.588 to 0.537. Recall increased, but the network incorrectly marked many more grainy areas of normal tissue as dots. Other tests showed that overall image quality measures, such as signal-to-noise ratio and sharpness, were not strongly linked to detection accuracy in a statistically significant way. What mattered much more was how clearly each individual dot stood out from nearby tissue. On scans with easy-to-see dots and good contrast, the system achieved an F1 score of 0.688. On difficult scans, the score fell to 0.514. In those difficult scans, 35 percent of the labeled dots had a contrast-to-noise ratio below one, meaning they were so hard to see that even people could be unsure whether they were present.

The study's authors stressed that automatically counting hyper-reflective foci is still an experimental research method. It is not an approved tool for routine medical grading or for deciding which treatment a patient should receive right away. The study was also small, with only 83 training images from 61 patients overall. This limits how well the researchers could capture all the differences in OCT images caused by different machines, scanning methods, and stages of eye disease. Another limitation was that the study did not have a second complete, independent set of labels that could be used to measure how consistently different experts identified the dots. The authors said future studies should have scans graded twice so researchers can measure agreement between graders. The system also depended on tissue masks created from expert labels during training. Future versions might find tissue boundaries automatically from predicted probability maps or use graph neural networks to study how the dots are arranged in relation to one another. Overall, the study showed that combining a deep-learning image detection network with a second gradient-boosting classifier can find very small, faint signs of inflammation in retinal scans. The researchers believe this provides a useful starting point for larger clinical studies of inflammation in the retina's nerve tissue and medicines designed to target that inflammation in people with diabetic eye disease.

Subject of Research: Automatically finding and counting tiny, faint signs of inflammation called hyper-reflective foci in OCT eye scans from people with diabetic retinopathy.

Article Title: Automated detection of small low-contrast hyper-reflective foci in optical coherence tomography using a two-stage deep learning and gradient boosting pipeline

Article References: Gazzoni, M., Torti, E., Limoli, C., Piccoli, G., Vujosevic, S., Bucceri, V., Nucci, P., & Leporati, F. (2026). Automated detection of small low-contrast hyper-reflective foci in optical coherence tomography using a two-stage deep learning and gradient boosting pipeline. Discover Artificial Intelligence, 6(1), Article 1962. https://doi.org/10.1007/s44163-026-02759-y

Image Credits: Created using AI

DOI: 10.1007/s44163-026-02759-y

Keywords: diabetic retinopathy, hyper-reflective foci, optical coherence tomography, deep learning, convolutional neural networks, gradient boosting, XGBoost, diabetic macular edema, retinal biomarkers, inflammation in the retina's nerve tissue, microglia, identifying parts of medical images, DualStreamMicroSegmenter, two-step AI system, retinal band mask, balancing correct detections against missed detections, computer analysis of medical images

News Source: Blake Davidson. (November 26, 2026). Two-Stage AI Pipeline Shows Feasibility for Retinal Biomarker Detection in Diabetes. Scienmag.