Crop Yield Prediction for Punjab, Pakistan: A Tree-Ensemble and Leaf-Health Prototype, and What Random Validation Hides
Amina Asif, Qurat Ul ain Asif, Noor Bakhat Asif, Kasa-e-Fatima
Abstract
Yield forecasts help planners and farmers decide on inputs, storage and imports, but small agricultural tables can make reported accuracy fail on a new season. We built a crop-yield prototype for Punjab, Pakistan that combines Random Forest, XGBoost, support vector regression and a Ridge-stacked ensemble with a MobileNetV2 leaf-health classifier, and deployed it as a web application with SHAP explanations. A random 80/20 split of a merged Kaggle-derived table (414 rows) gives the ensemble an R2 of 0.991. An audit showed that the table contains only 46 independent observations: a join with nine temperature records per year copied every crop-year nine times. Holding out whole years takes XGBoost on the same rows from R2 = 0.994 to -0.20. On deduplicated data, and on a longer FAOSTAT table (1990-2024, 70 observations), a per-crop linear trend (leave-one-year-out RMSE 0.29 Ton/Ha) beats every model not given the year (0.84-1.06). Neither pesticide use nor national temperature change explains the trend residuals. An apparent pesticide gain in the Kaggle table disappears on FAOSTAT, where the pesticide series is mostly imputed and the two releases disagree. An independent district-level wheat panel (36 districts, 13 seasons) shows that most variation in Punjab is spatial and that a district mean with a common trend matches the learned models. The leaf classifier reaches 99.87% accuracy on held-out PlantVillage images and recalls 96.4% of 336 unseen diseased leaves after near-duplicates were removed. However, no leaf image is paired with a yield record, so the health score used in the yield models had to be constructed and adds nothing. We report these negative findings together with the prototype.
Create a lesson
Related papers
Spatial Transcriptomics Prediction from Histology via Topology-Informed Graph Attention and Gene-Semantics Conditioning
Shared title terminologycs.CVYuqi Cheng, Boshuai Zhang, Ziqi Zhang et al.
Look at What Matters: Learning Lesion Prototypes from Severity Labels for Domain-Generalized Diabetic Retinopathy Grading
Shared title terminologycs.CVZiyang Zhang, Juming Xiong, Yanfan Zhu et al.
DoseSteer: Steering diffusion-based dose prediction models towards clinical targets via Dual-Response Guidance
Shared title terminologycs.CVShupeng Cheng, Jing Jia, Jincheng Wu et al.
A Trustworthy Clinical Decision Support Framework for Brain Tumor MRI Classification: Integrating Attention-Guided Learning, Explainable AI, and Out-of-Distribution Validation
Shared title terminologycs.CVArjun Kumar Gupta, Harminder Pal Monga
Knowing When to Trust a Prior: Reliability-Gated Cue Fusion for Video Gaze Prediction
Shared title terminologycs.CVLichen Zhu, Yueqian Lin, Yiheng Wang et al.
Revisiting Numerical Forecasting Models for Language-Based Trajectory Prediction
Shared title terminologycs.CVJunGyu Lee, Inhwan Bae, Hae-Gon Jeon