Automated detection of small low-contrast hyper-reflective foci in optical coherence tomography using a two-stage deep learning and gradient boosting pipeline
Hyper-Reflective Foci (HRF) visible in Optical Coherence Tomography (OCT) images are gaining increasing interest as potential biomarkers of neuroinflammatory activity in diabetic retinopathy (DR). Manual counting of HRF is extensively time-consuming and impractical in clinical settings, motivating the development of automated detection tools. In this work we present a novel two-stage automated pipeline for HRF detection in OCT B-scans. The first stage employs a lightweight dual-stream convolutional segmentation network, trained with a spatially-weighted focal loss incorporating a retinal band mask and an explicit recall optimisation term, to generate probability heatmaps and maximise candidate recall. The second stage applies an XGBoost classifier trained on 22 hand-crafted morphological, textural, and spatial features to filter false positives and maximise precision. Hyperparameter optimisation for both stages is performed using Optuna with strict patient-level cross-validation to prevent data leakage. On a held-out test set of 15 OCT images from a cohort of 61 diabetic retinopathy patients, the pipeline achieves a mean F1 score of $$0.630 \pm 0.138$$, mean precision of $$0.637 \pm 0.147$$, and mean recall of $$0.662 \pm 0.177$$, with a mean localisation error of 1.19 pixels, outperforming a single-stage U-Net baseline (F1 0.611) and a prior-art residual U-Net (F1 0.504) evaluated on the same split. These results demonstrate the technical feasibility of automated individual-HRF quantification in DR. As HRF counting is not currently part of routine DME grading or guideline-based treatment decisions, we frame this work as a preliminary technical feasibility study rather than a tool with immediate clinical decision-support value.
Authors
- Celeste Limoli
- Emanuele Torti (ORCID: https://orcid.org/0000-0001-8437-8227)
- Paolo Nucci (ORCID: https://orcid.org/0000-0002-4036-703X)
- Stela Vujosevic (ORCID: https://orcid.org/0000-0001-6773-9967)
- Marco Gazzoni (ORCID: https://orcid.org/0000-0003-4213-8270)
- Francesco Leporati (ORCID: https://orcid.org/0000-0003-2901-4935)
- Vanda Bucceri
- Gabriele Piccoli
Institutions
- University of Milan (IT)
- University of Pavia (IT)
- MultiMedica (IT)
Publication Details
- Journal
- Discover Artificial Intelligence
- Published
- 2026-11-26
- DOI
- https://doi.org/10.1007/s44163-026-02759-y
- Primary Topic
- Retinal Imaging and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 0.00