Datasets:

Modalities:
Image
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
File size: 14,183 Bytes
3531d2c
 
8115558
abda343
 
eff64da
abda343
eff64da
abda343
3531d2c
 
db1d646
3531d2c
db1d646
8115558
3531d2c
 
8115558
3531d2c
8115558
 
3531d2c
 
 
 
 
 
 
8115558
3531d2c
 
6d28184
3531d2c
6d28184
6f26a2c
 
 
 
 
 
8115558
3531d2c
 
8115558
 
 
 
 
 
 
 
3531d2c
8115558
 
3531d2c
 
 
8115558
eff64da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8115558
5bb94ee
db1d646
 
5bb94ee
8115558
a07c5c1
db1d646
 
5bb94ee
db1d646
 
 
 
6d28184
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f26a2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3531d2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ac5579e
 
3531d2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1d6fbe6
3531d2c
 
 
1d6fbe6
3531d2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1d6fbe6
3531d2c
1d6fbe6
 
3531d2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53469e6
60c1fa9
 
 
53469e6
 
3531d2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
---
configs:
- config_name: filtered_action
  data_files:
  - split: train
    path: OPeRA_filtered/action/train-*
  - split: test
    path: OPeRA_filtered/action/test-*
- config_name: filtered_image
  data_files:
  - split: train
    path: OPeRA_filtered/images/train-*
  - split: test
    path: OPeRA_filtered/images/test-*
- config_name: filtered_session
  data_files:
  - split: train
    path: OPeRA_filtered/session/train/train.parquet
  - split: test
    path: OPeRA_filtered/session/test/test.parquet
  description: Session-level records (filtered)
- config_name: filtered_user
  data_files:
  - split: train
    path: OPeRA_filtered/user/train/train.parquet
  - split: test
    path: OPeRA_filtered/user/test/test.parquet
  description: User-level records (filtered)
- config_name: full_action
  data_files:
  - split: train
    path: OPeRA_full/action/train-*
  - split: test
    path: OPeRA_full/action/test-*
- config_name: full_image
  data_files:
  - split: train
    path: OPeRA_full/images/train-*
  - split: test
    path: OPeRA_full/images/test-*
- config_name: full_session
  data_files:
  - split: train
    path: OPeRA_full/session/train/train.parquet
  - split: test
    path: OPeRA_full/session/test/test.parquet
  description: Session-level records (full)
- config_name: full_user
  data_files:
  - split: train
    path: OPeRA_full/user/train/train.parquet
  - split: test
    path: OPeRA_full/user/test/test.parquet
  description: User-level records (full)
license: cc-by-4.0
language:
- en
dataset_info:
- config_name: filtered_action
  features:
  - name: session_id
    dtype: string
  - name: action_id
    dtype: string
  - name: timestamp
    dtype: string
  - name: action_type
    dtype: string
  - name: click_type
    dtype: string
  - name: semantic_id
    dtype: string
  - name: mouse_position
    dtype: string
  - name: element_meta
    dtype: string
  - name: url
    dtype: string
  - name: window_size
    dtype: string
  - name: page_meta
    dtype: string
  - name: simplified_html
    dtype: string
  - name: rationale
    dtype: string
  - name: products
    dtype: string
  - name: input_text
    dtype: string
  - name: image
    dtype: string
  splits:
  - name: train
    num_bytes: 805238839
    num_examples: 4864
  - name: test
    num_bytes: 167389723
    num_examples: 992
  download_size: 153848837
  dataset_size: 972628562
- config_name: filtered_image
  features:
  - name: image
    dtype: image
  - name: image_name
    dtype: string
  splits:
  - name: train
    num_bytes: 521858125.33442354
    num_examples: 826
  - name: test
    num_bytes: 2612466510.863577
    num_examples: 4066
  download_size: 2304649826
  dataset_size: 3134324636.1980004
- config_name: full_action
  features:
  - name: session_id
    dtype: string
  - name: action_id
    dtype: string
  - name: timestamp
    dtype: string
  - name: action_type
    dtype: string
  - name: navigation_type
    dtype: string
  - name: simplified_html
    dtype: string
  - name: simplified_html_new_page
    dtype: string
  - name: url
    dtype: string
  - name: window_size
    dtype: string
  - name: page_meta
    dtype: string
  - name: rationale
    dtype: string
  - name: products
    dtype: string
  - name: scroll_detail
    dtype: string
  - name: click_type
    dtype: string
  - name: semantic_id
    dtype: string
  - name: target
    dtype: string
  - name: mouse_position
    dtype: string
  - name: element_meta
    dtype: string
  - name: input_text
    dtype: string
  - name: image
    dtype: string
  - name: image_new_page
    dtype: string
  splits:
  - name: train
    num_bytes: 5408609342
    num_examples: 24773
  - name: test
    num_bytes: 898655119
    num_examples: 4131
  download_size: 384830759
  dataset_size: 6307264461
