Comparative Analysis of Water Applicability Predictions Explained by The LightGBM Model Using SHAP and LIME
Abstract
This article mainly discusses the application of the LightGBM model to predict water potability for a dataset containing multiple water quality features. The focus of the study is to use two popular model interpretability techniques: SHAP and LIME to explain the model's prediction results. The results show that SHAP can globally explain the feature importance of the entire dataset and provide a deep understanding of the features and model behavior, while LIME provides a detailed explanation of a single prediction through local linear approximation, which is easier to interpret and apply. This article also compares the strengths and limitations of SHAP and LIME in explaining the LightGBM model’s behavior, demonstrating their applicability and explanatory power in different contexts. In addition, this article also explores the actual application scenarios of water quality prediction and analyzes how interpretability improves model transparency and trust in this field. Through these analyses, the article provides practical suggestions on how to choose appropriate model interpretation methods in reality.
References
- Bahri, Fouad, Hakim Saibi, and Mohammed-El-Hocine Cherchali. "Characterization, classification, and determination of drinkability of some Algerian thermal waters." Arabian Journal of Geosciences 4 (2011).
- Man, Xin, and Ernest Chan. "The best way to select features? comparing mda, lime, and shap." The Journal of Financial Data Science Winter 3.1 (2021): 127-139.
- Ke, Guolin, et al. "Lightgbm: A highly efficient gradient boosting decision tree." Advances in neural information processing systems 30 (2017)
- Bradley, Andrew P. "The use of the area under the ROC curve in the evaluation of machine learning algorithms." Pattern recognition 30.7 (1997): 1145-1159.
- Li, Xuhong, et al. "Interpretable deep learning: Interpretation, interpretability, trustworthiness, and beyond." Knowledge and Information Systems 64.12 (2022): 3197-3234.
- Ribeiro, Marco Tulio, Sameer Singh, and Carlos Guestrin. "" Why should i trust you?" Explaining the predictions of any classifier." Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining. 2016.
- Van den Broeck, Guy, et al. "On the tractability of SHAP explanations." Journal of Artificial Intelligence Research 74 (2022): 851-886.
- Shankaranarayana, Sharath M., and Davor Runje. "ALIME: Autoencoder based approach for local interpretability." Intelligent Data Engineering and Automated Learning–IDEAL 2019: 20th International Conference, Manchester, UK, November 14–16, 2019, Proceedings, Part I 20. Springer International Publishing, 2019.
- Hu, Linwei, et al. "Locally interpretable models and effects based on supervised partitioning (LIME-SUP)." arXiv preprint arXiv:1806.00663 (2018).
- Hasan, Md Mahmudul. "Understanding Model Predictions: A Comparative Analysis of SHAP and LIME on Various ML Algorithms." Journal of Scientific and Technological Research 5.1 (2023): 17-26.
- Salih, Ahmed M., et al. "A Perspective on Explainable Artificial Intelligence Methods: SHAP and LIME." Advanced Intelligent Systems (2024): 2400304.
- Aditya, P., and Mayukha Pal. "Local interpretable model agnostic shap explanations for machine learning models." arXiv preprint arXiv:2210.04533 (2022).