Dataset Viewer
Auto-converted to Parquet
sms
string
label
int64
char_len
int64
word_count
int64
punct_score
int64
spam_keywords
int64
lexical_diversity
float64
readability
float64
caps_ratio
float64
digit_ratio
float64
exclaim_ratio
float64
url_flag
int64
spammy_words
int64
entropy
float64
Go until jurong point, crazy.. Available only in bugis n great world la e buffet... Cine there got amore wat...
0
112
20
6
0
1
77.398333
0.026786
0
0
0
0
4.301991
Ok lar... Joking wif u oni...
0
30
6
4
0
0.999998
87.945
0.066667
0
0
0
0
3.644414
Free entry in 2 a wkly comp to win FA Cup final tkts 21st May 2005. Text FA to 87121 to receive entry question(std txt rate)T&C's apply 08452810075over18's
1
156
28
0
3
0.857143
80.832143
0.064103
0.160256
0
0
2
4.69758
U dun say so early hor... U c already then say...
0
50
11
4
0
0.90909
93.579773
0.04
0
0
0
0
3.751789
Nah I don't think he goes to usf, he lives around here though
0
62
13
0
0
0.923076
102.532308
0.032258
0
0
0
0
3.985565
FreeMsg Hey there darling it's been 3 week's now and no word back! I'd like some fun you up for it still? Tb ok! XxX std chgs to send, £1.50 to rcv
1
148
32
3
2
0.96875
106.18375
0.047297
0.027027
0.013514
0
0
4.571985
Even my brother is not like to speak with me. They treat me like aids patent.
0
78
16
0
0
0.937499
98.2525
0.025641
0
0
0
0
4.019806
As per your request 'Melle Melle (Oru Minnaminunginte Nurungu Vettam)' has been set as your callertune for all Callers. Press *9 to copy your friends Callertune
0
161
26
0
1
0.923077
69.993846
0.062112
0.006211
0
0
0
4.312288
WINNER!! As a valued network customer you have been selected to receivea £900 prize reward! To claim call 09061701461. Claim code KL341. Valid 12 hours only.
1
158
26
3
7
1
76.591346
0.075949
0.120253
0.018987
0
1
4.806291
Had your mobile 11 months or more? U R entitled to Update to the latest colour mobiles with camera for Free! Call The Mobile Update Co FREE on 08002986030
1
155
29
2
2
0.931034
83.25092
0.090323
0.083871
0.006452
0
2
4.49924
I'm gonna be home soon and i don't want to talk about this stuff anymore tonight, k? I've cried enough today.
0
110
21
1
0
1
83.3775
0.018182
0
0
0
0
4.225209
SIX chances to win CASH! From 100 to 20,000 pounds txt> CSH11 and send to 87575. Cost 150p/day, 6days, 16+ TsandCs apply Reply HL 4 info
1
137
26
1
3
0.923077
93.915256
0.124088
0.160584
0.007299
0
2
4.804416
URGENT! You have won a 1 week FREE membership in our £100,000 Prize Jackpot! Txt the word: CLAIM to No: 81010 T&C www.dbuk.net LCCLTD POBOX 4403LDNW1A7RW18
1
156
26
2
6
1
84.153718
0.25641
0.128205
0.012821
1
3
5.175331
I've been searching for the right words to thank you for this breather. I promise i wont take your help for granted and will fulfil my promise. You have been wonderful and a blessing at all times.
0
197
37
0
1
0.891892
89.138288
0.015228
0
0
0
0
4.259766
I HAVE A DATE ON SUNDAY WITH WILL!!
0
36
8
2
0
0.999999
103.54
0.722222
0
0.055556
0
0
3.825304
XXXMobileMovieClub: To use your credit, click the WAP link in the next txt message or click here>> http://wap. xxxmobilemovieclub.com?n=QJKGIGHJJGCBL
1
150
19
1
2
0.894736
58.423684
0.153333
0
0
1
0
4.959614
Oh k...i'm watching here:)
0
27
4
2
0
0.999998
97.025
0.037037
0
0
0
0
4.078419
Eh u remember how 2 spell his name... Yes i did. He v naughty make until i v wet.
0
82
19
2
0
0.894736
97.99614
0.036585
0.012195
0
0
0
4.170521
Fine if thatÂ’s the way u feel. ThatÂ’s the way its gota b
0
57
13
0
0
0.846153
109.129808
0.035088
0
0
0
0
3.878502
England v Macedonia - dont miss the goals/team news. Txt ur national team to 87077 eg ENGLAND to 87077 Try:WALES, SCOTLAND 4txt/ú1.20 POBOXox36504W45WQ 16+
1
156
24
0
0
0.916666
66.635942
0.205128
0.147436
0
0
0
5.156222
Is that seriously how you spell his name?
0
42
8
1
0
0.999999
82.39
0.02381
0
0
0
0
3.957063
I‘m going to try for 2 months ha ha only joking
0
48
11
0
0
0.90909
87.997273
0.020833
0.020833
0
0
0
3.897593
So ü pay first lar... Then when is da stock comin...
0
53
11
4
0
0.999999
116.6525
0.037736
0
0
0
0
4.171251
Aft i finish my lunch then i go str down lor. Ard 3 smth lor. U finish ur lunch already?
0
89
20
1
0
0.8
98.548333
0.033708
0.011236
0
0
0
4.154115
Ffffffffff. Alright no way I can meet up with you sooner?
0
58
11
1
0
0.999999
95.688182
0.051724
0
0
0
0
4.168097
Just forced myself to eat a slice. I'm really not hungry tho. This sucks. Mark is getting worried. He knows I'm sick when I turn down pizza. Lol
0
145
28
0
1
0.964285
97.001429
0.055172
0
0
0
0
4.441989
Lol your always so convincing.
0
31
5
0
0
0.999998
66.4
0.032258
0
0
0
0
3.897587
Did you catch the bus ? Are you frying an egg ? Did you make a tea? Are you eating your mom's left over dinner ? Do you feel my Love ?
0
135
32
5
0
0.71875
104.465286
0.044444
0
0
0
0
4.126598
I'm back & we're packing the car now, I'll let you know if there's room
0
76
15
0
1
0.999999
101.37
0.026316
0
0
0
0
4.330735
Ahhh. Work. I vaguely remember that! What does it feel like? Lol
0
65
12
2
0
0.999999
87.945
0.076923
0
0.015385
0
0
4.269629
Wait that's still not all that clear, were you not sure about me being sarcastic or that that's why x doesn't want to live with us
0
131
26
0
0
0.884615
79.575769
0.007634
0
0
0
0
4.009616
Yeah he got in at 2 and was v apologetic. n had fallen out and she was actin like spoilt child and he got caught up in that. Till 2! But we won't go there! Not doing too badly cheers. You?
0
190
41
3
1
0.853658
95.323933
0.026316
0.010526
0.010526
0
0
4.192548
K tell me anything about you.
0
30
6
0
0
0.999998
73.845
0.033333
0
0
0
0
3.89474
For fear of fainting with the of all that housework you just did? Quick have a cuppa
0
85
17
1
0
0.941176
98.678088
0.023529
0
0
0
0
4.218157
Thanks for your subscription to Ringtone UK your mobile will be charged £5/month Please confirm by replying YES or NO. If you reply NO you will not be charged
1
159
29
0
1
0.827586
84.179569
0.081761
0.006289
0
0
0
4.558825
Yup... Ok i go home look at the timings then i msg ü again... Xuhui going to learn on 2nd may too but her lesson is at 8am
0
123
28
4
0
0.928571
92.917857
0.02439
0.01626
0
0
0
4.085881
Oops, I'll let you know when my roommate's done
0
48
9
0
1
0.999999
103.7
0.041667
0
0
0
0
4.089662
I see the letter B on my car
0
29
8
0
0
0.999999
103.54
0.068966
0
0
0
0
3.547084
Anything lor... U decide...
0
28
4
4
0
0.999998
54.725
0.071429
0
0
0
0
3.797903
Hello! How's you and how did saturday go? I was just texting to see if you'd decided to do anything tomo. Not that i'm trying to invite myself or anything!
0
156
30
3
0
0.933333
72.605
0.025641
0
0.012821
0
0
4.242241
Pls go ahead with watts. I just wanted to be sure. Do have a great weekend. Abiola
0
83
17
0
0
0.999999
86.62451
0.048193
0
0
0
0
4.104612
Did I forget to tell you ? I want you , I need you, I crave you ... But most of all ... I love you my sweet Arabian steed ... Mmmmmm ... Yummy
0
143
34
9
0
0.705882
90.958571
0.06993
0
0
0
0
4.141662
07732584351 - Rodger Burns - MSG = We tried to call you re your reply to our sms for a free nokia mobile + free camcorder. Please call now 08000930705 for delivery tomorrow
1
173
33
0
3
0.848485
69.593362
0.040462
0.127168
0
0
2
4.559556
WHO ARE YOU SEEING?
0
20
4
1
0
0.999998
97.025
0.75
0
0
0
0
3.746439
Great! I hope you like your man well endowed. I am <#> inches...
0
73
13
3
0
0.923076
96.114423
0.041096
0
0.013699
0
0
4.364905
No calls..messages..missed calls
0
33
3
4
1
0.999997
90.99
0.030303
0
0
0
0
3.494053
Didn't you get hep b immunisation in nigeria.
0
46
8
0
0
0.999999
29.515
0.021739
0
0
0
0
3.992641
Fair enough, anything going on?
0
32
5
1
0
0.999998
49.48
0.03125
0
0
0
0
3.715018
Yeah hopefully, if tyler can't do it I could maybe ask around a bit
0
68
14
0
0
0.999999
77.810714
0.029412
0
0
0
0
4.225183
U don't know how stubborn I am. I didn't even want to go to the hospital. I kept telling Mark I'm not a weak sucker. Hospitals are for weak suckers.
0
149
30
0
1
0.866666
86.4225
0.04698
0
0
0
0
4.280241
What you thinked about me. First time you saw me in class.
0
59
12
0
0
0.916666
109.095
0.033898
0
0
0
0
4.121151
A gram usually runs like <#> , a half eighth is smarter though and gets you almost a whole second gram for <#>
0
125
23
0
0
0.869565
69.141364
0.008
0
0
0
0
4.20131
K fyi x has a ride early tomorrow morning but he's crashing at our place tonight
0
81
16
0
0
0.999999
68.9825
0.012346
0
0
0
0
4.166968
Wow. I never realized that you were so embarassed by your accomodations. I thought you liked it, since i was doing the best i could and you always seemed so happy about "the cave". I'm sorry I didn't and don't have more to give. I'm sorry i offered. I'm sorry your room was so embarassing.
0
290
55
0
1
0.727273
83.382727
0.024138
0
0
0
0
4.300941
SMS. ac Sptv: The New Jersey Devils and the Detroit Red Wings play Ice Hockey. Correct or Incorrect? End? Reply END SPTV
1
121
22
2
1
1
80.182576
0.198347
0
0
0
0
4.622092
Do you know what Mallika Sherawat did yesterday? Find out now @ <URL>
0
77
13
1
1
0.999999
80.895
0.090909
0
0
0
0
4.416016
Congrats! 1 year special cinema pass for 2 is yours. call 09061209465 now! C Suprman V, Matrix3, StarWars3, etc all 4 FREE! bx420-ip4-5we. 150pm. Dont miss out!
1
162
27
4
3
1
87.18375
0.074074
0.148148
0.024691
0
1
4.845579
Sorry, I'll call later in meeting.
0
35
6
0
1
0.999998
73.845
0.057143
0
0
0
0
3.965596
Tell where you reached
0
23
4
0
0
0.999998
118.175
0.043478
0
0
0
0
3.551191
Yes..gauti and sehwag out of odi series.
0
41
7
2
0
0.999999
78.872857
0.02439
0
0
0
0
3.930007
Your gonna have to pick up a $1 burger for yourself on your way home. I can't even move. Pain is killing me.
0
109
23
0
0
1
96.062029
0.027523
0.009174
0
0
0
4.318125
Ha ha ha good joke. Girls are situation seekers.
0
49
9
0
0
0.888888
80.0675
0.040816
0
0
0
0
3.967178
Its a part of checking IQ
0
26
6
0
0
0.999998
102.045
0.115385
0
0
0
0
3.946223
Sorry my roommates took forever, it ok if I come by now?
0
57
12
1
1
0.999999
74.805
0.035088
0
0
0
0
3.908285
Ok lar i double check wif da hair dresser already he said wun cut v short. He said will cut until i look nice.
0
111
24
0
0
0.875
88.905
0.018018
0
0
0
0
4.073809
As a valued customer, I am pleased to advise you that following recent review of your Mob No. you are awarded with a £1500 Bonus Prize, call 09066364589
1
153
28
0
4
0.928571
74.789286
0.039216
0.098039
0
0
1
4.641093
Today is "song dedicated day.." Which song will u dedicate for me? Send this to all ur valuable frnds but first rply me...
0
123
23
5
0
1
85.027246
0.02439
0
0
0
0
4.353415
Urgent UR awarded a complimentary trip to EuroDisinc Trav, Aco&Entry41 Or £1000. To claim txt DIS to 87121 18+6*£1.50(moreFrmMob. ShrAcomOrSglSuplt)10, LS1 3AJ
1
160
22
0
3
0.954545
41.72803
0.15
0.13125
0
0
1
5.09668
Did you hear about the new "Divorce Barbie"? It comes with all of Ken's stuff!
1
79
15
2
0
0.999999
97.7025
0.063291
0
0.012658
0
0
4.405703
I plane to give on this month end.
0
35
8
0
0
0.999999
114.115
0.028571
0
0
0
0
3.817393
Wah lucky man... Then can save money... Hee...
0
47
8
6
0
0.999999
97.025
0.06383
0
0
0
0
3.771813
Finished class where are you.
0
30
5
0
0
0.999998
100.24
0.033333
0
0
0
0
3.948394
HI BABE IM AT HOME NOW WANNA DO SOMETHING? XX
0
46
10
1
1
0.999999
95.165
0.76087
0
0
0
0
3.794239
K..k:)where are you?how did you performed?
0
43
6
4
0
0.999998
105.09
0.023256
0
0
0
0
4.12454
U can call me now...
0
21
5
2
2
0.999998
117.16
0.047619
0
0
0
0
3.403989
I am waiting machan. Call me once you free.
0
44
9
0
2
0.999999
108.2675
0.045455
0
0
0
1
4.024899
Thats cool. i am a gentleman and will treat you with dignity and respect.
0
74
14
0
0
0.928571
77.810714
0.013514
0
0
0
0
4.077732
I like you peoples very much:) but am very shy pa.
0
51
11
0
0
0.90909
87.997273
0.019608
0
0
0
0
4.136372
Does not operate after <#> or what
0
43
7
0
0
0.999999
66.787143
0.023256
0
0
0
0
3.821159
Its not the same here. Still looking for a job. How much do Ta's earn there.
0
77
16
0
0
0.999999
111.534167
0.051948
0
0
0
0
4.233858
Sorry, I'll call later
0
23
4
0
1
0.999998
75.875
0.086957
0
0
0
0
3.51837
K. Did you call me just now ah?
0
33
8
1
2
0.999999
114.115
0.060606
0
0
0
0
4.074697
Ok i am on the way to home hi hi
0
33
10
0
0
0.899999
103.625
0.030303
0
0
0
0
3.406846
You will be in the place of that man
0
37
9
0
0
0.999999
113.1
0.027027
0
0
0
0
3.830547
Yup next stop.
0
15
3
0
0
0.999997
119.19
0.066667
0
0
0
0
3.506891
I call you later, don't have network. If urgnt, sms me.
0
56
11
0
1
0.999999
101.270682
0.035714
0
0
0
0
4.28961
For real when u getting on yo? I only need 2 more tickets and one more jacket and I'm done. I already used all my multis.
0
122
26
1
0
0.884615
90.66141
0.032787
0.008197
0
0
0
4.134417
Yes I started to send requests to make it but pain came back so I'm back in bed. Double coins at the factory too. I gotta cash in all my nitros.
0
145
31
0
1
0.870967
92.643441
0.034483
0
0
0
1
4.14405
I'm really not up to it still tonight babe
0
43
9
0
0
0.999999
94.3
0.023256
0
0
0
0
3.914182
Ela kano.,il download, come wen ur free..
0
42
7
2
1
0.999999
90.958571
0.02381
0
0
0
1
3.998762
Yeah do! Don‘t stand to close tho- you‘ll catch something!
0
59
10
2
0
0.999999
103.625
0.033898
0
0.033898
0
0
4.082306
Sorry to be a pain. Is it ok if we meet another night? I spent late afternoon in casualty and that means i haven't done any of y stuff42moro and that includes all my time sheets and that. Sorry.
0
196
39
1
0
0.923077
78.670769
0.020408
0.010204
0
0
0
4.153742
Smile in Pleasure Smile in Pain Smile when trouble pours like Rain Smile when sum1 Hurts U Smile becoz SOMEONE still Loves to see u Smiling!!
0
142
26
2
0
0.76923
79.575769
0.133803
0.007042
0.014085
0
0
4.323413
Please call our customer service representative on 0800 169 6031 between 10am-9pm as you have WON a guaranteed £1000 cash or £5000 prize!
1
138
23
1
5
1
58.42913
0.028986
0.15942
0.007246
0
3
4.500669
Havent planning to buy later. I check already lido only got 530 show in e afternoon. U finish work already?
0
108
20
1
1
1
68.938333
0.027778
0.027778
0
0
0
4.359148
Your free ringtone is waiting to be collected. Simply text the password "MIX" to 85069 to verify. Get Usher and Britney. FML, PO Box 5249, MK17 92H. 450Ppw 16
1
159
29
0
2
0.931034
82.786595
0.113208
0.113208
0
0
1
4.939387
Watching telugu movie..wat abt u?
0
34
5
3
0
0.999998
68.9375
0.029412
0
0
0
0
4.101881
i see. When we finish we have loads of loans to pay
0
52
12
0
1
0.916666
103.005
0.019231
0
0
0
0
3.819128
Hi. Wk been ok - on hols now! Yes on for a bit of a run. Forgot that i have hairdressers appointment at four so need to get home n shower beforehand. Does that cause prob for u?"
0
179
38
2
1
0.894737
92.267872
0.027933
0
0.005587
0
0
4.16527
I see a cup of coffee animation
0
32
7
0
0
0.999999
66.787143
0.03125
0
0
0
0
3.632049
End of preview. Expand in Data Studio

