Skip to content

jihyeonseong/SAI-board-by-streamlit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAI-board (Cyber Security AI Dashboard)

This repository is constructed for "Cyber Security AI Dashboard" and linked with streamlit.

Demonstrating the power of Streamlit. Open in Streamlit

SAI-board

1. LRP

Captum

XAI can interpretate the black-box deep AI model which is constructed with many Linear, Convolution layers. Pytorch, which is the biggest AI opensource code library with tensorflow, constructed "Captum", XAI library, that can interprete deep AI model with Linear and Conv layer. There are many XAI techniques, and this repository use LRP.

Let's see ML example first with Linear Regression and Decision Tree. First with Linear Regression, we can get coefficient and intercept. You can get important x variable with Coefficient Importance like below image. Also with Decision Tree, we can visualize how the tree was divided to leaf recursively.



However, how we can get importance variable and visualize the NN model?

LRP

LRP is a word which is shorten version of "Layer-wise Relevance Propagation". Traditionally, Neural Network used to be "black-box model" which is not interpretable. This means, when NN make a decision, we cannnot know why NN make such decision. And go further, when NN make wrong decision, we cannot revise model because we donnot know what makes wrong decision

However with LRP, we can explain why model make such decision!

LRP is the method of explanation by decomposition and get relevance score by variable. With top-down way, output-to-input layer, the relevance is redistributed. So we can get each variables' relevance score and with high score, that variable is important with making decision.

LRP with layer

Reference URL-eng

Regerence URL-kor

2. Streamlit Dashboard (data visualization)

Data Monitoring in Real-Time by seconds

Data Monitoring

You can see data by seconds with selected hour, minute and sensor. Rolling mean is also provided for assistence indicator.

Recent Attack Data Monitoring

Attack Data

You can see recent attack data with rolling mean indicator, and you can compare with above graph.

Important Sensor to Detect Attack by LRP

Data Importance

You can see what sensor is important when detecting attack!

Note

MIT Liscnece