Legume Research

Legume Research cover
Volume 48 · 2025/01/07

Analysis of Phosphorus Content in Chickpea Samples using Near-infrared Spectroscopy and Machine Learning Models

Madhu Bala Priyadarshi
Rakesh Bhardwaj
100 Views

Submitted

2024/04/08

First Online

2025/01/07

doi

10.18805/LR-5331

Cite article - Madhu Bala Priyadarshi, Rakesh Bhardwaj. (2025). Analysis of Phosphorus Content in Chickpea Samples using Near-infrared Spectroscopy and Machine Learning Models. Legume Research. 48: 145–153. doi: 10.18805/LR-5331

Abstract

Background: This study aimed to develop and evaluate a rapid, non-destructive method for predicting phosphorus content in chickpea flour using near-infrared (NIR) spectroscopy combined with machine learning techniques. The research sought to identify the most effective wavelength range and modeling approach for accurate phosphorus content estimation.

Methods: NIR spectra was collected from 237 chickpea flour samples, of which 132 showed detectable phosphorus reflectance. The dataset underwent preprocessing techniques including noise elimination, data reduction and scatter correction. The interval Partial Least Squares ( i PLS) algorithm was employed to identify the optimal wavelength range for phosphorus prediction. Five machine learning models-linear regression (LR), support vector regression (SVR), random forest (RF), decision tree regression (DTR) and neural network (NN)-were developed and compared using a dataset split into calibration (80%) and validation (20%) sets. Principal component analysis (PCA) was used for dimensionality reduction.

Result: The most effective wavelength range for phosphorus prediction was identified as 1520-1658 nm. The Linear Regression model demonstrated the best performance on the testing data, with an R² of 0.945, Root Mean Square Error (RMSE) of 0.044 and residual standard error (RSE) of 0.045. All models except RF and DTR showed excellent predictive capability (RPD>4.1). The Decision Tree Regression model performed best on the validation set, with an R² of 0.875 and RMSE of 0.079. The study confirmed the potential of NIR spectroscopy combined with machine learning as a rapid and accurate method for phosphorus content prediction in chickpea flour.

