Tabular Classification
Scikit-learn
Joblib
agriculture
crop-risk-detection
smart-farming
ensemble
random-forest
gradient-boosting
Instructions to use dimeshanthoney/govicare with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use dimeshanthoney/govicare with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("dimeshanthoney/govicare", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
GoviCare Crop Risk Detection Model
An ensemble classifier (RandomForest + GradientBoosting + ExtraTrees) that predicts whether a crop is at risk based on environmental sensor data.
Performance
| Metric | Score |
|---|---|
| Accuracy | 0.9004 |
| F1 Score | 0.8834 |
| Precision | 0.9809 |
| Recall | 0.8035 |
| ROC AUC | 0.9676 |
Supported Crops (25 total)
banana, barley, cabbage, carrot, chili_pepper, cinnamon, coconut, corn, cotton, cucumber, eggplant, groundnut, lettuce, mango, onion, papaya, potato, rice, rubber, sorghum, soybean, sugarcane, tea, tomato, wheat
Input Features
crop_type(string) - one of the supported cropssoil_moisture(float, 0-100%)temperature(float, Celsius)humidity(float, 0-100%)wind_speed(float, m/s)pressure(float, hPa)
Usage
import joblib
from huggingface_hub import hf_hub_download
model = joblib.load(hf_hub_download("dimeshanthoney/govicare", "crop_risk_model.joblib"))
scaler = joblib.load(hf_hub_download("dimeshanthoney/govicare", "scaler.joblib"))
encoder = joblib.load(hf_hub_download("dimeshanthoney/govicare", "encoder.joblib"))
Training
Trained on 125,000 synthetic samples across 25 crop types using scientifically-backed agronomic thresholds from FAO, IRRI, and USDA sources.
- Downloads last month
- -