COMPARATIVE ANALYSIS OF EXPLAINABLE AI USING LIME AND SHAP FOR DIABETES PREDICTION BASED ON LIFESTYLE FACTORS

Authors

  • Ricky Salim Universitas Esa Unggul, Jakarta Author
  • Agung Mulyo Widodo Universitas Esa Unggul, Jakarta Author

DOI:

https://doi.org/10.65244/jggm.v2i3.754

Keywords:

Artificial Neural Network, Explainable AI, LIME, SHAP

Abstract

The rapid advancement of artificial intelligence (AI) has significantly impacted the healthcare sector, particularly in supporting the early detection of diabetes; however, many AI models still face challenges due to their black-box nature, where decision-making processes are not easily understood. This study aims to compare two Explainable Artificial Intelligence (XAI) methods, namely Local Interpretable Model-Agnostic Explanations (LIME) and SHapley Additive Explanations (SHAP), in interpreting the prediction results of an Artificial Neural Network (ANN) model using the Diabetes Health Indicator dataset. Prior to modeling, the data were preprocessed through cleaning and normalization to ensure quality and consistency. The trained ANN model was then analyzed using LIME and SHAP to evaluate the contribution of each feature to the prediction outcomes. The results show that both methods are capable of providing meaningful and interpretable explanations, although SHAP demonstrates more consistent and stable interpretations across the dataset. These findings highlight the importance of integrating XAI techniques to enhance model transparency, thereby increasing trust and supporting more reliable decision-making in clinical settings, particularly for diabetes diagnosis.

Downloads

Download data is not yet available.

References

[1] Y. Suh, A. Chandramowlishwaran, and Y. Won, “Recent progress of artificial intelligence for liquid-vapor phase change heat transfer,” npj Computational Materials, vol. 10, no. 1, pp. 1–14, Mar. 2024, doi: https://doi.org/10.1038/s41524-024-01223-8.

[2] S. Das, A. Dey, A. Pal, and N. Roy, “Applications of Artificial Intelligence in Machine Learning: Review and Prospect,” International Journal of Computer Applications, vol. 115, no. 9, pp. 31–41, Apr. 2015, doi: https://doi.org/10.5120/20182-2402.

[3] M. Nguyen, T. He, L. An, D. C. Alexander, J. Feng, and B. T. T. Yeo, “Predicting Alzheimer’s disease progression using deep recurrent neural networks,” NeuroImage, vol. 222, no. 9, p. 117203, Nov. 2020, doi: https://doi.org/10.1016/j.neuroimage.2020.117203.

[4] Q. An, S. Rahman, J. Zhou, and J. J. Kang, “A Comprehensive Review on Machine Learning in Healthcare Industry: Classification, Restrictions, Opportunities and Challenges,” Sensors, vol. 23, no. 9, p. 4178, Jan. 2023, doi: https://doi.org/10.3390/s23094178.

[5] A. P. Engelbrecht, Computational Intelligence. John Wiley & Sons, 2007.

[6] S. S. Fiyadh et al., “A comprehensive review on modelling the adsorption process for heavy metal removal from waste water using artificial neural network technique,” Heliyon, vol. 9, no. 4, pp. e15455–e15455, Apr. 2023, doi: https://doi.org/10.1016/j.heliyon.2023.e15455.

[7] Parvathaneni Naga Srinivasu, S. Ahmed, Mahmoud Hassaballah, and Naif Almusallam, “An Explainable Artificial Intelligence Software System for Predicting Diabetes,” Heliyon, vol. 10, no. 16, pp. e36112–e36112, Aug. 2024, doi: https://doi.org/10.1016/j.heliyon.2024.e36112.

[8] R. Miotto, F. Wang, S. Wang, X. Jiang, and J. T. Dudley, “Deep Learning for healthcare: review, Opportunities and Challenges,” Briefings in Bioinformatics, vol. 19, no. 6, pp. 1236–1246, 2018, doi: https://doi.org/10.1093/bib/bbx044.

