Skip to main content
QUICK REVIEW

[Paper Review] Towards agricultural autonomy: crop row detection under varying field conditions using deep learning

Rajitha de Silva, Grzegorz Cielniak|arXiv (Cornell University)|Sep 16, 2021
Smart Agriculture and AIAgricultural and Biological Sciences19 references11 citations
TL;DR

This paper proposes a deep learning-based crop row detection system using a U-Net architecture with RGB input to enable robust navigation in agricultural fields. It introduces a novel angular error metric to evaluate accuracy under varying field conditions—shadows, weed density, discontinuities, and direct sunlight—demonstrating 0.0310 degrees mean angle error and high robustness to growth stages and shadows, though performance degrades under direct sunlight and high weed density.

ABSTRACT

This paper presents a novel metric to evaluate the robustness of deep learning based semantic segmentation approaches for crop row detection under different field conditions encountered by a field robot. A dataset with ten main categories encountered under various field conditions was used for testing. The effect on these conditions on the angular accuracy of crop row detection was compared. A deep convolutional encoder decoder network is implemented to predict crop row masks using RGB input images. The predicted mask is then sent to a post processing algorithm to extract the crop rows. The deep learning model was found to be robust against shadows and growth stages of the crop while the performance was reduced under direct sunlight, increasing weed density, tramlines and discontinuities in crop rows when evaluated with the novel metric.

Motivation & Objective

  • To develop a generic, deep learning-based crop row detection system resilient to real-world field variability.
  • To evaluate model robustness across multiple field conditions including shadows, weed density, discontinuities, and direct sunlight.
  • To introduce and validate a novel angular error metric that better reflects practical navigation accuracy than traditional IoU or accuracy metrics.
  • To provide a publicly available dataset with 10 field condition categories for benchmarking future research.
  • To guide post-processing adaptation based on environmental conditions for improved real-world deployment.

Proposed method

  • A U-Net-based encoder-decoder convolutional neural network is trained on RGB images to predict semantic segmentation masks of crop rows.
  • The model is evaluated using a novel angular error metric that quantifies deviation between predicted and ground-truth crop row lines.
  • Post-processing applies morphological operations and line extraction to convert segmentation masks into continuous crop row lines.
  • The model is trained with both binary cross-entropy (BCE) and focal loss to compare optimization strategies for edge precision.
  • A test dataset of 250 base images, augmented to 1000, covers 10 field condition categories including varying weed density, growth stages, and lighting.
  • Image input is resized to 512×512 for global inference, and predictions are compared across full-FOV and cropped-frame approaches.

Experimental results

Research questions

  • RQ1How does a generic deep learning model perform in detecting crop rows across diverse, real-world field conditions?
  • RQ2To what extent do shadows, weed density, discontinuities, and direct sunlight affect the accuracy of crop row detection using semantic segmentation?
  • RQ3Can the proposed angular error metric better reflect practical navigation performance than traditional metrics like IoU or accuracy?
  • RQ4How does model performance vary with different loss functions (BCE vs. focal loss) in terms of angular precision and mask noise?
  • RQ5What role does image preprocessing (e.g., resizing vs. cropping) play in preserving structural integrity for global crop row prediction?

Key findings

  • The U-Net model achieved a mean angular error of 0.0310 degrees across all test conditions, indicating high precision in crop row prediction.
  • The model demonstrated robustness to shadows and varying crop growth stages, with minimal performance degradation.
  • Performance declined significantly under direct sunlight and high weed density, with the model struggling to detect correct lines in these conditions.
  • The model achieved 84.43% accuracy and 0.1896 IoU on resized global images, with a 4.93% drop in accuracy and 0.0429 decrease in IoU compared to the mean across all categories.
  • Focal loss improved angular error by 15.81% (to 0.0181°) but reduced IoU by 44.73% and increased noise, making BCE loss more suitable for narrow, clean predictions.
  • Cropped-frame inference outperformed full-image resizing due to reduced distortion, suggesting stitching multiple predictions improves global accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.