SMS Spam Enriched Dataset

An enriched version of the classic SMS Spam Collection Dataset from UC Irvine with additional engineered features and semantic embeddings.
This dataset is designed for spam detection, feature engineering experiments, and model interpretability research.


Dataset Overview

  • Total samples: 5,171
  • Classes:
    • 0: Ham (non-spam)
    • 1: Spam

Enrichments Added

Alongside the raw SMS text (sms) and labels (label), we engineered multiple new features:

  1. char_len → Total characters in the message
  2. word_count → Total words in the message
  3. punct_score → Weighted score for punctuation usage (!, ?, ...)
  4. spam_keywords → Count of known spammy tokens (free, win, urgent, etc.)
  5. lexical_diversity → Ratio of unique words to total words
  6. readability → Flesch Reading Ease score
  7. caps_ratio → Proportion of uppercase characters
  8. digit_ratio → Proportion of numeric digits
  9. exclaim_ratio → Ratio of exclamation marks to total characters
  10. url_flag → Binary indicator for presence of URLs
  11. spammy_words → Count of flagged high-signal words
  12. entropy → Shannon entropy of characters
  13. embeddings → Sentence-transformer vector representations (for downstream tasks like clustering, semantic similarity, visualization)

Example Row

sms label char_len word_count punct_score spam_keywords lexical_diversity readability caps_ratio digit_ratio url_flag entropy
"Free entry in 2 a wkly comp to win FA Cup..." 1 156 28 0 3 0.857 80.83 0.064 0.16 0 4.69

