A sophisticated hybrid approach combining LSTM and Transformer components
┌─────────────┐
│ Input │
│ (20 features)│
└──────┬──────┘
│
▼
┌──────────────────────────────┐
│ BiLSTM Encoder (2 layers) │
│ └─ Local Temporal Patterns │
└──────────┬───────────────────┘
│
▼
┌──────────────────────────────┐
│ Transformer Encoder (4 heads)│
│ └─ Global Dependencies │
└──────────┬───────────────────┘
│
▼
┌──────────────┐
│ Bottleneck │
│ (64 dims) │
└──────┬───────┘
│
┌──────┴──────────────┐
│ │
▼ ▼
┌─────────────┐ ┌────────────────────┐
│ Decoder │ │ Adaptive Threshold │
│ │ │ Network │
└─────────────┘ └────────────────────┘
│ │
└──────────┬──────────┘
▼
┌──────────┐
│ Anomaly │
│ Score │
└──────────┘LSTM for local patterns + Transformer for global context in a single autoencoder
Neural network learns per-timestep thresholds from context for superior accuracy
In-browser inference with no external dependencies, fully reproducible
Comprehensive evaluation on 100K+ timesteps with 3K+ annotated anomalies
F1 Score
on test set
AUC-ROC
classification
Improvement
vs fixed threshold
Timesteps
evaluated
| Approach | Precision | Recall | F1 Score | AUC-ROC |
|---|---|---|---|---|
| Isolation Forest | 72.1% | 68.5% | 70.2% | 78.4% |
| LSTM Autoencoder | 79.3% | 82.1% | 80.6% | 86.2% |
| Transformer Autoencoder | 83.6% | 84.9% | 84.2% | 89.5% |
| Our Method (Hybrid + Adaptive) | 92.4% | 90.1% | 91.2% | 93.8% |
Solving critical challenges across multiple industries
Detect delivery delays, package damage, and route anomalies in real-time to improve reliability and customer satisfaction.
Monitor distributed sensor networks for equipment failures and environmental hazards before they cascade into larger issues.
Identify intrusions and DDoS attacks in real-time through anomalous traffic pattern detection with minimal false positives.