Deep Learning for Non-Invasive Diagnosis of Nutrient Deficiencies in Sugar Beet Using RGB Images

Jinhui Yi, Lukas Krusenbaum, Paula Unger, Hubert Hüging, Sabine J. Seidel, Gabriel Schaaf, Juergen Gall

TL;DR

This paper introduces a new dataset, DND-SB, for diagnosing nutrient deficiencies in sugar beets using RGB images. They demonstrate that deep learning models, particularly DenseNet-161, can achieve high accuracy in identifying these deficiencies, paving the way for more efficient and environmentally friendly crop management.

What Problem Does This Paper Address?

Accurate and timely detection of nutrient deficiencies in crops is crucial for maximizing yield and preventing environmental damage from over-fertilization. Current non-invasive methods often focus solely on nitrogen (N) deficiency and can be misled by other stressors. Furthermore, diagnosing deficiencies in other essential nutrients like phosphorus (P) and potassium (K), as well as issues like soil acidification (liming omission), is challenging. Existing methods often rely on expensive equipment or are limited to leaf-level analysis, lacking the holistic view of the entire plant. This paper aims to bridge this gap by exploring the use of deep learning on readily available RGB images to non-invasively diagnose multiple nutrient deficiencies in sugar beets.

Methods

The core of this research lies in leveraging deep convolutional neural networks (CNNs) for image classification. The authors evaluated five well-established CNN architectures: AlexNet, VGG, ResNet, DenseNet, and SqueezeNet. They explored two training strategies: training from scratch and using models pre-trained on the large ImageNet dataset. Data augmentation techniques, including cropping, padding, flipping, rotation, color jittering, and noise addition, were investigated to improve model robustness and generalization. The performance of these models was assessed using metrics like top-1 accuracy, training time, and test time.

Datasets

The primary contribution in terms of data is the introduction of the Deep Nutrient Deficiency for Sugar Beet (DND-SB) dataset. This dataset comprises 5648 RGB images of sugar beets collected throughout the growing season from a long-term fertilizer experiment. It specifically includes images from plots with deficiencies in Nitrogen (N), Phosphorus (P), Potassium (K), and omission of liming (Ca), alongside optimally fertilized and unfertilized control plots. This dataset is unique in its focus on multiple nutrient deficiencies in whole sugar beet plants under real-world field conditions and across different crop development stages.

Key Insights and Ideas

  • RGB images are surprisingly informative: The study demonstrates that standard RGB images, readily captured by smartphone cameras, contain sufficient visual cues for deep learning models to identify complex nutrient deficiencies. This democratizes the technology, making it more accessible than hyperspectral imaging.
  • DenseNet excels at this task: Among the evaluated CNN architectures, DenseNet-161 achieved the highest accuracy, highlighting the benefits of its dense connectivity for feature extraction in this specific application.
  • Pre-training is crucial: While training CNNs from scratch is possible, pre-training on ImageNet significantly improves both accuracy and training time, especially given the difficulty of acquiring large, labeled agricultural datasets.
  • Crop stage matters significantly: The performance of the models drops considerably when tested on images from different crop development stages than those used for training. This underscores the challenge of temporal domain adaptation in agricultural AI.
  • Models can be distracted by soil: The CNNs sometimes focus on the soil rather than just the plants, indicating a need for methods that enforce attention on the relevant plant features.

Key Results

  • High Accuracy Achieved: The best-performing model, DenseNet-161, achieved a top-1 accuracy of 98.4% when trained on data encompassing all crop development stages. Even when trained from scratch, models achieved accuracies over 87%.
  • Efficient Inference: Models like AlexNet and SqueezeNet offer fast inference times (processing up to 111 images per second), making them suitable for real-time applications, though at the cost of slightly lower accuracy compared to DenseNet-161.
  • Data Augmentation Benefits: Horizontal flipping and image rotation were found to be the most effective data augmentation strategies, boosting accuracy to 98.4%. Color jitter and noise, however, tended to decrease accuracy.
  • P Deficiency is Tricky: The study noted that P deficiency, even for human experts, is one of the most difficult to recognize, and this difficulty was reflected in the model's performance, with some confusion between P deficiency and N_KCa treatments.
  • Temporal Generalization is a Challenge: When testing on data from a different crop stage than the training data, accuracy dropped significantly, with some models performing poorly (below 50%) when tested on the latest growth stage.

Limitations and Future Work

  • Crop Development Stage Dependency: The most significant limitation is the models' struggle to generalize across different crop development stages. Future work should focus on domain adaptation techniques to address this temporal variation.
  • Soil Distraction: The models' tendency to focus on soil rather than exclusively on plants needs to be addressed. Future research could explore visual attention mechanisms to guide the models' focus.
  • Generalization to New Environments: The study was conducted in a specific location. Future work should investigate the transferability of these models to different sites, environmental conditions, and crop cultivars.
  • Sensor Fusion: The paper raises the question of whether RGB sensors alone are sufficient for recognizing all deficiencies, particularly P deficiency. Combining RGB data with other sensor modalities could be a promising avenue.
  • Pre-training on Agricultural Data: The authors suggest investigating whether pre-training models on agricultural datasets could provide a more relevant prior knowledge base than ImageNet, potentially improving performance and robustness.

Summary updated

BibTeX
@inproceedings{yi2020deep,
  author = {Jinhui Yi and Lukas Krusenbaum and Paula Unger and Hubert Hüging and Sabine J. Seidel and Gabriel Schaaf and Juergen Gall},
  title = {{Deep Learning for Non-Invasive Diagnosis of Nutrient Deficiencies in Sugar Beet Using RGB Images}},
  booktitle = {Sensors},
  year = {2020},
  url = {https://openreview.net/forum?id=IA0shPFsLnJM},
}
Figure