Book Image

Deep Learning and XAI Techniques for Anomaly Detection

By : Cher Simon
Book Image

Deep Learning and XAI Techniques for Anomaly Detection

By: Cher Simon

Overview of this book

Despite promising advances, the opaque nature of deep learning models makes it difficult to interpret them, which is a drawback in terms of their practical deployment and regulatory compliance. Deep Learning and XAI Techniques for Anomaly Detection shows you state-of-the-art methods that’ll help you to understand and address these challenges. By leveraging the Explainable AI (XAI) and deep learning techniques described in this book, you’ll discover how to successfully extract business-critical insights while ensuring fair and ethical analysis. This practical guide will provide you with tools and best practices to achieve transparency and interpretability with deep learning models, ultimately establishing trust in your anomaly detection applications. Throughout the chapters, you’ll get equipped with XAI and anomaly detection knowledge that’ll enable you to embark on a series of real-world projects. Whether you are building computer vision, natural language processing, or time series models, you’ll learn how to quantify and assess their explainability. By the end of this deep learning book, you’ll be able to build a variety of deep learning XAI models and perform validation to assess their explainability.
Table of Contents (15 chapters)
1
Part 1 – Introduction to Explainable Deep Learning Anomaly Detection
4
Part 2 – Building an Explainable Deep Learning Anomaly Detector
8
Part 3 – Evaluating an Explainable Deep Learning Anomaly Detector

Reviewing backpropagation explainability

Feature attribution methods generally encompass two steps to determine inference results through a forward pass, followed by a backpropagation to assign relevance scores for input features on a trained model.

Backpropagation is a gradient-based XAI method that evaluates feature attributions by generating partial derivatives of output in multiple forward and backward passes through neural networks. Unlike neural network training, backpropagation in the context of feature attribution does not require gradient computation for weight updates on model parameters. Instead of beginning with the input layer, backpropagation feature attribution starts by assigning importance scores at the final output layer, then calculating local activation gradients inversely across each intermediate layer until it reaches the input layer, as shown in Figure 7.2:

Figure 7.2 – Backpropagation XAI

Figure 7.2 – Backpropagation XAI

This section provides a walkthrough...