Comparative Analysis of Deep Learning Strategies for Hypertensive Retinopathy Detection from Fundus Images: From Scratch and Pre-trained Models

Yanqiao Zhu · DOI

TL;DR

This paper investigates how different deep learning architectures—ranging from simple CNNs to advanced Vision Transformers (ViTs)—behave when detecting hypertensive retinopathy from eye scans. The standout finding is that data augmentation is a "double-edged sword": it is essential for pure Transformers to learn effectively, but it can actually degrade the performance of hybrid CNN-Transformer models.

What Problem Does This Paper Address?

Hypertensive retinopathy (HR) is a condition where high blood pressure damages the retinal blood vessels, potentially leading to vision loss. Detecting it early through fundus images (photographs of the back of the eye) is critical but challenging for automated systems.

The authors tackle a fundamental question in medical AI: Does more data augmentation always lead to better results? While the "more is better" mantra often holds true for general computer vision, medical datasets are frequently small and specialized. The paper explores the nuanced interplay between a model's internal "logic" (inductive bias), its size, and the diversity of the training data.

Methods

The researchers compared three main categories of models using the AutoGluon-Multimodal framework to ensure a fair, standardized training environment:

  1. Custom CNN (FundusCNN): A lightweight, 4-layer convolutional neural network (0.44M parameters) designed as a "sanity check" baseline.
  2. Pure Vision Transformers (ViTs): Models like ViT-B/32 and ViT-B/8 that treat images as sequences of patches. They also tested DINOv2, a powerful self-supervised model.
  3. Hybrid Models: Architectures like CAFormer and ViT-B-R50/16 that combine a CNN "stem" (to extract local features) with a Transformer "body" (to model global relationships).

They tested these models across two main data regimes: the Original dataset and an Augmented dataset (incorporating horizontal flips, random rotations, and color jittering).

Datasets

The study utilized the dataset from the HRDC (Hypertensive Retinopathy Diagnosis Challenge) 2025. This is a specialized benchmark focused on binary classification (hypertension vs. healthy) from fundus images. The authors highlight that the dataset is relatively small and homogeneous, which makes generalization difficult.

Key Insights and Ideas

  • The Inductive Bias Gap: CNNs have "built-in" assumptions about images (like locality and translation invariance). Pure ViTs lack these, making them "data-hungry." The authors found that augmentation acts as a crucial regularizer for ViTs, forcing them to learn structural patterns rather than just memorizing the training set.
  • "Feature Confusion" in Hybrids: Surprisingly, hybrid models performed worse with aggressive augmentation. The authors hypothesize that the pre-trained CNN components in these hybrids already have strong spatial biases. Aggressive transformations (like jitter and rotation) might "confuse" these components, disrupting the delicate balance between the CNN feature extractor and the Transformer head.
  • Patch Size Matters: In pure ViTs, smaller patch sizes (ViT-B/8) significantly outperformed larger ones (ViT-B/32) when using augmented data. Smaller patches likely allow the model to capture the fine-grained, "thread-like" pathological details of retinal vessels.
  • The DINOv2 "Rescue": On the original limited dataset, the state-of-the-art DINOv2 model failed completely (predicting only one class). However, data augmentation "rescued" it, allowing it to achieve competitive results. This suggests that high-capacity self-supervised models require a minimum threshold of data diversity to unlock their potential.

Key Results

  • Best Performer: The ViT-B/8 (Pure) model on augmented data achieved the highest Average Score (0.665) and a Cohen’s Kappa of 0.472.
  • The Hybrid Slump: The CAFormer (Hybrid) saw its Kappa score drop from 0.472 on original data to 0.333 on augmented data.
  • Baseline Overfitting: The simple FundusCNN achieved 100% training accuracy but struggled to generalize, proving that the challenge of HR detection isn't about "learning the data," but about "learning the right features."
  • Model Scaling Warning: Preliminary tests with ViT-Large showed poor performance across the board, reinforcing the idea that "bigger is not always better" when working with specialized, smaller-scale medical datasets.

Limitations and Future Work

The authors acknowledge that their study is limited by the size and homogeneity of the HRDC dataset. Because the dataset is small, the risk of overfitting is high, even for the best-performing models.

Future directions include: * Developing more "conservative" or targeted augmentation strategies specifically for hybrid models to avoid the "feature confusion" effect. * Investigating why self-supervised models like DINOv2 are particularly brittle on original medical data compared to supervised counterparts. * Exploring model ensembling within the AutoML framework to further boost generalization.

Summary updated

BibTeX
@misc{zhu2025comparative,
  author = {Yanqiao Zhu},
  title = {{Comparative Analysis of Deep Learning Strategies for Hypertensive Retinopathy Detection from Fundus Images: From Scratch and Pre-trained Models}},
  year = {2025},
  eprint = {2506.12492},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.12492},
}
Figure