YOLOv11n-DEG for Maize Kernel Damage Detection
Abstract
Maize kernel damage detection is critical for grain quality assessment and post-harvest processing. However, existing deep learning methods struggle to balance accuracy, model complexity, and multi-class recognition under real-world conditions. To address these issues, this paper proposes YOLOv11n_DEG, an improved lightweight detection model based on YOLOv11n. The model uses the first ten pretrained layers as a feature extractor, replaces standard convolutions in the backbone with depthwise separable convolutions to reduce parameters, integrates an Efficient Channel Attention (ECA) module to enhance feature representation, and employs a dual-dropout strategy in the classification head to mitigate overfitting and improve generalization. Additionally, to account for potential discrepancies in damage characteristics between the obverse and reverse sides of maize kernels, a dual-sided synchronous image feature fusion method is introduced. The output layer classifies five target categories for multi-class damage detection. On an independent test set, the proposed model achieves a precision of 92.5%, a recall of 89.6%, and a mean average precision (mAP) of 93.4%, outperforming the original YOLOv11n by 6.2%, 4.0%, and 3.7%, respectively, while reducing parameter count and computational complexity by 32.9% and 6.5%. To validate practical deployability, a custom testbed with dual-camera synchronous acquisition and geometry-based matching was developed. On this platform, the model with dual-sided fusion achieves a single-side recognition accuracy of 94.1% and a dual-sided recognition accuracy of 89.3%, with an average detection time of 0.8 s per batch. These results demonstrate that YOLOv11n_DEG provides an accurate and practical solution for intelligent maize kernel damage detection, with strong potential for real-world deployment in grain inspection systems.