nielsr HF Staff commited on
Commit
8f1b707
·
verified ·
1 Parent(s): 9186283

Consolidate metadata and add paper/project links

Browse files

Hi! I'm Niels, part of the community science team at Hugging Face.

This PR improves the dataset card by:
- Consolidating the YAML metadata into a single block at the top.
- Setting the correct task category to `other`.
- Adding links to the research paper [Outsmarting the Chameleon: Counterfactual Decoupling for Tactical OOD Shifts in Live Streaming Risk Assessment](https://huggingface.co/papers/2606.02946) and the related [Live or Lie](https://arxiv.org/abs/2602.03520) work.
- Including the project page and GitHub repository for better discoverability.
- Cleaning up redundant headers and duplicated sections in the Markdown content.
- Maintaining the technical instructions for LMDB reconstruction and data loading.

Files changed (1) hide show
  1. README.md +55 -74
README.md CHANGED
@@ -1,40 +1,32 @@
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
- ---
20
- license: cc-by-4.0
21
- pretty_name: "Live or Lie Live Streaming Room Risk Assessment (May/June 2025)"
22
- language:
23
- - zh
24
- tags:
25
- - live-streaming
26
- - risk-assessment
27
- - fraud-detection
28
- - weak-supervision
29
- - multiple-instance-learning
30
- - behavior-sequence
31
- ---
32
 
 
 
33
 
34
  ## Dataset Summary
35
- 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)**.
36
 
37
- 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.
38
 
39
  ## File Structure
40
  The dataset is organized into two time-indexed subsets (May and June). Large LMDB data files are provided in multiple `.part` chunks to comply with storage limits.
@@ -57,16 +49,10 @@ The dataset is organized into two time-indexed subsets (May and June). Large LMD
57
  ├── June_train.csv
58
  ├── June_val.csv
59
  └── June_test.csv
60
-
61
- ## Dataset Summary
62
- 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)**.
63
-
64
- 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.
65
-
66
 
67
  ## Languages
68
- - Predominantly **Chinese (zh)**: user behaviors are presented in Chinese, e.g., "主播口播:...", these action descriptions are then encoded as action vectors via a **Chinese-bert**.
69
-
70
 
71
  ## Data Structure
72
  Each room has a label and a sequence of **actions**:
@@ -81,13 +67,12 @@ Each room has a label and a sequence of **actions**:
81
  - `action_vec` (`list<float16>` or `null`): action features encoded from masked action descriptions
82
  - `timestamp` (`string`): action timestamp
83
  - `action_desc` (`string`): textual action descriptions
84
- - `user_id` (`string`): user indentifier across rooms
85
 
86
  ## Action Space
87
- 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.
88
 
89
  ## Data Splits
90
- The paper uses two datasets (“May” and “June”), each with train/val/test splits.
91
  | Split | #Rooms | Avg. actions | Avg. users | Avg. time (min) |
92
  |------:|------:|-------------:|-----------:|----------------:|
93
  | May train | 176,354 | 709 | 35 | 30.0 |
@@ -99,11 +84,10 @@ The paper uses two datasets (“May” and “June”), each with train/val/test
99
 
100
  ## Quickstart
101
 
102
- 1. Reconstruct the LMDB files
103
- Before loading the data, you must merge the split parts back into a single data.mdb file for each subset. Run the following commands in your terminal:
104
- Below we provide a simple example showing how to load the dataset.
105
 
106
- ```
107
  # Reconstruct May Dataset
108
  cd final_May_hard1_masked_encoded.lmdb
109
  cat data.mdb.*.part > data.mdb
@@ -115,17 +99,16 @@ cat data.mdb.*.part > data.mdb
115
  cd ..
116
  ```
117
 
118
- 2. We use LMDB to store and organize the data. Please install the Python package first:
119
- ```
120
- pip3 install lmdb
121
- ```
122
 
123
- Here is a minimal demo for reading an LMDB record:
124
  ```python
125
  import lmdb
126
  import pickle
127
 
128
- room_id = 0 # the room you want to read
 
 
129
 
130
  env = lmdb.open(
131
  lmdb_path,
@@ -139,41 +122,39 @@ with env.begin() as txn:
139
  value = txn.get(str(room_id).encode())
140
  if value is not None:
141
  data = pickle.loads(value)
142
- patch_list = data["patch_list"] # list of tuples: (u_idx, t, l, action_id, action_vec, timestamp, action_desc, global_user_idx)
143
  room_label = data["label"]
144
 
145
- # close lmdb after reading
146
  env.close()
147
  ```
148
 
149
-
150
- ## Claim
151
- 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.
152
-
153
- | Split | PR_AUC | ROC_AUC | R@P=0.9 | P@R=0.9 | R@FPR=0.1 | FPR@R=0.9 |
154
- |------:|------:|-------------:|-----------:|----------------:|----------------:|----------------:|
155
- | May | 0.6518 | 0.9034 | 0.2281 | 0.2189 | 0.7527 | 0.3215 |
156
- | June | 0.6120 | 0.8856 | 0.1685 | 0.1863 | 0.7111 | 0.3935 |
157
-
158
- ---
159
 
160
  ## Considerations for Using the Data
161
 
162
- Intended Use \
163
- Research on weakly-supervised risk detection / MIL in live streaming \
164
- Early-warning room-level moderation signals \
165
- Interpretability over localized behavior segments (capsule-level evidence)
166
-
167
- Out-of-scope / Misuse \
168
- • Do not use this dataset to identify, profile, or target individuals. \
169
- • Do not treat predictions as definitive enforcement decisions without human review.
170
 
