yrqiao commited on
Commit
9c46a17
·
verified ·
1 Parent(s): 746e0da

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +122 -3
README.md CHANGED
@@ -1,3 +1,122 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+ ---
5
+ pretty_name: "Live or Lie — Live Streaming Room Risk Assessment (May/June 2025)"
6
+ language:
7
+ - zh
8
+ tags:
9
+ - live streaming risk assessment
10
+ - fraud detection
11
+ - weak supervision
12
+ - multiple-instance-learning
13
+ - behavior sequence
14
+ license: other
15
+ ---
16
+
17
+ # Dataset Card: Live Streaming Room Risk Assessment (May/June 2025)
18
+
19
+ ## Dataset Summary
20
+ 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)**.
21
+
22
+ 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.
23
+
24
+
25
+ ## Languages
26
+ - Predominantly **Chinese (zh)**: user behaviors are presented in Chinese, e.g., "主播口播:...", these action descriptions are then encoded as action vectors via a **Chinese-bert**.
27
+
28
+
29
+ ## Data Structure
30
+ Each room has a label and a sequence of **actions**:
31
+
32
+ - `room_id` (`string`)
33
+ - `label` (`int32`, {0,1,2,3}))
34
+ - `patch_list` (`list` of tuples):
35
+ - `u_idx` (`string`): user identifier within a room
36
+ - `t` (`int32`): time index along the room timeline
37
+ - `l` (`int32`): capsule index
38
+ - `action_id` (`int32`): action type ID
39
+ - `action_vec` (`list<float16>` or `null`): action features encoded from masked action descriptions
40
+ - `timestamp` (`string`): action timestamp
41
+ - `action_desc` (`string`): textual action descriptions
42
+ - `user_id` (`string`): user indentifier across rooms
43
+
44
+ ## Action Space
45
+ 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.
46
+
47
+ ## Data Splits
48
+ The paper uses two datasets (“May” and “June”), each with train/val/test splits.
49
+ | Split | #Rooms | Avg. actions | Avg. users | Avg. time (min) |
50
+ |------:|------:|-------------:|-----------:|----------------:|
51
+ | May train | 176,354 | 709 | 35 | 30.0 |
52
+ | May val | 23,859 | 704 | 36 | 29.6 |
53
+ | May test | 22,804 | 740 | 37 | 29.7 |
54
+ | June train| 80,472 | 700 | 36 | 30.0 |
55
+ | June val | 10,934 | 767 | 40 | 29.1 |
56
+ | June test | 11,116 | 725 | 37 | 29.1 |
57
+
58
+ ## Quickstart
59
+ Below we provide a simple example showing how to load the dataset.
60
+
61
+ We use LMDB to store and organize the data. Please install the Python package first:
62
+ ```
63
+ pip3 install lmdb
64
+ ```
65
+
66
+ Here is a minimal demo for reading an LMDB record:
67
+ ```python
68
+ import lmdb
69
+ import pickle
70
+
71
+ room_id = 0 # the room you want to read
72
+
73
+ env = lmdb.open(
74
+ lmdb_path,
75
+ readonly=True,
76
+ lock=False,
77
+ map_size=240 * 1024 * 1024 * 1024,
78
+ readahead=False,
79
+ )
80
+
81
+ with env.begin() as txn:
82
+ value = txn.get(str(room_id).encode())
83
+ if value is not None:
84
+ data = pickle.loads(value)
85
+ patch_list = data["patch_list"] # list of tuples: (u_idx, t, l, action_id, action_vec, timestamp, action_desc, global_user_idx)
86
+ room_label = data["label"]
87
+
88
+ # close lmdb after reading
89
+ env.close()
90
+ ```
91
+
92
+
93
+ ## Claim
94
+ 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.
95
+
96
+ | Split | PR_AUC | ROC_AUC | R@P=0.9 | P@R=0.9 | R@FPR=0.1 | FPR@R=0.9 |
97
+ |------:|------:|-------------:|-----------:|----------------:|----------------:|----------------:|
98
+ | May | 0.6518 | 0.9034 | 0.2281 | 0.2189 | 0.7527 | 0.3215 |
99
+ | June | 0.6120 | 0.8856 | 0.1685 | 0.1863 | 0.7111 | 0.3935 |
100
+
101
+ ---
102
+
103
+ ## Considerations for Using the Data
104
+
105
+ Intended Use \
106
+ • Research on weakly-supervised risk detection / MIL in live streaming \
107
+ • Early-warning room-level moderation signals \
108
+ • Interpretability over localized behavior segments (capsule-level evidence)
109
+
110
+ Out-of-scope / Misuse \
111
+ • Do not use this dataset to identify, profile, or target individuals. \
112
+ • Do not treat predictions as definitive enforcement decisions without human review.
113
+
114
+ Bias, Limitations, and Recommendations \
115
+ • Sampling bias: negatives are downsampled (1:10); reported metrics and thresholds should account for this. \
116
+ • Domain specificity: behavior patterns are platform- and policy-specific; transfer to other platforms may be limited. \
117
+ • Weak supervision: only room-level labels are provided; interpretability at capsule level is model-derived.
118
+
119
+
120
+ ## License
121
+ This dataset is licensed under CC BY 4.0:
122
+ https://creativecommons.org/licenses/by/4.0/