[9] [9] O. I. Abiodun, A. Jantan, A. E. Omolara, K. V. Dada, N. A. Mohamed, and H. Arshad, “State-of-the-art in artificial neural network applications: A survey,” Heliyon, vol. 4, no. 11, p. e00938, Nov. 2018, doi: https://doi.org/10.1016/j.heliyon.2018.e00938.

[10] W. J. von Eschenbach, “Transparency and the Black Box Problem: Why We Do Not Trust AI,” Philosophy & Technology, vol. 34, no. 4, pp. 1607–1622, Sep. 2021, doi: https://doi.org/10.1007/s13347-021-00477-0.V. L. Raposo, “T

[11] he fifty shades of black: about black box AI and explainability in healthcare,” Medical Law Review, vol. 33, no. 1, Feb. 2025, doi: https://doi.org/10.1093/medlaw/fwaf005.

[12] D. S. Watson et al., “Clinical applications of machine learning algorithms: beyond the black box,” BMJ, vol. 364, p. l886, Mar. 2019, doi: https://doi.org/10.1136/bmj.l886.

[13] A. J. London, “Artificial Intelligence and Black-Box Medical Decisions: Accuracy versus Explainability,” Hastings Center Report, vol. 49, no. 1, pp. 15–21, Jan. 2019, doi: https://doi.org/10.1002/hast.973.

[14] D. Heaven, “Why deep-learning AIs are so easy to fool,” Nature, vol. 574, no. 7777, pp. 163–166, Oct. 2019, doi: https://doi.org/10.1038/d41586-019-03013-5.

[15] A. A. Adeniran, A. P. Onebunne, and P. William, “Explainable AI (XAI) in healthcare: Enhancing trust and transparency in critical decision-making,” World Journal of Advanced Research and Reviews, vol. 23, no. 3, pp. 2447–2658, Sep. 2024, doi: https://doi.org/10.30574/wjarr.2024.23.3.2936.

[16] D. Gunning, E. Vorm, J. Y. Wang, and M. Turek, “DARPA’s Explainable AI (XAI) program: a Retrospective,” Applied AI Letters, vol. 2, no. 4, Dec. 2021, doi: https://doi.org/10.1002/ail2.61.

[17] F. Doshi-Velez and B. Kim, “Towards A Rigorous Science of Interpretable Machine Learning,” arXiv:1702.08608 , vol. 2, no. 2, Mar. 2017, Available: https://arxiv.org/abs/1702.08608

[18] T. Miller, “Explanation in artificial intelligence: Insights from the social sciences,” Artificial Intelligence, vol. 267, pp. 1–38, Feb. 2019, doi: https://doi.org/10.1016/j.artint.2018.07.007.

[19] M. T. Ribeiro, S. Singh, and C. Guestrin, “‘Why Should I Trust You?’: Explaining the Predictions of Any Classifier,” arXiv.org, Feb. 16, 2016. https://arxiv.org/abs/1602.04938

[20] S. Lundberg and S.-I. Lee, “A Unified Approach to Interpreting Model Predictions,” arXiv:1705.07874 , vol. abs/1705.07874, Nov. 2017, Available: https://arxiv.org/abs/1705.07874

[21] A. Salih et al., “Commentary on explainable artificial intelligence methods: SHAP and LIME,” arXiv.org, May 08, 2023. https://arxiv.org/abs/2305.02012

[22] P. B. Khokhar, V. Pentangelo, F. Palomba, and C. Gravino, “Towards Transparent and Accurate Diabetes Prediction Using Machine Learning and Explainable Artificial Intelligence,” arXiv.org, 2025. https://arxiv.org/abs/2501.18071

[23] Y. Aydın, C. Cakiroglu, G. Bekdaş, and Z. W. Geem, “Explainable Ensemble Learning and Multilayer Perceptron Modeling for Compressive Strength Prediction of Ultra-High-Performance Concrete,” Biomimetics, vol. 9, no. 9, pp. 544–544, Sep. 2024, doi: https://doi.org/10.3390/biomimetics9090544.

