File size: 8,941 Bytes
cd55a82
a362731
 
 
 
 
 
 
 
 
 
 
 
 
 
cd55a82
a362731
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
pretty_name: "LifeAgentBench Dataset"
license: "cc-by-4.0"
language:
  - en
tags:
  - llm
  - question-answering
  - health
  - reasoning
  - tabular
  - text-generation
  - tool-use
size_categories:
  - 10K<n<100K
---

# LifeAgentBench Processed Dataset

The **LifeAgentBench Processed Dataset** is the ready-to-use question-answering collection released with [LifeAgentBench: A Multi-dimensional Benchmark and Agent for Personal Health Assistants in Digital Health](https://arxiv.org/abs/2601.13880).

LifeAgentBench evaluates the ability of large language models (LLMs) to reason over long-horizon, heterogeneous lifestyle and health records. The benchmark contains more than 22K English questions, ranging from direct factual retrieval to aggregation, comparison, consecutive-event reasoning, and trend analysis.

The processed data covers four major lifestyle dimensions:

- **Physical activity**: steps, active minutes, exercise reports, heart rate, and related daily summaries.
- **Sleep**: sleep duration, sleep stages, skin temperature, respiratory rate, and oxygen saturation.
- **Diet**: meals and food labels.
- **Emotion and stress**: emotion-related records and daily stress scores.

The dataset supports:

- **Single-user reasoning** over one participant's longitudinal records.
- **Multi-user reasoning** that compares or aggregates information across participants.
- **Single-table and multi-table reasoning** within one domain or across multiple lifestyle domains.
- **Context prompting** with relevant records embedded directly in the prompt.
- **Database-augmented prompting** in which a model generates SQL and answers from the query result.

---

## 🗂 Dataset Structure

```text
gen_data_processed/
├── original/
│   ├── single_user/
│   │   ├── single/
│   │   ├── M-sleep/
│   │   ├── M-activity/
│   │   ├── M-C2/
│   │   └── M-C4/
│   ├── multi_user/
│   │   ├── single/
│   │   └── M-C4/
│   ├── all_prompts.jsonl
│   ├── single_user.jsonl
│   └── multi_user.jsonl
├── simple/
│   ├── single_user/
│   │   ├── single/
│   │   ├── M-sleep/
│   │   ├── M-activity/
│   │   ├── M-C2/
│   │   └── M-C4/
│   └── all_prompts.jsonl
└── sql/
    ├── single_user/
    │   ├── single/
    │   ├── M-sleep/
    │   ├── M-activity/
    │   ├── M-C2/
    │   └── M-C4/
    ├── multi_user/
    │   ├── single/
    │   └── M-C4/
    ├── all_prompts.jsonl
    ├── single_user.jsonl
    └── multi_user.jsonl
```

The hierarchy represents the scope and complexity of each task:

- `single_user/single`: single-user, single-table questions.
- `single_user/M-sleep`: multi-table reasoning within the sleep domain.
- `single_user/M-activity`: multi-table reasoning within the physical-activity domain.
- `single_user/M-C2`: cross-domain reasoning involving two lifestyle dimensions.
- `single_user/M-C4`: cross-domain reasoning involving all four lifestyle dimensions.
- `multi_user/single`: multi-user reasoning over a single table.
- `multi_user/M-C4`: multi-user reasoning across all four lifestyle dimensions.

Each leaf dataset directory contains five JSONL files:

- `FQ.jsonl`: factual questions.
- `AS.jsonl`: aggregation and statistical questions.
- `CQ.jsonl`: counting and consecutive-event reasoning questions.
- `NC.jsonl`: numerical comparison questions.
- `TA.jsonl`: trend-analysis questions.

The root-level summary files combine subsets for convenient loading:

- `all_prompts.jsonl`: all questions available under the prompting setting.
- `single_user.jsonl`: all single-user questions.
- `multi_user.jsonl`: all multi-user questions.

The `simple` setting contains only single-user tasks, so it does not include a `multi_user` directory or `multi_user.jsonl`.

---

## 📦 Prompting Settings and Data Format

Each line is one JSON object. All answers must follow the output requirements stated in the corresponding question, typically as a semicolon-separated list of values without additional explanation.

### 1) Original Questions

The `original` directory contains the benchmark questions and ground-truth answers without an added table context or SQL-generation prompt.

- `Query`: natural-language question and output requirements.
- `Answer`: ground-truth answer.

Example:

```json
{
  "Query": "Which user ... achieved the largest increase in steps ...?\nOutput requirement: return 1 value(s); types (ordered): {uid}",
  "Answer": "A4F_XXXXX"
}
```

### 2) Context Prompting

The `simple` directory contains questions augmented with compact TSV views of the relevant relational tables. This setting evaluates whether a model can retrieve and reason over evidence supplied directly in its context window.

- `Query`: instructions, the question, output constraints, and compact TSV table context.
- `Answer`: ground-truth answer.

Example:

```json
{
  "Query": "You are given compact TSV views derived from multiple relational tables. ...\n\nQuestion: On the given date, how many steps did the user record?\n\n=== BEGIN TABLE `pa_daily_summary` (compact TSV, id scoped) ===\nid\tdate\tsteps\nA4F_XXXXX\t2022-05-30\t10019\n=== END TABLE ===",
  "Answer": "10019"
}
```

### 3) Database-Augmented Prompting

The `sql` directory separates SQL generation from final answer generation. The model first produces a MySQL `SELECT` statement, the query is executed against the LifeAgentBench database, and the returned result is then used to answer the original question.

- `Query_sql`: question plus MySQL schema and SQL-generation instructions.
- `Query_base`: prompt template for generating the final answer from the SQL statement and execution result.
- `Answer`: ground-truth answer.

Example:

```json
{
  "Query_sql": "Given the following MySQL table schema, write ONE SELECT statement ...",
  "Query_base": "Answer the question using the executed SQL and returned result ...",
  "Answer": "A4F_XXXXX"
}
```

---

## 🚀 Usage Examples

Install the Hugging Face `datasets` library and load the desired JSONL file directly.

```python
from datasets import load_dataset

# Original benchmark questions
original = load_dataset(
    "json",
    data_files="gen_data_processed/original/all_prompts.jsonl",
    split="train",
)

# Context-prompting questions
context = load_dataset(
    "json",
    data_files="gen_data_processed/simple/all_prompts.jsonl",
    split="train",
)

# Database-augmented questions
sql = load_dataset(
    "json",
    data_files="gen_data_processed/sql/all_prompts.jsonl",
    split="train",
)
```

To load files from the hosted dataset repository:

```python
from datasets import load_dataset

dataset = load_dataset(
    "json",
    data_files="hf://datasets/gdfwj/LifeAgentBench/gen_data_processed/original/all_prompts.jsonl",
    split="train",
)
```

The repository uses Git LFS for large files. When cloning the full dataset, install Git LFS first:

```bash
git lfs install
git clone https://github.com/gdfwj/LifeAgentBench.git
```

For benchmark evaluation scripts and database setup instructions, see the [LifeAgentBench repository](https://github.com/gdfwj/LifeAgentBench).

---

## 📑 Citation

If you use this dataset, please cite the paper:

```bibtex
@article{tian2026lifeagentbench,
  title={LifeAgentBench: A Multi-dimensional Benchmark and Agent for Personal Health Assistants in Digital Health},
  author={Tian, Ye and Wang, Zihao and Gungor, Onat and Fan, Xiaoran and Rosing, Tajana},
  journal={arXiv preprint arXiv:2601.13880},
  year={2026}
}
```

---

## ⚠️ Notes

- LifeAgentBench is intended for research and benchmarking; it is not a medical device and must not be used as a substitute for professional diagnosis or treatment.
- Participant identifiers are pseudonymous. Users should nevertheless handle all lifestyle and health-related records responsibly and follow applicable privacy and ethical requirements.
- Questions may require exact formatting. Follow the `Output requirement` included in each prompt when evaluating model predictions.
- The three top-level directories are alternative representations of related benchmark questions, not independent train, validation, and test splits.

## ⚠️ Licensing & Compliance

The dataset card declares the processed benchmark under the **Creative Commons Attribution 4.0 International (CC BY 4.0)** license. The benchmark is derived from underlying lifestyle and food data sources; users are responsible for reviewing and complying with the licenses, terms of use, privacy requirements, and citation requirements of those original sources.

The database construction workflow uses:

- [AI4FoodDB](https://github.com/AI4Food/AI4FoodDB)
- [FoodNExtDB](https://bidalab.eps.uam.es/static/AI4FoodDB/FoodNExtDB.zip)