External defects considerably reduce the quality, consumer acceptance, and market value of citrus fruits. Therefore, a rapid and reliable, non-destructive inspection method is necessary for postharvest processing. In this study, a non-destructive approach for external defect classification of citrus fruits is developed by combining visible–near infrared hyperspectral imaging (HSI) with effective wavelength selection (EWS) algorithms. First, 1702 spectral samples of normal and defective regions on citrus fruit surfaces were collected. A partial least squares discriminant analysis (PLS-DA) model was developed using the full wavelength range (400–1000 nm), which achieved 99.02% prediction accuracy. Four EWS algorithms—weighted regression coefficients, variable importance in projection, sequential forward selection (SFS(5, 10, 15)), and random frog—were evaluated for optimal spectral dimensionality and computational efficiency. The SFS15-PLS-DA model, which selected 15 optimal variables out of the initial 300 and used maximum normalization preprocessing, achieved the highest prediction accuracy of 99.80%. This model demonstrated near-perfect classification while reducing the total number of wavelengths by 95.0% (from 300 to 15 wavelengths). Further, a pixel-wise image classification algorithm was implemented using the optimal model, which effectively detected physical damage, pest infestation, and fungal decay. These results demonstrate that combining HSI with EWS enables compact, interpretable, and high-performance models suitable for real-time postharvest sorting. This approach has strong potential to enhance automation, speed, and reliability in commercial citrus quality assessment.
Yu et al. (Fri,) studied this question.