hatim00101 commited on
Commit
e83913b
·
verified ·
1 Parent(s): c0c85f1

Update Model Card

Browse files
Files changed (1) hide show
  1. README.md +88 -0
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ language: en
4
+ license: cc-by-nc-nd-4.0
5
+ tags:
6
+ - text-classification
7
+ - bert
8
+ - scam-detection
9
+ - fraud-detection
10
+ - call-transcripts
11
+ datasets:
12
+ - scam-and-non-scam-call-conversation-dataset
13
+ metrics:
14
+ - accuracy
15
+ - precision
16
+ - recall
17
+ - f1
18
+ pipeline_tag: text-classification
19
+ widget:
20
+ - text: "Hello, this is your bank calling. We noticed suspicious activity and need your card number and PIN immediately to secure your account."
21
+ example_title: Scam example
22
+ - text: "Hi, this is Dr. Smith's office confirming your dental appointment for next Tuesday at 10am."
23
+ example_title: Non-scam example
24
+ ---
25
+
26
+ # bert-scam-call-classifier
27
+
28
+ A fine-tuned `bert-base-uncased` binary text classifier that flags phone-call transcripts as **scam** or **non_scam**, based on conversational/behavioral patterns rather than topic keywords alone.
29
+
30
+ ## Model description
31
+
32
+ - **Base model:** [`bert-base-uncased`](https://huggingface.co/bert-base-uncased)
33
+ - **Task:** Binary sequence classification (`0 = non_scam`, `1 = scam`)
34
+ - **Fine-tuning framework:** Hugging Face `transformers.Trainer`
35
+ - **Max sequence length:** 256 tokens
36
+
37
+
38
+ ## Training data
39
+
40
+ Fine-tuned on the [Scam and Non-Scam Call Conversation Dataset](https://www.kaggle.com/datasets) (Kaggle), built for the paper "Classifying Scam Calls through Content Analysis with Dynamic Sparsity Top-k Attention Regularization" (IEEE Access).
41
+
42
+ | Split | Count |
43
+ |---|
44
+ | Total conversations | 800 |
45
+ | Scam | 400 |
46
+ | Non-scam | 400 |
47
+ | Train | 640 |
48
+ | Validation | 80 |
49
+ | Test | 80 |
50
+
51
+ *(Exact split counts will vary slightly depending on your run — the notebook fills these in automatically from `train_df`/`val_df`/`test_df`.)*
52
+
53
+ The dataset is released under **CC BY-NC-ND 4.0** — non-commercial use only, and this model inherits that restriction.
54
+
55
+ ## Training procedure
56
+
57
+ - Optimizer: AdamW (via `Trainer` defaults)
58
+ - Learning rate: 2e-5
59
+ - Epochs: 4 (with early stopping on validation F1)
60
+ - Batch size: 16 (train) / 32 (eval)
61
+ - Precision: fp16 (if a GPU was available), else fp32
62
+
63
+ ## Evaluation results (held-out test set)
64
+
65
+ | Metric | Score |
66
+ |---|
67
+ | Accuracy | 1.0000 |
68
+ | Precision | 1.0000 |
69
+ | Recall | 1.0000 |
70
+ | F1 | 1.0000 |
71
+
72
+ ## How to use
73
+
74
+ ```python
75
+ from transformers import pipeline
76
+
77
+ clf = pipeline("text-classification", model="your-hf-username/bert-scam-call-classifier")
78
+ clf("Hello, this is your bank calling. We need your card number and PIN to verify your account immediately.")
79
+ ```
80
+
81
+ ## Citation
82
+
83
+ If you use this dataset, please cite the original paper:
84
+
85
+ > *Classifying Scam Calls through Content Analysis with Dynamic Sparsity Top-k Attention Regularization*, IEEE Access.
86
+
87
+ ---
88
+ *Model card generated for this fine-tuning run.