alabitech2019/Farmer-assistant-ai
0
πΏ AI-Powered Crop Assistant (Streamlit App)
Welcome to the AI Crop Assistant β an intelligent tool for farmers, researchers, and agritech teams to:
- π¦ Detect crop leaf diseases from images using a deep learning CNN (MobileNetV2)
- πΎ Predict expected crop yield based on soil and climate conditions using Random Forest
- π Explain predictions with SHAP (model explainability) and Grad-CAM (visual heatmaps)
- π₯ Download prediction reports in CSV format
π Features
π How It Works
- Upload a crop leaf image to detect disease
- Enter farming parameters (rainfall, temp, etc.)
- Select crop type and predict expected yield
- View explanation (SHAP) and Grad-CAM visual
- Download report π
π§ Technologies Used
- Streamlit
- TensorFlow (CNN with MobileNetV2)
- scikit-learn (Random Forest)
- SHAP (Explainability)
- OpenCV, Matplotlib, Pillow
π¦ Requirements
All dependencies are defined in requirements.txt and installed automatically by Hugging Face Spaces.
π Notes
- The CNN model (
.h5) is downloaded viagdownfrom Google Drive - Make sure your file is publicly shared via Drive (or uploaded if <500MB)
π Live App
π Click βOpen in Spacesβ above to use the app directly.
