ABSTRACT Owing to the epidemic growth of diabetes, ophthalmologists need to examine the huge fundus images for diagnosing the disease of Diabetic Retinopathy (DR). Without proper knowledge, people are too lethargic to detect the DR. Therefore, the early diagnosis system is requisite for treating ailments in the medical industry. Therefore, a novel deep model-based DR detection structure is recommended to fix the aforementioned difficulties. The developed deep model-based diabetic retinopathy detection process is performed adaptively. The DR detection process is imitated by garnering the images from benchmark sources. The gathered images are further preceded by the abnormality segmentation phase. Here, the Residual TransUNet with Enhanced loss function is used to employ the abnormality segmentation, and the loss function in this structure may be helpful to lessen the error in the segmentation procedure. Further, the segmented images are passed to the final phase of retinopathy detection. At this phase, the detection is carried out through the Adaptive Multiscale MobileNet. The variables in the AMMNet are optimized by the Adaptive Puzzle Optimization to obtain better detection performance. Finally, the effectiveness of the offered approach is confirmed by the experimentation procedure over various performance indices.