Scinovex
article Open Access

UAV-based multispectral imaging and machine learning for early detection of nitrogen deficiency in maize

International Journal of Agriculture and Food Science · 2026 · Vol. 8(1) · pp. 363–368
Oluwafemi Adeyemi BankoleFatima Bello UsmanChukwuemeka Nwosu Okafor

Abstract

Nitrogen (N) deficiency is among the most prevalent nutritional constraints limiting maize productivity across sub-Saharan Africa, yet its early and site-specific detection remains technically challenging using conventional ground-based methods. This study investigated the efficacy of unmanned aerial vehicle (UAV)-based multispectral imaging combined with machine learning algorithms for the early detection and spatial mapping of N deficiency in maize (Zea mays L.) at three critical growth stages. A field experiment was established in Oyo State, Nigeria, with five nitrogen treatment levels (N₀: 0, N₁: 30, N₂: 60, N₃: 90, N₄: 120 kg N ha⁻¹) in a randomized complete block design with three replications. A DJI Phantom 4 Multispectral UAV was deployed at V4, V8, and VT/R1 growth stages (60 m altitude, 80% image overlap) to acquire five-band imagery (blue, green, red, red-edge, near-infrared), from which eight spectral vegetation indices were derived. Three machine learning classifiers Random Forest (RF), Support Vector Machine (SVM), and Convolutional Neural Network (CNN) were trained and validated against destructive leaf N analyses as ground truth. The CNN model achieved the highest overall accuracy (91.2%) and F1-score (0.89), followed by RF (87.3%) and SVM (84.6%). The red-edge normalized difference vegetation index (NDRE) exhibited the strongest correlation with leaf N content across all growth stages (r = 0.93 at VT/R1). Treatment N₂ (60 kg N ha⁻¹) was classified as the critical threshold below which spectral-reflectance-based N deficiency signatures became detectable at the V4 stage with 88.4% accuracy. These findings demonstrate the practical potential of UAV multispectral imaging coupled with deep learning for scalable, early-stage precision nitrogen management in smallholder maize production systems across West Africa.

Full Text

Tables and figures are in the full-text PDF.

Introduction

Maize (Zea mays L.) is the most widely grown cereal crop in sub-Saharan Africa by total production volume and serves as the primary caloric staple for over 900 million people across the continent [1] . Nitrogen is the most limiting mineral nutrient for maize productivity globally, with crop demand peaking between the V6 and VT growth stages when canopy nitrogen concentration is highest and leaf area expansion is most rapid [2] ; however, smallholder farmers across West Africa characteristically apply nitrogen at rates well below crop requirement or not at all owing to limited economic access to fertilizers, leading to chronic N deficiency that suppresses yield potential by 30-55% [3] . Conversely, economically advantaged producers and medium-scale commercial farms frequently over-apply nitrogen as insurance against deficiency, incurring unnecessary input costs, groundwater pollution through nitrate leaching, and contributions to nitrous oxide (N₂O) emissions [4] . In both scenarios, the core problem is the inability to detect and spatially quantify nitrogen deficiency at early growth stages, before visible chlorosis symptoms are obvious to the naked eye, limiting the window for corrective top-dressing applications [5] . Conventional approaches to N status assessment including SPAD chlorophyll meters, tissue sampling, and laboratory spectrophotometry are destructive, labour-intensive, spatially limited, and economically impractical at the field scale, particularly for heterogeneous landscapes [5,6] . Unmanned aerial vehicles (UAVs) equipped with multispectral sensors offer a transformative alternative, enabling rapid, non-destructive, high-resolution spectral data acquisition over entire fields at a fraction of the labour cost of ground-based surveys [7,8] . Spectral vegetation indices derived from UAV imagery particularly those incorporating red-edge and near-infrared wavelengths sensitive to leaf chlorophyll and mesophyll structure have demonstrated strong correlations with crop nitrogen status in controlled research settings [9,10] ; however, the translation of spectral data to accurate binary or multi-class deficiency classifications under West African field conditions, characterized by mixed soil backgrounds and variable illumination, requires robust machine learning frameworks [11, 12, 13] . Comparative evaluations of Random Forest, Support Vector Machine, and deep Convolutional Neural Network classifiers for UAV-based nutrient deficiency detection in maize under tropical conditions remain scarce, creating a methodological knowledge gap of high practical importance [14,15] . The present study was therefore designed to evaluate the performance of UAV-based multispectral imaging combined with three machine learning algorithms for the early detection of nitrogen deficiency in maize across three critical growth stages in Oyo State, Nigeria, hypothesizing that CNN-based deep learning models would significantly outperform conventional classifiers in deficiency detection accuracy under heterogeneous field conditions [16,17,18,19,20] .

