metadata
title: Rice Disease Detection API v3
emoji: ๐พ
colorFrom: green
colorTo: yellow
sdk: docker
pinned: false
license: mit
app_port: 7860
๐พ Rice Disease Detection API v3
EfficientNet-B0 based rice leaf disease detection API
Features
- ๐ฌ Detects 14 rice diseases + healthy plants
- ๐ฏ ~89-93% accuracy using EfficientNet-B0
- โ Rice leaf validation before disease detection
- ๐ Fast inference with FastAPI
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | API info |
/health |
GET | Health check |
/status |
GET | Model status |
/validate-leaf/ |
POST | Check if image is rice leaf |
/predict/ |
POST | Predict disease from image |
Usage
Predict Disease
curl -X POST "https://YOUR-SPACE.hf.space/predict/" \
-H "accept: application/json" \
-F "file=@rice_leaf_image.jpg"
Response Example
{
"is_rice_leaf": true,
"disease": "rice_blast",
"confidence": "92.45%",
"recommendation": "Use resistant varieties...",
"category": "Fungal",
"severity": "Very High"
}
Diseases Detected
- Bacterial Leaf Blight
- Bacterial Leaf Streak
- Bakanae
- Brown Spot
- Grassy Stunt Virus
- Healthy Rice Plant
- Narrow Brown Spot
- Ragged Stunt Virus
- Rice Blast
- Rice False Smut
- Sheath Blight
- Sheath Rot
- Stem Rot
- Tungro Virus
Model Details
- Architecture: EfficientNet-B0 (transfer learning from ImageNet)
- Training: Custom dataset with 17,789 images
- Framework: PyTorch 2.x
Project
Part of the SUMVILTAD Agricultural Management System.
License
MIT License