171
- Bias, Limitations, and Recommendations \
172
- • Sampling bias: negatives are downsampled (1:10); reported metrics and thresholds should account for this. \
173
- • Domain specificity: behavior patterns are platform- and policy-specific; transfer to other platforms may be limited. \
174
- • Weak supervision: only room-level labels are provided; interpretability at capsule level is model-derived.
175
 
 
 
 
176
 
177
  ## License
178
- This dataset is licensed under CC BY 4.0:
179
- https://creativecommons.org/licenses/by/4.0/
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - other
 
5
  language:
6
+ - zh
7
+ pretty_name: "Live or Lie — Live Streaming Room Risk Assessment (May/June 2025)"
8
  tags:
9
+ - live-streaming
10
+ - risk-assessment
11
+ - fraud-detection
12
+ - weak-supervision
13
+ - multiple-instance-learning
14
+ - behavior-sequence
15
  ---
16
 
17
+ # Live or Lie — Live Streaming Room Risk Assessment (May/June 2025)
18
 
19
+ This dataset contains live-streaming room interaction logs for room-level risk assessment under weak supervision. It is the official dataset for the research presented in the papers:
20
+ - **Outsmarting the Chameleon: Counterfactual Decoupling for Tactical OOD Shifts in Live Streaming Risk Assessment** ([Hugging Face Papers](https://huggingface.co/papers/2606.02946))
21
+ - **Live or Lie: Action-Aware Capsule Multiple Instance Learning for Risk Assessment in Live Streaming Platforms** ([arXiv](https://arxiv.org/abs/2602.03520))
 
 
 
 
 
 
 
 
 
 
22
 
23
+ **Project Page:** [https://qiaoyran.github.io/LiveStreamingRiskAssessment/](https://qiaoyran.github.io/LiveStreamingRiskAssessment/)
24
+ **GitHub:** [https://github.com/bytedance/AC-MIL](https://github.com/bytedance/AC-MIL)
25
 
26
  ## Dataset Summary
27
+ Each example corresponds to a single live-streaming room and is labeled as **risky (> 0)** or **normal (= 0)**.
28
 
29
+ 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 or LPCD.
30
 
31
  ## File Structure
32
  The dataset is organized into two time-indexed subsets (May and June). Large LMDB data files are provided in multiple `.part` chunks to comply with storage limits.
 
49
  ├── June_train.csv
50
  ├── June_val.csv
51
  └── June_test.csv
52
+ ```
 
 
 
 
 
53
 
54
  ## Languages
55
+ - Predominantly **Chinese (zh)**: user behaviors are presented in Chinese, e.g., "主播口播:...". These action descriptions are encoded as action vectors via a **Chinese-BERT** model.
 
56
 
57
  ## Data Structure
58
  Each room has a label and a sequence of **actions**:
 
67
  - `action_vec` (`list<float16>` or `null`): action features encoded from masked action descriptions
68
  - `timestamp` (`string`): action timestamp
69
  - `action_desc` (`string`): textual action descriptions
70
+ - `user_id` (`string`): user identifier across rooms
71
 
72
  ## Action Space
73
+ The 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.
74
 
75
  ## Data Splits
 
76
  | Split | #Rooms | Avg. actions | Avg. users | Avg. time (min) |
77
  |------:|------:|-------------:|-----------:|----------------:|
78
  | May train | 176,354 | 709 | 35 | 30.0 |
 
84
 
85
  ## Quickstart
86
 
87
+ ### 1. Reconstruct the LMDB files
88
+ Before loading the data, you must merge the split parts back into a single `data.mdb` file for each subset.
 
89
 
90
+ ```bash
91
  # Reconstruct May Dataset
92
  cd final_May_hard1_masked_encoded.lmdb
93
  cat data.mdb.*.part > data.mdb
 
99
  cd ..
100
  ```
101
 
102
+ ### 2. Loading Data
103
+ Install the Python package: `pip install lmdb`
 
 
104
 
 
105
  ```python
106
  import lmdb
107
  import pickle
108
 
109
+ # Example: read a specific room
110
+ room_id = 0
111
+ lmdb_path = "final_May_hard1_masked_encoded.lmdb"
112
 
113
  env = lmdb.open(
114
  lmdb_path,
 
122
  value = txn.get(str(room_id).encode())
123
  if value is not None:
124
  data = pickle.loads(value)
125
+ patch_list = data["patch_list"] # list of tuples
126
  room_label = data["label"]
127
 
 
128
  env.close()
129
  ```
130
 
131
+ ## Security and Privacy
132
+ To ensure the security and privacy of 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.
 
 
 
 
 
 
 
 
133
 
134
  ## Considerations for Using the Data
135
 
136
+ ### Intended Use
137
+ - Research on weakly-supervised risk detection / MIL in live streaming.
138
+ - Early-warning room-level moderation signals.
139
+ - Interpretability over localized behavior segments.
 
 
 
 
140
 
141
+ ### Out-of-scope / Misuse
142
+ - Do not use this dataset to identify, profile, or target individuals.
143
+ - Do not treat predictions as definitive enforcement decisions without human review.
 
144
 
145
+ ### Bias and Limitations
146
+ - Sampling bias: negatives are downsampled (1:10); reported metrics and thresholds should account for this.
147
+ - Domain specificity: behavior patterns are platform- and policy-specific; transfer to other platforms may be limited.
148
 
149
  ## License
150
+ This dataset is licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
151
+
152
+ ## Citation
153
+ ```bibtex
154
+ @article{qiao2026live,
155
+ title={Live or Lie: Action-Aware Capsule Multiple Instance Learning for Risk Assessment in Live Streaming Platforms},
156
+ author={Qiao, Yiran and Chen, Jing and Ao, Xiang and Zhong, Qiwei and Liu, Yang and He, Qing},
157
+ journal={arXiv preprint arXiv:2602.03520},
158
+ year={2026}
159
+ }
160
+ ```