# balanjani/fake_sms_detection architecture

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

- Interactive diagram: https://gitdiagram.com/balanjani/fake_sms_detection
- Repository: https://github.com/balanjani/fake_sms_detection

## Overview

This is a notebook-based SMS fraud-detection chatbot project. Its documented workflow is to apply machine-learning techniques to SMS messages and classify them as ham or spam using the SMS Spam Collection Dataset. The README does not describe how the two notebooks interact, so their specific runtime relationship is not asserted; the links below reflect the documented project workflow, not inspected notebook code.

Main entry points: [`FakeSMS_DetectionChatbot.ipynb`](https://github.com/balanjani/fake_sms_detection/blob/main/FakeSMS_DetectionChatbot.ipynb) (SMS Detector), [`TextTrustChatbot.ipynb`](https://github.com/balanjani/fake_sms_detection/blob/main/TextTrustChatbot.ipynb) (TextTrust Chatbot), [`spam.csv`](https://github.com/balanjani/fake_sms_detection/blob/main/spam.csv) (Labeled SMS Dataset)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_chatbot["TextTrust Chatbot"]
node_detector["SMS Detector"]
node_dataset[("Labeled SMS Dataset<br/>[spam.csv]")]
node_classification["Ham / Spam Result"]

node_user -->|"uses"| node_chatbot
node_chatbot -.->|"uses ML"| node_detector
node_detector -->|"uses data"| node_dataset
node_detector -->|"classifies as"| node_classification

click node_chatbot "https://github.com/balanjani/fake_sms_detection/blob/main/TextTrustChatbot.ipynb"
click node_detector "https://github.com/balanjani/fake_sms_detection/blob/main/FakeSMS_DetectionChatbot.ipynb"
click node_dataset "https://github.com/balanjani/fake_sms_detection/blob/main/spam.csv"

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_user toneBlue
class node_chatbot,node_detector toneTeal
class node_dataset toneAmber
class node_classification toneIndigo
```

## Components

### Other components

- **User**
- [TextTrust Chatbot](https://github.com/balanjani/fake_sms_detection/blob/main/TextTrustChatbot.ipynb): `TextTrustChatbot.ipynb`
- [SMS Detector](https://github.com/balanjani/fake_sms_detection/blob/main/FakeSMS_DetectionChatbot.ipynb): `FakeSMS_DetectionChatbot.ipynb`
- [Labeled SMS Dataset](https://github.com/balanjani/fake_sms_detection/blob/main/spam.csv): `spam.csv`
- **Ham / Spam Result**

## Connections

- User → TextTrust Chatbot: uses (evidence: `README.md`)
- TextTrust Chatbot → SMS Detector: uses ML
- SMS Detector → Labeled SMS Dataset: uses data (evidence: `README.md`)
- SMS Detector → Ham / Spam Result: classifies as (evidence: `README.md`)
