jacobgil / keras-grad-cam

An implementation of Grad-CAM with keras
MIT License
658 stars 237 forks source link

Grad-CAM for timeseries custom architecture #37

Open IKetchup opened 2 years ago

IKetchup commented 2 years ago

Hello,

I would like to use grad-CAM to add explainability to my model train on multiple multivariate timeseries.

The idea would be to have something like this :

image

found a couple of paper that do it (Explainable Deep Neural Networks for Multivariate Time Series Predictions, XCM: An Explainable Convolutional Neural Network for Multivariate Time Series Classification) but they dont explain how just that they use grad-CAM keras.

I have tried to adapt grad-CAM to my own model and adapt it for timeseries using [this issue from grad-cam github] (https://github.com/jacobgil/keras-grad-cam/issues/23) but I am really strugelling to adapt it to my own network.

Do you have piece of code even for image cam so I could use grad-CAM on my own network.

Thanks in advance