[24] H. B. Kibria, M. Nahiduzzaman, Md. O. F. Goni, M. Ahsan, and J. Haider, “An Ensemble Approach for the Prediction of Diabetes Mellitus Using a Soft Voting Classifier with an Explainable AI,” Sensors, vol. 22, no. 19, p. 7268, Sep. 2022, doi: https://doi.org/10.3390/s22197268.

[25] S. Wachter, B. Mittelstadt, and L. Floridi, “Why a Right to Explanation of Automated Decision-Making Does Not Exist in the General Data Protection Regulation,” International Data Privacy Law, vol. 7, no. 2, pp. 76–99, May 2017, doi: https://doi.org/10.1093/idpl/ipx005.

[26] L. H. Gilpin, D. Bau, B. Z. Yuan, A. Bajwa, M. Specter, and L. Kagal, “Explaining Explanations: An Overview of Interpretability of Machine Learning,” arXiv:1806.00069 , Feb. 2019, Available: https://arxiv.org/abs/1806.00069

[27] V. Chang, M. A. Ganatra, K. Hall, L. Golightly, and Q. A. Xu, “An assessment of machine learning models and algorithms for early prediction and diagnosis of diabetes using health indicators,” Healthcare Analytics, vol. 2, p. 100118, Oct. 2022, doi: https://doi.org/10.1016/j.health.2022.100118.

[28] R. Ahmad, L. A. Maghrabi, Ishfaq Ahmad Khaja, L. A. Maghrabi, and M. Ahmad, “SMOTE-Based Automated PCOS Prediction Using Lightweight Deep Learning Models,” Diagnostics, vol. 14, no. 19, pp. 2225–2225, Oct. 2024, doi: https://doi.org/10.3390/diagnostics14192225.

[29] X. Luo, X. Li, Z. Wang, and J. Liang, “Discriminant autoencoder for feature extraction in fault diagnosis,” Chemometrics and Intelligent Laboratory Systems, vol. 192, pp. 103814–103814, Jul. 2019, doi: https://doi.org/10.1016/j.chemolab.2019.103814.

[30] J. Cai, J. Luo, S. Wang, and S. Yang, “Feature selection in machine learning: A new perspective,” Neurocomputing, vol. 300, pp. 70–79, Jul. 2018, doi: https://doi.org/10.1016/j.neucom.2017.11.077.

[31] S. M. Nagarajan, V. Muthukumaran, R. Murugesan, R. B. Joseph, M. Meram, and A. Prathik, “Innovative feature selection and classification model for heart disease prediction,” Journal of Reliable Intelligent Environments, vol. 8, Aug. 2021, doi: https://doi.org/10.1007/s40860-021-00152-3.

[32] D. Swift, K. Cresswell, R. E. Johnson, S. C. Stilianoudakis, and X. Wei, “A review of normalization and differential abundance methods for microbiome counts data,” A review of normalization and differential abundance methods for microbiome counts data, vol. 15, no. 1, May 2022, doi: https://doi.org/10.1002/wics.1586.

[33] A. Elkhouly, A. M. Andrew, H. A. Rahim, N. Abdulaziz, M. F. Abd Malek , and S. Siddique, “Data-driven audiogram classifier using data normalization and multi-stage feature selection,” Scientific Reports, vol. 13, no. 1, Feb. 2023, doi: https://doi.org/10.1038/s41598-022-25411-y.

[34] Y.-S. Kim, Moon Keun Kim, N. Fu, J. Liu, J. Wang, and Jelena Srebric, “Investigating the Impact of Data Normalization Methods on Predicting Electricity Consumption in a Building Using different Artificial Neural Network Models.,” Sustainable Cities and Society, vol. 118, pp. 105570–105570, Jun. 2024, doi: https://doi.org/10.1016/j.scs.2024.105570.

[35] P. J. Muhammad Ali, “Investigating the Impact of Min-Max Data Normalization on the Regression Performance of K-Nearest Neighbor with Different Similarity Measurements,” ARO-THE SCIENTIFIC JOURNAL OF KOYA UNIVERSITY, vol. 10, no. 1, pp. 85–91, Jun. 2022, doi: https://doi.org/10.14500/aro.10955.

