All Projects → idealo → Cnn Exposed

idealo / Cnn Exposed

Licence: mit
🕵️‍♂️ Interpreting Convolutional Neural Network (CNN) Results.

Projects that are alternatives of or similar to Cnn Exposed

F1sherkk Myroadtoai
Repository for storing and tracking my self-study progress.
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Hunter
A threat hunting / data analysis environment based on Python, Pandas, PySpark and Jupyter Notebook.
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Lisrd
Local Invariance Selection at Runtime for Descriptors (LISRD)
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Fasnet
CNN archictecture for face anti-spoofing
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Azure Cosmosdb Spark
Apache Spark Connector for Azure Cosmos DB
Stars: ✭ 165 (-1.2%)
Mutual labels:  jupyter-notebook
Neuralimagesynthesis
Code to reproduce the results from the paper "Controlling Perceptual Factors in Neural Style Transfer" (https://arxiv.org/abs/1611.07865).
Stars: ✭ 165 (-1.2%)
Mutual labels:  jupyter-notebook
Capsnet Traffic Sign Classifier
A Tensorflow implementation of CapsNet(Capsules Net) apply on german traffic sign dataset
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Aws Neuron Sdk
Powering Amazon custom machine learning chips. Blazing fast and cost effective, natively integrated into PyTorch and TensorFlow and integrated with your favorite AWS services
Stars: ✭ 167 (+0%)
Mutual labels:  jupyter-notebook
Recommendersystems pydata 2016
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Hacking Civico
Curso de Datos Abiertos y Hacking Cívico, habilitando las capacidades de la ciudadanía y los servidores públicos en el uso de datos abiertos.
Stars: ✭ 167 (+0%)
Mutual labels:  jupyter-notebook
Tsa Notebooks
Jupyter notebooks on time series econometrics topics.
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Geospatial data with python
Introduction to Geospatial Data with Python
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Signals And Systems Lecture
Continuous- and Discrete-Time Signals and Systems - Theory and Computational Examples
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Kagglezerotoall
Kaggle problem solving
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Dst
Deformable Style Transfer (ECCV 2020)
Stars: ✭ 167 (+0%)
Mutual labels:  jupyter-notebook
Deformable Convnets Caffe
Deformable Convolutional Networks on caffe
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Miniradiotelescope
Arduino and python code for a mini-radio telescope.
Stars: ✭ 165 (-1.2%)
Mutual labels:  jupyter-notebook
Bookrepo
Stars: ✭ 166 (-0.6%)
Mutual labels:  jupyter-notebook
Wwcodedatascience
Content, Code & Resources for WWCodeDataScience Events https://www.womenwhocode.com/datascience
Stars: ✭ 167 (+0%)
Mutual labels:  jupyter-notebook
Tensorflow Tutorial
Practical tutorials and labs for TensorFlow used by Nvidia, FFN, CNN, RNN, Kaggle, AE
Stars: ✭ 1,954 (+1070.06%)
Mutual labels:  jupyter-notebook

Interpreting Convolutional Neural Network (CNN) Results

This repo contains the code for our talk "Demystifying the neural network black box". Slides are available on Speaker Deck.

Motivation

Convolutional Neural Networks (CNN) are state of the art when it comes to computer vision tasks such as image recognition and object detection. However, due to the high amount of architectural complexity, it is often difficult to interpret the decisions made by these networks. Luckily, there are several techniques available which can enhance our comprehension of CNN decisions. These techniques are generally divided into attribution and visualisation methods.

In one of our image classification projects at idealo, we wished to recognise the area of hotel property depicted in the images. There were several cases where images depicting a Swimming Pool area were misclassified as belonging to the Bathroom area. Some examples of such images are as below:

Misclassified Images

Using an attribution technique called Gradient Class Activation Maps (Grad-CAM), we were able to draw a heatmap that indicates the relative importance of different image areas in making the classification decision. Heatmaps for the above images are as below:

Heatmaps

This helped us discover a bias for using metallic rails as a means to misclassify images as belonging to Bathroom area.

On the other hand, visualization techniques helped us understand the patterns that neurons at different layers in the CNN might be learning. Some visualisations for a specific layer of MobileNet architecture fitted to our data are as below:

vis

These patterns usually get increasing complex as one progresses towards the output layer of a CNN.

Getting Started

In this repository, several interpretation techniques have been demonstrated with Google Colab notebooks. There is no need to clone this repository. Google Colab notebooks for attribution and visualisation methods can be launched in the browser by simply clicking the 'Open in Colab' icon in the respective sections below. Additionally, the 'Hardware accelerator' for Colab notebooks should be set to 'GPU' for a quicker run through the code. For a quick tutorial on Colab notebooks, check out this blog post.

Attribution techniques:

Open In Colab

Some of the attribution methods we have tried to explore are:

Visualization techniques

Open In Colab

Some of the visualization methods we have tried to explore are:

Acknowledgement

Several awesome Python packages have been used for this work:

LICENSE

See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].