olafuraron commited on
Commit
1c88c6e
·
verified ·
1 Parent(s): 09c4be2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +108 -3
README.md CHANGED
@@ -1,3 +1,108 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: cc-by-nc-sa-4.0
4
+ tags:
5
+ - privacy
6
+ - web-tracking
7
+ - tracker-detection
8
+ - tabular-classification
9
+ - browser-fingerprinting
10
+ - duckduckgo
11
+ - tracker-radar
12
+ size_categories:
13
+ - 10K<n<100K
14
+ task_categories:
15
+ - tabular-classification
16
+ ---
17
+
18
+ # Tracker Radar ML Dataset
19
+
20
+ An ML-ready tabular dataset of 16,165 third-party web domains labeled as
21
+ tracking or non-tracking, with 295 behavioral and metadata features
22
+ extracted from DuckDuckGo's open-source Tracker Radar.
23
+
24
+ ## Dataset Description
25
+
26
+ Each row represents a third-party domain observed on popular websites
27
+ during DuckDuckGo's Tracker Radar crawl (US region). Features capture
28
+ how the domain behaves: which browser APIs its scripts call, whether it
29
+ sets cookies, how prevalent it is across the web, and metadata about
30
+ the entity that owns it.
31
+
32
+ ## Label Construction
33
+
34
+ Labels are derived from multiple independent sources:
35
+
36
+ - **Tracking (1)**: Domain has a tracking category in Tracker Radar
37
+ (Advertising, Analytics, Audience Measurement, etc.) or appears in
38
+ the EasyPrivacy filter list
39
+ - **Non-tracking (0)**: Domain has only functional categories (CDN,
40
+ Embedded Content, Online Payment) or is uncategorized with no API
41
+ usage and negligible cookie prevalence
42
+
43
+ 5,863 ambiguous domains were excluded from the labeled set.
44
+
45
+ Labels are independent of the fingerprinting heuristic score (0-3),
46
+ which is included as a column but was not used for labeling. This
47
+ allows the dataset to be used for evaluating ML models against the
48
+ heuristic baseline.
49
+
50
+ ## Features (295 total)
51
+
52
+ | Group | Count | Description |
53
+ |-------|-------|-------------|
54
+ | Domain metadata | 9 | Prevalence, site count, subdomain count, owner info, resource types |
55
+ | Cookie behavior | 4 | Cookie prevalence, TTL, first-party cookies set and sent |
56
+ | API binary | 131 | Whether any resource on the domain uses each browser API |
57
+ | API counts | 131 | Raw call counts per API aggregated across resources |
58
+ | API aggregates | 20 | Summary stats of API weights, category-level counts (canvas, audio, navigator, etc.) |
59
+
60
+ ## Key Columns
61
+
62
+ - `domain`: The third-party domain name
63
+ - `label`: 0 (non-tracking) or 1 (tracking)
64
+ - `label_source`: Which source(s) determined the label
65
+ - `fingerprinting_score`: DuckDuckGo's heuristic score (0-3), included for comparison but not used in labeling
66
+ - `prevalence`: Fraction of top sites that request this domain
67
+ - `weighted_fp_score`: Sum of API fingerprint weights for APIs this domain uses
68
+
69
+ ## Class Distribution
70
+
71
+ | Label | Count | Percentage |
72
+ |-------|-------|------------|
73
+ | Non-tracking (0) | 10,356 | 64.1% |
74
+ | Tracking (1) | 5,809 | 35.9% |
75
+
76
+ ## Usage
77
+ ```python
78
+ from datasets import load_dataset
79
+
80
+ ds = load_dataset("olafurjohannsson/tracker-radar-ml")
81
+ train = ds["train"]
82
+ test = ds["test"]
83
+
84
+ # Get features and labels
85
+ import pandas as pd
86
+ df = train.to_pandas()
87
+ print(df["label"].value_counts())
88
+ print(df.columns.tolist()[:20])
89
+ ```
90
+
91
+ ## Source Data
92
+
93
+ Derived from [DuckDuckGo Tracker Radar](https://github.com/duckduckgo/tracker-radar)
94
+ (CC-BY-NC-SA 4.0) with additional labels from
95
+ [EasyPrivacy](https://easylist.to/easylist/easyprivacy.txt).
96
+
97
+ ## Source Code
98
+
99
+ Feature extraction, labeling, and training scripts:
100
+ [github.com/olafurjohannsson/tracker-ml](https://github.com/olafurjohannsson/tracker-ml)
101
+
102
+ ## Limitations
103
+
104
+ - Point-in-time snapshot (US region only)
105
+ - Labels depend on Tracker Radar categories and EasyPrivacy, both of
106
+ which have known limitations and edge cases
107
+ - Some domains (e.g., consent management platforms) are debatable
108
+ - Does not include raw JavaScript source code, only aggregate behavioral metadata