difraud commited on
Commit
3ad361c
1 Parent(s): a224def

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +352 -1
README.md CHANGED
@@ -1,3 +1,354 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ license:
5
+ - mit
6
+ size_categories:
7
+ - 10K<n<100K
8
+ multilinguality:
9
+ - monolingual
10
+ task_categories:
11
+ - text-classification
12
+ - zero-shot-classification
13
+ pretty_name: DIFrauD - Domain-Independent Fraud Detection benchmark
14
+ tags:
15
+ - fraud-detection
16
+ - deception-detection
17
+ - phishing
18
+ - fake-news
19
+ - benchmark
20
+ - opinion-spam
21
+ - multi-domain
22
+ configs:
23
+ - config_name: fake_news
24
+ data_files:
25
+ - split: train
26
+ path: fake_news/train.jsonl
27
+ - split: test
28
+ path: fake_news/test.jsonl
29
+ - split: validation
30
+ path: fake_news/validation.jsonl
31
+ - config_name: job_scams
32
+ data_files:
33
+ - split: train
34
+ path: job_scams/train.jsonl
35
+ - split: test
36
+ path: job_scams/test.jsonl
37
+ - split: validation
38
+ path: job_scams/validation.jsonl
39
+ - config_name: phishing
40
+ data_files:
41
+ - split: train
42
+ path: phishing/train.jsonl
43
+ - split: test
44
+ path: phishing/test.jsonl
45
+ - split: validation
46
+ path: phishing/validation.jsonl
47
+ - config_name: political_statements
48
+ data_files:
49
+ - split: train
50
+ path: political_statements/train.jsonl
51
+ - split: test
52
+ path: political_statements/test.jsonl
53
+ - split: validation
54
+ path: political_statements/validation.jsonl
55
+ - config_name: product_reviews
56
+ data_files:
57
+ - split: train
58
+ path: product_reviews/train.jsonl
59
+ - split: test
60
+ path: product_reviews/test.jsonl
61
+ - split: validation
62
+ path: product_reviews/validation.jsonl
63
+ - config_name: sms
64
+ data_files:
65
+ - split: train
66
+ path: sms/train.jsonl
67
+ - split: test
68
+ path: sms/test.jsonl
69
+ - split: validation
70
+ path: sms/validation.jsonl
71
+ - config_name: twitter_rumours
72
+ data_files:
73
+ - split: train
74
+ path: twitter_rumours/train.jsonl
75
+ - split: test
76
+ path: twitter_rumours/test.jsonl
77
+ - split: validation
78
+ path: twitter_rumours/validation.jsonl
79
  ---
