# starom00n/lad_cs461_427a architecture

> Architecture diagram of the GitHub repository starom00n/lad_cs461_427a, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/starom00n/lad_cs461_427a
- Repository: https://github.com/starom00n/lad_cs461_427a

## Overview

LogSentinel is a deep-learning log anomaly detection project, with a documented Streamlit prototype for uploading logs and viewing session-level predictions. Its planned modeling spans count-vector baselines, LSTM next-event detection, and Transformer-based sequence analysis. The available tree contains package placeholders rather than implementation code, so this graph represents documented capabilities; links between the app and model components are unverified. The README also describes notebook-based training and comparison, but only two notebook files are present in the tree.

Main entry points: [`app`](https://github.com/starom00n/lad_cs461_427a/tree/main/app) (Streamlit app), [`src/training`](https://github.com/starom00n/lad_cs461_427a/tree/main/src/training) (Training and evaluation), [`notebooks`](https://github.com/starom00n/lad_cs461_427a/tree/main/notebooks) (Analysis notebooks), [`src/data`](https://github.com/starom00n/lad_cs461_427a/tree/main/src/data) (Data loading)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User application"]
  node_webapp["Streamlit app"]
  node_uploaded_logs["Uploaded logs"]
  node_session_result["Session prediction"]
end

subgraph group_analysis["Log analysis"]
  node_preprocessing["Data loading"]
  node_isolation_forest["Isolation Forest"]
  node_logistic_regression["Logistic Regression"]
  node_lstm["LSTM DeepLog"]
  node_transformer["Transformer encoder"]
end

subgraph group_experiments["Training and evaluation"]
  node_training["Training and evaluation"]
  node_notebooks["Analysis notebooks"]
  node_datasets[("HDFS and BGL")]
  node_results["Experiment results"]
end

node_operator(("SOC analyst"))

node_operator -->|"uploads logs"| node_webapp
node_webapp -->|"accepts upload"| node_uploaded_logs
node_webapp -->|"shows predictions"| node_session_result
node_webapp -.->|"processes logs"| node_preprocessing
node_webapp -.->|"uses for prediction"| node_isolation_forest
node_webapp -.->|"uses for prediction"| node_logistic_regression
node_webapp -.->|"uses for prediction"| node_lstm
node_webapp -.->|"uses for prediction"| node_transformer
node_notebooks -.->|"analyzes"| node_datasets
node_training -.->|"evaluates models"| node_results

click node_webapp "https://github.com/starom00n/lad_cs461_427a/tree/main/app"
click node_preprocessing "https://github.com/starom00n/lad_cs461_427a/tree/main/src/data"
click node_isolation_forest "https://github.com/starom00n/lad_cs461_427a/tree/main/src/models"
click node_logistic_regression "https://github.com/starom00n/lad_cs461_427a/tree/main/src/models"
click node_lstm "https://github.com/starom00n/lad_cs461_427a/tree/main/src/models"
click node_transformer "https://github.com/starom00n/lad_cs461_427a/tree/main/src/models"
click node_training "https://github.com/starom00n/lad_cs461_427a/tree/main/src/training"
click node_notebooks "https://github.com/starom00n/lad_cs461_427a/tree/main/notebooks"
click node_datasets "https://github.com/starom00n/lad_cs461_427a/tree/main/data"
click node_results "https://github.com/starom00n/lad_cs461_427a/tree/main/results"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_webapp,node_uploaded_logs,node_session_result toneBlue
class node_preprocessing,node_isolation_forest,node_logistic_regression,node_lstm,node_transformer toneAmber
class node_training,node_notebooks,node_datasets,node_results toneMint
class node_operator toneIndigo
```

## Components

### User application

- [Streamlit app](https://github.com/starom00n/lad_cs461_427a/tree/main/app): `app`
- **Uploaded logs**
- **Session prediction**

### Log analysis

- [Data loading](https://github.com/starom00n/lad_cs461_427a/tree/main/src/data): `src/data`
- [Isolation Forest](https://github.com/starom00n/lad_cs461_427a/tree/main/src/models): `src/models`
- [Logistic Regression](https://github.com/starom00n/lad_cs461_427a/tree/main/src/models): `src/models`
- [LSTM DeepLog](https://github.com/starom00n/lad_cs461_427a/tree/main/src/models): `src/models`
- [Transformer encoder](https://github.com/starom00n/lad_cs461_427a/tree/main/src/models): `src/models`

### Training and evaluation

- [Training and evaluation](https://github.com/starom00n/lad_cs461_427a/tree/main/src/training): `src/training`
- [Analysis notebooks](https://github.com/starom00n/lad_cs461_427a/tree/main/notebooks): `notebooks`
- [HDFS and BGL](https://github.com/starom00n/lad_cs461_427a/tree/main/data): `data`
- [Experiment results](https://github.com/starom00n/lad_cs461_427a/tree/main/results): `results`

### Other components

- **SOC analyst**

## Connections

- SOC analyst → Streamlit app: uploads logs (evidence: `README.md`)
- Streamlit app → Uploaded logs: accepts upload (evidence: `README.md`)
- Streamlit app → Session prediction: shows predictions (evidence: `README.md`)
- Streamlit app → Data loading: processes logs
- Streamlit app → Isolation Forest: uses for prediction
- Streamlit app → Logistic Regression: uses for prediction
- Streamlit app → LSTM DeepLog: uses for prediction
- Streamlit app → Transformer encoder: uses for prediction
- Analysis notebooks → HDFS and BGL: analyzes
- Training and evaluation → Experiment results: evaluates models
