Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
csv
Sub-tasks:
multi-class-classification
Languages:
English
Size:
10K - 100K
License:
Release 1.1.0
Browse files
README.md
CHANGED
|
@@ -31,15 +31,15 @@ configs:
|
|
| 31 |
English text messages labelled **scam** or **safe**, cleaned and split for training scam detectors. Used to train [rasheq/scam-shield-distilbert](https://huggingface.co/rasheq/scam-shield-distilbert).
|
| 32 |
|
| 33 |
- **Pipeline code:** https://github.com/Mohamedrasheq/scam-shield
|
| 34 |
-
- **Version:** 1.
|
| 35 |
|
| 36 |
## Splits
|
| 37 |
|
| 38 |
| Split | Scam | Safe | Total | Made from |
|
| 39 |
|---|---|---|---|---|
|
| 40 |
-
| train |
|
| 41 |
-
| validation | 1,
|
| 42 |
-
| test | 1,
|
| 43 |
|
| 44 |
No message appears in more than one split.
|
| 45 |
|
|
@@ -49,16 +49,17 @@ No message appears in more than one split.
|
|
| 49 |
|---|---|
|
| 50 |
| `text` | The message, cleaned and masked (see below) |
|
| 51 |
| `label` | `scam` or `safe` |
|
| 52 |
-
| `source` | `imc2025`, `mishra_soni` or `
|
| 53 |
-
| `scam_type` | For IMC scams: banking, delivery, government, telecom, wrong number, hey mum/dad, others. Empty for safe messages |
|
| 54 |
|
| 55 |
## Sources
|
| 56 |
|
| 57 |
| Source | Messages | Label | License |
|
| 58 |
|---|---|---|---|
|
| 59 |
-
| IMC 2025 public smishing reports | 10,
|
| 60 |
-
| Mishra & Soni SMS phishing dataset | 4,
|
| 61 |
-
| Synthetic safe service messages (OTP codes, bank alerts, deliveries, bills, travel… from 21 countries) | 4,
|
|
|
|
| 62 |
|
| 63 |
## How it was built
|
| 64 |
|
|
@@ -67,16 +68,17 @@ No message appears in more than one split.
|
|
| 67 |
3. Broken characters and HTML codes repaired.
|
| 68 |
4. **Masking, the same for every source:** links → `<URL>`, phone numbers → `<PHONE_NUMBER>`, emails → `<EMAIL_ADDRESS>`, long numbers → `<NUMBER>`. IMC's own privacy tags were mapped to these, and its word tags (names, dates, places) were removed, so no tag appears in only one source.
|
| 69 |
5. Messages with fewer than 3 real words removed.
|
| 70 |
-
6. IMC reports that are clearly real messages (real OTP codes, fraud warnings) removed.
|
| 71 |
7. Exact, same-pattern and near-duplicate (90%+ similar) messages removed.
|
| 72 |
-
8. Validation and test taken only from real messages; synthetic messages are in train only.
|
| 73 |
|
| 74 |
## Known issues
|
| 75 |
|
| 76 |
-
-
|
| 77 |
- Safe messages in validation and test are personal chats only; there are no real safe *service* messages yet.
|
| 78 |
- Personal chats in the Mishra & Soni data are from around 2010–2012, mostly UK and Singapore.
|
| 79 |
-
-
|
|
|
|
| 80 |
|
| 81 |
## Credits
|
| 82 |
|
|
@@ -86,4 +88,4 @@ Please credit the original authors when you use this data.
|
|
| 86 |
|
| 87 |
> Sandhya Mishra, Devpriya Soni. *SMS Phishing Dataset for Machine Learning and Pattern Recognition.* Mendeley Data, V1, 2022. https://doi.org/10.17632/f45bkkt8pr.1
|
| 88 |
|
| 89 |
-
Synthetic safe service messages: written for this project with an AI model and checked for duplicates, reused templates and
|
|
|
|
| 31 |
English text messages labelled **scam** or **safe**, cleaned and split for training scam detectors. Used to train [rasheq/scam-shield-distilbert](https://huggingface.co/rasheq/scam-shield-distilbert).
|
| 32 |
|
| 33 |
- **Pipeline code:** https://github.com/Mohamedrasheq/scam-shield
|
| 34 |
+
- **Version:** 1.1.0
|
| 35 |
|
| 36 |
## Splits
|
| 37 |
|
| 38 |
| Split | Scam | Safe | Total | Made from |
|
| 39 |
|---|---|---|---|---|
|
| 40 |
+
| train | 10,411 | 10,643 | 21,054 | 80% of real messages + all synthetic messages |
|
| 41 |
+
| validation | 1,043 | 465 | 1,508 | real messages only |
|
| 42 |
+
| test | 1,045 | 465 | 1,510 | real messages only |
|
| 43 |
|
| 44 |
No message appears in more than one split.
|
| 45 |
|
|
|
|
| 49 |
|---|---|
|
| 50 |
| `text` | The message, cleaned and masked (see below) |
|
| 51 |
| `label` | `scam` or `safe` |
|
| 52 |
+
| `source` | `imc2025`, `mishra_soni`, `synthetic` or `synthetic_v2` |
|
| 53 |
+
| `scam_type` | For IMC scams: banking, delivery, government, telecom, wrong number, hey mum/dad, others. For `synthetic_v2` scams: a short type such as fake_bank or romance_scam. Empty for safe messages |
|
| 54 |
|
| 55 |
## Sources
|
| 56 |
|
| 57 |
| Source | Messages | Label | License |
|
| 58 |
|---|---|---|---|
|
| 59 |
+
| IMC 2025 public smishing reports | 10,167 | scam | CC BY 4.0 |
|
| 60 |
+
| Mishra & Soni SMS phishing dataset | 4,650 safe, 333 scam | both | CC BY 4.0 |
|
| 61 |
+
| Synthetic safe service messages (OTP codes, bank alerts, deliveries, bills, travel… from 21 countries) | 4,953 | safe | CC BY 4.0 |
|
| 62 |
+
| Synthetic hard cases v2 (about 180 message types, 50 countries) | 1,970 safe, 1,999 scam | both | CC BY 4.0 |
|
| 63 |
|
| 64 |
## How it was built
|
| 65 |
|
|
|
|
| 68 |
3. Broken characters and HTML codes repaired.
|
| 69 |
4. **Masking, the same for every source:** links → `<URL>`, phone numbers → `<PHONE_NUMBER>`, emails → `<EMAIL_ADDRESS>`, long numbers → `<NUMBER>`. IMC's own privacy tags were mapped to these, and its word tags (names, dates, places) were removed, so no tag appears in only one source.
|
| 70 |
5. Messages with fewer than 3 real words removed.
|
| 71 |
+
6. IMC reports that are clearly real messages (real OTP codes, fraud warnings) removed, plus 163 more after a hand review (real service messages, comments about scams, or too vague to judge).
|
| 72 |
7. Exact, same-pattern and near-duplicate (90%+ similar) messages removed.
|
| 73 |
+
8. Validation and test taken only from real messages; synthetic messages are in train only. Validation and test are the same as in 1.0.0, minus the removed reports.
|
| 74 |
|
| 75 |
## Known issues
|
| 76 |
|
| 77 |
+
- Some IMC reports are still real messages rather than scams (people report messages they are unsure about). Only the ones the model doubted were reviewed by hand.
|
| 78 |
- Safe messages in validation and test are personal chats only; there are no real safe *service* messages yet.
|
| 79 |
- Personal chats in the Mishra & Soni data are from around 2010–2012, mostly UK and Singapore.
|
| 80 |
+
- The first synthetic safe set often starts with a brand name. The v2 set balances links, phone numbers, lengths and brand prefixes across both labels.
|
| 81 |
+
- A separate unseen test set (Test B, 400 messages) is kept in the GitHub repo under `data/test_b/`.
|
| 82 |
|
| 83 |
## Credits
|
| 84 |
|
|
|
|
| 88 |
|
| 89 |
> Sandhya Mishra, Devpriya Soni. *SMS Phishing Dataset for Machine Learning and Pattern Recognition.* Mendeley Data, V1, 2022. https://doi.org/10.17632/f45bkkt8pr.1
|
| 90 |
|
| 91 |
+
Synthetic messages (safe service messages and v2 hard cases): written for this project with an AI model and checked for duplicates, reused templates, label shortcuts and overlap with the test sets. Brands and details are fictional examples.
|
test.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
train.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
val.csv
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|