Explainable AI in Near‐Infrared Spectroscopy: A Case Study of Rice Protein Content
ABSTRACT Accurate determination of rice protein is essential for quality control. This study evaluated machine learning models (partial least squares regression, PLSR; support vector machine, SVM) combined with feature selection algorithms (random frog, RF; competitive adaptive reweighted sampling, CARS; Monte‐Carlo uninformative wavelength elimination, MCUVE) and explainable artificial intelligence method (SHapley Additive exPlanations, SHAP) analysis to predict protein content. Results indicated that CARS‐PLSR achieved the highest accuracy (RMSEP = 0.266, R 2 P = 0.976, residual prediction deviation [RPD] = 6.612). Statistical analysis ( F ‐test and t ‐test) verified the model's reliability. Furthermore, SHAP analysis revealed that wavelengths at 1218, 1688, and 1209 nm made the highest contributions, corresponding to N–H and C–H vibrations. This study not only provides a rapid detection method but also elucidates the chemical basis of the model's high predictive performance. Practical Applications This study provides a high‐speed, non‐destructive method for accurately measuring rice protein content, allowing food processors to monitor grain quality in real‐time. By using “explainable” AI to reveal the specific chemical markers driving the results, this technology offers a transparent and reliable alternative to slow, expensive laboratory testing.
Authors
- K Liu
- Y ZHANG (ORCID: https://orcid.org/0009-0004-8391-738X)
- Shijie Shi (ORCID: https://orcid.org/0000-0002-3246-2723)
- 江巧涵
- Nina Tian
- Zhaoqiang Jin
- Liying Huang
- Qi Liu
Institutions
- University of Tasmania (AU)
- Yangtze University (CN)
Publication Details
- Journal
- Journal of Food Science
- Published
- 2026-06-29
- DOI
- https://doi.org/10.1111/1750-3841.71206
- Primary Topic
- Spectroscopy and Chemometric Analyses
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- National Key Research and Development Program of China