ExplainCrop AI is an intelligent computer vision system designed to identify plants and weeds from images and provide actionable agricultural insights.
This project leverages deep learning with transfer learning (MobileNetV2) to classify plant species such as Celosia Argentea, Crowfoot Grass, and Purple Chloris. Beyond classification, the system integrates Explainable AI (Grad-CAM) to visually justify predictions and a smart advisory layer to guide user decisions.
- Image-based plant & weed classification
- Transfer learning using MobileNetV2
- Explainable AI with Grad-CAM visualization
- Smart advisory system (risk level + recommended action)
- Optimized data pipeline for efficient training
-
User uploads an image
-
Model predicts plant/weed class
-
System determines:
- Type (Weed / Useful Plant)
- Risk level
- Recommended action
-
Grad-CAM highlights regions responsible for prediction
- Python
- TensorFlow / Keras
- OpenCV
- NumPy
- Matplotlib
- Intel oneAPI (oneDNN, oneDAL via sklearnex)
This project leverages Intel oneAPI optimizations for improved performance:
- TensorFlow uses Intel oneDNN for accelerated deep learning operations
- Scikit-learn is optimized using Intel oneDAL via sklearnex
- Prediction with confidence score
- Risk level (Low / High)
- Action recommendation
- Visual explanation (heatmap)
Achieved over 95% accuracy on validation dataset with strong classification performance.
To assist users and farmers in identifying harmful weeds and making informed decisions using AI-powered insights and explainable predictions.
- This project is developed and tested using Google Colab
- Some upload-related code (e.g.,
files.upload()) works only in Colab environment
pip install tensorflow opencv-python numpy matplotlib scikit-learn-intelex- Open the notebook in Google Colab
- Install dependencies
- Upload the dataset zip file
- Provide a test image path (e.g.,
/content/test.jpg) - Run all cells sequentially
- Expand dataset for better generalization
- Deploy as a web/mobile application
- Add real-time detection using camera input
This project goes beyond basic classification by combining:
- Deep Learning + Explainable AI (Grad-CAM)
- Provides actionable agricultural insights
- Uses Intel oneAPI optimizations for high performance
ExplainCrop AI demonstrates how AI can move from prediction to meaningful real-world impact.