[36] L. Alzubaidi et al., “Review of deep learning: concepts, CNN architectures, challenges, applications, future directions,” Journal of Big Data, vol. 8, no. 1, pp. 1–74, Mar. 2021, doi: https://doi.org/10.1186/s40537-021-00444-8.

[37] A. Tello, V. Degeler, and A. Lazovik, “Too Good To Be True: accuracy overestimation in (re)current practices for Human Activity Recognition,” 2024 IEEE International Conference on Pervasive Computing and Communications Workshops and other Affiliated Events (PerCom Workshops), pp. 511–517, Mar. 2024, doi: https://doi.org/10.1109/percomworkshops59983.2024.10503465.

[38] S. Ahmed, M. Shamim Kaiser, Mohammad Shahadat Hossain, and K. Andersson, “A Comparative Analysis of LIME and SHAP Interpreters with Explainable ML-Based Diabetes Predictions,” IEEE access, vol. 13, pp. 37370–37388, Jun. 2024, doi: https://doi.org/10.1109/access.2024.3422319.

[39] X. Qi, Y. Lu, Y. Shi, H. Qi, and L. Ren, “A deep neural network prediction method for diabetes based on Kendall’s correlation coefficient and attention mechanism,” PloS one, vol. 19, no. 7, pp. e0306090–e0306090, Jul. 2024, doi: https://doi.org/10.1371/journal.pone.0306090.

[40] H. V. Nguyen, Y. Choi, and H. Byeon, “An explainable hybrid deep learning model for prediabetes prediction in men aged 30 and above,” Journal of Men’s Health, vol. 20, no. 10, p. 52, 2024, doi: https://doi.org/10.22514/jomh.2024.166.

[41] S. A. Tanim, A. R. Aurnob, T. E. Shrestha, M. R. I. Emon, M. F. Mridha, and M. S. U. Miah, “Explainable deep learning for diabetes diagnosis with DeepNetX2,” Openreview.net, 2025. https://openreview.net/forum?id=fqGwL5mcKU

[42] I. Tasin, T. U. Nabil, S. Islam, and R. Khan, “Diabetes prediction using machine learning and explainable AI techniques,” Healthcare Technology Letters, vol. 10, no. 1–2, Dec. 2022, doi: https://doi.org/10.1049/htl2.12039.

[43] P. F. Khan and K. Meehan, “Diabetes prognosis using white-box machine learning framework for interpretability of results,” 2021 IEEE 11th Annual Computing and Communication Workshop and Conference (CCWC), Jan. 2021, doi: https://doi.org/10.1109/ccwc51732.2021.9375927.

[44] Y. Du, A. R. Rafferty, F. M. McAuliffe, L. Wei, and C. Mooney, “An explainable machine learning-based clinical decision support system for prediction of gestational diabetes mellitus,” Scientific Reports, vol. 12, no. 1, Jan. 2022, doi: https://doi.org/10.1038/s41598-022-05112-2.

[45] J. Liu and J. Cuadros, “Eye-Net: An Interpretable Machine Learning Ensemble for Feature Engineering, Classification, and Lesion Localization of Diabetic Retinopathy,” 2022 IEEE MIT Undergraduate Research Technology Conference (URTC), pp. 1–7, Sep. 2022, doi: https://doi.org/10.1109/urtc56832.2022.10002209.

[46] E. Shakeri, T. Crump, E. Weis, R. Souza, and B. Far, “Using SHAP Analysis to Detect Areas Contributing to Diabetic Retinopathy Detection,” IEEE Xplore, Aug. 01, 2022. https://ieeexplore.ieee.org/document/9874222

[47] Abdussamad, H. Daud, R. Sokkalingam, M. Zubair, I. K. Khan, and Z. Mahmood, “A deep learning framework with hybrid stacked sparse autoencoder for type 2 diabetes prediction,” Scientific Reports, vol. 15, no. 1, pp. 36678–36678, Oct. 2025, doi: https://doi.org/10.1038/s41598-025-20534-4.

