The occurrence of cracks in brown rice kernels has a substantial impact on grain quality. The timely and accurate detection of rice grains with cracks is crucial for enhancing the overall quality and flavor of processed rice. In this study, we developed an optical observation platform and optimized the original ResNet-18 neural network structure to improve the detection and classification of grain cracks. We established image datasets for japonica and indica rice varieties, and employed image augmentation and model migration techniques during training. In addition, we compared the performance ...