Downloads · 30 days
0
btr2006/Multi-Crop-Disease-Severity-Yield-Risk
Multi-Crop-Disease-Severity-Yield-Risk is a machine learning model from btr2006. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
An end-to-end Machine Learning project featuring three linked prediction models feeding a rule-based Yield-Risk Fusion Engine, wrapped in an interactive single-page Streamlit Application.
Downloads · 30 days
0
Access
Public
Updated Sep 9, 2026
Repo size
32.3 MB
Likes
0
Public
Click a slice to open those files.
.pkl18.8 MB · 58%
From the Hugging Face model README
An end-to-end Machine Learning project featuring three linked prediction models feeding a rule-based Yield-Risk Fusion Engine, wrapped in an interactive single-page Streamlit Application.
┌───────────────────────────────────┐
│ User Uploads Leaf Image │
└─────────────────┬─────────────────┘
│
┌────────────────────────┴────────────────────────┐
▼ ▼
┌───────────────────────────────┐ ┌───────────────────────────────────┐
│ Module A — Disease Detection │ │ Module B — Severity Estimation │
│ MobileNetV2 Transfer CNN │ │ HSV Color & Lesion Area Proxy │
│ (38 Crop & Disease Classes) │ │ (Healthy / Mild / Mod / Severe) │
└───────────────┬───────────────┘ └─────────────────┬─────────────────┘
│ │
└────────────────────────┬────────────────────────┘
│
┌───────────────────────────────────┐ │
│ User Soil & Climate Inputs │ │
│ (Temp, N, P, K, Fertilizer) │ │
└─────────────────┬─────────────────┘ │
│ │
▼ │
┌───────────────────────────────────┐ │
│ Module C — Yield Prediction │ │
│ Random Forest / XGBoost Regr. │ │
│ (Expected Yield in tonnes/ha) │ │
└─────────────────┬─────────────────┘ │
│ │
└──────────────────────┬───────┘
│
▼
┌───────────────────────────────────┐
│ Module D — Yield-Risk Fusion │
│ Rule-Based Matrix & Recommender │
└─────────────────┬─────────────────┘
│
▼
┌───────────────────────────────────┐
│ Final Streamlit Report Card │
│ (6 Outputs + Lesion Overlay) │
└───────────────────────────────────┘
MobileNetV2 transfer learning CNN fine-tuned on 38 plant disease classes (>90% accuracy).estimate_severity algorithm using HSV color segmentation and lesion area thresholding.Random Forest Regressor trained on soil nutrients ($N, P, K$), temperature, and fertilizer ($R^2 = 0.9908, \text{RMSE} = 0.1864$).plant disese detection and crop yeld prediction/
├── data/
│ ├── disease/ # 38 Crop-Disease class folders (train/valid)
│ ├── severity/ # Plant Pathology 2021 competition dataset
│ └── yield/ # Crop Yiled with Soil and Weather.csv
├── models/
│ ├── disease_model.h5 # MobileNetV2 Keras CNN Model
│ ├── disease_labels.json # Index to Disease Class Mapping
│ ├── yield_model.pkl # Fitted Random Forest Regressor
│ ├── yield_scaler.pkl # StandardScaler for Soil Features
│ └── yield_stats.pkl # Benchmark Yield Statistics
├── src/
│ ├── __init__.py
│ ├── disease_detection.py # Module A training & inference
│ ├── severity_estimation.py # Module B HSV lesion segmentation
│ ├── yield_prediction.py # Module C regression training & evaluation
│ └── risk_engine.py # Module D yield-risk rule fusion engine
├── app/
│ └── main.py # Streamlit Application Dashboard
├── tests/
│ └── test_severity.py # Unit tests for severity estimation proxy
├── requirements.txt # Python package dependencies
└── README.md # User guide & execution instructions
pip install -r requirements.txt
python -m pytest tests/test_severity.py -s
streamlit run app/main.py