[48] María Herrero-Tudela, R. Romero-Oraá, R. Hornero, G. C. Gutiérrez, M. I. López, and María García, “An explainable deep-learning model reveals clinical clues in diabetic retinopathy through SHAP,” Biomedical Signal Processing and Control, vol. 102, pp. 107328–107328, Dec. 2024, doi: https://doi.org/10.1016/j.bspc.2024.107328.

[49] U. Das and B. Ahmed, “An Explainable ML Approach for Diabetes Detection Using the Influential Features,” International Conference on Computer and Information Technology (ICCIT), p. pp. 1-5, Dec. 2023, doi: https://doi.org/10.1109/iccit60459.2023.10441134.

[50] F. B. Hu et al., “Diet, Lifestyle, and the Risk of Type 2 Diabetes Mellitus in Women,” New England Journal of Medicine, vol. 345, no. 11, pp. 790–797, Sep. 2001, doi: https://doi.org/10.1056/nejmoa010492.

[51] D. Mozaffarian, L. J. Appel, and L. Van Horn, “Components of a Cardioprotective Diet,” Circulation, vol. 123, no. 24, pp. 2870–2891, Jun. 2011, doi: https://doi.org/10.1161/circulationaha.110.968735.

[52] D. L. Katz, E. P. Frates, J. P. Bonnet, S. K. Gupta, E. Vartiainen, and R. H. Carmona, “Lifestyle as Medicine: The Case for a True Health Initiative,” American Journal of Health Promotion, vol. 32, no. 6, pp. 1452–1458, May 2017, doi: https://doi.org/10.1177/0890117117705949.

[53] W. C. Knowler et al., “Reduction in the incidence of type 2 diabetes with lifestyle intervention or metformin,” The New England Journal of Medicine, vol. 346, no. 6, pp. 393–403, Feb. 2002, doi: https://doi.org/10.1056/NEJMoa012512.

[54] T. A. Khan et al., “Combination of Multiple Low-Risk Lifestyle Behaviors and Incident Type 2 Diabetes: A Systematic Review and Dose-Response Meta-analysis of Prospective Cohort Studies,” Diabetes Care, vol. 46, no. 3, pp. 643–656, Feb. 2023, doi: https://doi.org/10.2337/dc22-1024.

[55] L. Hakim, “Penelitian Komparatif: Pengertian, Jenis dan Contoh,” Deepublish Store, Apr. 15, 2025. https://deepublishstore.com/blog/penelitian-komparatif/

[56] L. Schwingshackl, B. Missbach, J. König, and G. Hoffmann, “Adherence to a Mediterranean Diet and Risk of diabetes: a Systematic Review and meta-analysis,” Public Health Nutrition, vol. 18, no. 07, pp. 1292–1299, Aug. 2014, doi: https://doi.org/10.1017/s1368980014001542.

[57] I. Kyrou et al., “Sociodemographic and lifestyle-related risk factors for identifying vulnerable groups for type 2 diabetes: a narrative review with emphasis on data from Europe,” BMC Endocrine Disorders, vol. 20, no. S1, Mar. 2020, doi: https://doi.org/10.1186/s12902-019-0463-3.

[58] A. Pandey and D. K. Vishwakarma, “VABDC-Net: A framework for Visual-Caption Sentiment Recognition via spatio-depth visual attention and bi-directional caption processing,” Knowledge-Based Systems, vol. 269, p. 110515, Jun. 2023, doi: https://doi.org/10.1016/j.knosys.2023.110515.

Published

2026-04-29

How to Cite

COMPARATIVE ANALYSIS OF EXPLAINABLE AI USING LIME AND SHAP FOR DIABETES PREDICTION BASED ON LIFESTYLE FACTORS. (2026). Journal of Golden Generation Multidisciplinary , 2(3), 15 – 33. https://doi.org/10.65244/jggm.v2i3.754

Similar Articles

1-10 of 60

You may also start an advanced similarity search for this article.