Nowadays, Artificial Intelligence systems have expanded their competence field from research to industry and daily life, so understanding how they make decisions is becoming fundamental to reducing the lack of trust between users and machines and increasing the transparency of the model. This paper aims to automate the generation of explanations for model-free Reinforcement Learning algorithms by answering “why” and “why not” questions. To this end, we use Bayesian Networks in combination with the NOTEARS algorithm for automatic structure learning. This approach complements an existing framework very well and demonstrates thus a step towards generating explanations with as little user input as possible. This approach is computationally evaluated in three benchmarks using different Reinforcement Learning methods to highlight that it is independent of the type of model used and the explanations are then rated through a human study. The results obtained are compared to other baseline explanation models to underline the satisfying performance of the framework presented in terms of increasing the understanding, transparency and trust in the action chosen by the agent.
To generate safe and trustworthy Reinforcement Learning agents, it is fundamental to recognize meaningful states where a particular action should be performed. Thus, it is possible to produce more accurate explanations of the behaviour of the trained agent and simultaneously reduce the risk of committing a fatal error. In this study, we improve existing metrics using Q-values to detect essential states in Reinforcement Learning by introducing a scaled iterated algorithm called IQVA. The key observation of our approach is that a state is important not only if the action has a high impact but also if it often appears in different episodes. We compared our approach with the two baseline measures and a newly introduced value in grid-world environments to demonstrate its efficacy. In this way, we show how the proposed methodology can highlight only the meaningful states for that particular agent instead of emphasizing the importance of states that are rarely visited.
The computation of topological measures in large-scale complex networks, such as those found in transportation systems, is often a resource-intensive process. These measures, however, are critical for a comprehensive understanding of network structures and for optimizing their design. A key challenge lies in selecting the appropriate metrics that encapsulate the essential information of the network, thereby reducing the computational burden. Traditional methods involve identifying correlations between various topological measures to infer missing data. In this paper, we introduce an enhanced analytical framework comprising three stages aimed at selecting a subset of metrics to efficiently summarize network characteristics and predict measures that are costly to compute. The methodology involves: a correlation analysis of topological metrics; a principal component analysis to reduce dimensionality and highlight the essential features; and the application of SHAP and recursive feature elimination to assess the predictive significance of each metric. We demonstrate the utility of this approach using metro and road networks from 46 cities in the EU/EEA region, yielding promising results in identifying relationships between metrics and predicting missing data.
The determination of the most important states in Markov Decision Processes has recently gained interest due to its applicability in increasing both the performance and the explainability of Reinforcement Learning algorithms. In this paper, we extend the concept of Reconstructed Transition Graphs from simple unweighted graphs to advanced notions of weighted Multigraphs and Multiplexes to better represent Markov Decision Processes and identify the most important states. To this end, we adapt the classical centrality measures (betweenness, closeness, and eigenvector) to our proposed frameworks and delineate the theoretical assumptions required to ensure their existence and uniqueness. Compared to other graph-based measures available in the literature, this novel approach can take into account the different rewards and transform them into weights specific to the task. Computational experiments indicate the superior capacity of these measures in the detection of dangerous states and high-reward situations for non-sparse reward environments compared to state-of-the-art methodologies. Moreover, a statistical analysis carried out allowed to discover significant interconnections between the newly defined centrality measure structures and Q-value-based measures that are helpful for the recognition of critical states.