80
+
81
+ # DIFrauD - Domain Independent Fraud Detection Benchmark
82
+
83
+ Domain Independent Fraud Detection Benchmark is a labeled corpus containing over 95,854 samples of deceitful
84
+ and truthful texts from a number of independent domains and tasks. Deception, however, can be different --
85
+ in this corpus we made sure to gather strictly real examples of deception that are intentionally malicious
86
+ and cause real harm, despite them often having very little in common. Covering seven domains, this benchmark
87
+ is designed to serve as a representative slice of the various security challenges that remain open problems
88
+ today.
89
+
90
+
91
+ ## DATASET
92
+
93
+ The entire dataset contains 95854 samples, 37282 are deceptive and 58572 non-deceptive.
94
+
95
+ There are 7 independent domains in the dataset.
96
+
97
+ Each task is (or has been converted to) a binary classification problem where `y` is an indicator of deception.
98
+
99
+ 1) **Phishing** (2020 Email phishing benchmark with manually labeled emails)
100
+
101
+ *- total: 15272 deceptive: 6074 non-deceptive: 9198*
102
+
103
+ 2) **Fake News** (News Articles)
104
+
105
+ *- total: 20456 deceptive: 8832 non-deceptive: 11624*
106
+
107
+ 3) **Political Statements** (Claims and statements by politicians and other entities, made from Politifact by relabeling LIAR)
108
+
109
+ *- total: 12497 deceptive: 8042 non-deceptive: 4455*
110
+
111
+ 4) **Product Reviews** (Amazon product reviews)
112
+
113
+ *- total: 20971 deceptive: 10492 non-deceptive: 10479*
114
+
115
+ 5) **Job Scams** (Job postings on an online board)
116
+
117
+ *- total: 14295 deceptive: 599 non-deceptive: 13696*
118
+
119
+ 6) **SMS** (combination of SMS Spam from UCI repository and SMS Phishing datasets)
120
+
121
+ *- total: 6574 deceptive: 1274 non-deceptive: 5300*
122
+
123
+ 7) **Twitter Rumours** (Collection of rumours from PHEME dataset, covers multiple topics)
124
+
125
+ *- total: 5789 deceptive: 1969 non-deceptive: 3820*
126
+
127
+ Each one was constructed from one or more datasets. Some tasks were not initially binary and had to be relabeled.
128
+ The inputs vary wildly both stylistically and syntactically, as well as in terms of the goal of deception
129
+ (or absence of thereof) being performed in the context of each dataset. Nonetheless, all seven datasets contain a significant
130
+ fraction of texts that are meant to deceive the person reading them one way or another.
131
+
132
+ Each subdirectory/config contains the domain/individual dataset split into three files:
133
+
134
+ `train.jsonl`, `test.jsonl`, and `validation.jsonl`
135
+
136
+ that contain train, test, and validation sets, respectively.
137
+
138
+ The splits are:
139
+
140
+ -- train=80%
141
+
142
+ -- test=10%
143
+
144
+ -- valid=10%
145
+
146
+ The sampling process was random with seed=42. It was stratified with respect to `y` (label) for each domain.
147
+
148
+ ### Fields
149
+
150
+ Each `jsonl` file has two fields (columns): `text` (string) and `label` (integer)
151
+
152
+ `text` contains a statement or a claim that is either deceptive or thruthful.
153
+ It is guaranteed to be valid unicode, less than 1 million characters, and contains no empty entries or non-values.
154
+
155
+ `label` answers the question whether text is deceptive: `1` means yes, it is deceptive, `0` means no,
156
+ the text is not deceptive (it is truthful).
157
+
158
+ ### Processing and Cleaning
159
+
160
+ Each dataset has been cleaned using Cleanlab. Non-english entries, erroneous (parser error) entries, empty entries, duplicate entries,
161
+ entries of length less than 2 characters or exceeding 1000000 characters were all removed.
162
+
163
+ Labels were manually curated and corrected in cases of clear error.
164
+
165
+ Whitespace, quotes, bulletpoints, unicode is normalized.
166
+
167
+ ### Layout
168
+
169
+ The directory layout of `difraud` is like so:
170
+
171
+ ``
172
+ difraud
173
+ fake_news/
174
+ train.jsonl
175
+ test.jsonl
176
+ validation.jsonl
177
+ README.md
178
+ ...
179
+ ...
180
+ ...
181
+ sms/
182
+ train.jsonl
183
+ test.jsonl
184
+ validation.jsonl
185
+ README.md
186
+ README.md
187
+ LICENSE.txt
188
+ ``
189
+
190
+ ### Documentation
191
+
192
+ Primary documentation is this README file. Each dataset's directory contains a `README.md` file with additional details.
193
+ The contents of these files are also included at the end of this document in the Appendix.
194
+ LICENSE.txt contains the MIT license this dataset is distributed under.
195
+
196
+ ## CHANGES
197
+
198
+ This dataset is a successor of [the GDD dataset](https://zenodo.org/record/6512468).
199
+
200
+ Noteable changes from GDD are:
201
+
202
+ 1) Addition of SMS and Twitter Rumours datasets, making it 7 deception datasets from different domains in total
203
+
204
+ 2) Re-labeling of Political Statements dataset using a scheme that better fits with prior published work that used it and is stricter in terms of non-deceptive statement criteria of acceptance (see the README file specific to the dataset within its directory)
205
+
206
+ 3) Job Scams datasets' labeles were previously inverted, with ~13500 labeled as deceptive (is_deceptive=True) and ~600 as non-deceptive. This could lead to potential issues with using metrics such as f1-score, which for binary classification is computed for the class considered to be positive. This issue has been addressed and the deceptive texts are labeled as 1 (e.g. positive or True) while non-deceptive as 0 (e.g. negative or False)
207
+
208
+ 4) All datasets have been processed using Cleanlab, with problematic samples maually examined and issues addressed if needed. See the details in each of the individual datasets README files.
209
+
210
+ 5) All datasets now come in 2 formats: the entirety of the data in a single jsonl file located in the `data/` subdirectory of each dataset, and a standard train-test-valid stratified split of 80-10-10, in 3 separate jsonl files.
211
+
212
+ 6) All datasets have two fields: "text" (string) and "label" (integer, 0 or 1 - 0 indicates that the text is non-deceptive, 1 means it is deceptive)
213
+
214
+ 7) '\n' has been normalized to ' ' for all datasets as it causes issues with BERT's tokenizer in some cases (and to be in line with general whitespace normalization). Broken unicode has been fixed. Whitespace, quotations, and bullet points were normalized. Text is limited to 1,000,000 characters in length and guaranteed to be non-empty. Duplicates within the the same dataset (even in text only) were dropped, so were empty and None values.
215
+
216
+ ## LICENSE
217
+
218
+ This dataset is published under the MIT license and can be used and modified by anyone free of charge.
219
+ See LICENSE.txt file for details.
220
+
221
+ ## CITING
222
+
223
+ If you found this dataset useful in your research, please consider citing it as:
224
+
225
+ TODO: ADD our paper reference
226
+
227
+ ## REFERENCES
228
+
229
+ Original GDD paper:
230
+
231
+ @inproceedings{10.1145/3508398.3519358,
232
+ author = {Zeng, Victor and Liu, Xuting and Verma, Rakesh M.},
233
+ title = {Does Deception Leave a Content Independent Stylistic Trace?},
234
+ year = {2022},
235
+ isbn = {9781450392204},
236
+ publisher = {Association for Computing Machinery},
237
+ address = {New York, NY, USA},
238
+ url = {https://doi.org/10.1145/3508398.3519358},
239
+ doi = {10.1145/3508398.3519358},
240
+ abstract = {A recent survey claims that there are em no general linguistic cues for deception. Since Internet societies are plagued with deceptive attacks such as phishing and fake news, this claim means that we must build individual datasets and detectors for each kind of attack. It also implies that when a new scam (e.g., Covid) arrives, we must start the whole process of data collection, annotation, and model building from scratch. In this paper, we put this claim to the test by building a quality domain-independent deception dataset and investigating whether a model can perform well on more than one form of deception.},
241
+ booktitle = {Proceedings of the Twelfth ACM Conference on Data and Application Security and Privacy},
242
+ pages = {349–351},
243
+ numpages = {3},
244
+ keywords = {domain-independent deception detection, dataset quality/cleaning},
245
+ location = {Baltimore, MD, USA},
246
+ series = {CODASPY '22}
247
+ }
248
+
249
+ ## APPENDIX: Dataset and Domain Details
250
+
251
+ This section describes each domain/dataset in greater detail.
252
+
253
+ ### FAKE NEWS
254
+
255
+ Fake News used WELFake as a basis. The WELFake dataset combines 72,134 news articles from four pre-existing datasets
256
+ (Kaggle, McIntire, Reuters, and BuzzFeed Political). The dataset was cleaned of data leaks in the form of citations of
257
+ often reputable sources, such as "[claim] (Reuters)". It contains 35,028 real news articles and 37,106 fake news articles.
258
+ We found a number of out-of-domain statements that are clearly not relevant to news, such as "Cool", which is a potential
259
+ problem for transfer learning as well as classification.
260
+
261
+ The training set contains 16364 samples, the validation and the test sets have 2064 and 2064 samles, respectively.
262
+
263
+ ### JOB SCAMS
264
+
265
+ The Employment Scam Aegean Dataset, henceforth referred to as the Job Scams dataset, consisted of 17,880 human-annotated job listings of
266
+ job descriptions labeled as fraudulent or not.
267
+
268
+ #### Relabeling
269
+
270
+ The original Job Labels dataset had the labels inverted when released. The problem is now fixed, the labels are correct.
271
+
272
+ #### Cleaning
273
+
274
+ It was cleaned by removing all HTML tags, empty descriptions, and duplicates.
275
+ The final dataset is heavily imbalanced, with 599 deceptive and 13696 non-deceptive samples out of the 14295 total.
276
+
277
+ ### PHISHING
278
+
279
+ This dataset consists of various phishing attacks as well as benign emails collected from real users.
280
+
281
+ The training set contains 12217 samples, the validation and the test sets have 1527 and 1528 samples, respectively.
282
+
283
+ ### POLITICAL STATEMENTS
284
+
285
+ This corpus was created from the Liar dataset which consists of political statements made by US speakers assigned
286
+ a fine-grain truthfulness label by PolitiFact.
287
+
288
+ #### Labeling
289
+
290
+ The primary difference is the change in the re-labeling scheme when converting the task from multiclass to binary.
291
+
292
+ #### Old scheme
293
+
294
+ We use the claim field as the text and map labels “pants-fire,” “false,”
295
+ “barely-true,” to deceptive and “half-true,” “mostly-true,” and “true”
296
+ to non-deceptive, resulting in 5,669 deceptive and 7,167 truthful
297
+ statements.
298
+
299
+ #### New scheme
300
+
301
+ Following
302
+
303
+ *Upadhayay, B., Behzadan, V.: "Sentimental liar: Extended corpus and deep learning models for fake claim classification" (2020)*
304
+
305
+ and
306
+
307
+ *Shahriar, Sadat, Arjun Mukherjee, and Omprakash Gnawali. "Deception Detection with Feature-Augmentation by Soft Domain Transfer."
308
+ International Conference on Social Informatics. Cham: Springer International Publishing, 2022.*
309
+
310
+ we map the labels map labels “pants-fire,” “false,”
311
+ “barely-true,” **and “half-true,”** to deceptive; the labels "mostly-true" and "true" are mapped to non-deceptive.
312
+ The statements that are only half-true are now considered to be deceptive, making the criterion for statement being non-deceptive stricter:
313
+ now 2 out of 6 labels map to non-deceptive and 4 map to deceptive.
314
+
315
+ #### Cleaning
316
+
317
+ The dataset has been cleaned using cleanlab with visual inspection of problems found. Partial sentences, such as "On Iran nuclear deal",
318
+ "On inflation", were removed. Text with large number of errors induced by a parser were also removed.
319
+ Statements in language other than English (namely, Spanish) were also removed.
320
+
321
+ The training set contains 9997 samples, the validation and the test sets have 1250 samples each in them.
322
+
323
+ ### PRODUCT REVIEWS
324
+
325
+ The dataset is produced from English Amazon Reviews labeled as either real or fake, relabeled as deceptive and non-deceptive respectively.
326
+ The reviews cover a variety of products with no particular product dominating the dataset. Although the dataset authors filtered out
327
+ non-English reviews, through outlier detection we found that the dataset still contains reviews in Spanish and other languages.
328
+ Problematic label detection shows that over 6713 samples are potentially mislabeled; since this technique is error-prone,
329
+ we visually examine 67 reviews that are found to be the largest potential sources of error (the top percentile) and confirm that
330
+ most of them appear to be mislabeled. The final dataset of 20,971 reviews is evenly balanced with 10,492 deceptive and 10,479
331
+ non-deceptive samples.
332
+
333
+ The training set contains 16776 samples, the validation and the test sets have 2097 and 2098 samples, respectively.
334
+
335
+ ### SMS
336
+
337
+ This dataset was created from the SMS Spam Collection and SMS Phishing Dataset for Machine Learning and Pattern Recognition,
338
+ which contained 5,574 and 5,971 real English SMS messages, respectively. As these two datasets overlap, after de-duplication,
339
+ the final dataset is made up of 6574 texts released by a private UK-based wireless operator; 1274 of them are deceptive,
340
+ and the remaining 5300 are not.
341
+
342
+ The training set contains 5259 samples, the validation and the test sets have 657 and 658 samples,
343
+ respectively.
344
+
345
+ ### TWITTER RUMOURS
346
+
347
+ This deception dataset was created using PHEME dataset from
348
+
349
+ https://figshare.com/articles/dataset/PHEME_dataset_of_rumours_and_non-rumours/4010619/1
350
+
351
+ was used in creation of this dataset. We took source tweets only, and ignored replies to them.
352
+ We used source tweet's label as being a rumour or non-rumour to label it as deceptive or non-deceptive.
353
+
354
+ The training set contains 4631 samples, the validation and the test sets have 579 samples each