Materials and Methods

Materials

The experiment was conducted at the University of Ibadan ). An Apogee SQ-500 quantum sensor provided simultaneous downwelling irradiance measurements for radiometric correction. Ground truth leaf N concentrations (%) were determined by Kjeldahl digestion [2] from destructively harvested ear leaf samples collected concurrently with each UAV flight. A SPAD-502Plus chlorophyll meter (Konica Minolta, Tokyo, Japan) was used for rapid SPAD value determination at 30 sampling points per plot as auxiliary ground truth.

Methods

A randomized complete block design (RCBD) with five N treatment levels (N₀: 0, N₁: 30, N₂: 60, N₃: 90, N₄: 120 kg N ha⁻¹ as urea, applied in two equal split doses at sowing and V6 stage) and three replications (15 plots, each 6 m × 8 m) was implemented with uniform phosphorus (60 kg P₂O₅ ha⁻¹ as triple superphosphate) and potassium (40 kg K₂O ha⁻¹ as muriate of potash) applied basally to all plots. UAV flights were conducted at three growth stages: V4 (early vegetative), V8 (mid-vegetative), and VT/R1 (tassel/silk emergence) at 60 m above ground level (AGL) with 80% forward and 80% lateral image overlap, producing a ground sampling distance (GSD) of 4.2 cm px⁻¹. Agisoft Metashape Pro (v.1.8.5) was used for photogrammetric reconstruction and orthomosaic generation. Eight spectral vegetation indices were computed: NDVI [13] , NDRE [9] , GNDVI [10] , SAVI [16] , MSAVI2, RVI, OSAVI, and CIRE. Canopy reflectance data and computed indices were extracted for each plot using zonal statistics in QGIS 3.28. Machine learning classifiers Random Forest (RF: 200 trees, mtry = √p) [17] , Support Vector Machine (SVM: RBF kernel, gridsearched C and γ) [18] , and Convolutional Neural Network (CNN: five convolutional + two fully-connected layers, trained 100 epochs, learning rate 0.001, batch size 16) [19] were trained on 70% of the data and validated on 30% using stratified k-fold (k = 5) cross-validation. Performance was evaluated by overall accuracy, Kappa coefficient (κ), F1score, precision, and recall. Feature importance was extracted from the RF model using mean decrease in Gini impurity. All statistical analyses, including ANOVA, Pearson correlation, and receiver operating characteristic (ROC) curve generation, were performed in R version 4.3.2 (R Core Team, 2023) and Python 3.11 (scikit-learn, TensorFlow 2.13) [14,20] . [9, 10, 13, 16] .

Results

All spectral vegetation indices and leaf N concentrations were significantly (p < 0.01) differentiated by N treatment level at VT/R1 stage (Table 1). NDRE exhibited the steepest discrimination gradient between adjacent N treatment levels, increasing by 147% from N₀ (0.19) to N₄ (0.47), compared with 86% for NDVI (0.42 to 0.78), confirming the superior sensitivity of red-edge wavelengths to leaf chlorophyll content and canopy N status [9] . Leaf N concentration ranged from 1.82% (N₀) to 3.48% (N₄), with statistically significant differences between all treatment pairs, validating the N gradient established by the experimental design [2,3] . SPAD values mirrored the leaf N trend and were strongly correlated with NDRE (r = 0.94, p < 0.001) and GNDVI (r = 0.91, p < 0.001) at VT/R1, confirming the validity of spectral proxies for ground truth N assessment [10] . [9,10,11,13] .

Correlation analysis confirmed that spectral sensitivity to leaf N improved with advancing growth stage across all indices (Table 2). NDRE consistently achieved the highest correlations with leaf N at each stage (r = 0.81 at V4, 0.89 at V8, 0.93 at VT/R1), confirming it as the most informative single spectral predictor of maize canopy nitrogen status [9,11] . CIRE (chlorophyll index red-edge) was the second most correlated index (r = 0.88 overall), while SAVI exhibited the weakest overall correlation (r = 0.79), attributed to residual soil background contamination in plots with low canopy cover under N₀ and N₁ treatments [16] . All correlations were significant (p < 0.01) and strengthened appreciably from V4 to VT/R1 as canopy closure reduced soil background interference [13] . [14,15,17,18,19] . Across all growth stages and metrics, the CNN model consistently outperformed both RF and SVM classifiers (Table 3). At VT/R1, CNN achieved the highest overall accuracy (91.2%), Kappa coefficient (0.89), and F1-score (0.89), significantly exceeding RF (87.3%, 0.84, 0.86) and SVM (84.6%, 0.81, 0.83). Detection accuracy improved with advancing growth stage for all models, with V4 accuracies (CNN: 86.4%, RF: 81.3%, SVM: 78.6%) substantially lower than VT/R1 values, reflecting greater spectral contrast at later canopy development stages when N deficiency symptoms are more fully expressed in canopy reflectance [5,6,7] . The CNN model demonstrated the narrowest accuracy gap between V4 (86.4%) and VT/R1 (91.2%), confirming the advantage of deep learning in extracting subtle spatial texture features from multispectral imagery at early growth stages when conventional classifiers perform poorly [19,20] . RF feature importance analysis ranked NDRE (33.2%), CIRE (21.8%), and GNDVI (17.4%) as the three most informative variables for N deficiency classification, consistent with the correlation analysis results [17] .

