Non-Invasive Diagnosis of Nitrogen and Phosphorus in Hydrangea macrophylla at Seedling Stage Using RGB Images
Abstract
1. Introduction
2. Materials and Methods
2.1. Experimental Design and Crop Cultivation
2.2. Image Acquisition and Processing
2.2.1. Image Acquisition
2.2.2. Image Segmentation
2.3. Analytical Reference Measurements
2.3.1. Quality Traits Determination
2.3.2. Calculation of NNI and PNI
2.4. Model Development and Validation
2.4.1. Data Preprocessing
2.4.2. Discriminant Model Construction
2.4.3. Performance Evaluation and Feature Contribution Analysis
3. Results
3.1. Quality Traits
3.1.1. Biomass, N, and P Concentration
3.1.2. SPAD, Soluble Protein, and Soluble Sugar
3.2. Nutrition Index
3.3. Discrimination Model Development and Validation
4. Discussion
4.1. Effects of N and P Fertilization on Quality Traits
4.2. Optimization of Machine Learning Algorithms
4.3. Feasibility of Using RGB to Estimate Nutrition Status
4.4. Practical Application, Limitations, and Future Research
5. Conclusions
- (1)
- RGB image-based phenotypic features combined with ML provide an effective, rapid, and non-destructive method for estimating N and P status in H. macrophylla seedlings, enabling early-stage nutrient monitoring.
- (2)
- Among the models, CNN achieved the highest accuracy for N prediction (82.65%), while SVM performed best for P prediction (83.65%).
- (3)
- Color-related traits were the most informative predictors, particularly B_range, b_range, and aspect_range, outperforming morphological and texture traits.
- (4)
- The approach provides practical guidance for nursery fertilization and promotes sustainable nutrient use through precise early-stage nutrient management.
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Anderson, N.; Weiland, J.; Pharis, J.; Gagné, W.; Janiga, E.; Rosenow, M.J. Comparative Forcing of Hydrangea macrophylla ‘Bailer’ as a Florist’s Hydrangea. Sci. Hortic. 2009, 122, 221–226. [Google Scholar] [CrossRef]
- USDA National Agricultural Statistics Service. Census of Horticultural Specialties. 2019. Available online: https://www.nass.usda.gov/Publications/AgCensus/2017/Online_Resources/Census_of_Horticulture_Specialties/index.php (accessed on 10 January 2026).
- Guo, P.-T.; Shi, Z.; Li, M.-F.; Luo, W.; Cha, Z.-Z. A Robust Method to Estimate Foliar Phosphorus of Rubber Trees with Hyperspectral Reflectance. Ind. Crops Prod. 2018, 126, 1–12. [Google Scholar] [CrossRef]
- Shreckhise, J.H.; Owen, J.S.; Niemiera, A.X. Growth Response of Hydrangea macrophylla and Ilex crenata Cultivars to Low-Phosphorus Controlled-Release Fertilizers. Sci. Hortic. 2019, 246, 578–588. [Google Scholar] [CrossRef]
- Broschat, T.K. Nitrate, Phosphate, and Potassium Leaching from Container-Grown Plants Fertilized by Several Methods. HortScience 1995, 30, 74–77. [Google Scholar] [CrossRef]
- Yi, J.; Krusenbaum, L.; Unger, P.; Hüging, H.; Seidel, S.J.; Schaaf, G.; Gall, J. Deep Learning for Non-Invasive Diagnosis of Nutrient Deficiencies in Sugar Beet Using RGB Images. Sensors 2020, 20, 5893. [Google Scholar] [CrossRef]
- Taha, M.F.; Abdalla, A.; ElMasry, G.; Gouda, M.; Zhou, L.; Zhao, N.; Liang, N.; Niu, Z.; Hassanein, A.; Al-Rejaie, S.; et al. Using Deep Convolutional Neural Network for Image-Based Diagnosis of Nutrient Deficiencies in Plants Grown in Aquaponics. Chemosensors 2022, 10, 45. [Google Scholar] [CrossRef]
- Zhao, B.; Ata-Ul-Karim, S.T.; Liu, Z.; Ning, D.; Xiao, J.; Liu, Z.; Qin, A.; Nan, J.; Duan, A. Development of a Critical Nitrogen Dilution Curve Based on Leaf Dry Matter for Summer Maize. Field Crops Res. 2017, 208, 60–68. [Google Scholar] [CrossRef]
- Li, X.; Ata-UI-Karim, S.T.; Li, Y.; Yuan, F.; Miao, Y.; Yoichiro, K.; Cheng, T.; Tang, L.; Tian, X.; Liu, X.; et al. Advances in the Estimations and Applications of Critical Nitrogen Dilution Curve and Nitrogen Nutrition Index of Major Cereal Crops. A Review. Comput. Electron. Agric. 2022, 197, 106998. [Google Scholar] [CrossRef]
- Zhao, B.; Liu, Z.; Ata-Ul-Karim, S.T.; Xiao, J.; Liu, Z.; Qi, A.; Ning, D.; Nan, J.; Duan, A. Rapid and Nondestructive Estimation of the Nitrogen Nutrition Index in Winter Barley Using Chlorophyll Measurements. Field Crops Res. 2016, 185, 59–68. [Google Scholar] [CrossRef]
- Liebisch, F.; Bünemann, E.K.; Huguenin-Elie, O.; Jeangros, B.; Frossard, E.; Oberson, A. Plant Phosphorus Nutrition Indicators Evaluated in Agricultural Grasslands Managed at Different Intensities. Eur. J. Agron. 2013, 44, 67–77. [Google Scholar] [CrossRef]
- Jiang, F.; Lu, Y.; Chen, Y.; Cai, D.; Li, G. Image Recognition of Four Rice Leaf Diseases Based on Deep Learning and Support Vector Machine. Comput. Electron. Agric. 2020, 179, 105824. [Google Scholar] [CrossRef]
- Pagola, M.; Ortiz, R.; Irigoyen, I.; Bustince, H.; Barrenechea, E.; Aparicio-Tejo, P.; Lamsfus, C.; Lasa, B. New Method to Assess Barley Nitrogen Nutrition Status Based on Image Colour Analysis: Comparison with SPAD-502. Comput. Electron. Agric. 2009, 65, 213–218. [Google Scholar] [CrossRef]
- Sun, Y.; Tong, C.; He, S.; Wang, K.; Chen, L. Identification of Nitrogen, Phosphorus, and Potassium Deficiencies Based on Temporal Dynamics of Leaf Morphology and Color. Sustainability 2018, 10, 762. [Google Scholar] [CrossRef]
- Chen, S.; Qin, S.; Wang, Y.; Ma, L.; Lv, X. Smartphone-Based Estimation of Cotton Leaf Nitrogen: A Learning Approach with Multi-Color Space Fusion. Agronomy 2025, 15, 2330. [Google Scholar] [CrossRef]
- Rahadiyan, D.; Hartati, S.; Wahyono; Nugroho, A.P. Feature Aggregation for Nutrient Deficiency Identification in Chili Based on Machine Learning. Artif. Intell. Agric. 2023, 8, 77–90. [Google Scholar] [CrossRef]
- Xiong, X.; Zhang, J.; Guo, D.; Chang, L.; Huang, D. Non-Invasive Sensing of Nitrogen in Plant Using Digital Images and Machine Learning for Brassica Campestris Ssp. Chinensis L. Sensors 2019, 19, 2448. [Google Scholar] [CrossRef]
- Liu, Z.-Y.; Qi, J.-G.; Wang, N.-N.; Zhu, Z.-R.; Luo, J.; Liu, L.-J.; Tang, J.; Cheng, J.-A. Hyperspectral Discrimination of Foliar Biotic Damages in Rice Using Principal Component Analysis and Probabilistic Neural Network. Precis. Agric. 2018, 19, 973–991. [Google Scholar] [CrossRef]
- Senan, N.; Aamir, M.; Ibrahim, R.; Taujuddin, N.S.A.M.; Wan, W.H.N. An Efficient Convolutional Neural Network for Paddy Leaf Disease and Pest Classification. Int. J. Adv. Comput. Sci. Appl. 2020, 11, 116–122. [Google Scholar] [CrossRef]
- Guo, D.; Juan, J.; Chang, L.; Zhang, J.; Huang, D. Discrimination of Plant Root Zone Water Status in Greenhouse Production Based on Phenotyping and Machine Learning Techniques. Sci. Rep. 2017, 7, 8303. [Google Scholar] [CrossRef] [PubMed]
- Haralick, R.M.; Shanmugam, K.; Dinstein, I. Textural Features for Image Classification. IEEE Trans. Syst. Man Cybern. 1973, SMC-3, 610–621. [Google Scholar] [CrossRef]
- Wang, X.; Hu, Y.; Liaquat, F.; Zhang, X.; Ye, K.; Qin, J.; Liu, Q. Effects of Nitrogen Exponential Fertilization on Growth and Nutrient Concentration of Hydrangea macrophylla Seedlings. Phyton 2022, 91, 395–407. [Google Scholar] [CrossRef]
- Li, T.; Zhu, Z.; Cui, J.; Chen, J.; Shi, X.; Zhao, X.; Jiang, M.; Zhang, Y.; Wang, W.; Wang, H. Monitoring of Leaf Nitrogen Content of Winter Wheat Using Multi-Angle Hyperspectral Data. Int. J. Remote Sens. 2021, 42, 4672–4692. [Google Scholar] [CrossRef]
- Zhang, Y.; Wang, T.; Li, Z.; Wang, T.; Cao, N. Based on Machine Learning Algorithms for Estimating Leaf Phosphorus Concentration of Rice Using Optimized Spectral Indices and Continuous Wavelet Transform. Front. Plant Sci. 2023, 14, 1185915. [Google Scholar] [CrossRef]
- Justes, E.; Mary, B.; Meynard, J.-M.; Machet, J.-M.; Thelier-Huche, L. Determination of a Critical Nitrogen Dilution Curve for Winter Wheat Crops. Ann. Bot. 1994, 74, 397–407. [Google Scholar] [CrossRef]
- Cadot, S.; Bélanger, G.; Ziadi, N.; Morel, C.; Sinaj, S. Critical Plant and Soil Phosphorus for Wheat, Maize, and Rapeseed after 44 Years of P Fertilization. Nutr. Cycl. Agroecosyst. 2018, 112, 417–433. [Google Scholar] [CrossRef]
- Lemaire, G.; van Oosterom, E.; Sheehy, J.; Jeuffroy, M.H.; 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, 91–106. [Google Scholar] [CrossRef]
- Cilia, C.; Panigada, C.; Rossini, M.; Meroni, M.; Busetto, L.; Amaducci, S.; Boschetti, M.; Picchi, V.; Colombo, R. Nitrogen Status Assessment for Variable Rate Fertilization in Maize through Hyperspectral Imagery. Remote Sens. 2014, 6, 6549–6565. [Google Scholar] [CrossRef]
- Xia, T.; Miao, Y.; Wu, D.; Shao, H.; Khosla, R.; Mi, G. Active Optical Sensing of Spring Maize for In-Season Diagnosis of Nitrogen Status Based on Nitrogen Nutrition Index. Remote Sens. 2016, 8, 605. [Google Scholar] [CrossRef]
- Malhotra, H.; Vandana; Sharma, S.; Pandey, R. Phosphorus Nutrition: Plant Growth in Response to Deficiency and Excess. In Plant Nutrients and Abiotic Stress Tolerance; Hasanuzzaman, M., Fujita, M., Oku, H., Nahar, K., Hawrylak-Nowak, B., Eds.; Springer: Singapore, 2018; pp. 171–190. ISBN 978-981-10-9044-8. [Google Scholar]
- Zhang, Y.; Yu, S.; Li, Z.; Chang, T.; Xu, Q.; Xu, H.; Zhang, J. Effects of excessive nitrogen fertilizer and soil moisture deficiency on antioxidant enzyme system and osmotic adjustment in tomato seedlings. Int. J. Agric. Biol. Eng. 2022, 15, 127–134. [Google Scholar] [CrossRef]
- Kraus, H.T.; Warren, S.L.; Bjorkquist, G.J.; Lowder, A.W.; Tchir, C.M.; Walton, K.N. Nitrogen:Phosphorus:Potassium Ratios Affect Production of Two Herbaceous Perennials. HortScience 2011, 46, 776–783. [Google Scholar] [CrossRef]
- Ristvey, A.G.; Lea-Cox, J.D.; Ross, D.S. Nitrogen and Phosphorus Uptake Efficiency and Partitioning of Container-Grown Azalea During Spring Growth. J. Am. Soc. Hortic. Sci. 2007, 132, 563–571. [Google Scholar] [CrossRef]
- Kim, Y.-T.; Ha, S.T.T.; In, B.-C. Development of a Longevity Prediction Model for Cut Roses Using Hyperspectral Imaging and a Convolutional Neural Network. Front. Plant Sci. 2024, 14, 1296473. [Google Scholar] [CrossRef]
- Russell, G.C.; Smith, A.D.; Pittman, U.J. The Effect of Nitrogen and Phosphorus Fertilizers on the Yield and Protein Content of Spring Wheat Grown on Stubble Fields in Southern Alberta. Can. J. Plant Sci. 1958, 38, 139–144. [Google Scholar] [CrossRef]
- Barbedo, J.G.A. Detection of Nutrition Deficiencies in Plants Using Proximal Images and Machine Learning: A Review. Comput. Electron. Agric. 2019, 162, 482–492. [Google Scholar] [CrossRef]
- Ghosal, S.; Blystone, D.; Singh, A.K.; Ganapathysubramanian, B.; Singh, A.; Sarkar, S. An Explainable Deep Machine Vision Framework for Plant Stress Phenotyping. Proc. Natl. Acad. Sci. USA 2018, 115, 4613–4618. [Google Scholar] [CrossRef]
- Azimi, S.; Kaur, T.; Gandhi, T.K. A Deep Learning Approach to Measure Stress Level in Plants Due to Nitrogen Deficiency. Measurement 2021, 173, 108650. [Google Scholar] [CrossRef]
- Mishra, S.; Levengood, H.; Fan, J.; Zhang, C. Plants Under Stress: Exploring Physiological and Molecular Responses to Nitrogen and Phosphorus Deficiency. Plants 2024, 13, 3144. [Google Scholar] [CrossRef]
- Li, H.; He, K.; Zhang, Z.; Hu, Y. Molecular Mechanism of Phosphorous Signaling Inducing Anthocyanin Accumulation in Arabidopsis. Plant Physiol. Biochem. 2023, 196, 121–129. [Google Scholar] [CrossRef]
- Huang, S.; Miao, Y.; Cao, Q.; Yao, Y.; Zhao, G.; Yu, W.; Shen, J.; Yu, K.; Bareth, G. A New Critical Nitrogen Dilution Curve for Rice Nitrogen Status Diagnosis in Northeast China. Pedosphere 2018, 28, 814–822. [Google Scholar] [CrossRef]
- Zhou, L.; Feng, H.; Zhao, W. Plastic Film Mulching Affects the Critical Nitrogen Dilution Curve of Drip-Irrigated Maize. Field Crops Res. 2021, 263, 108055. [Google Scholar] [CrossRef]
- Yao, B.; Wang, X.; Lemaire, G.; Makowski, D.; Cao, Q.; Liu, X.; Liu, L.; Liu, B.; Zhu, Y.; Cao, W.; et al. Uncertainty Analysis of Critical Nitrogen Dilution Curves for Wheat. Eur. J. Agron. 2021, 128, 126315. [Google Scholar] [CrossRef]
- Yuan, Y.; Chen, L.; Li, M.; Wu, N.; Wan, L.; Wang, S. Diagnosis of Nitrogen Nutrition of Rice Based on Image Processing of Visible Light. In Proceedings of the 2016 IEEE International Conference on Functional-Structural Plant Growth Modeling, Simulation, Visualization and Applications (FSPMA), Qingdao, China, 7–11 November 2016; pp. 228–232. [Google Scholar]
- Prey, L.; Von Bloh, M.; Schmidhalter, U. Evaluating RGB Imaging and Multispectral Active and Hyperspectral Passive Sensing for Assessing Early Plant Vigor in Winter Wheat. Sensors 2018, 18, 2931. [Google Scholar] [CrossRef] [PubMed]
- Rorie, R.L.; Purcell, L.C.; Karcher, D.E.; King, C.A. The Assessment of Leaf Nitrogen in Corn from Digital Images. Crop Sci. 2011, 51, 2174–2180. [Google Scholar] [CrossRef]
- Kior, A.; Yudina, L.; Zolin, Y.; Sukhov, V.; Sukhova, E. RGB Imaging as a Tool for Remote Sensing of Characteristics of Terrestrial Plants: A Review. Plants 2024, 13, 1262. [Google Scholar] [CrossRef]







