SMS Spam Detector (Trained From Scratch)
Overview
Custom Bidirectional LSTM + Embedding Model trained entirely from scratch (random weight initialization, no pre-trained BERT) on the Kaggle SMS Spam Collection dataset.
Architecture
- Custom Tokenizer & Vocab (5002 words)
- Embedding Layer (dim=64)
- Bidirectional LSTM (hidden_dim=64)
- Dense Linear Layer (32 -> 2 classes)
- Total Parameters: 390,882 (All random initialization)
Dataset & Performance
- Source: Kaggle SMS Spam Collection
- Test Accuracy: 97.58%
- Labels: 0 = HAM (Legit) ✅ | 1 = SPAM (Scam) 🚨