Enhanced YOLOv8-ECCI Algorithm for High-Precision Detection of Purple Spot Disease in Soybeans
Abstract
Highlights
- Proposed YOLOv8-ECCI achieves 3.0% higher precision and 3.6% better recall for soybean purple spot detection than YOLOv8n.
- Cross-dataset validation shows 6.0% precision gain and 2.9% mAP@0.5 improvement on African Wildlife data, confirming superior generalization.
- Enables seed-level disease diagnosis (beyond leaf-level) by solving spectral interference and dense occlusion in stacked soybeans.
- Provides first dense soybean disease dataset and lightweight model for portable agricultural devices.
Abstract
1. Introduction
- Small-Sample Overfitting Risk: Annotated data for seed diseases is scarce. Traditional models (e.g., Faster R-CNN), reliant on large datasets, are prone to overfitting with limited samples.
- Complex Spectral Interference: Seed stacking causes uneven light reflection and color mixing between lesions and healthy areas (e.g., mold-induced yellow spots vs. natural yellow seed coats), adversely affecting the robustness of traditional spectral analysis methods.
- Missed Detection due to Dense Occlusion: In stacked seed scenarios, disease regions experience high occlusion rates. Existing models exhibit limited capability in capturing subtle local features, with reported missed detection rates exceeding 30% in dense scenes.
- Small-Sample Learning: Leveraging adaptive data augmentation (Mosaic, MixUp) and transfer learning (ImageNet pre-trained weights), YOLOv8 enhances model generalization and mitigates overfitting with limited annotated data.
- Complex Feature Resolution: Its enhanced backbone network supports multi-scale feature fusion. Combined with dynamic convolution modules, it effectively distinguishes spectral ambiguities between lesions and healthy tissue (e.g., differing texture roughness in moldy regions).
- Dense Occlusion Optimization: The integration of attention mechanisms strengthens the weighting of local lesion features. Loss function modifications further optimize the localization accuracy of occluded targets, reducing missed detection rates.
- Application Suitability: YOLOv8’s lightweight design and high inference speed align with the computational constraints of mobile devices, laying the foundation for developing portable laboratory detection equipment.
2. Related Work
2.1. Data Sources
2.2. Data Preprocessing
2.3. YOLOv8 Framework
3. Method
3.1. Overview
- Mitigating Overfitting: The C2f_DCVv3 module, integrating DCNv3 convolution (Deformable Convolution v3), is introduced to effectively handle deformed targets within images and extract features with greater precision [9]. Concurrently, the structural design of the Bottleneck module helps mitigate gradient explosion issues while fully preserving feature information, thereby enhancing the model’s recognition performance and efficiency for soybeans infected with purple spot disease.
- Reducing Missed Detections: The EIEStem module is incorporated to capture richer information from images. Its core component, the Sobel operator, exhibits inherent noise suppression capabilities, effectively reducing interference caused by uneven illumination or surface texture noise [10].
- Improving Detection Accuracy: To aggregate contextual information over a large receptive field, the CARAFE (Content-Aware ReAssembly of FEatures) module is leveraged. Its large receptive field characteristic allows aggregation of more contextual information, enabling better capture of subtle disease features on soybeans and improving recognition accuracy [11]. CARAFE’s lightweight design ensures model efficiency, facilitating the processing of large-scale soybean image datasets. Its content-aware processing capability dynamically generates upsampling kernels based on specific soybean features, further boosting recognition accuracy.
- Enhancing Bounding Box Regression: The Wise-IoU (WIoU) loss function is adopted to improve the network’s bounding box regression performance. WIoU assists the model in more accurately identifying soybeans with purple spot disease, even in dense clusters with similar coloration, thereby increasing detection accuracy and model robustness [12].
3.2. EIEStem Module
3.3. C2f_DCNv3 Module
3.4. CARAFE Module
3.5. Wise-IoU Functions
4. Tests and Analysis
4.1. Test Environment and Parameter Configuration
4.2. Evaluation Indicators
4.3. Test Results and Analysis
4.3.1. Comparative Experimental Analysis of Different Algorithms
- Insufficient deep texture feature extraction capability (Recall = 0.518).
- High false detection rates in lesion edge blur regions (Precision = 0.647).
- Failure in multi-scale lesion fusion (mAP@0.5~0.95 = 0.186).
- Low-efficiency information propagation in feature pyramids (mAP@0.5 = 0.536, ↓17%).
- Aggravated gradient vanishing for small lesions (Recall = 0.510, ↓11.3%).
- Imbalance between computational density and accuracy gains (mAP/Parameter = 0.042, ↓38%).
- Inadequate sensitivity to chromatic differences in lesions (Precision = 0.629, ↓12.4%).
- Boundary feature confusion in adherent soybeans (mAP@0.5 = 0.540, ↓13.9%).
- Loss of pathological texture information in shallow networks (Recall = 0.528, ↓8.3%).
- Imbalanced weight allocation due to non-uniform lesion size distribution (mAP@0.5 = 0.522, ↓16.8%).
- Weak chromatic feature response under low-light conditions (Precision = 0.618, ↓14.0%).
- Failure of feature reorganization modules (mAP@0.5~0.95 = 0.188, ↓29.6%).
- Inadequate fusion of deep pathological features (mAP@0.5 = 0.560, ↓10.7%).
- High miss rates for minute lesions (Recall = 0.527, ↓8.5%).
- Weak high-precision localization capability (mAP@0.5~0.95 = 0.198, ↓25.8%).
4.3.2. Ablation Test
4.3.3. Comparative Experimental Validation of Model Generalizability
5. Conclusions
- Under the same test conditions, the improved YOLOv8-ECCI outperforms YOLOv5s, YOLOv9, YOLOv10, YOLOv11, and YOLOv8n on the soybean disease dataset. Compared with the original YOLOv8n baseline model, it achieves improvements of 8.9, 8.7, and 7.7 percentage points in accuracy, mAP@0.5, and mAP@0.5:0.95, respectively. Additionally, the number of parameters is increased by 1.2%, making YOLOv8-ECCI the most compact and accurate model among the compared methods. These results provide methodological support for the rapid detection of soybean diseases.
- To validate the detection effectiveness of the improved YOLOv8-ECCI network model, this study performs a visual comparative analysis by using publicly available datasets. The results show that the improved YOLOv8-ECCI detection effect is always better than the original YOLOv8n, with better performance in the face of occlusion, spectral diversity, and dense small item recognition, which provides a reference for recognizing more complex disease scenarios in the follow-up.
- The construction of the first disease detection dataset for densely stacked soybean grains, which fills a research gap in the field.
- The development of an edge-enhanced YOLOv8-based model that integrates deformable convolution, a wide receptive field upsampling operator, and a high-performance regression mechanism, offering a practical solution for small-sample agricultural detection tasks.
Author Contributions
Funding
Conflicts of Interest
References
- Sharma, G.; Anand, V.; Malhotra, S.; Kukreti, S.; Gupta, S. DeepLeafNet: Multiclass Classification of Soybean Plant Leaves with ResNet50V2 for Enhanced Crop Monitoring and Disease Detection. In Proceedings of the 2023 3rd International Conference on Smart Generation Computing, Communication and Networking (SMART GENCON), Bangalore, India, 29–31 December 2023; pp. 1–6. [Google Scholar] [CrossRef]
- Omole, O.J.; Rosa, R.L.; Rodriguez, D.Z. Soybean Disease Detection by Deep Learning Algorithms. In Proceedings of the 2023 International Conference on Software, Telecommunications and Computer Networks (SoftCOM), Split, Croatia, 21–23 September 2023; pp. 1–5. [Google Scholar] [CrossRef]
- Rajput, K.; Garg, A.; Kukreja, V.; Mehta, S. Smart Agriculture: Innovating Soybean Leaf Disease Detection with Federated Learning CNNs. In Proceedings of the 2024 3rd International Conference for Innovation in Technology (INOCON), Bangalore, India, 1–3 March 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Suryavanshi, A.; Kukreja, V.; Chandran, N.; Mehta, S.; Joshi, K. Stratified Severity Analysis of Soybean Leaf Diseases via Federated Learning and CNN. In Proceedings of the 2024 Fourth International Conference on Advances in Electrical, Computing, Communication and Sustainable Technologies (ICAECT), Bhilai, India, 11–12 January 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Bora, R.; Parasar, D.; Charhate, S. Soybean Leaf disease detection using Deep Learning. In Proceedings of the 2023 International Conference on Advanced Computing Technologies and Applications (ICACTA), Mumbai, India, 6–7 October 2023; pp. 1–5. [Google Scholar] [CrossRef]
- Fu, Y.Z. Genetic Algorithm Optimizer Construction and its Application in Soybean Seed Recognition Using YOLO Algorithm. Master’s Thesis, Wuhan Polytechnic University, Wuhan, China, 2024. [Google Scholar] [CrossRef]
- Chen, Y.; Xu, Y.; Li, R.; Zhang, X. Study on the effect of purple stain disease on soybean quality. Green Technol. 2016, 22, 151–152. [Google Scholar] [CrossRef]
- Varghese, R.; Sambath, M. YOLOv8: A Novel Object Detection Algorithm with Enhanced Performance and Robustness. In Proceedings of the 2024 International Conference on Advances in Data Engineering and Intelligent Computing Systems (ADICS), Chennai, India, 18–19 April 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Sanida, T.; Sideris, A.; Dasygenis, M. A Heterogeneous Implementation of the Sobel Edge Detection Filter Using OpenCL. In Proceedings of the 2020 9th International Conference on Modern Circuits and Systems Technologies (MOCAST), Bremen, Germany, 7–9 September 2020; pp. 1–4. [Google Scholar] [CrossRef]
- Chen, S.; Yang, X. An Enhanced Adaptive Sobel Edge Detector Based on Improved Genetic Algorithm and Non-Maximum Suppression. In Proceedings of the 2021 China Automation Congress (CAC), Beijing, China, 22–24 October 2021; pp. 8029–8034. [Google Scholar] [CrossRef]
- Yang, J.; Liu, Z.; Du, W.; Zhang, S. A PCB Defect Detector Based on Coordinate Feature Refinement. IEEE Trans. Instrum. Meas. 2023, 72, 5029410. [Google Scholar] [CrossRef]
- Lin, Q.; Takamasu, K.; Chen, M. An Optical Lens Defect Detection Method for Micro Vision Based on WGSO-YOLO. IEEE Trans. Instrum. Meas. 2024, 73, 5018508. [Google Scholar] [CrossRef]
- Shivam Kumar Jha, S.; Mohana, N. An Integrated Method Using Linear Homotopy Parametric Value for Enhancing Image Edge Detection. IEEE Access 2024, 12, 107113–107118. [Google Scholar] [CrossRef]
- Ma, Y.; Ma, H.; Chu, P. Demonstration of Quantum Image Edge Extration Enhancement Through Improved Sobel Operator. IEEE Access 2020, 8, 210277–210285. [Google Scholar] [CrossRef]
- Dhillon, D.; Chouhan, R. Enhanced Edge Detection Using SR-Guided Threshold Maneuvering and Window Mapping: Handling Broken Edges and Noisy Structures in Canny Edges. IEEE Access 2022, 10, 11191–11205. [Google Scholar] [CrossRef]
- Zhu, T.; Xiao, X.; He, Q.; Diao, D. Enhancement of SNR and Spatial Resolution in φ-OTDR System by Using Two-Dimensional Edge Detection Method. J. Light. Technol. 2013, 31, 2851–2856. [Google Scholar] [CrossRef]
- Liu, J.; Chen, D.; Wu, Y.; Chen, R.; Yang, P.; Zhang, H. Image Edge Recognition of Virtual Reality Scene Based on Multi-Operator Dynamic Weight Detection. IEEE Access 2020, 8, 111289–111302. [Google Scholar] [CrossRef]
- Xiao, N.; Hong, X.; Zheng, Z. BDK-YOLOv8: An Enhanced Algorithm for UAV Infrared Image Object Detection. IEEE Access 2024, 12, 191129–191139. [Google Scholar] [CrossRef]
- Liu, S. Fabric defect detection algorithm based on improved YOLOv8s. In Proceedings of the 2024 4th International Conference on Artificial Intelligence, Robotics, and Communication (ICAIRC), Xiamen, China, 27–29 December 2024; pp. 8–11. [Google Scholar] [CrossRef]
- Hu, T.; Zhuang, D.; Qiu, J.; Zheng, L. Improved YOLOv8 Algorithm with C2f-DCNv3 and Shuffle Attention for Detection of Coal Shearer Drum Teeth. In Proceedings of the 2024 4th International Conference on Neural Networks, Information and Communication Engineering (NNICE), Guangzhou, China, 19–21 January 2024; pp. 1019–1022. [Google Scholar] [CrossRef]
- Chen, W.; Zheng, L.; Xiong, J. Algorithm for Crop Disease Detection Based on Channel Attention Mechanism and Lightweight Up-Sampling Operator. IEEE Access 2024, 12, 109886–109899. [Google Scholar] [CrossRef]
- Wang, L.; Li, X.; Chen, X.; Zhou, B. CenterNet-Elite: A Small Object Detection Model for Driving Scenario. IEEE Access 2025, 13, 17868–17877. [Google Scholar] [CrossRef]
- Jiang, X.; Cui, Y.; Xu, R.; Yang, J.; Zhou, J. Optimization Algorithm of Steel Surface Defect Detection Based on YOLOv8n-SDEC. IEEE Access 2024, 12, 95106–95117. [Google Scholar] [CrossRef]
- Yi, W.; Yang, J.; Yan, L. Research on Underwater Small Target Detection Technology Based on Single-Stage USSTD-YOLOv8n. IEEE Access 2024, 12, 69633–69641. [Google Scholar] [CrossRef]
- Annet Abraham, L.; Palanisamy, G.; Goutham, V. Dilated Convolution and YOLOv8 Feature Extraction Network: An Improved Method for MRI-Based Brain Tumor Detection. IEEE Access 2025, 13, 27238–27256. [Google Scholar] [CrossRef]
- Shen, L.; Lang, B.; Song, Z. DS-YOLOv8-Based Object Detection Method for Remote Sensing Images. IEEE Access 2023, 11, 125122–125137. [Google Scholar] [CrossRef]
- Khow, Z.J.; Tan, Y.-F.; Karim, H.A.; Rashid, H.A.A. Improved YOLOv8 Model for a Comprehensive Approach to Object Detection and Distance Estimation. IEEE Access 2024, 12, 63754–63767. [Google Scholar] [CrossRef]
- Aboah, A.; Wang, B.; Bagci, U.; Adu-Gyamfi, Y. Real-time Multi-Class Helmet Violation Detection Using Few-Shot Data Sampling Technique and YOLOv8. In Proceedings of the 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Vancouver, BC, Canada, 17–24 June 2023; pp. 5350–5358. [Google Scholar] [CrossRef]
Gx | Gy | ||||
---|---|---|---|---|---|
−1 | 0 | 1 | −1 | −2 | −1 |
−2 | 0 | 2 | 0 | 0 | 0 |
−1 | 0 | 1 | 1 | 2 | 1 |
Parameter | Value | Parameter | Value |
---|---|---|---|
epochs | 300 | optimizer | SGD |
imgsz | 640 | lrf | 0.01 |
batch | 32 | box | 0.75 |
workers | 4 | momentum | 0.937 |
patience | 100 | weight_decay | 0.0005 |
cls | 0.5 | warmup_momentum | 0.8 |
Models | Precision | Recall | mAP@0.5 | mAP@0.5~0.95 | Parameters/MB | GFLPOs |
---|---|---|---|---|---|---|
YOLOv5s | 0.647 | 0.518 | 0.538 | 0.186 | 4.5 | 5.8 |
YOLOv9 | 0.641 | 0.510 | 0.536 | 0.196 | 12.7 | 22.1 |
YOLOv8n | 0.629 | 0.528 | 0.540 | 0.190 | 5.4 | 6.8 |
YOLOv10 | 0.618 | 0.517 | 0.522 | 0.188 | 5.5 | 8.2 |
YOLOv11 | 0.646 | 0.527 | 0.560 | 0.198 | 5.2 | 6.3 |
YOLOv8-ECCI | 0.718 | 0.576 | 0.627 | 0.267 | 6.0 | 8.2 |
Models | Precision | Recall | mAP@0.5 | mAP@0.5~0.95 | Parameters | GFLPOs |
---|---|---|---|---|---|---|
YOLOv8n | 0.629 | 0.528 | 0.540 | 0.190 | 5.4 | 6.8 |
YOLOv8n + EIEStem | 0.653 | 0.523 | 0.546 | 0.195 | 6.0 | 8.3 |
YOLOv8n + C2f_DCNv3 | 0.666 | 0.520 | 0.555 | 0.200 | 5.8 | 8.0 |
YOLOv8n + CARAFE | 0.669 | 0.527 | 0.552 | 0.199 | 6.3 | 8.4 |
YOLOv8n + EIEStem + DCNv3 | 0.663 | 0.519 | 0.542 | 0.199 | 5.7 | 8.0 |
YOLOv8n + EIEStem + CARAFE | 0.648 | 0.528 | 0.551 | 0.199 | 6.3 | 8.6 |
YOLOv8n + DCNv3 + CARAFE | 0.636 | 0.556 | 0.559 | 0.200 | 6.0 | 8.0 |
YOLOv8n + EIEStem + DCNv3 + CARAFE | 0.684 | 0.556 | 0.556 | 0.201 | 6.0 | 8.2 |
YOLOv8-ECCI | 0.718 | 0.574 | 0.627 | 0.267 | 6.0 | 8.2 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Deng, Z.; Ye, S.; Xiong, C. Enhanced YOLOv8-ECCI Algorithm for High-Precision Detection of Purple Spot Disease in Soybeans. Sensors 2025, 25, 4958. https://doi.org/10.3390/s25164958
Deng Z, Ye S, Xiong C. Enhanced YOLOv8-ECCI Algorithm for High-Precision Detection of Purple Spot Disease in Soybeans. Sensors. 2025; 25(16):4958. https://doi.org/10.3390/s25164958
Chicago/Turabian StyleDeng, Zhihua, Shuyao Ye, and Chunru Xiong. 2025. "Enhanced YOLOv8-ECCI Algorithm for High-Precision Detection of Purple Spot Disease in Soybeans" Sensors 25, no. 16: 4958. https://doi.org/10.3390/s25164958
APA StyleDeng, Z., Ye, S., & Xiong, C. (2025). Enhanced YOLOv8-ECCI Algorithm for High-Precision Detection of Purple Spot Disease in Soybeans. Sensors, 25(16), 4958. https://doi.org/10.3390/s25164958