# Improved YOLOv11n-seg for impurity detection in mechanically harvested sugarcane

**Authors:** Fengguang He, Sili Zhou, Pinlan Chen, Ganran Deng, Shaobo Feng, Guojie Li, Zhende Cui, Shuang Zheng, Ling Li, Bin Yan, Shuangmei Qin, Xilin Wang, Ye Dai, Zehua Liu

PMC · DOI: 10.3389/fpls.2026.1745861 · Frontiers in Plant Science · 2026-02-18

## TL;DR

This paper introduces an improved YOLOv11n-seg model for detecting impurities in mechanically harvested sugarcane, achieving high accuracy and real-time performance.

## Contribution

The paper proposes an enhanced YOLOv11n-seg model with four novel modules for improved impurity detection in sugarcane.

## Key findings

- Improved YOLOv11n-seg achieves 97.0% precision and 98.1% recall in impurity detection.
- The model reduces parameter count by 10.2% while maintaining 34.8 FPS real-time inference.
- C2_FSAS and DySample modules significantly improve mAP performance.

## Abstract

The content of impurities in mechanically harvested sugarcane is a critical factor for evaluating harvest quality and determining market price. To enable intelligent detection of impurities in mechanically harvested sugarcane, this study proposes an impurity detection method based on an improved YOLOv11n-seg model. The method integrates four enhancement modules into the original YOLOv11n-seg architecture. Firstly, a lightweight C2_Ghost module is introduced into the high-channel feature extraction stages of both the backbone and neck, thereby reducing computational complexity and feature redundancy. Subsequently, a C2_FSAS module is designed to perform frequency-domain relationship modelling, enhancing long-range semantic dependency representation. An Efficient Channel Attention (ECA) mechanism is then applied to deep high-level semantic features to adaptively reweight salient feature channels. Finally, the traditional fixed interpolation-based upsampling operation is replaced with a dynamic DySample upsampling strategy to recover fine-grained edge features. Experimental results indicate that Improved YOLOv11n-seg achieves segmentation performance of 97.0%, 98.1%, 99.2%, and 82.9% in terms of P, R, mAP0.5, and mAP0.5:0.95, respectively. Compared with the original YOLOv11n-seg, the proposed model achieves a 1.8% improvement in mAP0.5:0.95, a 10.2% reduction in parameter count, and maintains a real-time inference speed of 34.8 FPS on the Jetson Xavier NX under TensorRT acceleration. Ablation studies validate the effectiveness of the four-module synergistic design, with C2_FSAS and DySample contributing most significantly to the improvement in mAP. Moreover, the model exhibits enhanced edge delineation accuracy and inter-class discrimination capability. In summary, the Improved YOLOv11n-seg achieves a favourable balance between segmentation accuracy and real-time performance, enabling precise segmentation of sugarcane segments and diverse impurity types. The proposed method provides reliable technical support for intelligent impurity rate detection in mechanically harvested sugarcane and practical deployment on edge computing platforms.

## Full-text entities

- **Diseases:** Neck (MESH:D006258)
- **Chemicals:** sugar (MESH:D000073893)
- **Species:** Solanum tuberosum (potatoes, species) [taxon 4113]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12957096/full.md

## Figures

10 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12957096/full.md

## References

32 references — full list in the complete paper: https://tomesphere.com/paper/PMC12957096/full.md

---
Source: https://tomesphere.com/paper/PMC12957096