Asian Journal of Dairy and Food Research

Asian Journal of Dairy and Food Research cover
Volume 44 · 2025/11/05

Applications of Machine Learning Models in Near-infrared Spectroscopy for Small-grain Quality Control

Ardiana Topi
Majlinda Sana
Marjeta Daja
Dritan Topi
499 Views

Submitted

2025/06/18

First Online

2025/11/05

doi

10.18805/ajdfr.DRF-565

Cite article - Ardiana Topi, Majlinda Sana, Marjeta Daja, Dritan Topi. (2025). Applications of Machine Learning Models in Near-infrared Spectroscopy for Small-grain Quality Control. Asian Journal of Dairy and Food Research. 44: 142–150. doi: 10.18805/ajdfr.DRF-565

Abstract

Background: Wheat quality and safety are crucial for global food security and regional agricultural economies. Conventional analytical methods for assessing grain composition and quality-while accurate-are often time-consuming, destructive and resource-intensive. In contrast, near-infrared spectroscopy (NIR) has emerged as a rapid, non-destructive alternative that provides detailed chemical and physical insights. Recent advancements in machine learning have enhanced NIR’s analytical capabilities by enabling the development of predictive models that accurately categorize, quantify and monitor grain quality parameters. These models-spanning from linear regression methods to intricate neural networks-enable researchers to discern significant patterns from spectral data, even amidst noise or overlapping signals.

Methods: This study used NIR spectroscopy and machine learning models to evaluate wheat quality across multiple Albanian regions during the 2023 harvest. NIR spectra were preprocessed using standard normalization and smoothing techniques. Machine learning models-including PLSR, SVM and random forest-were trained to predict key quality traits such as protein content and moisture. Model performance was validated using cross-validation metrics (RMSE, R², accuracy), demonstrating the potential of NIR-ML integration for rapid, non-destructive grain assessment.

Result: Protein content ranged from 9.6% to 15.0%, gluten from 19.4% to 37.5% and starch from 66.3% to 71.5%, indicating consistent nutritional profiles across samples. Sedimentation index values (21.1-57.8 cm³) and moisture levels (9.8-12.5%) confirmed compliance with EU food safety standards. The integration of NIR spectroscopy with machine learning enabled rapid, non-destructive prediction of wheat quality traits, supporting scalable decision-making in agri-food systems.

