How LeafSense Works
Understanding the science and technology behind your plant disease diagnosis
The ResNet50 Model
Transfer learning from ImageNet, fine-tuned for plant disease detection
Linear(2048β512) β ReLU β Dropout(0.3) β Linear(512β38).
Transfer learning allows the model to leverage features learned from millions of images for accurate
plant disease classification.
Model Performance
Evaluation metrics from the test dataset
Model Comparison
Training Dataset
The foundation of our model
Dataset Source
PlantVillage Dataset from Kaggle - a curated collection of plant leaf images captured under controlled conditions, covering 14 plant species with both healthy and diseased samples.
View on Kaggle βTraining Pipeline
How the model was trained
Data Augmentation
RandomHorizontalFlip, RandomRotation, ColorJitter to increase training diversity and prevent overfitting.
Transfer Learning
Loaded ResNet50 pre-trained on ImageNet (1M+ images). Replaced the final FC layer with a custom classifier head.
Fine-tuning
Trained with Adam optimizer and CrossEntropyLoss. Batch size 32, learning rate scheduling for optimal convergence.
Evaluation
Compared Custom CNN vs ResNet50. Selected ResNet50 for deployment based on superior ~99.5% test accuracy.
Disease Coverage
All 38 classes organized by plant species
Apple
Blueberry
Cherry (including sour)
Corn (maize)
Grape
Orange
Peach
Pepper, bell
Potato
Raspberry
Soybean
Squash
Strawberry
Tomato
Ready to Try the Model?
Upload a leaf image and see the AI in action with real-time predictions
π¬ Start Diagnosis