Abstract:
Wheat is an essential crop for Pakistan’s economy and food security, yet the traditional manual inspection of wheat seeds is highly labor-intensive, time-consuming, and prone to human error. While automated image-processing solutions exist, they frequently rely on foreign datasets or controlled laboratory environments that do not accurately represent local Pakistani wheat varieties under real-world feld conditions. To address these limitations, this study introduces Wheatify AI, an end-to-end automated wheat seed grading framework developed in collaboration with the National Agricultural Research Centre (NARC). A custom, high-resolution dataset of local wheat seeds was created and meticulously annotated into three physical quality classes: Clean Seeds, Degraded Seeds, and Inert Matter. Following a comprehensive data augmentation pipeline, three stateof-the-art object detection models were evaluated. The Roboflow Detection Transformer (RF-DETR) Medium model was ultimately selected due to its anchor-free architecture and superior ability to handle dense, overlapping seed clusters. The Wheatify AI system successfully transitions wheat seed quality assessment from a subjective, manual task to a rapid, consistent, and cost-effective digital solution.