Cotton plays a significant role in people’s lives, and cottonseeds serve as a vital assurance for successful cotton cultivation and production. Premium-quality cottonseeds can significantly enhance the germination rate of cottonseeds, resulting in increased cotton yields. The vitality of cottonseeds is a crucial metric that reflects the quality of the seeds. However, currently, the industry lacks a non-destructive method to directly assess cottonseed vitality without compromising the integrity of the seeds. To address this challenge, this study employed a hyperspectral imaging acquisition system to gather hyperspectral data on cottonseeds. This system enables the simultaneous collection of hyperspectral data from 25 cottonseeds. This study extracted spectral and image information from the hyperspectral data of cottonseeds to predict their vitality. SG, SNV, and MSC methods were utilized to preprocess the spectral data of cottonseeds. Following this preprocessing step, feature wavelength points of the cottonseeds were extracted using SPA and CARS algorithms. Subsequently, GLCM was employed to extract texture features from images corresponding to these feature wavelength points, including attributes such as Contrast, Correlation, Energy, and Entropy. Finally, the vitality of cottonseeds was predicted using PLSR, SVR, and a self-built 1D-CNN model. For spectral data analysis, the 1D-CNN model constructed after MSC+CARS preprocessing demonstrated the highest performance, achieving a test set correlation coefficient of 0.9214 and an RMSE of 0.7017. For image data analysis, the 1D-CNN model constructed after SG+CARS preprocessing outperformed the others, yielding a test set correlation coefficient of 0.8032 and an RMSE of 0.9683. In the case of fused spectral and image data, the 1D-CNN model built after SG+SPA preprocessing displayed the best performance, attaining a test set correlation coefficient of 0.9427 and an RMSE of 0.6872. These findings highlight the effectiveness of the 1D-CNN model and the fusion of spectral and image features for cottonseed vitality prediction. This research contributes significantly to the development of automated detection devices for assessing cottonseed vitality.
High-quality cottonseed is essential for successful cotton production. The integrity of cottonseed hulls plays a pivotal role in fostering the germination and growth of cotton plants. Consequently, it is crucial to eliminate broken cottonseeds before the cotton planting process. Regrettably, there is a lack of rapid and cost-effective methods for detecting broken cottonseed at this critical stage. To address this issue, this study developed a dual-camera system for acquiring front and back images of multiple cottonseeds. Based on this system, we designed the hardware, software, and control systems required for the online detection of cottonseed breakage. Moreover, to enhance the performance of cottonseed breakage detection, we improved the backbone and YOLO head of YOLOV8m by incorporating MobileOne-block and GhostConv, resulting in Light-YOLO. Light-YOLO achieved detection metrics of 93.8% precision, 97.2% recall, 98.9% mAP50, and 96.1% accuracy for detecting cottonseed breakage, with a compact model size of 41.3 MB. In comparison, YOLOV8m reported metrics of 93.7% precision, 95.0% recall, 99.0% mAP50, and 95.2% accuracy, with a larger model size of 49.6 MB. To further validate the performance of the online detection device and Light-YOLO, this study conducted an online validation experiment, which resulted in a detection accuracy of 86.7% for cottonseed breakage information. The results demonstrate that Light-YOLO exhibits superior detection performance and faster speed compared to YOLOV8m, confirming the feasibility of the online detection technology proposed in this study. This technology provides an effective method for sorting broken cottonseeds.
China is a major cotton-growing country with numerous cotton varieties, each exhibiting significant differences in yield and fiber quality. However, the current management of cottonseed varieties is disorganized, resulting in severe homogenization and the presence of counterfeit and mislabeled varieties. The detection of cottonseed variety information has become a critical issue for the Chinese cotton industry. In this study, we collected near-infrared (NIR) spectral data from six cottonseed varieties and constructed a GAN for cottonseed NIR data (GAN-CNIRD) model to generate additional cottonseed NIR data. The Euclidean distance method was used to label the generated NIR data according to the characteristics of the true NIR data. We then applied Standard Normal Variate (SNV), Multiplicative Scatter Correction (MSC), and Normalization algorithms to preprocess the combined dataset of generated and real cottonseed NIR data. Feature wavelengths were extracted using Bootstrap Soft Shrinkage (BOSS) and Competitive Adaptive Reweighted Sampling (CARS) algorithms. Subsequently, we developed Linear Discriminant Analysis (LDA), Random subspace method (RSM), and convolutional neural network (CNN) models to classify the cottonseed varieties. The results showed that for the LDA model, the use of feature wavelengths extracted after Normalization-BOSS processing achieved the best performance with an accuracy of 97.00%. For the RSM model, the use of feature wavelengths extracted after SNV-CARS processing achieved the best performance with an accuracy of 98.00%. For the CNN model, the use of feature wavelengths extracted after MSC-CARS processing achieved the best performance with an accuracy of 100.00%. Data augmentation using GAN-CNIRD-generated cottonseed data improved the accuracy of the three optimal models by 6%, 5%, and 6%, respectively. This study provides a crucial reference for the rapid detection of cottonseed variety information and has significant implications for the standardized management of cottonseed varieties.