Identification and Localisation Algorithm for Sugarcane Stem Nodes by Combining YOLOv3 and Traditional Methods of Computer Vision

Deqiang Zhou, Wenbo Zhao, Yanxiang Chen, Qiuju Zhang, Ganran Deng, Fengguang He2022

TL;DR

This paper introduces a novel algorithm that combines the deep learning object detection capabilities of YOLOv3 with traditional computer vision techniques to accurately identify and locate sugarcane stem nodes. This approach significantly improves upon existing methods, achieving near-perfect precision and recall, which is crucial for developing intelligent sugarcane harvesting machinery that avoids damaging valuable buds.

What Problem Does This Paper Address?

The mechanization of sugarcane harvesting, particularly seed cutting, is hindered by the lack of systems that can precisely identify and avoid damaging the delicate stem nodes (where buds are located). Existing computer vision methods for stem node detection often struggle with accuracy, especially in complex backgrounds or with subtle visual differences between nodes and internodes. This limitation restricts the development of automated sugarcane seed cutting machines that are both efficient and preserve the viability of the crop.

Methods

The proposed algorithm integrates YOLOv3 with traditional computer vision techniques in a multi-stage process:

  • Preprocessing:
    • Image Correction: Affine transformation is used to correct the sugarcane's posture, aligning its central axis with the horizontal axis of the image. This is achieved by calculating a rotation matrix based on the sugarcane's circumscribed rectangle.
  • Region of Interest Extraction: A 2x3 rotation matrix derived from polar coordinates is used to define and extract the sugarcane region, minimizing background interference.
  • Initial Identification (YOLOv3): A trained YOLOv3 model is used to perform an initial, rapid detection of potential stem node locations.
  • Accurate Localization:
    • Improved Gradient Operator: A novel 3x3 gradient operator is introduced. This operator is specifically designed to enhance the gradient differences between stem nodes and internodes, effectively highlighting the stem node's margin while suppressing weaker edges. It operates on the R component of the RGB image, which exhibits a stronger contrast at stem nodes.
  • Local Threshold Determination: Instead of a fixed global threshold, a local threshold is calculated. This method first determines the average gradient value across the entire image and then, within the prediction boxes identified by YOLOv3, it calculates the average gradient of pixels exceeding this mean. This local threshold is then used for binarization, effectively reducing noise from factors like wax powder and broken leaves.
  • Stem Node Localization Algorithm: A multi-step algorithm refines the YOLOv3 detections. It combines nearby predictions, sums gradient values within detection regions to identify potential stem nodes, and uses a threshold (200) on these summed gradient values to confirm a stem node, marking it on the original image.

Datasets

  • Training Data: A dataset of 750 corrected sugarcane images was created. Each image contains approximately ten stem nodes. This dataset was split into:
  • Training set: 400 samples
    • Verification set: 50 samples
    • Test set: 300 samples
  • Input Image Resolution: 416 × 416 Pixels for model testing.

Key Insights and Ideas

  • Synergy of Deep Learning and Traditional CV: The paper demonstrates that combining the broad detection capabilities of deep learning (YOLOv3) with the fine-grained feature extraction of traditional computer vision (gradient operators, local thresholding) can overcome the limitations of each approach individually.
  • Targeted Gradient Enhancement: The novel gradient operator is crucial. By focusing on the R channel and designing an operator that amplifies the specific edge characteristics of sugarcane stem nodes, it significantly improves the ability to distinguish them from internodes.
  • Adaptive Thresholding: The local threshold determination method is a key innovation. It moves away from static thresholds, which are prone to failure with varying image conditions, towards an adaptive approach that better handles noise and subtle variations in the sugarcane stem.
  • Robustness to Noise: The combination of the improved gradient operator and local thresholding effectively reduces noise, leading to cleaner edge detection and more reliable stem node identification.

Key Results

  • Overall Performance: The proposed combined algorithm achieved a precision rate of 99.68%, a recall rate of 100%, and a harmonic mean of 99.84% on the test set.
  • Improvement over YOLOv3: Compared to the original YOLOv3 model, the combined algorithm improved the precision rate by 2.28% and the harmonic mean by 1.13%.
  • Comparison with Other Methods: The algorithm demonstrated the highest recognition rate among the compared methods, with a fast recognition speed (0.415 s per image).
  • Error Correction: The algorithm effectively corrected issues like repeated recognition of the same stem node and misidentification of non-stem nodes as stem nodes.

Limitations and Future Work

  • Limitations:
    • The current model lacks the ability to detect diseased sugarcane seeds.
  • While recognition speed is good, further improvements might be needed for extremely high-efficiency mechanical seed cutting.
  • Future Work:
    • Integrate methods (e.g., near-infrared spectroscopy) to identify diseased sugarcane.
  • Develop a rejection device for unqualified seeds based on disease detection.
  • Continue research to further increase recognition speed for enhanced mechanical efficiency.

Summary updated

BibTeX
@misc{zhou2022identification,
  author = {Deqiang Zhou and Wenbo Zhao and Yanxiang Chen and Qiuju Zhang and Ganran Deng and Fengguang He},
  title = {{Identification and Localisation Algorithm for Sugarcane Stem Nodes by Combining YOLOv3 and Traditional Methods of Computer Vision}},
  year = {2022},
  doi = {10.3390/s22218266},
}
Figure