Abstract:The precise detection of high-grade kernels during walnut shell-breaking is significant for optimizing the shelling process. Traditional methods rely on manual inspection, which is inefficient and has unstable accuracy. Focusing on internal structural changes, an X-ray imaging-based method for detecting high-grade kernels was proposed. A rotating experimental platform integrating mechanical loading control and X-ray imaging was established. The shelling process was controlled by adjusting the loading speed and deformation threshold, and dual-view imaging was enabled via a rotating device. Then image processing and the YOLO v8n-seg-DN model were applied to detect and segment the kernels, and two image features were extracted from the segmented regions: the maximum kernel area proportion (Pmax) and the relative kernel block count index (RIkbc). Correlation analysis was performed between the image features and the proportion of high-grade kernels. Ridge regression was employed to predict the proportion of high-grade kernels from the extracted image features. A three-factor five-level central composite design experiment was conducted to evaluate the effects of loading speed (10 ~ 50 mm/ min), extrusion deformation (5 ~ 9 mm), and walnut equivalent diameter on high-grade kernel proportion. The results showed that the experimental platform was stable and controllable, with the average errors of loading speed and deformation within 5% . Pmax was significantly positively correlated with high-grade kernel proportion ( the correlation coefficient was 0. 931), RIkbc was significantly negatively correlated (the correlation coefficient was - 0. 926), and there was significant collinearity between Pmax and RIkbc (the VIF was 13. 067). The model validation set yielded R2 of 0. 92, RMSEp of 8. 89% , and RPD of 3. 46, indicating high accuracy. Loading speed, extrusion deformation, and walnut equivalent diameter all had significant negative effects on high-grade kernel proportion, and the predicted values closely matched the measured values, demonstrating that the developed model can effectively substitute traditional detection methods. When the loading speed was 10 ~ 30 mm/ min, the extrusion deformation was 5 ~ 6 mm, and the walnut equivalent diameter was 33 ~ 35 mm, the proportion of high-grade kernel remains above 70% , providing a technical approach for optimizing walnut low-damage shelling processes.