References

  1. Chambers, J.M. (1992). Linear Models. In: [J.M. Chambers and T.J. Hastie (Eds.)], Statistical Models in S. Wadsworth and Brooks/Cole. Doydora, S.A., Gatiboni, L.C., Grieger, K., Hesterberg, D., Jones, J.L., McLamore, E.S., Peters, R.A., Sozzani, R., Broeck, L.V.D. and Duckworth, O.W. (2020). Accessing legacy phosphorus in soils. Soil Systems . 4(4): 74. https://doi. org/10.3390/soilsystems4040074. Font, R., Del Río-Celestino, M. and De Haro-Bailón, A. (2006). The use of near-infrared spectroscopy (NIRS) for the estimation of the composition of different parts of the chickpea plant. Journal of Agricultural and Food Chemistry . 5 4(6): 2118-2125. Hacisalihoglu, G., Larbi, B. and Settles, A.M. (2010). Near-infrared reflectance spectroscopy predicts protein, starch and seed weight in intact seeds of common bean ( Phaseolus vulgaris L.). Journal of Agricultural and Food Chemistry. 58(2): 702-706. Karande, A.D., Heng, P.W. and Liew, C.V. (2010). In-line quantification of micronized drug and excipients in tablets by near infrared (NIR) spectroscopy: Real time monitoring of tabletting process. International Journal of Pharmaceutics . 396(1-2): 63-74. Kuang, B. and Mouazen, A.M. (2013). Non-biased prediction of soil organic carbon and total nitrogen with vis–NIR spectroscopy, as affected by soil moisture content and texture. Biosystems Engineering . 114(3): 249-258. Kuang, B. and Mouazen, A.M. (2013). Effect of soil texture and water content on the performance of vis-NIR spectroscopy for soil analysis. European Journal of Soil Science. 64(6): 749-758. Kumar, S., Yadav, R.K., Singh, B. and Verma, A.K. (2022). Evaluation of phosphorus content and its implications in chickpea ( Cicer arietinum L.) breeding programs: A comprehensive analysis. Legume Research . 45(3): 321-328. Mahajan, G.R., Sahoo, R.N., Pandey, R.N., Gupta, V.K. and Kumar, D. (2016a). Using hyperspectral remote sensing techniques to monitor nitrogen, phosphorus, sulphur and potassium in wheat ( Triticum aestivum L.). Precision Agriculture. 17(5): 507-528. Mahajan, S., Das, A.K. and Sardana, S.K. (2016b). NIR spectroscopy for rapid quality evaluation of chickpea ( Cicer arietinum ) flour constituents. Journal of Food Science and Technology. 53(11): 4041-4047. Mendoza, F., Lu, R. and Cen, H. (2018). Visible and near-infrared spectroscopy for predicting mechanical properties of fresh kiwifruit. Postharvest Biology and Technology . 145: 91-98. Norgaard, L., Saudland, A., Wagner, J., Nielsen, J.P., Munck, L. and Engelsen, S.B. (2000). Interval partial least-squares regression (i-PLS): A comparative chemometric study with an example from near infrared spectroscopy. Applied Spectroscopy . 54: 413-419. Peng, J., Ji, W., Ma, Z., Li, S., Chen, S., Zhou, L. and Shi, Z. (2020). Predicting total and available soil phosphorus by Vis-NIR spectroscopy using different spectral preprocessing techniques and variable selection methods. Scientific Reports. 10(1): 1-12. Salameen, S. and Ramaswamy, H.S. (2020). Near-infrared spectroscopy for quality evaluation of chickpea flour: assessment of functional and compositional properties. International Journal of Food Science and Technology. 55(9): 3127-3138. Singh, A.K., Mehta, R. and Sharma, S. K. (2023). Advanced analytical techniques in pulse crop research: A systematic review of spectroscopic and chemometric approaches. Agricultural Reviews . 44(1): 12-24. Tomar, S.S. and Singh, N. (2025). Yield and yield attributes of chickpea as influenced by phosphorus and bio-fertilizer application under rainfed conditions. Legume Research . 48(2): 312-316. doi: 10.18805/LR-4837 . Verma, P., Dubey, S.K. and Mishra, P. (2023). Validation of spectroscopic methods for rapid quality assessment in food products: Implications for the Indian food industry. Asian Journal of Dairy and Food Research . 42(1): 45-52. Wang, N., Zhang, X., Yu, Z., Li, G. and Zhou, B. (2014). Quantitative analysis of adulterations in oat flour by FT-NIR spectroscopy, incomplete unbalanced randomized block design and partial least squares. Journal of Analytical Methods in Chemistry . 393596. https://doi.org/10.1155/2014/393596. Williams, P.C. and Sobering, D. (1995). How Do We do it: A brief Summary of the Methods we use in Developing Near Infrared Calibrations. In: Near Infrared Spectroscopy: The Future Waves. [Daves, A.M.C., Williams, P.C., (editors)]. Chichester: NIR Publications. pp 185-188. Xiaobo, Z., Jiewen, Z., Povey, M.J., Holmes, M. and Hanpin, M. (2010). Variables selection methods in near-infrared spectroscopy. Analytica Chimical Acta . 667(1-2): 14-32. Yang, J., Du, L., Sun, J., Gong, W., Chen, B. and Sun, J. (2021). Estimating plant nitrogen, phosphorus and potassium contents using hyperspectral data at leaf and canopy levels in soybean. Field Crops Research . 269: 108-175. Zhu, Y., Weindorf, D.C., Chakraborty, S., Haggard, B., Johnson, S. and Bakr, N. (2019). Characterizing surface soil water with field portable diffuse reflectance spectroscopy. Journal of Hydrology. 569: 161-172.
EDITORIAL BOARD

Guided by Experienced Academic Leadership

Distinguished scholars and subject experts committed to editorial excellence, scientific integrity and rigorous peer review.

View Full Board
Kadambot Siddique
Chief Editor

Kadambot Siddique

DirectorThe UWA Institute of Agriculture, The University of Western Australia, AUSTRALIA

Pei Xu
Associate chief editor

Pei Xu

DeanChina Jiliang University, CHINA

Satpal Singh Bisht
Editor

Satpal Singh Bisht

Vice ChancellorS.S.J.University Almora, Uttarakhand, INDIA

H.K. Dikshit
Editor

H.K. Dikshit

Principal Scientist Indian Agricultural Research Institute, New Delhi, INDIA