Explainable Machine Learning for Food Calorie Prediction Using Tree-Based Ensemble Models and SHAP Analysis

随机森林 人工智能 机器学习 集成学习 可解释性 均方误差 计算机科学 集合预报 过度拟合 超参数 线性模型 残余物 决策树 支持向量机 统计 数据预处理 卡路里 预测建模 预处理器 数学 稳健性(进化) 平均绝对误差 超参数优化 线性回归 均方预测误差 标准差 偏最小二乘回归 交叉验证
作者
Wilsen Grivin Mokodaser,Tonny Irianto Soewignyo,Argha Orion Silitonga,Regi Fernando Najoan
出处
期刊:Techno.COM Jurnal [Nuswantoro Dian University]
卷期号:25 (3)
标识
DOI:10.62411/tc.v25i3.16809
摘要

Accurate food calorie prediction is essential for nutritional assessment, dietary planning, and intelligent health applications. However, achieving high predictive accuracy while maintaining model interpretability remains a challenge for many machine learning approaches. This study proposes an explainable machine learning framework for food calorie prediction using tree-based ensemble models and SHAP (SHapley Additive exPlanations). A dataset containing 1,346 food samples with three nutritional attributes-proteins, fat, and carbohydrate-was used. Data preprocessing included logarithmic transformation and an 80:20 train-test split. Three machine learning models, namely Linear Regression, Random Forest, and XGBoost, were developed and evaluated using Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and the coefficient of determination (R²). Hyperparameter optimization for XGBoost was performed using RandomizedSearchCV with five-fold cross-validation. Experimental results showed that Random Forest achieved the best predictive performance with an MAE of 0.1149, RMSE of 0.2869, and an R² score of 0.9008, outperforming both XGBoost and Linear Regression. Cross-validation further demonstrated the robustness of the selected model, yielding a mean R² of 0.9316 with a standard deviation of 0.0239. Residual analysis indicated prediction errors centered near zero without noticeable systematic bias. SHAP analysis provided both global and local model interpretability, identifying carbohydrate as the most influential feature, followed by fat and proteins. The findings demonstrate that integrating tree-based ensemble learning with SHAP enables accurate and transparent calorie prediction, making the proposed approach suitable for nutritional decision support and explainable artificial intelligence applications. Keywords - Food calorie prediction, Explainable artificial intelligence, SHAP, Random Forest, XGBoost, Machine learning, Nutritional analysis.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
jennie完成签到,获得积分10
刚刚
刚刚
南山完成签到,获得积分10
刚刚
qwer123456的应助被风子采纳,获得10
刚刚
刚刚
天天快乐的应助被ly采纳,获得10
1秒前
李健的粉丝团团长的应助被ly采纳,获得10
1秒前
2秒前
潇湘夜雨发布了新的文献求助10
2秒前
雪山大地发布了新的文献求助10
2秒前
就在日落以后完成签到,获得积分10
3秒前
小马完成签到 ,获得积分10
3秒前
yiwannian的应助被精明天薇采纳,获得10
3秒前
露露发布了新的文献求助10
4秒前
4秒前
Jasper的应助被认真台灯采纳,获得10
5秒前
5秒前
5秒前
fortuna发布了新的文献求助20
6秒前
6秒前
zbz完成签到,获得积分10
7秒前
时生发布了新的文献求助10
7秒前
8秒前
顾矜的应助被知名又又采纳,获得10
8秒前
小呼完成签到 ,获得积分10
9秒前
伊莎贝拉发布了新的文献求助10
9秒前
修仙之地发布了新的文献求助10
10秒前
10秒前
SciGPT的应助被科研大白采纳,获得10
11秒前
脑洞疼的应助被fan采纳,获得10
11秒前
11秒前
无花果的应助被SMUSZZJ采纳,获得10
12秒前
XYZ发布了新的文献求助10
12秒前
J8d发布了新的文献求助10
12秒前
12秒前
13秒前
13秒前
Nole的应助被七听采纳,获得10
13秒前
修修勾完成签到,获得积分10
14秒前
orixero的应助被Dean望采纳,获得10
14秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Handbook of Sport Coaching Research 1000
突发性耳聋患者听觉障碍相关症状群管理的最佳证据总结 500
Orthognathic Surgery - 2 Volume Set 500
Sex, Aging, and Death in a Medieval Medical Compendium: Trinity College Cambridge MS R.14.52, Its Texts, Language, and Scribe 450
Approaches to Qualitative Research 400
改訂11版 化学・バイオ特許の出願戦略 全文 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8206084
求助须知:如何正确求助?哪些是违规求助? 9589560
关于积分的说明 21923264
捐赠科研通 7810050
什么是DOI,文献DOI怎么找? 3441417
关于科研通互助平台的介绍 2563858
邀请新用户注册赠送积分活动 2489074