Rayyan Khan

Featured Project — Computer Vision

CottonDoctor-PK

A computer-vision tool that classifies cotton leaf diseases from a photograph, built to help Pakistan’s cotton farmers and agronomists spot crop disease earlier.

Black and white photograph of a hand holding a young cotton plant — cover image for CottonDoctor-PK by Rayyan Khan

The Problem

Cotton is a backbone crop of Pakistan’s textile economy, and leaf diseases can cut yields heavily before they are obvious to the eye. Expert diagnosis is scarce in the field, so infections are often treated late — or treated blindly with the wrong pesticide.

What I Built

Technical Approach

Technologies & Stack

Python PyTorch EfficientNet-B0 Transfer Learning Streamlit Google Colab

Results

89.72% accuracy on the held-out test set. The live demo is public — try it with any cotton leaf photo.

Limitations

Field photos with cluttered backgrounds, mixed infections or severe blur are harder than the test distribution, and accuracy there will be lower. CottonDoctor-PK is a screening aid, not a replacement for an agronomist’s diagnosis.

Visit Live Demo