Visualizations

Below is a PCA projection of SMS embeddings, showing clear separation between spam (red) and ham (blue):

PCA Plot


Benchmark Models

We trained baseline classifiers using the enriched dataset:

  • Logistic Regression (with combined features)

    • Accuracy: ~99%
    • F1 (spam): ~0.95
  • Random Forest (with combined features)

    • Accuracy: ~98%
    • F1 (spam): ~0.92

    Logistic Regression Report (Combined Features):

            precision    recall  f1-score   support
    
         0       0.99      1.00      0.99       904
         1       0.98      0.92      0.95       131
    

    accuracy 0.99 1035

    macro avg 0.99 0.96 0.97 1035

weighted avg 0.99 0.99 0.99 1035

Random Forest Report (Combined Features): precision recall f1-score support

       0       0.98      1.00      0.99       904
       1       0.99      0.86      0.92       131

accuracy                           0.98      1035

macro avg 0.99 0.93 0.96 1035

weighted avg 0.98 0.98 0.98 1035


Use Cases

  • Spam detection model training
  • Feature engineering demonstration
  • Embedding-based similarity and clustering tasks
  • Educational material for NLP + ML pipelines

Citation

If you use this dataset, please cite the original SMS Spam Collection dataset:

@inproceedings{Almeida2011SpamFiltering, title={Contributions to the Study of SMS Spam Filtering: New Collection and Results}, author={Tiago A. Almeida and Jose Maria Gomez Hidalgo and Akebo Yamakami}, year={2011}, booktitle = "Proceedings of the 2011 ACM Symposium on Document Engineering (DOCENG'11)", }.

Dataset Enrichment and Feature Engineering contributions by Naga Adithya Kaushik (GenAIDevTOProd).


License

This dataset is distributed under the same terms as the original SMS Spam dataset (publicly available for research).


Downloads last month
34