Update Dataset README.md

#1
by qwer1219 - opened
Files changed (1) hide show
  1. README.md +115 -3
README.md CHANGED
@@ -1,3 +1,115 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: "Live or Lie — Live Streaming Room Risk Assessment (May/June 2025)"
3
+ language:
4
+ - zh
5
+ tags:
6
+ - live streaming risk assessment
7
+ - fraud detection
8
+ - weak supervision
9
+ - multiple-instance-learning
10
+ - behavior sequence
11
+ license: other
12
+ ---
13
+
14
+ # Dataset Card: Live Streaming Room Risk Assessment (May/June 2025)
15
+
16
+ ## Dataset Summary
17
+ This dataset contains **live-streaming room interaction logs** for **room-level risk assessment** under **weak supervision**. Each example corresponds to a single live-streaming room and is labeled as **risky (> 0)** or **normal (= 0)**.
18
+
19
+ The task is designed for early detection: each room’s action sequence is **truncated to the first 30 minutes**, and can be structured into **user–timeslot capsules** for models such as AC-MIL.
20
+
21
+
22
+ ## Languages
23
+ - Predominantly **Chinese (zh)**: user behaviors are presented in Chinese, e.g., "主播口播:...", these action descriptions are then encoded as action vectors via a **Chinese-bert**.
24
+
25
+
26
+ ## Data Structure
27
+ Each room has a label and a sequence of **actions**:
28
+
29
+ - `room_id` (`string`)
30
+ - `label` (`int32`, {0,1,2,3}))
31
+ - `patch_list` (`list` of tuples):
32
+ - `u_idx` (`string`): user identifier within a room
33
+ - `t` (`int32`): time index along the room timeline
34
+ - `l` (`int32`): capsule index
35
+ - `action_id` (`int32`): action type ID
36
+ - `action_vec` (`list<float16>` or `null`): action features encoded from masked action descriptions
37
+ - `timestamp` (`string`): action timestamp
38
+ - `action_desc` (`string`): textual action descriptions
39
+ - `user_id` (`string`): user indentifier across rooms
40
+
41
+ ## Action Space
42
+ The paper’s setup includes both viewer interactions (e.g., room entry, comments, likes, gifts, shares, etc.) and streamer activities (e.g., start stream, speech transcripts via voice-to-text, OCR-based visual content monitoring). Text-like fields are discretized as part of platform inspection/sampling.
43
+
44
+ ## Data Splits
45
+ The paper uses two datasets (“May” and “June”), each with train/val/test splits.
46
+ | Split | #Rooms | Avg. actions | Avg. users | Avg. time (min) |
47
+ |------:|------:|-------------:|-----------:|----------------:|
48
+ | May train | 176,354 | 709 | 35 | 30.0 |
49
+ | May val | 23,859 | 704 | 36 | 29.6 |
50
+ | May test | 22,804 | 740 | 37 | 29.7 |
51
+ | June train| 80,472 | 700 | 36 | 30.0 |
52
+ | June val | 10,934 | 767 | 40 | 29.1 |
53
+ | June test | 11,116 | 725 | 37 | 29.1 |
54
+
55
+ ## Quickstart
56
+ Below we provide a simple example showing how to load the dataset.
57
+
58
+ We use LMDB to store and organize the data. Please install the Python package first:
59
+ ```
60
+ pip3 install lmdb
61
+ ```
62
+
63
+ Here is a minimal demo for reading an LMDB record:
64
+ ```python
65
+ import lmdb
66
+ import pickle
67
+
68
+ room_id = 0 # the room you want to read
69
+
70
+ env = lmdb.open(
71
+ lmdb_path,
72
+ readonly=True,
73
+ lock=False,
74
+ map_size=240 * 1024 * 1024 * 1024,
75
+ readahead=False,
76
+ )
77
+
78
+ with env.begin() as txn:
79
+ value = txn.get(str(room_id).encode())
80
+ if value is not None:
81
+ data = pickle.loads(value)
82
+ patch_list = data["patch_list"] # list of tuples: (u_idx, t, l, action_id, action_vec, timestamp, action_desc, global_user_idx)
83
+ room_label = data["label"]
84
+
85
+ # close lmdb after reading
86
+ env.close()
87
+ ```
88
+
89
+
90
+ ## Claim
91
+ To ensure the security and privacy of TikTok users, all data collected from live rooms has been anonymized and masked, preventing any content from being linked to a specific individual. In addition, action vectors are re-encoded from the masked action descriptions. As a result, some fine-grained behavioral signals are inevitably lost, which leads to a performance drop for AC-MIL. The corresponding results are shown below.
92
+
93
+ | Split | PR_AUC | ROC_AUC | R@P=0.9 | P@R=0.9 | R@FPR=0.1 | FPR@R=0.9 |
94
+ |------:|------:|-------------:|-----------:|----------------:|----------------:|----------------:|
95
+ | May | 0.6518 | 0.9034 | 0.2281 | 0.2189 | 0.7527 | 0.3215 |
96
+ | June | 0.6120 | 0.8856 | 0.1685 | 0.1863 | 0.7111 | 0.3935 |
97
+
98
+ ---
99
+
100
+ ## Considerations for Using the Data
101
+
102
+ Intended Use \
103
+ • Research on weakly-supervised risk detection / MIL in live streaming \
104
+ • Early-warning room-level moderation signals \
105
+ • Interpretability over localized behavior segments (capsule-level evidence)
106
+
107
+ Out-of-scope / Misuse \
108
+ • Do not use this dataset to identify, profile, or target individuals. \
109
+ • Do not treat predictions as definitive enforcement decisions without human review.
110
+
111
+ Bias, Limitations, and Recommendations \
112
+ • Sampling bias: negatives are downsampled (1:10); reported metrics and thresholds should account for this. \
113
+ • Domain specificity: behavior patterns are platform- and policy-specific; transfer to other platforms may be limited. \
114
+ • Weak supervision: only room-level labels are provided; interpretability at capsule level is model-derived.
115
+