Abstract:Aiming to address the uneven spatial distribution of sweetness in watermelon and the difficulty of in-situ whole-fruit quality perception, visible and near-infrared spectral prediction, SSC distribution analysis, and a grading end-effector scheme were investigated. Totally 92 L600 watermelons were used, and flesh spectra within 700~960 nm were acquired. Multiple preprocessing and regression methods were compared, and an improved BiPLS-SPA method integrating multi-scale interval searching, interval-stability statistics, and the successive projections algorithm was proposed. Savitzky-Golay smoothing performed best among the tested preprocessing methods. The test-set R2 values of the full-spectrum PCR, conventional BiPLS-PLSR, and improved BiPLS-SPA-Ridge models were 0.476, 0.691, and 0.773, respectively, with RMSEP values of 0.836°Brix, 0.863°Brix, and 0.858°Brix. The improved method reduced the number of variables from 261 to 30. Watermelon SSC generally decreased from the center toward the rind, and the correlation coefficients of central, intermediate, and peripheral SSC with whole-fruit mean SSC were 0.78, 0.86, and 0.91, respectively, indicating that near-rind local quality can support whole-fruit quality conversion. Based on the internal-external spectral response characteristics and the local-to-whole SSC transfer relationship, an end-effector integrating flexible suction, Vis-NIR spectral acquisition, quality prediction, and grading decision was further proposed. The research result can provide methodological and structural references for nondestructive internal quality assessment and robotic grading of watermelon.