- config_name: full_image
  features:
  - name: image
    dtype: image
  - name: image_name
    dtype: string
  splits:
  - name: train
    num_bytes: 6112425836.2753315
    num_examples: 10835
  - name: test
    num_bytes: 958662306.864669
    num_examples: 1459
  download_size: 5739497133
  dataset_size: 7071088143.14
---

# Dataset Card for Dataset Name

## Dataset Description
- **Paper:** https://arxiv.org/abs/2506.05606
- **Point of Contact:** [Ziyi Wang](mailto:wang.ziyi19@northeastern.edu)

### Dataset Summary
OPeRA is a dataset of Observation, Persona, Rationale, and Action collected from real human users during online shopping. OPeRA provides rich, time-aligned logs of users' web browsing behavior, completed with self-reported rationales and detailed self-reported persona profiles. Unlike prior datasets, OPeRA captures not only what users do but also why they do it, enabling deeper insights into decision-making processes. To ensure user privacy and data safety, the released dataset has undergone rigorous filtering and de-identification. It contains 692 shopping sessions from 51 unique users, 28,904 \<observation, action\> pairs, and 604 human-annotated rationales. OPeRA serves as the first benchmark dataset for evaluating LLM agents on personalized and verifiable user behavior simulation.

### Dataset Versions

This dataset comes in two versions:

1. **Full Version** : Includes the complete action space with all captured user interactions: 'click', 'scroll', 'input', 'navigation', and 'tabActivate'.

2. **Filtered Version** : Applies a simplification of the action space, leaving action types including 'click', 'input', and 'terminate'.

(The corresponding screenshots will be released soon)

### Dataset Structure

Both versions are organized into three main components stored as Parquet files:

```
OPeRA
├── full_user
│   ├── train
│   └── test
├── full_session
│   ├── train
│   └── test
├── full_action
│   ├── train
│   └── test
├── filtered_user
│   ├── train
│   └── test
├── filtered_session
│   ├── train
│   └── test
└── filtered_action
    ├── train
    └── test    

```

### Data Fields

#### User Table 
Contains user-level information including surveys and interviews:

- `user_id` (str): Anonymized unique identifier for each user
- `survey` (str): JSON string containing organized user survey responses about shopping preferences, demographics, and personality
- `raw_survey` (str): JSON string containing raw user survey responses
- `interview_transcript` (str): Transcript of user interview
- `interview_transcript_processed` (str): LLM-summarized version of the interview transcript

#### Session Table
Contains session-level information:

- `session_id` (str): Unique identifier for each shopping session (format: `{user_id}_{start_time}_{end_time}`)
- `user_id` (str): References the user who performed this session
- `action_count` (int): Number of actions in this session

#### Action Table - Full Version 
Contains action-level information with detailed interaction data for the full version:

**Fields:**
- `session_id` (str): References the session this action belongs to
- `action_id` (str): Unique identifier for each action
- `timestamp` (str): Action timestamp
- `action_type` (str): Type of action: `click`, `scroll`, `input`, `navigation`, `tab_activate`
- `url` (str): Masked web URL where the action occurred
- `window_size` (str): JSON string containing user's browser window dimensions
- `page_meta` (str): JSON string containing page metadata with masked URLs
- `simplified_html` (str): Simplified version of HTML content before the action happens
- `rationale` (str): User-provided rationale for this action (if applicable)
- `products` (str): JSON string containing information about list of products involved in this action (if applicable). Each product has fields:
  - `asin` (str): Amazon Standard Identification Number
  - `title` (str): Product title
  - `price` (str): Product price
  - `quantity` (int): Purchase quantity
  - `options` (list): Product options

**Action-Type Specific Fields:**

For `action_type == "click"`:
- `click_type` (str): Classification of click type. Possible values include:
  - `purchase`: Click on purchase intention related buttons (checkout, buy now, set subscription, add to cart)
  - `search`: Click on search buttons or search boxes
  - `review`: Click on review-related elements
  - `filter`: Click on filters
  - `quantity`: Click on quantity-related elements (quantity increase/decrease, delete item)
  - `product_option`: Click on product option selections (size, color, etc.)
  - `cart_side_bar`: Click on shopping cart sidebar elements
  - `suggested_term`: Click on suggested search terms
  - `nav_bar`: Click on navigation bar elements
  - `page_related`: Click on pagination elements or carousel navigation buttons
  - `cart_page_select`: Click on cart page selection elements (e.g. item checkbox)
  - `product_link`: Click on product links or product images
  - `other`: Other types of clicks not covered by the above categories
