Abstract
Early detection of diabetic retinopathy (DR) is essential for timely management and the prevention of vision impairment. However, deep learning approaches for DR classification often involve large model sizes, high computational requirements, and reduced robustness caused by class imbalance, inter-class similarity, and variability in retinal image quality. This study proposes OculARU, a lightweight convolutional neural network developed from scratch for automated DR screening and five-class severity grading. The framework incorporates attentive residual units (ARUs), which combine residual learning with squeeze-and-excitation-based channel recalibration to enhance discriminative retinal features while suppressing less informative background responses. To improve generalisation and reduce overfitting, OculARU employs a dual-regularisation strategy based on MixUp and label smoothing, together with training-time image augmentation. The model is evaluated on the APTOS 2019 Blindness Detection dataset and compared with several widely used pretrained models, including VGG19, LeNet-5, MobileNetV2, ResNet-18, DenseNet-161, and Xception. OculARU achieves 85.00% accuracy, 0.73 macro F1-score, 0.78 Cohen’s kappa, 0.78 Matthews correlation coefficient, and 0.94 ROC-AUC for five-class DR grading using only 11.26 million parameters. When the five-class predictions are collapsed into healthy and unhealthy categories, the model achieves 97.0% accuracy. Performance remains relatively stable across five random seeds, with a mean accuracy of 85.40% ± 1.23%. Evaluation on an independent DDR dataset further provides evidence of cross-dataset generalisation, although performance is lower than on APTOS. Grad-CAM++ visualisations qualitatively indicate attention to potentially relevant retinal regions, while the healthy class achieves 0.98 specificity, suggesting potential value for reducing unnecessary referrals in screening applications. Overall, OculARU provides a compact and interpretable framework that balances predictive performance, computational efficiency, and explainability for automated DR screening and grading.