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

To get the most out of this book

You will need a Jupyter environment with Python 3.8+ to run the example walk-throughs in this book. Each sample notebook comes with a requirement.txt file that lists the package dependencies. You can experiment with the sample notebooks on Amazon SageMaker Studio Lab (https://aws.amazon.com/sagemaker/studio-lab/). This free ML development environment provides up to 12 hours of CPU or 4 hours of GPU per user session and 15 GiB storage at no cost.

Software/hardware covered in the book

Operating system requirements

Python 3.8+

Windows, macOS, or Linux

TensorFlow 2.11+

Windows, macOS, or Linux

AutoGluon 0.6.1+

Windows, macOS, or Linux

Cleanlab 2.2.0+

Windows, macOS, or Linux

A valid email address is all you need to get started with Amazon SageMaker Studio Lab. You do not need to configure infrastructure, manage identity and access, or even sign up for an AWS account. For more information, please refer to https://docs.aws.amazon.com/sagemaker/latest/dg/studio-lab-overview.html. Alternatively, you can try the practical examples on your preferred Integrated Development Environment (IDE).

If you are using the digital version of this book, we advise you to type the code yourself or access the code from the book’s GitHub repository (a link is available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.

A basic understanding of deep learning and anomaly detection-related topics using Python is recommended. Each chapter comes with example walk-throughs that help you gain hands-on experience, except for Chapters 2 and 9, which focus more on conceptual discussions. We suggest running the provided sample notebooks while reading a specific chapter. Additional exercises are available in Chapters 3, 4, and 5 to reinforce your learning.