Ensuring the security of germplasm resources is of great significance for the sustainable development of agriculture and ecological balance. By combining the morphological characteristics of maize seeds with hyperspectral data, maize variety classification has been achieved using machine learning algorithms. Initially, the morphological data of seeds are obtained from images, followed by the selection of feature subsets using Recursive Feature Elimination (RFE) and Select From Model (SFM) methods, indicating that features selected by RFE exhibit better performance in maize seed classification. For hyperspectral data (350–2500 nm), Competitive Adaptive Re-weighted Sampling (CARS) and the Successive Projections Algorithm (SPA) are employed to extract feature wavelengths, with the SPA algorithm demonstrating superior performance in maize seed classification tasks. Subsequently, the two sets of data are merged, and a Random Forest (RF) classifier optimized by Grey Wolf Optimization (GWO) is utilized. Given the limitations of GWO, strategies such as logistic chaotic mapping for population initialization, random perturbation, and final replacement mechanisms are incorporated to enhance the algorithm’s search capabilities. The experimental results show that the proposed ZGWO-RF model achieves an accuracy of 95.9%, precision of 96.2%, and recall of 96.1% on the test set, outperforming the unimproved model. The constructed model exhibits improved identification effects on multi-source data, providing a new tool for non-destructive testing and the accurate classification of seeds in the future.
Read full abstract