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
- 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
- Agarap A F (2018). Deep learning using rectified linear units (relu). ArXiv Preprint ArXiv:1803.08375. https://doi.org/10.48550/arXiv.1803.08375
- 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
- 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
- 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
- Bjorck N, Gomes C P, Selman B & Weinberger K Q (2018). Understanding batch normalization. Advances in Neural Information Processing Systems 31
- 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
- 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
Rabia Zafar
*
0000-0002-4231-410X
Pakistan
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