Related Experiment Video
Updated: Jun 24, 2026

Construction of Models for Nondestructive Prediction of Ingredient Contents in Blueberries by Near-infrared Spectroscopy Based on HPLC Measurements
Published on: June 28, 2016
Explainable machine learning-based prediction of shelf-life and anthocyanin accumulation in table grapes
Xiaoning Zhu1, Mengyun Tu1, Yingying Dong1
1College of Biosystems Engineering and Food Science, Zhejiang University, Hangzhou 310058, China; Key Laboratory of Agro-Products Postharvest Handling, Ministry of Agriculture and Rural Affairs, Zhejiang Key Laboratory of Agri-food Resources and High-value Utilization, Innovation Centre for Postharvest Agro-Products Technology, Zhejiang University, Hangzhou 310058, China.
Machine learning models accurately predict table grape shelf-life and anthocyanin content. Key factors influencing grape quality were identified, aiding in reducing postharvest losses.
Area of Science:
- Agricultural Science
- Data Science
- Food Science
Background:
- Table grapes (Vitis vinifera L.) are a globally popular fruit but are highly perishable.
- Accurate prediction of shelf-life and nutritional content is vital for the fresh produce supply chain.
Purpose of the Study:
- To develop intelligent machine learning models for predicting table grape shelf-life and total anthocyanin content (TAC).
- To enhance the interpretability of these models using SHapley Additive exPlanations (SHAP).
Main Methods:
- Utilized artificial neural networks (ANN) for shelf-life prediction.
- Employed extreme gradient boosting (XGBoost) for TAC prediction.
- Applied SHAP-based sensitivity analysis to identify critical quality-influencing factors.
Main Results:
- ANN achieved high accuracy in shelf-life estimation (MAE 1.624 days, R² 0.9873).
- XGBoost effectively predicted TAC (MAE 0.0113 mg C3G g⁻¹, R² 0.9355).
- Berry abscission rate, weight loss rate, and postharvest treatments were identified as key factors.
Conclusions:
- Developed a reliable machine learning approach for monitoring table grape quality.
- Provided insights into reducing postharvest losses in fresh agricultural produce.
- Demonstrated the utility of SHAP for improving model interpretability in agricultural applications.
More Related Videos
Related Concept Videos
Light Acquisition
Prediction Intervals
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
The...
Methods of Controlling Food Spoilage

