Back to Home
🌱 PRECISION AGRICULTURE FOR CEYLON TEA

How TeaPulse Works

From satellite land selection to daily soil analysis, guided tasks, and yield predictions — TeaPulse catches problems before they ever reach the leaf.

8
Disease Classes
MobileNetV2
AI Model
Supabase RLS
Database
Recharts
Analytics

Tech Stack

Next.jsTypeScriptFastAPIFlaskTensorFlow / KerasMobileNetV2PythonSupabaseRow Level SecurityTailwind CSSRechartsNumPy / Pillow

Platform Architecture

Frontend UI:3000
Next.js / Tailwind

Interactive dashboards, harvest input studios, and real-time image preview for AI diagnosis.

Estate Backend:8000
FastAPI / Supabase

Manages grade-wise harvest logs (Grade A & B) with secure Row Level Security (RLS).

AI Diagnosis Core:5000
Flask / TensorFlow

MobileNetV2 transfer learning model classifying 8 tea leaf conditions instantly via API.

Services & Core Modules

Key Operational Flows

2 STEPS WORKFLOW
1

Manager uploads a tea leaf image via the Next.js frontend diagnostic interface.

2

Frontend sends the image file securely via FormData to the Python Flask AI API (:5000).

3

Flask backend preprocesses the image using NumPy and Pillow (PIL) to match MobileNetV2 requirements (224x224).

4

The TensorFlow/Keras CNN model evaluates the image across 8 classes, returning the detected disease and confidence score.

5

Frontend dynamically renders the result card along with specific agricultural remedy instructions.

Engineering & AI Highlights

🌱
8-Class AI Leaf Diagnosis
Custom-trained MobileNetV2 transfer learning model capable of detecting Anthracnose, Algal leaf, Bird eye spot, Brown blight, Gray light, Healthy states, Red leaf spot, and White spot.
âš¡
Hybrid Python Architecture
Combines FastAPI for lightning-fast estate management and yield analytics with a dedicated Flask microservice handling heavy TensorFlow computer vision inference.
📊
Grade-Wise Harvest Studio
Robust tracking system logging Grade A (Fine Tender Leaf) and Grade B (Coarse Leaf) collections with automated upserts and live ratio analytics.
🔒
Secure Supabase RLS
Enterprise-grade security using Supabase Row Level Security (RLS) and environment-isolated workflows to protect sensitive estate and financial data.
📈
Interactive Recharts Dashboards
Dynamic daily, weekly, monthly, and quality-index data visualizations helping estate managers monitor performance and factory standards effortlessly.
💡
Actionable Remedy Integration
Goes beyond basic classification by automatically supplying targeted agricultural treatment and disease management advice directly on the UI card.