Few-Shot Learning for Tomato Leaf Disease Detection: A Comparative Study of Baseline CNN, ResNet18, and Siamese Networks

Authors

  • Lena Van Mechelen Shenzhen Yunding School, Shenzhen, China Author

DOI:

https://doi.org/10.70088/vwv1vx22

Keywords:

Few-shot learning, Tomato leaf disease, Convolutional neural network, Transfer learning

Abstract

Tomato crops are highly susceptible to fungal and bacterial diseases that cause significant yield loss when left undetected. Although deep learning has shown promise in automated disease classification, it typically requires thousands of labelled images per class, which are difficult to obtain under field conditions. This study investigates few-shot learning as a low-data alternative by comparing three models—a baseline convolutional neural network (CNN), a ResNet18 adapted with transfer learning, and a Siamese network employing contrastive loss—across four shot levels (5, 10, 20, and 50 shots). Experiments are conducted on a four-class tomato leaf dataset comprising Healthy, Early Blight, Late Blight, and Bacterial Spot images. Results show that the Siamese network achieves the highest overall accuracy of 83.5% at 50-shot, while ResNet18 offers the best balance between performance and computational cost. All three models satisfy edge-deployment constraints of 64 MB memory. These findings confirm that few-shot learning can achieve acceptable accuracy for practical plant disease diagnosis when labelled data are limited.

Downloads

Published

2026-11-26