Summary
Diabetic retinopathy is considered to be one of the major causes of eye disorder which commonly occurs in working age group of people worldwide. Deficiency of proper screening and early diagnosing leads the diabetic patients completely affected by vision loss. Therefore, an effective detection of diabetic retinopathy before visual symptoms reduces the impact of visual impairment. In recent times, numerous research methods are adopted by researchers in this domain to automatically detect the existence of eye diseases; however, they provide only limited performances like less accuracy with high training error. Therefore, in this article, an attention based bi‐directional convolutional neural network‐recurrent neural network model along with enhanced sea lion optimization (ABCDM‐ESLO) technique is proposed for accurate detection and classification of healthy and unhealthy diabetic retinopathy cases based on the severity levels. In this, seven different datasets are used, analyzed, and classified into five categories (i.e., normal, mild, moderate, severe, and proliferative). Moreover, the performance metrics such as accuracy, sensitivity, specificity, and f‐score are evaluated with respect to severity levels thereby determining the efficiency of the proposed method. The performance of the proposed technique is examined by comparing it with other existing methods. The proposed method achieves 99.2% of detection accuracy, 94% of sensitivity, 96% of specificity, and 92.75% of f‐score. This reveals that the proposed ABCDM‐ESLO technique performs well and classifies than other existing methods in terms of different performance metrics.