| NO. | Treatment | Each Nutrient Consumption (g·pot−1) | Fertilizing Amount (g·pot−1) | ||||
|---|---|---|---|---|---|---|---|
| N | P2O5 | K2O | Urea | Calcium superphosphate | K2SO4 | ||
| T1 | N0 | 0 | 0.3 | 0.8 | 0 | 2.07 | 1.48 |
| T2 | N1 | 0.4 | 0.3 | 0.8 | 0.86 | 2.07 | 1.48 |
| T3 | N2 and P2 | 0.8 | 0.3 | 0.8 | 1.72 | 2.07 | 1.48 |
| T4 | N3 | 1.2 | 0.3 | 0.8 | 2.58 | 2.07 | 1.48 |
| T5 | P0 | 0.8 | 0 | 0.8 | 1.72 | 0 | 1.48 |
| T6 | P1 | 0.8 | 0.15 | 0.8 | 1.72 | 1.03 | 1.48 |
| T7 | P3 | 0.8 | 0.45 | 0.8 | 1.72 | 3.10 | 1.48 |
| T8 | CK | 0 | 0 | 0.8 | 0 | 0 | 1.48 |
| Treatments | SPAD | Soluble Sugar (mg g−1FW) | Soluble Protein (mg g−1FW) | |
|---|---|---|---|---|
| N-level | N0 | 29.38 ± 4.34 c | 5.93 ± 1.17 a | 1.03 ± 0.02 b |
| N1 | 47.23 ± 4.72 a | 6.52 ± 0.91 a | 3.06 ± 0.24 a | |
| N2 | 39.94 ± 3.60 b | 5.70 ± 0.44 a | 2.80 ± 0.21 a | |
| N3 | 32.24 ± 6.57 c | 7.15 ± 0.01 a | 2.79 ± 0.01 a | |
| P-level | P0 | 38.95 ± 3.65 b | 5.88 ± 0.64 ab | 2.98 ± 0.45 b |
| P1 | 39.78 ± 4.31 b | 6.31 ± 0.64 ab | 2.26 ± 0.05 c | |
| P2 | 39.94 ± 3.60 b | 5.70 ± 0.44 b | 2.80 ± 0.21 b | |
| P3 | 46.17 ± 3.75 a | 8.06 ± 2.08 a | 4.99 ± 0.02 a | |
| Index | Treatments | G1 | G2 | G3 |
|---|---|---|---|---|
| NNI | N0 | 0.77 | 0.39 | 0.39 |
| N1 | 1.54 | 1.30 | 0.98 | |
| N2 | 1.99 | 0.92 | 0.98 | |
| N3 | 1.83 | 0.88 | — | |
| PNI | P0 | 0.67 | 0.70 | 0.66 |
| P1 | 0.71 | 0.72 | 0.71 | |
| P2 | 1.33 | 0.98 | 0.97 | |
| P3 | 0.85 | 1.16 | 1.07 |
| Model | N | P | ||||
|---|---|---|---|---|---|---|
| CNN | Precision | Recall | F1-Score | Precision | Recall | F1-Score |
| deficient | 0.8485 | 0.7568 | 0.8000 | 0.8276 | 0.6316 | 0.7164 |
| optimal | 0.7941 | 0.7714 | 0.7826 | 0.7500 | 0.7742 | 0.7619 |
| surplus | 0.8387 | 1.0000 | 0.9123 | 0.8140 | 1.0000 | 0.8974 |
| SVM | ||||||
| deficient | 0.8065 | 0.6757 | 0.7353 | 0.7692 | 0.7895 | 0.7792 |
| optimal | 0.7297 | 0.7714 | 0.7500 | 0.7333 | 0.7097 | 0.7213 |
| surplus | 0.8333 | 0.9615 | 0.8929 | 1.0000 | 1.0000 | 1.0000 |
| RF | ||||||
| deficient | 0.7812 | 0.6757 | 0.7246 | 0.7647 | 0.6842 | 0.7222 |
| optimal | 0.7857 | 0.6286 | 0.6984 | 0.6364 | 0.6774 | 0.6562 |
| surplus | 0.6842 | 1.0000 | 0.8125 | 0.9459 | 1.0000 | 0.9722 |
| PNN | ||||||
| deficient | 0.7838 | 0.7838 | 0.7838 | 0.7188 | 0.6053 | 0.6571 |
| optimal | 0.7143 | 0.5714 | 0.6349 | 0.6111 | 0.7097 | 0.6567 |
| surplus | 0.7879 | 1.0000 | 0.8814 | 0.9722 | 1.0000 | 0.9859 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Yang, J.; Liu, Q.; Liu, Z.; Xing, Q.; Qin, J. Non-Invasive Diagnosis of Nitrogen and Phosphorus in Hydrangea macrophylla at Seedling Stage Using RGB Images. Agronomy 2026, 16, 373. https://doi.org/10.3390/agronomy16030373
Yang J, Liu Q, Liu Z, Xing Q, Qin J. Non-Invasive Diagnosis of Nitrogen and Phosphorus in Hydrangea macrophylla at Seedling Stage Using RGB Images. Agronomy. 2026; 16(3):373. https://doi.org/10.3390/agronomy16030373
Chicago/Turabian StyleYang, Jun, Qunlu Liu, Zhao Liu, Qiang Xing, and Jun Qin. 2026. "Non-Invasive Diagnosis of Nitrogen and Phosphorus in Hydrangea macrophylla at Seedling Stage Using RGB Images" Agronomy 16, no. 3: 373. https://doi.org/10.3390/agronomy16030373
APA StyleYang, J., Liu, Q., Liu, Z., Xing, Q., & Qin, J. (2026). Non-Invasive Diagnosis of Nitrogen and Phosphorus in Hydrangea macrophylla at Seedling Stage Using RGB Images. Agronomy, 16(3), 373. https://doi.org/10.3390/agronomy16030373

