Client:
TokenWave AI (In-House R&D)
Type of Work:
Computer Vision / Deep Learning
Industry:
Agriculture
Stage:
Research-Based Solution
At a Glance

Case Study Overview

The Challenge

Crop diseases are identified too late or wrongly, causing yield loss and wasteful pesticide use.

Our Solution

A deep-learning model that diagnoses leaf diseases from a photo and suggests the next action.

Technology

Residual Vision Transformers, attention mechanisms, GAN-based augmentation, transfer learning.

The Outcome

Instant, field-level diagnosis that brings expert support to farms without an on-site specialist.

Executive Summary

Agriculture supports the livelihoods of hundreds of millions of people across Asia, yet crop diseases continue to erode farm incomes every season. The earlier a disease is detected, the cheaper and more effective the treatment - but early detection depends on expertise that most farmers cannot access in time.

TokenWave AI developed an AI-powered plant disease detection system that turns an ordinary smartphone into a diagnostic tool. A farmer photographs an affected leaf, and within seconds the system identifies whether the plant is diseased, names the specific disease, shows how confident it is and recommends what to do next.

Background

The Industry Context

Plant diseases caused by fungi, bacteria and viruses spread quickly in favourable weather. A problem that starts on a few leaves can affect an entire field within days. Timely and correct identification is therefore the single most important factor in protecting a harvest.

In practice, diagnosis relies on the farmer's experience, advice from local input dealers or occasional visits from agricultural officers. With one extension worker often responsible for thousands of farmers, expert advice rarely arrives at the moment it is needed most.

project
project
The Challenge

The Problem We Set Out to Solve

1
Scarce Access to Experts

Agricultural experts cannot visit every farm in time, especially during peak disease seasons when demand is highest.

2
Similar-Looking Symptoms

Many diseases produce similar spots, lesions and discolouration, which makes visual diagnosis unreliable even for experienced growers.

3
Wrong Treatment, Higher Cost

Misdiagnosis leads to the wrong pesticide, repeated spraying, wasted money and continued crop damage.

4
Limited Field Data

Real-world leaf images vary in lighting, background and angle, and labelled examples of rarer diseases are hard to collect.

Why Existing Approaches Fall Short

  • Manual inspection depends heavily on individual experience and is inconsistent.
  • Laboratory testing is accurate but slow, costly and far from most farms.
  • Generic advice from dealers is often product-driven rather than diagnosis-driven.
  • Simple image models trained on clean lab photos struggle with real field conditions.

What Was at Stake

  • Yield loss: diseases left untreated for even a few days can significantly reduce harvest quality and quantity.
  • Input costs: unnecessary or incorrect spraying increases cultivation cost and chemical residue.
  • Farmer income: for small and marginal farmers, a single bad season can mean debt.
  • Food security and sustainability: overuse of chemicals harms soil health and the environment.
Our Approach

How We Approached the Problem

We followed a structured, problem-first process - understanding the real-world problem before choosing the technology, and validating every stage before moving to the next.

Discovery and Problem Framing

We studied how farmers currently identify diseases, which crops and diseases cause the most damage, and what a useful answer looks like in the field - a clear diagnosis plus a practical next step, not just a label.

Data Collection and Preparation

Leaf images covering healthy and diseased samples were gathered and curated. Images were cleaned, labelled and standardised, and GAN-based augmentation was used to generate realistic additional samples for under-represented diseases.

Model Development

We designed deep-learning models built on residual Vision Transformers with attention mechanisms, allowing the model to focus on the diseased regions of a leaf. Transfer learning from large pre-trained models made the system effective even with limited agricultural data.

Validation and Refinement

Models were evaluated on unseen images, with particular attention to diseases that look alike. Misclassifications were analysed and the training data and architecture refined accordingly.

Application and Integration

The trained model was packaged behind a simple upload-and-diagnose workflow designed for smartphone use, returning the disease name, a confidence score and a recommended action.

The Solution

How the Solution Works

An AI system that identifies plant leaf diseases from a single smartphone photo and recommends the right action - before the disease spreads across the field.

Solution Workflow

STEP 01

Farmer photographs the affected leaf

STEP 02

Image is cleaned and pre-processed

STEP 03

AI checks healthy vs diseased

STEP 04

Specific disease is classified

STEP 05

Confidence score is calculated

STEP 06

Recommended action is shown

Key Capabilities

Photo-Based Diagnosis

No special equipment - a smartphone photo of the leaf is all that is needed.

Disease Classification

Identifies the specific disease, not just whether the plant is unhealthy.

Confidence Scoring

Every prediction includes a confidence level so users know when to seek a second opinion.

Actionable Recommendations

Suggests practical next steps so the diagnosis leads directly to action.

Robust to Field Conditions

Trained with augmentation to handle varied lighting, backgrounds and angles.

Extensible to New Crops

Transfer learning makes it practical to add new crops and diseases over time.

Technology & Techniques

PythonDeep LearningResidual Vision Transformer (ViT)Attention MechanismsGANs for Data AugmentationTransfer LearningImage Pre-processingWeb / Mobile Upload Interface
Results

Business Impact & Outcomes

Diagnosis in Seconds

Farmers get an answer in the field instead of waiting days for an expert visit.

Right Treatment, Less Waste

Accurate identification reduces guesswork, repeated spraying and unnecessary chemical use.

Expertise at Scale

Expert-level screening becomes available to every farmer with a smartphone.

“The goal was simple: put a reliable crop doctor in every farmer's pocket, so that the first sign of disease leads to the right action - not a lost harvest.”
— TokenWave AI Project Team

Who Can Benefit

  • Farmers and FPOs for early, affordable diagnosis at the farm.
  • Agri-input dealers for recommending the correct product based on an actual diagnosis.
  • Agritech startups for adding intelligent crop health features to their apps.
  • Agricultural departments and KVKs for monitoring disease outbreaks across regions.
Looking Ahead

Key Learnings & What's Next

Key Learnings

  • Real-field images are very different from lab images - data diversity matters more than model size.
  • Attention-based models help the system focus on diseased regions and handle look-alike symptoms better.
  • A diagnosis is only valuable when paired with a clear, practical next step for the farmer.

What's Next

  • Support for more crops and regional disease varieties.
  • Multilingual and voice-based guidance for farmers.
  • Offline, on-device inference for areas with poor connectivity.
  • Regional outbreak dashboards built from aggregated, anonymised diagnoses.

This case study describes an in-house research and development project by TokenWave AI. Outcomes are described qualitatively; actual performance depends on the data, environment and scale of each deployment. Want to apply this solution to your business? Book a free consultation.

More Case Studies

Have a Process That Should Run Itself?

Tell us about it in a free, no-obligation working session. We will show you where an agent fits, what it would take and how you would measure the result.

Book a Free Session