Hybrid vision transformer model for crop-health prediction using multi-modal data
Accurate crop-yield prediction is important for precision agriculture because it can support resource allocation, irrigation planning and risk management. This study evaluated conventional machine-learning models, artificial neural networks and image-based hybrid architectures using agronomic variables, vegetation indices and raw RGB and near infrared imagery. Model development and evaluation were conducted using 5 × 3 nested cross-validation, with five outer folds for performance estimation and three inner folds for hyperparameter selection. Among all evaluated approaches, the light gradient boosting machine (LightGBM) trained exclusively with agronomic data achieved the strongest overall performance (MSE = 3.1314 ± 0.1138; R² = 0.9014 ± 0.0062). Among the image-based multi-modal architectures, the hybrid vision transformer (ViT) achieved the best results (MSE = 3.5541 ± 0.2494; R² = 0.8880 ± 0.0116), outperforming the hybrid visual geometry group and hybrid ResNet but not the strongest agronomic models. Models trained exclusively with vegetation indices exhibited limited predictive capacity, while adding vegetation indices or raw imagery to agronomic variables did not consistently improve performance. Crop-specific evaluation of the hybrid ViT produced a macro-average R² of 0.1062, compared with a pooled out-of-fold R² of 0.8883, indicating substantial heterogeneity in within-crop predictive performance and an influence of between-crop-yield differences on the overall metric. These findings demonstrate that greater multi-modal complexity does not necessarily improve prediction when structured agronomic variables already provide strong predictive information. With the available data, agronomic LightGBM offered the most favourable balance between predictive performance, computational efficiency and interpretability. Future research should examine parcel-level image extraction, multi-temporal satellite observations, crop-specific or hierarchical models, geographically independent validation and more balanced datasets.
Authors
- Marlon Santiago Viñán-Ludeña (ORCID: https://orcid.org/0000-0003-2692-5899)
- Fernanda Calderón (ORCID: https://orcid.org/0000-0002-5191-7527)
- Luis Roberto Jácome-Galarza
- Miguel Realpe
Institutions
- Universidad de Granada (ES)
- Escuela Superior Politecnica del Litoral (EC)
- Universidad Católica del Norte (CL)
Publication Details
- Journal
- Royal Society Open Science
- Published
- 2026-12-01
- DOI
- https://doi.org/10.1098/rsos.251293
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00