Point a phone camera at a chili or paddy leaf and get a disease diagnosis. The app is the demo โ the research is the head-to-head between CNN architectures, and whether a model trained on lab photos survives real Malaysian field conditions.
A mobile-friendly app: snap or upload a leaf photo โ disease class + confidence + treatment suggestion card. Runs on-device or via a lightweight Flask API.
Which architecture gives the best accuracy-vs-size trade-off for mobile deployment, and how much does performance drop from clean lab datasets to self-collected field photos โ the classic public-vs-local dataset story.
Pernyataan masalah: Small-scale farmers identify crop diseases by eye and act late; existing detection models are trained on foreign lab-condition datasets and degrade on local crops photographed in real field lighting.
Directly mirrors the strongest FYP pattern: public dataset vs local dataset vs cross-dataset.
| Experiment | Setup | What it proves |
|---|---|---|
| Eksperimen 1 Public dataset |
Train + test all 3 architectures on PlantVillage (80/20 split, same augmentation). | Clean-condition ceiling for each architecture; the accuracy-vs-model-size table. |
| Eksperimen 2 Local field dataset |
Train + test on self-collected field photos (~500โ1,000 images, varied lighting/background). | Performance on realistic Malaysian field conditions with a small local dataset. |
| Eksperimen 3 Cross-dataset |
Train on PlantVillage, test on the local field set (no fine-tuning). | The generalization gap โ quantifies why local data collection was necessary. Strongest finding for Bab 5. |
Public: PlantVillage subset for the chosen crop (3โ5 disease classes + healthy). Local: field photo collection with a documented protocol (device, distance, lighting, time of day) โ the collection protocol itself is a methodology contribution. Augmentation: rotation, flip, brightness โ reported per experiment.
| Metric | Why it matters here |
|---|---|
| Accuracy | Headline number per architecture per experiment โ the 3ร3 results grid. |
| Precision / Recall / F1 per class | Confusing two diseases means wrong treatment โ per-class recall is the safety story. |
| Model size & inference time | The mobile-deployment trade-off: accuracy per MB and per millisecond on a real phone. |
| Confusion matrices | Shows exactly which disease pairs get mixed up and whether field conditions worsen it. |
| Chapter | What goes in it (from this package) |
|---|---|
| Bab 1 โ Pengenalan | Problem statement, objectives, scope (one crop, 3 architectures, 2 datasets), constraints (GPU access, collection season), Gantt chart. |
| Bab 2 โ Sorotan Kesusasteraan | Comparison tables: plant disease detection studies (2019โ2026), CNN architecture family comparison, lab-vs-field dataset gap studies. |
| Bab 3 โ Metodologi | Data collection protocol, preprocessing + augmentation pipeline, training configuration, app architecture (camera โ model โ result card). |
| Bab 4 โ Pembangunan & Pengujian | The 3 experiments, 3ร3 metrics grid, confusion matrices, on-device latency table, app screenshots. |
| Bab 5 โ Dapatan Kajian | Recommended architecture with evidence, the generalization-gap finding, limitations (single crop/season), future work (more crops, on-device quantization). |
PythonTensorFlow / PyTorchUltralytics OpenCVFlask APIFlutter / PWA
โ Back to all FYP ideas ยท Assignment Helper