A cross-sectional study of patients with suspected diabetic retinopathy (DR) who had an ophthalmological examination and a retinal scan is the focus of this research. Specialized retinal images were analyzed and classified using OPF and RBM models (restricted Boltzmann machines). Classification of retinographs was based on the presence or absence of disease-related retinopathy (DR).,eRBM and OPF models extracted 500 and 1000 characteristics from the images for disease classification after the system training phase for the recognition of retinopathy and normality patterns.,ere were a total of fifteen different experiment series, each with a repetition rate of 30 cycles.,e study included 73 diabetics (a total of 122 eyes), with 50.7% of them being men and 49.3% being women.,e population was on the older side, at 59.7 years old on average.,e RBM-1000 had the highest overall diagnostic accuracy (89.47) of any of the devices evaluated.,e RBM-500 had a better autodetection system for DR signals in fundus images than the competition (100% sensitivity). In terms of specificity, RBM-1000 and OPF-1000 correctly identified all of the images that lacked DR signs. In particular, the RBM model of machine learning automatic disease detection performed well in terms of diagnostic accuracy, sensitivity, and application in diabetic retinopathy screening.