Patch-aware OCT classification gets a sharper framework
Optical coherence tomography has become central to retinal diagnosis because it reveals layered structure, fluid, and subtle tissue distortion that are often invisible on examination alone. The problem is not image availability; it is reliable interpretation at scale. In practice, retinal scans can look deceptively similar across disease classes, while the same diagnosis can appear different from one patient or device to the next.
SPARC, a structured patch-aware representation learning framework, was built to confront that problem directly. Instead of forcing a single backbone to absorb every clinically relevant cue, the method divides each OCT B-scan into spatially consistent regions, preserves their organization, and extracts both local and global features through five heterogeneous pretrained convolutional and transformer-based backbones. Those representations are then projected into a shared latent space, refined by a contextual transformer module, and sent into the final classifier.
The design reflects an important truth in retinal imaging: pathology is rarely uniform. Macular edema, degenerative change, and layered distortions may occupy only a portion of the scan, yet their context matters just as much as the abnormal patch itself. A model that loses that balance can miss the earliest signals or overread normal variation as disease.
Local lesions and global morphology pull in the same direction
By splitting the B-scan into structured regions, SPARC preserves retinal geography rather than treating the image as a flat sequence of pixels. That matters because the retina is anatomically ordered, and many OCT abnormalities are defined by where they occur as much as by how they look. The framework’s multi-backbone strategy adds another layer of robustness: convolutional networks tend to excel at texture and local pattern recognition, while transformer-based architectures are better suited to long-range relationships and broader structural context.
The shared latent space is the bridge between those perspectives. Local and global representations become aligned rather than competing, and the contextual transformer then models interactions among them before the final classification step. In clinical terms, the system is trying to do what experienced readers do naturally—notice the focal lesion, then weigh it against the architecture of the entire retinal slice.
Performance stayed high across heterogeneous datasets
Across the two principal datasets, SPARC reached accuracies of 95.60% on the Kermany dataset and 94.96% on the OCTDL dataset. Macro-AUC values were 0.996 and 0.994, respectively, indicating very strong class discrimination across the evaluated categories. Those results place the framework in a range that is difficult to dismiss as incremental, especially for a task where inter-class resemblance and intra-class variability routinely erode automated performance.
The cross-dataset findings are even more relevant for real-world use. In shared-class evaluation using DME and NORMAL/NO, SPARC produced a balanced accuracy of 93.62% and an AUC of 0.982. Independent cross-device normal-versus-abnormal testing on the MISP Comprehensive Topcon 3D-OCT dataset reached 92.93% accuracy and an AUC of 0.974 at the OCT-volume level. Device drift is a persistent failure mode in imaging AI, and these numbers suggest that the model retained useful discrimination even when scanner characteristics changed.
A model that only works where it was trained has limited clinical value.
Why the architecture matters beyond raw accuracy
The study did not stop at headline performance. Ablation testing, spatial-partitioning analysis, computational evaluation, branch-suppression experiments, repeated-run testing, and speckle-noise analysis were used to probe where the gains came from and how stable they remained. Those experiments matter because OCT is inherently noisy, and the best classifier is not always the one with the highest top-line score on clean validation images.
Repeated-run stability is especially important for translational confidence. If a model’s output swings widely with small changes in initialization or data perturbation, clinicians cannot trust its behavior in borderline cases. The speckle-noise analysis also speaks to a core imaging reality: OCT artifacts are not rare exceptions but part of routine interpretation. A resilient model must tolerate them without collapsing into false positives or false reassurance.
The work also makes clear that improved accuracy came with a cost. SPARC required substantially greater computation than lightweight architectures, a tradeoff that is common when multiple backbones and refinement stages are stacked to extract richer representations. In a hospital workflow, that can affect throughput, hardware needs, and deployment options at the point of care. High-performing imaging AI often runs into this same barrier: the more architecture is added to capture nuance, the more difficult it becomes to implement efficiently.
Clinical value depends on more than one dataset
The main appeal of SPARC is not simply that it performed well on familiar benchmarks. It is that the framework was built around the exact failure points that degrade retinal image classification in practice: subtle inter-class similarity, variability within the same disease label, and domain shifts across datasets and devices. Those are the circumstances under which a model must earn trust.
Even so, the evaluation remains bounded. The findings support structured local–global and heterogeneous representation learning, but broader multi-center and multi-device validation will be necessary before the approach can be considered mature for routine clinical deployment. Computational optimization is another open requirement, because an accurate method that is too resource-intensive may remain confined to research environments rather than screening pipelines or high-volume reading centers.
The study’s bottom line is concrete. SPARC improved OCT retinal disease classification by pairing patch-aware localization with cross-architecture feature alignment, and it held up across noisy and heterogeneous settings. The next question is not whether the concept works in principle; it is how far that performance can be sustained when the model leaves curated datasets and meets the operational constraints of everyday retinal imaging.
- • Scientific Reports DOI 10.1038/s41598-026-78082-4: https://doi.org/10.1038/s41598-026-78082-4