Diabetic retinopathy (DR) is a widespread problem of diabetes and is one of the main causes of loss of sight in the dynamic population. Several complications of DR can be prevented by timely behavior and blood glucose control. In this paper, the Elephant Herding Sine Cosine Optimization-based Deep Residual network (EHSCO-based Deep Residual Network) is developed for the DR detection. Here, pre-processing is performed for the input image using the grayscale conversion and Type 2 Fuzzy and Cuckoo Search-Based Filter (T2FCS). After that, the optic disc detection is carried out using Sparse Fuzzy C-Means clustering (Sparse FCM), whereas the blood vessel detection is performed using Morphological Top-Hat transform for the pre-processed input image. Besides, feature extraction is performed to extract the features, such as Texton, Walsh Hadamard transform, mean, variance, entropy and kurtosis. Finally, the extracted features are given to the detection module, which is carried out based on Deep Residual Network classifier. In addition, the employed classifier is trained by the developed EHSCO optimization algorithm. Here, the developed EHSCO-based Deep Residual Network is the combination of Elephant Herding Optimization (EHO) and Sine Cosine Algorithm (SCA). Besides, the developed DR detection technique obtained efficient performance in terms of maximum True Positive Rate (TPR) with 0.963, maximal True Negative Rate (TNR) with 0.959, and higher accuracy with 0.956 with respect to DIARETDB0 dataset respectively.