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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

TF-CrossNet: A Bi-Directional Cross-Attention CNN–ViT Fusion Network for In-the-Wild Tobacco Foliar Pathology and Nutritional Stress Diagnosis

Niaz Ahmad, Iftikhar Ahmad Khan, Muhammad Suliman, Kashif Mehmood et al.
Research Square
Smart Agriculture and AI
preprint

TF-CrossNet: A Bi-Directional Cross-Attention CNN–ViT Fusion Network for In-the-Wild Tobacco Foliar Pathology and Nutritional Stress Diagnosis

Niaz Ahmad, Iftikhar Ahmad Khan, Muhammad Suliman, Kashif Mehmood, Esa Quresh
preprint en

Abstract

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.

Research Square
University of Malakand (PK)
Smart Agriculture and AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon