Skip to content

VyomThaker-2154/PlantXAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

PlantXAI: AI-Powered Plant Health Diagnostic System 🍃

PlantXAI is a full-stack AI platform designed to bridge the gap between complex machine learning and agricultural action. It uses Explainable AI (XAI)—specifically LIME and SHAP—to provide transparent, trustworthy plant disease diagnoses.

🌟 Project Overview

The platform consists of a high-performance FastAPI backend running a deep learning model (EfficientNetB3) and a React frontend that provides a premium, phase-based user experience.

Main Workflow:

  1. Multi-Scan: Upload one or many leaf images for instant disease classification.
  2. Verify: Overview of all plants in the batch with their health status.
  3. Explain: Deep-dive into specific plants using LIME/SHAP to see why the AI made the diagnosis.
  4. Recover: Receive AI-generated treatment plans and find relevant government schemes.

🏗️ Architecture

  • Frontend: React, Tailwind CSS, Framer Motion, Lucide, Recharts.
  • Backend: Python, FastAPI, TensorFlow, SHAP, LIME (tf-keras-vis), SerpApi, Groq.
  • Model: EfficientNetB3 trained on the PlantVillage dataset (39 classes).

🗂️ Repository Structure

PlantXAI/
├── backend/        # FastAPI server & ML Pipeline (Python)
├── frontend/       # React Application (Vite/Node.js)
├── datasets/       # (Optional) Dataset for training
└── README.md       # Root overview

🛠️ Quick Start

1. Backend Setup

cd backend
pip install -r requirements.txt
# Add your API keys to .env
python app.py

2. Frontend Setup

cd frontend
npm install
npm run dev

🔑 Environment Configuration

The system requires the following keys in backend/.env for full functionality:

  • SERP_API_KEY: For Google Search integration (Government Schemes).
  • GROQ_API_KEY: For LLM-based diagnostic insights (Mixtral-8x7b).

🛡️ Explainability (XAI)

PlantXAI doesn't just give you a name; it shows you the evidence.

  • LIME (Local Interpretable Model-agnostic Explanations): Generates heatmaps highlighting the specific regions of a leaf (spots, discoloration) that match the disease patterns.
  • SHAP (SHapley Additive exPlanations): Provides pixel-level attribution to show which features supported or contradicted the final diagnosis.

Built for the future of precision agriculture.

About

A full-stack precision agriculture platform using Explainable AI (XAI) to diagnose plant diseases. Built with EfficientNetB3, it provides transparent diagnoses through LIME/SHAP heatmaps, AI-generated recovery plans via Groq LLMs, and real-time integration with government agricultural schemes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors