CoolFace
Apppublic

im-amrith/crisp

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
App README

CrispRoot Platform 🌾

A comprehensive agricultural technology platform that transforms traditional farming into a smart, digital-first experience. This system serves as a real-time digital twin of farms, empowering farmers, agronomists, and developers with AI-driven insights, predictive analytics, and intelligent monitoring capabilities

Overview

It reimagines agriculture through four core domains: market analysis, crop simulation, plant disease detection, and livestock health management. The platform combines data-driven decision making with real-time monitoring to optimize agricultural operations, increase profitability, and ensure sustainable farming practices.

✨ Key Features

🧠 AI Garden Advisor

  • β€”Personalized Recommendations: Tailored crop suggestions using Google Gemini AI.
  • β€”Multi-language Support: Translations available in 10+ Indian languages.
  • β€”Smart Input Processing: Considers location, soil type, budget, and experience level.

πŸ“Š Market Demand Analysis

  • β€”Predictive Analytics: Neural Perceptron model for 12-month demand forecasting.
  • β€”Market Intelligence: Seasonality analysis and optimal selling period recommendations.
  • β€”Pricing Strategy: Net market price calculations including transportation costs.
  • β€”Data Source: Variety-wise Daily Market Prices from Open Government Data Platform.

🌱 Crop Simulation & Growth Monitoring

  • β€”PCSE Framework: Python Crop Simulation Environment based on WOFOST principles.
  • β€”Real-time Monitoring: Daily plant growth simulation with live updates.
  • β€”Growth Metrics: Yield predictions, biomass accumulation, Leaf Area Index (LAI).
  • β€”BBCH Integration: Growth stage identification based on research standards.

πŸ” Plant Disease Detection

  • β€”High Accuracy: 90% accuracy using MobileNetV2 architecture.
  • β€”Comprehensive Coverage: Detects 80 different plant diseases.
  • β€”Dataset: Trained on Plant Village and 20K Crop Disease datasets.
  • β€”Instant Results: Real-time disease identification with confidence scores.

πŸ„ Livestock Disease Prediction

Dual-Model Approach:

  • β€”Symptom-Based: 80% accuracy using Random Forest algorithm for 5 major diseases.
  • β€”Appearance-Based: 70% accuracy using MobileNetV2 for 7 cattle conditions.
  • β€”Disease Coverage: Pneumonia, Lumpy Skin Virus, Blackleg, Foot and Mouth Disease, Anthrax.

🌍 Green Guardian

  • β€”Environmental Monitoring: Real-time weather alerts and emergency response.
  • β€”Interactive Features: Chat interface, live dashboard, map views.
  • β€”Satellite Integration: Satellite imagery analysis for comprehensive monitoring.

🎀 Multilingual AI Assistant

  • β€”Voice & Text Support: Available in 10+ Indian languages.
  • β€”Call-based AI Bot: Phone support for farmers with feature phones.
  • β€”WhatsApp Integration: Bot support for broader accessibility.

🌾 Crop Management Advisor

  • β€”Contextual Crop Planning: Recommends suitable crops based on prior crop history, pest issues (e.g., rat attacks), maintenance levels, and land conditions.
  • β€”Goal-Based Suggestions: Adapts to the farmer’s goalsβ€”like high yield, low maintenance, or short-duration harvests.
  • β€”Smart Estimations: Provides estimated yield, growth duration, and profitability metrics for each crop option.
  • β€”Dynamic Adjustment: Learns from outcomes and feedback to refine future recommendations.

🌿 Biosphere & Integrated Farming Modeling

  • β€”Multi-layer Farming Simulation: Supports co-cultivation systems like fish-rice farming.
  • β€”Resource Optimization: Enhances productivity and land usage through biodiversity-driven planning.
  • β€”Sustainability Focused: Promotes climate-resilient and regenerative agricultural practices.

🧬 CRISP Gene Compatibility Scoring

  • β€”Hybridization Predictor: Evaluates the feasibility of cross-breeding two plant varieties.
  • β€”Data-Driven Scoring: Uses genomic and phenotypic data to assign a compatibility score.
  • β€”Breeder Guidance: Helps select optimal genetic combinations for higher yield, disease resistance, and adaptability.

🧩 CrispRoot Interaction Architecture

[image]

β€œFarmer-Centric Smart Agriculture Architecture: CrispRoot Platform”

This architecture diagram represents how a farmer interacts with the CrispRoot platform, flowing through a multi-layered intelligent system that bridges user actions with data-driven insights and automation. The platform serves as a digital twin of a farm, offering real-time decision-making, monitoring, and AI-powered advisory across agriculture domains.

πŸ”Ή 1. Farmer Interaction Layer

Label: Farmer (User)

  • β€”Access via smartphone, tablet, or computer
  • β€”Interaction Types:
  • β€”Voice command
  • β€”Image upload (leaf/livestock)
  • β€”Manual input (text/forms)
  • β€”Multilingual UI (10+ Indian languages)
  • β€”Offline support via call-based AI bot

πŸ”Ή 2. Presentation Layer

  • β€”Mobile App – Built with React Native
  • β€”Web Portal – Built with React.js
  • β€”PWA Features:
  • β€”Offline sync
  • β€”Push notifications
  • β€”Responsive layouts for all devices

πŸ”Ή 3. API Gateway Layer

  • β€”Unified API Gateway handling:
  • β€”OAuth 2.0 & Multi-Factor Authentication
  • β€”Biometric login
  • β€”Secure routing & rate limiting

πŸ”Ή 4. Core Microservices (Business Logic)

ModuleFunctionality
Crop SimulationPCSE/WOFOST simulation, BBCH tracking, irrigation/fertilizer advice
Plant Disease DetectionImage classification using MobileNetV2
Livestock MonitoringSymptom-based (Random Forest) and image-based (CNN) disease detection
Market Intelligence12-month demand forecasting, pricing strategy using Neural Perceptron
Govt. Scheme NavigatorScheme/job matching via open data APIs
Community PlatformPeer-to-peer help, expert Q&A
Resource ManagerTrack labor, equipment, expenses

πŸ”Ή 5. Data Processing & AI Layer

  • β€”Streaming: Apache Kafka
  • β€”Batch Processing: Apache Spark
  • β€”MLOps Capabilities:
  • β€”Automated model retraining
  • β€”A/B testing
  • β€”Version control
  • β€”Performance monitoring

AI Models in Use:

  • β€”MobileNetV2 (Plant & Livestock Disease)
  • β€”Neural Perceptron (Market Demand Forecast)
  • β€”PCSE/WOFOST (Crop Simulation)
  • β€”Random Forest (Livestock Symptom Analysis)

πŸ”Ή 6. Data Layer – Polyglot Storage

  • β€”Firebase Firestore – Real-time farm data
  • β€”PostgreSQL – Structured crop & user data
  • β€”MongoDB – Unstructured logs & media
  • β€”Redis – Fast caching for performance
  • β€”Cloud Storage (AWS S3) – Leaf/livestock images

πŸ”Ή 7. External APIs & Data Feeds

  • β€”Weather – OpenWeatherMap API
  • β€”Soil – ISRIC SoilGrids API
  • β€”Market – Agmarknet API
  • β€”Govt. Schemes – India Open Government API

πŸ”Ή 8. Feedback Loop (Learning Cycle)

This loop ensures adaptive intelligence where the system improves over time using real-world feedback and seasonal variation.


πŸ› οΈ Tech Stack

Frontend

  • β€”React with TypeScript
  • β€”Next.js for server-side rendering
  • β€”Vite for fast development builds
  • β€”Tailwind CSS + PostCSS for styling
  • β€”Chart.js & Recharts for data visualization
  • β€”i18next for internationalization

Backend & Services

  • β€”Node.js with TypeScript
  • β€”PostgreSQL database
  • β€”Prisma ORM for database interactions
  • β€”tRPC for type-safe API layer
  • β€”Python Flask for ML model inference
  • β€”Google Gemini AI for recommendations and translations
  • β€”Firebase for cattle farm management

Machine Learning

  • β€”MobileNetV2 for disease detection
  • β€”Random Forest for livestock symptom analysis
  • β€”Neural Perceptron for market demand forecasting
  • β€”PCSE (Python Crop Simulation Environment)

πŸš€ How to Run

Prerequisites

  • β€”Node.js (v18 or higher)
  • β€”Python 3.8+
  • β€”PostgreSQL database
  • β€”Firebase account
  • β€”Google Gemini API key

Installation

  1. 1.Clone the repository
bash
git clone https://github.com/annam-ai-iitropar/team_1B.git
  1. 1.Install dependencies
bash
# Frontend dependencies
npm install

# Backend dependencies
cd backend
npm install

# Python ML service
cd ../ml-service
pip install -r requirements.txt
  1. 1.Environment Setup
bash
# Copy environment files
cp .env.example .env.local
cp backend/.env.example backend/.env
cp ml-service/.env.example ml-service/.env
  1. 1.Database Setup
bash
# Run Prisma migrations
cd backend
npx prisma migrate dev
npx prisma generate
  1. 1.Start the services
bash
# Start ML service
cd ml-service
python app.py

# Start backend
cd ../backend
npm run dev

# Start frontend
cd ../
npm run dev

Configuration

Update the following environment variables:

  • β€”DATABASE_URL: PostgreSQL connection string
  • β€”GOOGLE_GEMINI_API_KEY: Google Gemini API key
  • β€”FIREBASE_CONFIG: Firebase configuration
  • β€”WEATHER_API_KEY: Weather service API key

πŸ“± Accessibility Features

  • β€”Responsive Design: Works on smartphones, tablets, and desktop
  • β€”Voice Integration: Voice-to-text and text-to-speech capabilities
  • β€”Multi-language Support: 10+ Indian regional languages
  • β€”Offline Capability: Phone call support for feature phones
  • β€”Gamification: Engaging user experience with gamified elements

πŸ”„ System Architecture

The platform follows a modular architecture with clean separation of domains:

  1. 1.Data Layer: PostgreSQL database stores farms, plots, crops, and sensor data
  2. 2.API Layer: tRPC provides type-safe communication between frontend and backend
  3. 3.ML Layer: Python Flask service hosts machine learning models
  4. 4.Frontend Layer: React-based dashboard with real-time updates
  5. 5.AI Layer: Google Gemini AI for recommendations and translations

πŸ“Š Performance Metrics

  • β€”Plant Disease Detection: 90% accuracy
  • β€”Livestock Symptom Analysis: 80% accuracy
  • β€”Livestock Appearance Analysis: 70% accuracy
  • β€”Market Prediction: 12-month forecasting capability
  • β€”Real-time Updates: 2-30 second configurable refresh intervals

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • β€”Plant Village Dataset and 20K Crop Disease Dataset from Kaggle.
  • β€”BBCH Scale Documentation for crop growth modeling.
  • β€”Open Government Data Platform for market price data.
  • β€”SLIIT-KUEMD Dataset for cattle disease prediction.

Built with ❀️ for the farming community