TF-CrossNet: A Bi-Directional Cross-Attention CNN–ViT Fusion Network for In-the-Wild Tobacco Foliar Pathology and Nutritional Stress Diagnosis
Automated foliar disease recognition in precision agriculture is hampered by the use of lab-based datasets, train-test data leakage and the inherent limitations of both convolutional networks (lack of global context) and Vision Transformers (blurred lesion boundaries). We present 6419 original in-field tobacco leaf images from commercial tobacco farms in the Mardan and Peshawar Division of KP, Pakistan, across 7 classes: Angular Leaf Spot, Brown Leaf Spot, Fusarium Leaf Spot, Nitrogen Toxicity, Tobacco Mosaic Virus, Vascular Wilt, and Healthy. The validation (N=960) and test (N=970) sets consist of only original, unaugmented images. To deal with the class imbalance, we augmented 3241 of the training images from the original set post-split. To tackle these issues we propose the dual branch architecture TF-CrossNet, which fuses the ConvNeXt-Tiny and Swin-T modules into a Bi-Directional Cross Attention Feature Module (Bi-CAFM) and concatenates the global average and max pooled features (GAP —— GMP). On the field test set, TF-CrossNet achieves 19.90 ms GPU inference latency and achieves 89.79% accuracy, a 90.29% macro F1-score, and a Cohen’s κ of 0.8780 when compared to six other established backbones. Robustness tests, statistical comparisons, Grad-CAM++ visualizations, and TOPSIS/VIKOR rankings are used to evaluate the model’s performance and suitability for real-world tobacco farming conditions.
Authors
- Niaz Ahmad (ORCID: https://orcid.org/0000-0001-8491-7577)
- Iftikhar Ahmad Khan
- Muhammad Suliman
- Kashif Mehmood
- Esa Quresh
Institutions
- University of Malakand (PK)
Publication Details
- Journal
- Research Square
- Published
- 2026-12-03
- DOI
- https://doi.org/10.21203/rs.3.rs-11848753/v1
- Primary Topic
- Smart Agriculture and AI
- Type
- preprint