References

  1. Abbaspour-Gilandeh, Y., Abbaspour-Gilandeh, Y., Tahmasebi, M., Kaveh, M., El-Mesery, H., Szymanek, M., Sprawka, M. (2024). VIS/NIR spectroscopy as a non-destructive method for evaluation of quality parameters of three bell pepper varieties based on soft computing methods. Applied Sciences . 14: 10855. Barbin, D.F., ElMasry, G., Sun, D.-W. and Allen, P. (2013). Non- destructive determination of chemical composition in intact and minced pork using near-infrared hyperspectral imaging. Food Chemistry . 138(2-3): 1162-1171. https://doi. org/10.1016/j.foodchem.2012.11.120. Caporaso, N., Whitworth, M.B. and Fisk, I.D. (2018). Near-infrared spectroscopy and hyperspectral imaging for non-destructive quality assessment of cereal grains. Applied Spectroscopy Reviews . 53/8: 667-687. https://doi.org/10.1080/05704928. 2018.1425214. Cen, H. and He, Y. (2007). Theory and application of near-infrared reflectance spectroscopy in determination of food quality. Trends in Food Science and Technology . 18: 72-83. Chadalavada, K., Chadalavada, K., Anbazhagan, K., Anbazhagan, K., Ndour, A., Choudhary, S., Palmer, W., Flynn, J., Mallayee, S., Pothu, S., Jones, C., Kholová, J. and Kholová, J. (2022). NIR instruments and prediction methods for rapid access to grain protein content in multiple cereals. Sensors . 22: 3710. Delwiche, S.R. (2021). Ergot alkaloids mycotoxins in cereals and cereal-derived food products: Characteristic, toxicity, prevalence and control strategies. Agronomy . 11/5: 931. https://doi.org/10.3390/agronomy11050931. Diku, A. (2011). The Impact of Climate Change on Food Production and Selected Crop Yields in Albania. In: The Impacts of Climate Change on Food Production in the Western Balkans Region [Ivanyi, Z. (ed.)]. Report: Regional Environmental Center for Central and Eastern Europe. pp: 1-23. Du, Z., Tian, W., Tilley, M., Wang, D., Zhang, G., Li, Y. (2022). Quantitative assessment of wheat quality using near-infrared spectro- scopy: A comprehensive review. Comprehensive Reviews in Food Science and Food Safety . 21: 2956-3009. https:/ /doi.org/10.1111/1541-4337.12958. EC (2008). Commission Regulation (EC) 687/2008 establishes procedures for taking over cereals by intervention agencies and lays down methods of analysis for determining the quality of cereals. 19.7.2008. Official Journal of the European Union. L: 192/20. Gao, X., Lu, B., He, K., Tang, X. (2021). Effects of different pre- treatment and modeling methods on soil moisture content detected by near-infrared spectroscopy. American Society of Agricultural and Biological Engineers Annual International Meeting, ASABE 2021. 2100335. doi: 10.13031/aim.2021 00335. Giraldo, P., Benavente, E., Manzano-Agugliaro, F., Gimenez, E. (2019). Worldwide research trends on wheat and barley: A bibliometric comparative analysis. Agronomy . 9: 352. Goesaert, H., Brijs, K., Veraverbeke, W.S., Courtin, C.M., Gebruers, K. and Delcour, J.A. (2005). Wheat flour constituents: How they impact bread quality and how to impact their functionality. Trends in Food Science and Technology . 16: 12-30. Hruskova, M. and Famera, O. (2003). Prediction of wheat and flour Zeleny sedimentation value using NIR technique. Czech Journal of Food Sciences . 21: 91-96. Javid Iqbal, M., Shams, N., Fatima, K. (2022). Nutritional Quality of Wheat. In Wheat, (Eds. M-ur-R. Ansari) IntechOpen, Rijeka, Croatia. doi: 10.5772/intechopen.104659. Johnson, J.B., Walsh, K.B. and Naiker, M. (2023). The use of infrared spectroscopy for quantification of bioactive compounds in food: A review. Molecules . 28/7: 3215, https://doi.org/ 10.3390/molecules28073215. Kaushik, R., Kumar, N., Sihag, M.K., Ray, A. (2015). Isolation, characterization of wheat gluten and its regeneration properties. Journal of Food Science and Technology . 52: 5930-5937. doi: 10.1007/s13197-014-1690-2. Kays, S.E. (2015). Analysis of Cereal Food Products. In: Near-Infrared Reflectance Spectroscopy in Agriculture. Eds. Roberts, C.A., Workman Jr., J., Reeves III, J.B. (Vol. 44). doi: 10. 2134/agronmonogr44.C16. Khalid, A., Hameed, A. and Tahir, M.F. (2023). Wheat quality: A review on chemical composition, nutritional attributes, grain anatomy, types, classification and function of seed storage proteins in bread making quality. Frontiers in Nutrition . 10: 1053196. https://doi.org/10.3389/fnut.2023. 1053196. Levasseur-Garcia (2018). Updated overview of infrared spectroscopy methods for detecting mycotoxins on cereals (corn, wheat and barley). Toxins. 10/1: 38. https://doi.org/10. 3390/toxins10010038. Liakos, K.G., Busato, P., Moshou, D., Pearson, S. and Bochtis, D. (2018). Machine learning in agriculture: A review. Sensors . 18: 2674. doi: 10.3390/s18082674. Martínez-Martín, I., Hernández-Jiménez, M., Revilla, I. and Vivar- Quintana, A. (2023). Prediction of mineral composition in wheat flours fortified with lentil flour using NIR technology. Sensors . 23: 1491. Mato, L., Damani, Z., Spahiu, J., Halimi, E., Seiti, B., Topi, D. (2024). High prevalence of mycotoxigenic fungi and aflatoxin B1 contamination in corn and wheat grains grown to albania: Implications for food safety. Journal of Food Quality and Hazards Control . 11: 59-68. Ozaki, Y., Genkawa, T. and Futami, Y. (2017). Near-infrared Spectro- scopy. In: Encyclopedia of Spectroscopy and Spectrometry (3rd edition), Editor(s): J.C. Lindon, G.E. Tranter, D.W. Koppenaal, Academic Press. pp. 40-49. doi: 10.1016/B978- 0-12-409547-2.12164-X. Phuong, N.T.H., Van, H.N., Thanh, X.N.T. and Ngoc, P.N. (2025). Advances in machine learning framework for near-infrared spectroscopy: A taxonomic review on food quality assessment. Informatica . 49: 121-148. doi: 10.31449/inf. v49i11.7482. Pojic, M.M. and Mastilovic, J.S. (2013). Near-infrared spectroscopy- advanced analytical tool in wheat breeding, trade and processing. Food and Bioprocess Technology . 6: 330- 352. Priyadarshi Bala, M., Sharma, A., Chaturvedi, K. K., Bhardwaj, R., Lal, S.B., Farooqi, M.S., Kumar, S., Mishra, D.C. and Singh, M. (2023). Comparing various machine learning algorithms for sugar prediction in chickpea using near-infrared Spectroscopy. Legume Research . 46: 251-256. doi: 10.18805/LR-4931 . Priyadarshi Bala, M. and Bhardwaj, R. (2025). Analysis of phosphorus content in chickpea samples using near-infrared spectroscopy and machine learning models. Legume Research . 1-9. doi: 10.18805/LR-5331 . Qiu, Z., Feng, L., Li, W. and He, Y. (2005). Application of near-infrared spectroscopy in non-destructive quality inspection of agricultural products. Proceedings of SPIE-The International Society for Optical Engineering, Proc. SPIE 6045, MIPPR 2005: Geospatial Information, Data Mining and Applications. 60452E. doi: 10.1117/12.651581. Rathore, M., Prakash, H.G. and Bala, S. (2021). Evaluation of the nutritional quality and health benefits of chickpea ( Cicer arietinum L.) by using new technology in agriculture (Near Infra-red spectroscopy-2500). Asian Journal of Dairy and Food Research . 40: 123-126. doi: 10.18805/ajdfr.DR-1582 . Samuel, A.L. (2000). Some bodies in machine learning using the game of checkers. IBM Journal of Research and Development . 44(1/2): 206-226. https://doi.org/10.1147/rd.441.0206. Sanjeevannavar, M., Banapurmath, N., Banapurmath, N., Kumar, V., Sajjan, A., Vadlamudi, C., Krishnappa, S., Kamangar, S., Rahmath, U. and Yunus Khan, T. (2023). Machine learning prediction and optimization of performance and emissions characteristics of IC engine. Sustainability . 15: 13825. Schuster, C., Huenb, J., Scherf, K.A. (2023). Prediction of wheat gluten composition via near-infrared spectroscopy. Current Research in Food Sciences . 6: 100471. Shewry, P.R., D’Ovidio, R., Lafiandra, D., Jenkins, J.A., Mills, E.N.C. and Békés, F. (2009). Wheat Grain Proteins, In Wheat (Fourth Edition), Editor(s): K. Khan and P.R. Shewry. AACC International Press. pp. 223-298. doi: 10.1016/B978-1- 891127-55-7.50015-X. Sirisomboon, P. (2018). NIR spectroscopy for quality evaluation of fruits and vegetables. Materials Today: Proceedings. 5. Part 3: 22481-22486. Topi, D., Babic, J., Jakovac-Strajn, B. and Tavcar-Kalcher, G. (2023). Incidence of aflatoxins and ochratoxin A in wheat and corn from Albania. Toxins. pp: 15. doi:10.3390/toxins 15090567. Topi, D., Babiè, J., Pavšiè-Vrtaè, K., Tavèar-Kalcher, G. and Jakovac- Strajn, B. (2017). Occurrence of ergot alkaloids in wheat from Albania. Food Additives and Contaminants . Part A. 34: 1333-1343. doi: 10.1080/19440049.2017.1307528. Topi, D., Damani, Z., Babiè, J., Jakovac-Strajn, B. and Tavèar-Kalcher, G. (2024). The presence of some minor aspergillus and penicillium unregulated mycotoxins in main cereals cultivated in Albania. Molecules . 29: 5292. doi: 10.3390/ molecules29225292. UNE-EN 15948 (2015). Cereals-Determination of moisture and protein-Method using Near-Infrared Spectroscopy in whole kernels. European Committee for Standardization (CEN), Burssels. pp: 40. Venkatesan S., Masilamani, P., Janaki, P., Eevera, T., Sundareswaran, S., Rajkumar, P. (2020). Role of near-infrared spectroscopy in seed quality evaluation: A review. Agricultural Reviews . 41(2): 106-115. doi: 10.18805/ag.R-1960 . Wang, Y., Zhang, C., Li, X., Xing, L., Lv, M., He, H., Pan, L. and Ou, X. (2025). Machine-learning-algorithm-assisted portable miniaturized NIR spectrometer for rapid evaluation of wheat flour processing applicability. Foods . 14: 1799. https://doi.org/10.3390/foods14101799. Williams, P. (2006). Grains and Seeds. Ed. by Y. Ozaki, McClure, W.F. and Christy, A.A. Wiley-Interscience, Hoboken, New Jersey, USA. pp. 165-217. Xu, X., Xie, L. and Ying, Y. (2019). Factors influencing near-infrared spectroscopy analysis of agro-products: A review. Frontiers of Agricultural Science and Engineering . 6: 105-115. doi: 10.15302/J-FASE-2019255. Xu, Y., Kong, T., Ma, Y. and Zheng, M. (2025). Near-infrared spectroscopy: application in ensuring food quality and safety. Analytical Methods . 17: 3381-3406. Zhang, S., Liu, S., Shen, L., Chen, S., He, L., Liu, A. (2022). Application of near-infrared spectroscopy for the non-destructive analysis of wheat flour: A review. Current Research in Food Sciences . 5: 1305-1312.
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
Harjinder Singh
Chief Editor

Harjinder Singh

DirectorMassey Institute of Food Science and Technology, NEW ZEALAND

Tanweer Alam
Associate chief editor

Tanweer Alam

DirectorIndian Institute of Packaging, Mumbai, Maharashtra, INDIA

Mridula Devi
Editor

Mridula Devi

DirectorICAR-Central Institute for Women in Agriculture, Bhubaneswar, Odisha, India

A. Elango
Editor

A. Elango

DeanVeterinary College and Research Institute, Salem, Tamil Nadu Veterinary and Animal Sciences University, T.N., INDIA