Skip to content

Latest commit

Β 

History

144 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌱 Plant Z - Interactive Plant Healthcare Application

Democratizing Plant Care Through AI

πŸ“ Table of Contents

Problem Statement

Many people struggle with plant care due to:

  • Lack of specialized knowledge about different plant species
  • Difficulty in identifying plant diseases and health issues
  • Inconsistent care routines leading to plant deterioration
  • Economic barriers to acquiring quality gardening resources

These barriers prevent many from successfully caring for plants, leading to frustration and plant loss.

Solution Overview

PlantZ is an interactive application designed to break down these barriers by providing personalized, engaging guidance through:

  • Expressive plant avatars that visually communicate care needs
  • An intuitive dashboard for monitoring multiple plants
  • A fully implemented Gemini API-powered conversational interface for natural language plant care advice
  • A voucher-sponsor system to address economic barriers

Our aim is to make plant care accessible to everyone, regardless of their experience level, by simplifying complex information and providing tailored support.

Key Features

🌿 Interactive Plant Avatars

  • Personalized plant profiles with expressive avatars
  • Visual indicators of plant health and care needs
  • Customizable care schedules and notifications

πŸ“Š Intuitive Dashboard

  • At-a-glance view of all plants and their status
  • Clear care indicators and reminders

πŸ’¬ AI-Powered Plant Care Assistant

  • Fully implemented Gemini API integration using the gemini-1.5-flash model
  • Natural language interactions for plant care advice
  • Expert-level assistance for identification, diagnosis and care recommendations
  • Persistent conversation history for contextual advice

πŸ” Plant Disease Diagnosis

  • AI-powered disease detection using EfficientNetB3, a CNN based model
  • Evidence-based treatment suggestions
  • High accuracy (98.93%) in identifying common plant diseases

πŸ’° Voucher-Sponsor System

  • Economic barrier reduction through sponsored resources
  • Partnership opportunities with gardening suppliers
  • Sustainable ecosystem for both users and sponsors

Technical Architecture

Our application follows a modern MERN stack architecture with AI integration:

                      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                      β”‚    Frontend    β”‚
                      β”‚    (React)     β”‚
                      β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
                               β”‚
                               β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Gemini API   │◄────►│    Backend     │◄────►│   MongoDB     β”‚
β”‚  Integration  β”‚      β”‚   (Node.js)    β”‚      β”‚   Database    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                               β”‚
                               β–Ό
                      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                      β”‚  Models for    β”‚
                      β”‚Disease Detection
                      |        &       |
                      |Stress Detection|
                      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Implementation Details

Frontend Development

Design System

  • Custom plant-inspired color palette using CSS Variables
  • Typography system with Google Fonts for improved readability
  • Reusable React components styled with Tailwind CSS
  • Animation guidelines using Framer Motion

Responsive Layout & Navigation

  • Adaptive layout containers for cross-device compatibility
  • Desktop navigation with persistent sidebar
  • Mobile-optimized bottom navigation bar
  • Fluid page transitions with Framer Motion

Dashboard Implementation

  • Responsive CSS Grid layout for plant cards
  • Clear status indicators for plant health

Add Plant System

  • Step-by-step form with React components
  • Creation of personalized plant profiles

Backend Implementation

Core API Endpoints

  • RESTful API architecture following best practices
  • Robust error handling and validation
  • Efficient data management with MongoDB

Gemini API Integration

  • Complete implementation of Google's Gemini AI for plant care assistance
  • System prompt engineering for specialized plant knowledge
  • Technical specifications:
    • Model: gemini-1.5-flash
    • Context window: 128k tokens
    • Response streaming for real-time interactions
    • Contextual memory management to maintain conversation history
    • Optimized token usage through history length limitations
    • Error handling and fallback mechanisms

Conversational Interface

  • Asynchronous message handling
  • Real-time generation of AI responses
  • Session-based conversation history

Voucher-Sponsor System

  • Secure voucher generation and validation
  • Sponsor management backend
  • Integration with user profiles

AI & ML Components

Plant Disease Diagnosis Model

  • CNN-based image analysis for disease detection throught EfficientNetB3 model
  • Preprocessing pipeline for image enhancement
  • High-performance metrics:
    • Accuracy: 98.93%

Dataset Details

Technical Implementation

  • TensorFlow & Scikit-learn for model development
  • NumPy, SciPy & Pandas for data manipulation
  • Feature extraction through CNN layers
  • End-to-end training with augmentation techniques
  • Model saved to .onnx format for faster execution

Stress Level Detection Model

Authentication & Security

  • Secure MERN Stack Authentication with JSON Web Tokens (JWT)
  • Asynchronous email verification
  • Input sanitization and validation

Database Structure

  • MongoDB NoSQL database
  • Robust data models for users, plants and care history

![Database Schema]

πŸ› οΈ Installation & Setup

# Clone the repository
git clone https://github.com/Palash3101/PlantZ​

# Navigate to the project directory
cd PlantZ

# Install frontend dependencies
cd frontend
npm install
cd ..

# Install backend dependencies
cd backend
npm install
cd ..

# Start development servers concurrently
# (Ensure you have concurrently installed: npm install -g concurrently)
npm run dev

πŸš€ Future Roadmap

Advanced AI Features

  • Climate based early detection of potential plant issues
  • Seasonal care adjustments

Smart Home Integration

  • Connectivity with IOT plant sensors for real-time monitoring
  • Environmental data collection and analysis on large scale by using drones

User Empowerment

  • Multilingual support
  • Partner with government and NGOs for wider reach

πŸ‘₯ Team

Meet the passionate developers behind PlantZ:

  • Palash Mishra
  • Prakriti Das
  • Payghan Ashwin Shriram
  • Tumuluri Abhiram

PlantZ - Breaking down the red tape of plant care, one leaf at a time.

About

Plant Z is a modern web application designed to help users manage and care for their plants. It features AI-powered disease detection, personalized plant health checks, interactive chat assistance, and customizable notifications. With an intuitive interface and smart tools, Plant Z makes plant care easy, engaging, and accessible for everyone.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages