Abstract Diabetes is a global health issue affecting millions of people and is related to high morbidity and mortality rates. Current diagnostic methods are primarily invasive, involving blood sampling, which can lead to infection and increased patient stress. As a result, there is a growing need for noninvasive diabetes diagnostic methods that are both accurate and fast. High measurement accuracy and fast measurement time are essential for effective noninvasive diabetes diagnosis; these can be achieved using diffuse speckle contrast analysis (DSCA) systems and artificial intelligence algorithms. In this study, we use a machine learning algorithm to analyze rat blood flow signals measured using a DSCA system with simple operation, easy fabrication, and fast measurement for helping diagnose diabetes. The results confirmed that the machine learning algorithm for analyzing blood flow oscillation data shows good potential for diabetes classification. Furthermore, analyzing the blood flow reactivity test revealed that blood flow signals can be quickly measured for diabetes classification. Finally, we evaluated the influence of each blood flow oscillation data on diabetes classification through feature importance and Pearson correlation analysis. The results of this study should provide a basis for the future development of hemodynamic-based disease diagnostic methods.