TimeSeries Anomaly Transformer is a full-stack AI system designed to detect anomalies in time-series data using a custom-built Transformer architecture. Users can upload CSV datasets, visualize anomalies, and explore detected abnormal points through an interactive UI.
- π€ Transformer-based Anomaly Detection
- π§ Association Discrepancy + Anomaly Attention Mechanism
- π Real-time Graph Visualization
- π CSV Dataset Upload Support
- π Highlights Exact Anomaly Locations
- β‘ Backend-powered anomaly scoring
- π React-based modern UI
| Layer | Technology |
|---|---|
| Frontend | React, Chart.js |
| Backend | Express.js |
| Model | Python (NumPy, Matplotlib, PyTorch) |
| Core Logic | Transformer, Gaussian Kernel, Minimax Strategy |
| Dataset | Bitcoin (2018β2024) CSV |
TimeSeries-Transformer/
βββ backend/ # Node + Express API
β βββ server.js
β βββ routes/
β βββ controllers/
β
βββ model/ # Python Transformer Models
β βββ simple_transformer.py
β βββ pytorch_transformer.py
β βββ transformer_no_libs.py
β βββ anomaly_attention.py
β βββ preprocess.py
β
βββ frontend/ # React UI
β βββ src/
β β βββ components/
β β β βββ FileUploader.js
β β β βββ GraphView.js
β β β βββ AnomalyList.js
β β βββ App.js
β β βββ index.js
β βββ public/
β βββ package.json
β
βββ datasets/
β βββ BTC_1D.csv
β βββ BTC_4H.csv
β βββ BTC_15M.csv
β βββ BTC_1H.csv
β
βββ README.md
cd model
python -m venv venv
venv\Scripts\activate # Windows
pip install -r requirements.txtRun model:
python simple_transformer.pycd frontend
npm install
npm startcd backend
npm install
npm start@koustub1412 Team Members β NGIT