Research Article

Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning

Volume: 32 Number: 3 July 28, 2026
  • Rabia Zafar *
  • Muhammad Shahid Farid
  • Muhammad Hassan Khan
  • Rashid Mahmood

Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning

Abstract

The integration of digitization and automation into traditional farming has transformed agriculture, enhanced productivity and delivered significant economic benefits. Recent advances in deep learning (DL) provide new opportunities for automating crop monitoring and nutrient management. This paper proposes a framework for estimating nitrogen content in maize leaves using RGB images captured under field conditions. A UNet-based segmentation model isolates leaves from complex, uncontrolled backgrounds, and a convolutional neural network (CNN) extracts discriminative features. These features are evaluated using three regression models, Support Vector Regressor (SVR), Random Forest Regressor (RFR), and Gradient Boosting Regressor (GBR), to predict SPAD values, ranges from 24.9 to 59.5, an indirect measure of chlorophyll and nitrogen content. Experiments conducted on six maize varieties (three open-pollinated and three hybrid) across four growth stages yielded an overall lowest mean absolute error (MAE) of 3.56 and a correlation coefficient of 0.76. Aggregating results by dataset type, the best-performing method achieved an average MAE of 3.56 for OPV and 4.04 for Hybrid varieties. Further analysis by individual variety type revealed that RFR was most effective, attaining the lowest MAEs of 1.34 and 1.47 for OPV and Hybrid varieties, respectively. A second contribution is MaizeRGB, a comprehensive, publicly available dataset containing RGB images and ground-truth SPAD measurements for multiple maize varieties, nitrogen levels, and growth stages. The proposed approach demonstrates high accuracy, robustness to variable field conditions, and strong potential for low-cost, scalable nitrogen management in precision agriculture. 

Keywords

References

  1. Adhikari R, Li C, Kalbaugh K & Nemali K (2020). A low-cost smartphone controlled sensor based on image analysis for estimating whole plant tissue nitrogen (N) content in floriculture crops. Computers and Electronics in Agriculture 169: 105173. https://doi.org/10.1016/j.compag.2019.105173
  2. Agarap A F (2018). Deep learning using rectified linear units (relu). ArXiv Preprint ArXiv:1803.08375. https://doi.org/10.48550/arXiv.1803.08375
  3. Alpsalaz F, Özüpak Y, Aslan E & Uzel H (2025). Classification of maize leaf diseases with deep learning: Performance evaluation of the proposed model and use of explicable artificial intelligence. Chemometrics and Intelligent Laboratory Systems 105412. https://doi.org/10.1016/j.chemolab.2025.105412
  4. Altuntaş Y, Elkoca E, & Kodaz S (2024). Impact of Mesorhizobium ciceri Inoculation on Symbiotic Nitrogen Fixation of Various Chickpea (Cicer arietinum L.) Cultivars. Journal of Agricultural Production 5(4): 255–264. https://doi.org/10.56430/japro.1565531
  5. Awad M, Khanna R, Awad M & Khanna R (2015). Support vector regression. Efficient Learning Machines: Theories, Concepts, and Applications for Engineers and System Designers pp. 67–80
  6. Bjorck N, Gomes C P, Selman B & Weinberger K Q (2018). Understanding batch normalization. Advances in Neural Information Processing Systems 31
  7. Candiani G, Tagliabue G, Panigada C, Verrelst J, Picchi V, Rivera Caicedo J P & Boschetti M (2022). Evaluation of hybrid models to estimate chlorophyll and nitrogen content of maize crops in the framework of the future CHIME mission. Remote Sensing 14(8): 1792. https://doi.org/10.3390/rs14081792
  8. Colorado J D, Cera-Bornacelli N, Caldas J S, Petro E, Rebolledo M C, Cuellar D & others (2020). Estimation of nitrogen in rice crops from UAV-captured images. Remote Sens 12: 3396. https://doi.org/10.3390/rs12203396

Details

Primary Language

English

Subjects

Agricultural Biotechnology Diagnostics, Agronomy, Soil Sciences and Plant Nutrition (Other)

Journal Section

Research Article

Authors

Muhammad Shahid Farid This is me
0000-0002-8384-2830
Pakistan

Muhammad Hassan Khan This is me
0000-0002-6145-5848
Pakistan

Rashid Mahmood This is me
0000-0002-5972-6223
Pakistan

Publication Date

July 28, 2026

Submission Date

August 12, 2025

Acceptance Date

February 24, 2026

Published in Issue

Year 2026 Volume: 32 Number: 3

APA
Zafar, R., Farid, M. S., Khan, M. H., & Mahmood, R. (2026). Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning. Journal of Agricultural Sciences, 32(3), 669-681. https://doi.org/10.15832/ankutbd.1763304
AMA
1.Zafar R, Farid MS, Khan MH, Mahmood R. Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning. J Agr Sci-Tarim Bili. 2026;32(3):669-681. doi:10.15832/ankutbd.1763304
Chicago
Zafar, Rabia, Muhammad Shahid Farid, Muhammad Hassan Khan, and Rashid Mahmood. 2026. “Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning”. Journal of Agricultural Sciences 32 (3): 669-81. https://doi.org/10.15832/ankutbd.1763304.
EndNote
Zafar R, Farid MS, Khan MH, Mahmood R (July 1, 2026) Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning. Journal of Agricultural Sciences 32 3 669–681.
IEEE
[1]R. Zafar, M. S. Farid, M. H. Khan, and R. Mahmood, “Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning”, J Agr Sci-Tarim Bili, vol. 32, no. 3, pp. 669–681, July 2026, doi: 10.15832/ankutbd.1763304.
ISNAD
Zafar, Rabia - Farid, Muhammad Shahid - Khan, Muhammad Hassan - Mahmood, Rashid. “Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning”. Journal of Agricultural Sciences 32/3 (July 1, 2026): 669-681. https://doi.org/10.15832/ankutbd.1763304.
JAMA
1.Zafar R, Farid MS, Khan MH, Mahmood R. Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning. J Agr Sci-Tarim Bili. 2026;32:669–681.
MLA
Zafar, Rabia, et al. “Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning”. Journal of Agricultural Sciences, vol. 32, no. 3, July 2026, pp. 669-81, doi:10.15832/ankutbd.1763304.
Vancouver
1.Rabia Zafar, Muhammad Shahid Farid, Muhammad Hassan Khan, Rashid Mahmood. Nitrogen Estimation in Maize Using RGB Leaf Image Analysis and Deep Learning. J Agr Sci-Tarim Bili. 2026 Jul. 1;32(3):669-81. doi:10.15832/ankutbd.1763304

Journal of Agricultural Sciences is published as open access journal. All articles are published under the terms of the Creative Commons Attribution License (CC BY).