Please use this identifier to cite or link to this item:
https://hdl.handle.net/10216/168350| Author(s): | Henrique Oliveira Silva |
| Title: | Explainability in Machine Learning Models: A Shap-Driven Framework for Misclassification Analysis and Feature Selection |
| Issue Date: | 2025-07-17 |
| Abstract: | The increasing complexity of high-performing machine learning (ML) models often results in "black-box" systems whose decision-making processes are opaque, particularly when they misclassify instances. This dissertation introduces a unified, SHAP-driven approach to enhance ML model explainability by first providing deep insights into misclassifications and then leveraging these insights for feature set optimization, even on pre-optimized industrial models. The core methodology begins with a Misclassification Explanation Framework (MEF) that employs SHAP values and instance clustering to dissect model errors. This framework generates hierarchical explanations, from specific error clusters to global patterns, quantifying feature contributions to different types of misclassifications and identifying associated data conditions. Building upon the understanding of feature impacts derived from this misclassification analysis, an Impact-Based Recursive Feature Selection (RFS) strategy was developed. This RFS component utilizes a metric-specific "Net Impact" score, also informed by SHAP values related to correct and incorrect predictions, to iteratively identify optimal feature subsets. The goal is to maintain or enhance predictive performance (according to metrics like accuracy or F1-score) while improving model parsimony. An efficient tree-dropping variant for LightGBM models is also presented as part of the RFS strategy. Evaluations on three diverse real-world datasets demonstrate the utility of this integrated approach in providing error diagnostics and effectively refining feature sets for complex gradient boosting models. The findings contribute practical tools for deeper, more cohesive model understanding and targeted improvement in the field of explainable AI. |
| Description: | Modern machine learning models can make highly accurate predictions but often operate as "black boxes," making it difficult to understand why they make certain decisions, especially when those decisions are incorrect. This lack of transparency can hinder trust and limit our ability to improve these models. This dissertation tackles this challenge by developing and evaluating new methods to make machine learning models more understandable, focusing specifically on analyzing why models make mistakes (misclassifications) and how to select the most important information (features) for them to use. The research introduces two main tools. The first is a "Misclassification Explanation Framework." This tool helps users see patterns in model errors. It groups similar mistakes and leverages SHAP values to highlight which input features most influenced the model to make that specific error. This allows for a clearer diagnosis of error causes, from very specific error types to broader patterns across all mistakes. The second tool is an "Impact-Based Recursive Feature Selection" strategy. Many models use a large amount of input data, not all of which is truly helpful. This method also uses SHAP values to calculate a "Net Impact" score for each feature, indicating whether it generally helps or hinders correct predictions according to common performance measures like accuracy or f1-score. The system then iteratively removes less useful features, aiming to create simpler models that are easier to understand and can potentially perform even better, even when applied to systems that were already thought to be highly optimized. An efficient version of this feature selection was also developed for specific model types to save computation time. These tools were tested on complex models using real-world data from healthcare and telecommunications. The results show that the explanation framework can provide useful insights into why models fail, and the feature selection strategy can effectively refine the data models use. Ultimately, this work contributes practical approaches to building more transparent, reliable, and explainable artificial intelligence systems. |
| Subject: | Engenharia electrotécnica, electrónica e informática Electrical engineering, Electronic engineering, Information engineering |
| Scientific areas: | Ciências da engenharia e tecnologias::Engenharia electrotécnica, electrónica e informática Engineering and technology::Electrical engineering, Electronic engineering, Information engineering |
| TID identifier: | 204114055 |
| URI: | https://hdl.handle.net/10216/168350 |
| Document Type: | Dissertação |
| Rights: | openAccess |
| Appears in Collections: | FEUP - Dissertação |
Files in This Item:
| File | Description | Size | Format | |
|---|---|---|---|---|
| 733278.pdf | Explainability in Machine Learning Models: A Shap-Driven Framework for Misclassification Analysis and Feature Selection | 2.18 MB | Adobe PDF | ![]() View/Open |
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.