- `semantic_id` (str): Semantic identifier for the clicked element in simplified HTML
- `mouse_position` (str): JSON string containing mouse coordinates when clicking
- `element_meta` (str): JSON string containing element metadata with `name` and `data` fields

For `action_type == "input"`:
- `semantic_id` (str): Semantic identifier for the input element in simplified HTML
- `input_text` (str): Value entered in the input field
- `mouse_position` (str): JSON string containing mouse coordinates

For `action_type == "scroll"`:
- `scroll_detail` (str): JSON string containing scroll information with fields:
  - `scroll_current_top` (str): Current scroll position from top
  - `scroll_current_left` (str): Current scroll position from left
  - `scroll_distance_x` (str): Horizontal scroll distance
  - `scroll_distance_y` (str): Vertical scroll distance

For `action_type == "navigation"`:
- `navigation_type` (str): Type of navigation (back, forward, reload, new page)
- `simplified_html_new_page` (str): Simplified HTML content of the new page after navigation

For `action_type == "tab_activate"`:
- `simplified_html_new_page` (str): Simplified HTML content of the new page after navigation

#### Action Table - Filtered Version 
Contains action-level information with detailed interaction data for the filtered version:

**Fields:**
- `session_id` (str): References the session this action belongs to
- `action_id` (str): Unique identifier for each action
- `timestamp` (str): Action timestamp
- `action_type` (str): Type of action: `click`, `input`, `terminate`
- `url` (str): Masked web URL where the action occurred
- `window_size` (str): JSON string containing user's browser window dimensions
- `page_meta` (str): JSON string containing page metadata with masked URLs
- `simplified_html` (str): Simplified version of HTML content for easier parsing
- `rationale` (str): User-provided rationale for this action (if applicable)
- `products` (str): JSON string containing information about list of products involved in this action (if applicable). Each product has fields:
  - `asin` (str): Amazon Standard Identification Number
  - `title` (str): Product title
  - `price` (str): Product price
  - `quantity` (int): Purchase quantity
  - `options` (list): Product options

**Action-Type Specific Fields:**

For `action_type == "click"`:
- `click_type` (str): Classification of click type. Possible values include:
  - `purchase`: Click on purchase intention related buttons (checkout, buy now, set subscription, add to cart)
  - `search`: Click on search buttons or search boxes
  - `review`: Click on review-related elements
  - `filter`: Click on filters
  - `quantity`: Click on quantity-related elements (quantity increase/decrease, delete item)
  - `product_option`: Click on product option selections (size, color, etc.)
  - `cart_side_bar`: Click on shopping cart sidebar elements
  - `suggested_term`: Click on suggested search terms
  - `nav_bar`: Click on navigation bar elements
  - `page_related`: Click on pagination elements or carousel navigation buttons
  - `cart_page_select`: Click on cart page selection elements (e.g. item checkbox)
  - `product_link`: Click on product links or product images
  - `other`: Other types of clicks not covered by the above categories
- `semantic_id` (str): Semantic identifier for the clicked element in simplified HTML
- `mouse_position` (str): JSON string containing mouse coordinates when clicking
- `element_meta` (str): JSON string containing element metadata with `name` and `data` fields

For `action_type == "input"`:
- `semantic_id` (str): Semantic identifier for the input element in simplified HTML
- `input_text` (str): Value entered in the input field
- `mouse_position` (str): JSON string containing mouse coordinates

For `action_type == "terminate"`:
- No additional fields (indicates end of user session)

### Data Distribution
<img src="https://cdn-uploads.huggingface.co/production/uploads/684228fe624cd23497ab4735/2nxTGmC8oWHbUTm52Iy5l.png" width="600"/>
<img src="https://cdn-uploads.huggingface.co/production/uploads/684228fe624cd23497ab4735/RMQma91SkNFLABgcs9Hzd.png" width="600"/>
<img src="https://cdn-uploads.huggingface.co/production/uploads/684228fe624cd23497ab4735/FNhle39eqJ-IKtGlqngoR.png" width="600"/>


### Disclaimer
This dataset is intended for research purposes only. We hope it can contribute to the advancement of the NLP community. Please use it responsibly and refrain from any misuse or applications that could cause harm. By accessing the dataset, you agree to uphold these principles.

### Citation Information
```
@misc{wang2025operadatasetobservationpersona,
      title={OPeRA: A Dataset of Observation, Persona, Rationale, and Action for Evaluating LLMs on Human Online Shopping Behavior Simulation},
      author={Ziyi Wang and Yuxuan Lu and Wenbo Li and Amirali Amini and Bo Sun and Yakov Bart and Weimin Lyu and Jiri Gesi and Tian Wang and Jing Huang and Yu Su and Upol Ehsan and Malihe Alikhani and Toby Jia-Jun Li and Lydia Chilton and Dakuo Wang},
      year={2025},
      eprint={2506.05606},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2506.05606},
}
```