Discussion

The superior performance of the CNN classifier across all growth stages and evaluation metrics confirms the value of deep learning architectures for agricultural nutrient deficiency detection from UAV multispectral imagery, consistent with the general trend reported in precision agriculture remote sensing literature [15,19] . CNN's ability to learn spatial hierarchical features from multispectral image patches combining spectral with spatial texture information provides inherent advantages over feature-engineeringdependent classifiers such as RF and SVM when applied to heterogeneous field conditions with variable soil backgrounds and partial canopy closure [14,19] . The CNN accuracy at V4 (86.4%) is particularly notable given the limited canopy development at this early stage, and its practical significance lies in enabling remedial top-dressing nitrogen applications before the critical V6-V8 demand period, thereby avoiding irreversible yield penalties associated with early N starvation [2,3,5] . The strong overall correlation between NDRE and leaf N content (r = 0.90) replicates and extends the findings of Gitelson and Merzlyak [9] , who first demonstrated the superior sensitivity of rededge reflectance to chlorophyll concentrations compared with NDVI, a sensitivity attributable to the steep reflectance gradient at the chlorophyll absorption edge (700-720 nm) that responds quantitatively to canopy nitrogen changes well before visible chlorosis develops [9,10] . The V4-stage detection capability of 86.4% accuracy with CNN exceeds the 78-82% reported by Candiago et al. [8] for multispectral UAV classification in Mediterranean cereal crops, demonstrating that CNN architectures coupled with fineresolution multispectral imagery can achieve operationally useful accuracy under tropical West African field conditions. The increasing spectral detectability of N deficiency from V4 to VT/R1 stage for all classifiers reflects the progressive canopy closure and reduced soil background contamination that typically accompanies maize canopy development, as demonstrated by the progressive improvement in NDRE sensitivity documented by Haboudane et al. [11] . The finding that RF feature importance ranked NDRE, CIRE, and GNDVI as the three most predictive spectral indices is consistent with their established physiological basis all three are sensitive to chlorophyll-related changes in leaf and canopy optical properties [9,10,11] and provides a rationale for sensor optimization in future lower-cost UAV systems that cannot accommodate the full five-band spectral configuration [7,12] .

Conclusion

This study conclusively demonstrates that UAV-based multispectral imaging combined with Convolutional Neural Network classification provides a technically robust and practically deployable framework for the early detection and spatial mapping of nitrogen deficiency in maize under West African tropical field conditions. The CNN model achieved overall detection accuracies of 86.4% and 91.2% at V4 and VT/R1 growth stages, respectively substantially outperforming the Random Forest and Support Vector Machine alternatives and the red-edge-based NDRE index demonstrated superior correlation with leaf nitrogen content (r = 0.93 at VT/R1) compared with all other spectral indices evaluated, validating its primacy as the reference spectral predictor for canopy N status in maize. The technical capacity to detect N deficiency with near-90% accuracy as early as the V4 growth stage opens a practically important window for corrective variable-rate nitrogen top-dressing before irreversible growth impacts occur, which represents a significant advance over conventional agronomist-based scouting that rarely achieves sufficiently early and spatially comprehensive deficiency detection. From a practical adoption perspective, it is recommended that Nigerian and West African agricultural extension agencies and commercial maize growers invest in entry-level multispectral UAV systems prioritized for platforms with at least red-edge and NIR bands and develop state-based UAV service cooperatives to amortize equipment costs across multiple smallholder users. A UAV-based early N screening at the V4 stage, followed by a confirmatory flight at V8, with variable-rate urea top-dressing calibrated against NDRE thresholds established in this study (NDRE < 0.26 indicating high-priority intervention zones), is proposed as a practical decision-support protocol for precision nitrogen management. Extension programs should prioritize training agronomic field officers in UAV flight operations and spatial data interpretation using open-source platforms, and academic institutions in the region should establish collaborative UAV service hubs at university farms to support both research and commercial advisory functions. Future investigations should develop crop-specific NDREleaf N calibration functions validated across multiple soil types and maize varieties prevalent in Nigeria, extend the CNN framework to simultaneous multi-nutrient deficiency detection, and evaluate the economic returns of UAVguided variable-rate nitrogen application relative to conventional blanket fertilization across a range of farm sizes and agroecological zones in West Africa.

