Tomato AI

Professional Project Portfolio

Tomato Leaf Disease Detection System

A complete AI-enabled platform that helps identify key tomato leaf diseases from images and keeps a prediction history for farm records and learning.

Registered Users

4

Total Predictions

8

Local API Setup

This website uses the in-project ai_api folder and Flask endpoint at http://127.0.0.1:5000.

Project Overview

Why Tomato Leaf Detection?

Tomato is a high-demand crop used fresh and in processed products. Early disease identification helps reduce crop loss and supports better farm decisions.

System Objective

Provide a practical web system where users upload leaf images, receive AI diagnosis with confidence, and track predictions over time.

Detected Disease Classes

The model classifies 10 tomato categories based on your trained dataset.

Bacterial Spot

Water-soaked lesions that can become necrotic and cause defoliation.

Early Blight

Often shows dark concentric “bullseye” spots, starting on older leaves.

Late Blight

Rapidly expanding water-soaked to brown lesions in humid conditions.

Leaf Mold

Yellow upper-leaf patches with velvety fungal growth underneath.

Septoria Leaf Spot

Small gray-white spots with dark margins and tiny black specks.

Spider Mites

Leaf stippling/yellowing and fine webbing under mite pressure.

Target Spot

Necrotic lesions with visible concentric zones on infected tissue.

Tomato Mosaic Virus

Mosaic mottling, distortion, and potential fruit quality reduction.

Yellow Leaf Curl Virus

Upward curling and yellowing leaves, with plant stunting.

Healthy

No visible disease pattern among learned classes.

System Workflow

Step 1

Authentication

User or admin logs in.

Step 2

Image Upload

Leaf image saved in uploads/.

Step 3

AI Prediction

PHP sends file to Flask /predict.

Step 4

History Storage

Result saved in MySQL and shown in dashboard.

References (Information Basis)

  • PlantVillage Tomato Topic and Disease Notes: crop background, symptoms, and management concepts.
  • Wikipedia summary pages for Alternaria solani (early blight context) and Tomato Mosaic Virus.