References

  1. Shiferaw B, Prasanna BM, Hellin J, Bänziger M. Crops that feed the world 6. Past successes and future challenges to the role played by maize in global food security. Food Secur. 2011;3(3):307-327.
  2. Bänziger M, Edmeades GO, Beck D, Bellon M. Breeding for drought and nitrogen stress tolerance in maize: from theory to practice. Mexico (DF): CIMMYT; 2000.
  3. Sanginga N, Woomer PL, editors. Integrated soil fertility management in Africa: principles, practices and developmental process. Nairobi: TSBF-CIAT; 2009.
  4. Tilman D, Cassman KG, Matson PA, Naylor R, Polasky S. Agricultural sustainability and intensive production practices. Nature. 2002;418(6898):671-677.
  5. Li X, Chen Z, Teng M, Geng S, Wu B, Wang P. Rapid diagnosis of nitrogen use efficiency and detection of nitrogen-deficient areas in paddy rice using unmanned aerial vehicle-based remote sensing. Agronomy. 2021;11(2):207.
  6. Lemaire G, van Oosterom E, Sheehy J, Jeuffroy MH, Massignam A, Rossato L. Is crop N demand more closely related to dry matter accumulation or leaf area expansion during vegetative growth? Field Crops Res. 2007;100(1):91-106.
  7. Zhang C, Kovacs JM. The application of small unmanned aerial systems for precision agriculture: a review. Precis Agric. 2012;13(6):693-712.
  8. Candiago S, Remondino F, De Giglio M, Dubbini M, Gattelli M. Evaluating multispectral images and vegetation indices for precision farming applications from UAV images. Remote Sens. 2015;7(4):40264047.
  9. Gitelson AA, Merzlyak MN. Remote estimation of chlorophyll content in higher plant leaves. Int J Remote Sens. 1997;18(12):2691-2697.
  10. Gitelson AA, Kaufman YJ, Merzlyak MN. Use of a green channel in remote sensing of global vegetation from EOS-MODIS. Remote Sens Environ. 1996;58(3):289-298.
  11. Haboudane D, Miller JR, Pattey E, Zarco-Tejada PJ, Strachan IB. Hyperspectral vegetation indices and novel algorithms for predicting green LAI of crop canopies. Remote Sens Environ. 2004;90(3):337-352.
  12. Zheng H, Cheng T, Li D, Zhou X, Yao X, Tian Y, et al. Evaluation of RGB, color-infrared and multispectral images acquired from unmanned aerial systems for the estimation of nitrogen accumulation in rice. Remote Sens. 2018;10(6):824.
  13. Rouse JW, Haas RH, Schell JA, Deering DW. Monitoring vegetation systems in the Great Plains with ERTS. In: Freden SC, Mercanti EP, Becker MA, editors. Third Earth Resources Technology Satellite-1 Symposium. Washington (DC): NASA; 1974. p. 309317.
  14. Liakos KG, Busato P, Moshou D, Pearson S, Bochtis D. Machine learning in agriculture: a review. Sensors. 2018;18(8):2674.
  15. Kamilaris A, Prenafeta-Boldú FX. Deep learning in agriculture: a survey. Comput Electron Agric. 2018;147:70-90.
  16. Qi J, Chehbouni A, Huete AR, Kerr YH, Sorooshian S. A modified soil adjusted vegetation index. Remote Sens Environ. 1994;48(2):119-126.
  17. Breiman L. Random forests. Mach Learn. 2001;45(1):5-32.
  18. Cortes C, Vapnik V. Support-vector networks. Mach Learn. 1995;20(3):273-297.
  19. LeCun Y, Bengio Y, Hinton G. Deep learning. Nature. 2015;521(7553):436-444.
  20. Chlingaryan A, Sukkarieh S, Whelan B. Machine learning approaches for crop yield prediction and nitrogen status estimation in precision agriculture: a review. Comput Electron Agric. 2018;151:61-69.
Remote Sensing in AgricultureSmart Agriculture and AISpectroscopy and Chemometric Analysesmaizesupport vector machinenitrogen deficiencyprecision nitrogen managementsub-Saharan Africarandom forestvegetation indicesearly detection
Citations
0
FWCI
0.00
field-weighted impact
References
0
Percentile
54%
vs. same field & year
Citation Network

How this paper connects to the literature. Drag to explore, click any node to open that paper.