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
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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
---
language:
- en

license: mit

task_categories:
- text-classification
- text-generation
- feature-extraction

task_ids:
- sentiment-analysis
- intent-classification

pretty_name: HESA-v1 Human Emotion and System Adaptation Dataset

size_categories:
- 1K<n<10K

tags:
- emotion-ai
- adaptive-ai
- human-centered-ai
- cognitive-ai
- ai-operating-system
- synthetic-dataset
- emotion-detection
- productivity-ai
- agi
- system-adaptation
dataset_info:
  features:
    - name: sample_id
      dtype: string
    - name: timestamp
      dtype: string
    - name: user_profile
      dtype: string
    - name: environment
      dtype: string
    - name: system_state
      dtype: string
    - name: human_behavior
      dtype: string
    - name: conversation_context
      dtype: string
    - name: ai_system_response
      dtype: string
    - name: long_term_memory
      dtype: string
  splits:
    - name: train
      num_examples: 400
    - name: validation
      num_examples: 60
    - name: test
      num_examples: 40
  download_size: 1904937
  dataset_size: 1904937
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train.json
  - split: validation
    path: data/validation.json
  - split: test
    path: data/test.json
---

<div align="center">

# 🧠 HESA-v1
### Human Emotion + System Adaptation Dataset

*A synthetic, research-grade dataset for training emotion-aware AI systems, adaptive operating systems, and human-centered computing platforms.*

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Samples](https://img.shields.io/badge/Samples-500-blue.svg)]()
[![Version](https://img.shields.io/badge/Version-1.0.0-green.svg)]()
[![HuggingFace](https://img.shields.io/badge/πŸ€—-HuggingFace-orange.svg)](https://huggingface.co/wincode)
[![Kaggle](https://img.shields.io/badge/Kaggle-wincode-20BEFF.svg)](https://kaggle.com/wincode)

</div>

---

## πŸ“– Dataset Description

**HESA-v1** is a large-scale synthetic dataset designed to simulate the complex relationship between human emotional states, computer usage behavior, environmental context, and intelligent AI adaptive responses.

This dataset was engineered for training next-generation:
- πŸ€– **Emotion-aware Operating Systems**
- 🧩 **Adaptive AGI Systems**
- πŸ“š **Intelligent Tutoring Systems**
- πŸ’¬ **Emotionally Intelligent Assistants**
- 🧠 **Cognitive AI Systems**
- πŸ–₯️ **Human-Centered Computing Platforms**

Each sample captures a **complete human-computer interaction snapshot** β€” combining psychological state, environmental conditions, system telemetry, behavioral signals, and AI adaptive responses into one richly structured JSON record.

---

## πŸ—‚οΈ Dataset Structure

### Top-level Fields

```json
{
  "sample_id": "HESA-00001",
  "timestamp": "2026-03-14T22:47:00",
  "user_profile": { ... },
  "environment": { ... },
  "system_state": { ... },
  "human_behavior": { ... },
  "conversation_context": { ... },
  "ai_system_response": { ... },
  "long_term_memory": { ... }
}
```

---

### πŸ‘€ `user_profile`

| Field | Type | Description |
|-------|------|-------------|
| `age` | int | User age (16–58) |
| `profession` | string | Job/role (30 unique professions) |
| `country` | string | Country of origin (25 countries) |
| `personality_type` | string | MBTI type (all 16 types) |
| `experience_level` | string | Beginner β†’ Veteran |
| `sleep_hours` | float | Hours slept last night (3.0–10.0) |
| `stress_level` | string | Very Low β†’ Critical |
| `mental_focus` | string | Scattered β†’ Hyperfocused |
| `social_energy` | string | Depleted β†’ Highly Social |

---

### 🌍 `environment`

| Field | Type | Description |
|-------|------|-------------|
| `location_type` | string | Home Office, Library, Coffee Shop, etc. |
| `noise_level` | string | Silent β†’ Chaotic |
| `lighting` | string | Pitch Dark β†’ Fluorescent Harsh |
| `temperature` | string | Cold (15Β°C) β†’ Hot (31Β°C) |
| `time_of_day` | string | 9 slots from Early Morning to Deep Night |
| `weather` | string | Clear Sunny, Rainy, Stormy, Snowing, etc. |

---

### πŸ’» `system_state`

| Field | Type | Description |
|-------|------|-------------|
| `cpu_usage_percent` | int | CPU load (8–97%) |
| `ram_usage_percent` | int | RAM utilization (25–92%) |
| `battery_level_percent` | int | Battery charge (4–100%) |
| `network_quality` | string | Offline β†’ Gigabit Ethernet |
| `open_applications` | list | 2–9 apps from 34 real applications |
| `active_application` | string | Currently focused app |
| `typing_speed_wpm` | int | WPM β€” derived from stress + sleep + focus |
| `mouse_movement_pattern` | string | Behavioral mouse pattern |
| `scroll_behavior` | string | Reading/skimming/jumping pattern |
| `error_frequency_rate` | float | Error rate 0.0–1.0 (derived) |
| `multitasking_level` | string | None β†’ Extreme |

---

### πŸ§‘β€πŸ’» `human_behavior`

| Field | Type | Description |
|-------|------|-------------|
| `emotion` | string | 28 emotion categories |
| `emotion_intensity` | string | Subtle β†’ Overwhelming |
| `facial_expression` | string | Observable facial cues |
| `voice_tone` | string | Vocal behavioral signal |
| `typing_pattern` | string | Keystroke behavioral pattern |
| `interaction_style` | string | How user engages with system |
| `frustration_signals` | list | Observable frustration indicators |
| `focus_duration_minutes` | int | Minutes in current focus block |
| `energy_level` | string | Depleted β†’ Peak |
| `motivation_level` | string | None β†’ Intrinsic Drive |
| `cognitive_load` | string | Minimal β†’ Overloaded |
| `learning_state` | string | Not Learning β†’ Breakthrough Moment |

---

### πŸ’¬ `conversation_context`

| Field | Type | Description |
|-------|------|-------------|
| `user_message` | string | Realistic user query/request |
| `conversation_goal` | string | Intent behind the interaction |
| `topic` | string | Task or subject being worked on |
| `urgency_level` | string | Low β†’ Deadline in under 1 hour |
| `communication_style` | string | Brief imperative, verbose, exploratory, etc. |

---

### πŸ€– `ai_system_response`

| Field | Type | Description |
|-------|------|-------------|
| `assistant_response` | string | Context-aware AI response |
| `response_tone` | string | Warm, neutral, energizing, grounding, etc. |
| `recommended_action` | string | Adaptive productivity recommendation |
| `ui_adaptation` | string | UI/theme change triggered |
| `notification_strategy` | string | How notifications are managed |
| `system_adjustments` | list | OS-level changes applied |
| `music_recommendation` | string | Adaptive audio environment |
| `learning_support` | string | Educational strategy offered |
| `focus_mode` | string | Active focus/productivity mode |
| `wellness_suggestion` | string | Physical/mental wellbeing nudge |

---

### 🧬 `long_term_memory`

| Field | Type | Description |
|-------|------|-------------|
| `historical_behavior_pattern` | string | Pattern observed across sessions |
| `previous_emotional_state` | string | Prior emotion for trend analysis |
| `productivity_trend` | string | Multi-session productivity trajectory |
| `burnout_risk` | string | Negligible β†’ Critical |
| `learning_progression` | string | Learning trajectory description |

---

## πŸ“Š Dataset Statistics

| Metric | Value |
|--------|-------|
| Total Samples | 500 |
| Unique Emotions | 28 |
| Countries Represented | 25 |
| Professions Covered | 30 |
| MBTI Personality Types | 16 (all) |
| Age Range | 16 – 58 |
| Time Slots | 9 (4 AM β†’ 5 AM next day) |
| Unique App References | 34 |
| Total JSON Size | ~1.86 MB |
| Splits | Train / Validation / Test |

### Emotion Distribution (Top 10)

| Emotion | Count |
|---------|-------|
| sad | 28 |
| calm | 25 |
| anxious | 25 |
| curious | 24 |
| lonely | 22 |
| optimistic | 21 |
| determined | 20 |
| mentally_exhausted | 20 |
| restless | 20 |
| insecure | 20 |

---

## πŸš€ Quick Start

### Load with Hugging Face `datasets`

```python
from datasets import load_dataset

dataset = load_dataset("wincode/HESA-v1")
print(dataset)
# DatasetDict({
#     train: Dataset({features: [...], num_rows: 400}),
#     validation: Dataset({features: [...], num_rows: 60}),
#     test: Dataset({features: [...], num_rows: 40})
# })
```

### Load raw JSON

```python
import json

with open("HESA_dataset_v1.json", "r") as f:
    data = json.load(f)

samples = data["samples"]
print(f"Total samples: {len(samples)}")

# Access first sample
s = samples[0]
print(f"Emotion: {s['human_behavior']['emotion']}")
print(f"Stress: {s['user_profile']['stress_level']}")
print(f"AI Response: {s['ai_system_response']['assistant_response']}")
```

### Example: Filter by emotion

```python
burned_out = [s for s in samples if s["human_behavior"]["emotion"] == "burned_out"]
print(f"Burned-out samples: {len(burned_out)}")

# Get AI wellness suggestions for burned-out users
for s in burned_out[:3]:
    print(s["ai_system_response"]["wellness_suggestion"])
```

### Example: Stress vs Typing Speed analysis

```python
import pandas as pd

rows = [{
    "stress": s["user_profile"]["stress_level"],
    "typing_wpm": s["system_state"]["typing_speed_wpm"],
    "error_rate": s["system_state"]["error_frequency_rate"],
    "sleep": s["user_profile"]["sleep_hours"]
} for s in samples]

df = pd.DataFrame(rows)
print(df.groupby("stress")[["typing_wpm", "error_rate"]].mean())
```

---

## 🎯 Intended Use Cases

### βœ… Recommended Uses

- **Emotion classification** β€” Train models to detect user emotional state from behavioral signals
- **Adaptive UI/UX systems** β€” Learn context-aware interface adaptation rules
- **Intelligent tutoring** β€” Model learning state transitions and educational support strategies
- **Burnout prediction** β€” Detect early burnout signals from multi-session patterns
- **Cognitive load estimation** β€” Infer workload from typing speed, error rate, and multitasking signals
- **Affective computing research** β€” Study emotion-behavior-environment relationships
- **Synthetic data augmentation** β€” Supplement real HCI datasets
- **AGI training** β€” Human-grounded context for general-purpose assistants

### ❌ Out-of-Scope Uses

- **Real identity inference** β€” This is fully synthetic data; no real persons represented
- **Surveillance systems** β€” Not intended for real-time monitoring applications
- **Clinical diagnosis** β€” Not a substitute for clinically validated instruments

---

## βš™οΈ Generation Methodology

HESA-v1 was generated using a Python-based synthetic data engine with:

- **Psychologically consistent derivation rules** β€” typing speed, error frequency, and frustration signals are mathematically derived from stress level, sleep hours, and emotional state
- **Realistic variability** β€” Gaussian distributions for focus duration, weighted distributions for sleep hours
- **Cross-field coherence** β€” Emotion states correlate with UI adaptations, notification strategies, and wellness responses
- **Diverse seeding pools** β€” 30 professions, 25 countries, 16 MBTI types, 28 emotion categories, 34 real applications
- **Temporal realism** β€” Timestamps span full year with all time-of-day slots represented

**Derived relationships implemented:**
- `stress_level + sleep_hours + mental_focus β†’ typing_speed_wpm`
- `stress_level + sleep_hours + emotion β†’ error_frequency_rate`
- `emotion + emotion_intensity β†’ frustration_signals`
- `emotion + stress + focus β†’ ai_system_response`

---

## πŸ“ Repository Structure

```
wincode/HESA-v1/
β”œβ”€β”€ README.md                    ← This file
β”œβ”€β”€ HESA_dataset_v1.json         ← Full raw dataset (500 samples)
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ train.json               ← 400 training samples
β”‚   β”œβ”€β”€ validation.json          ← 60 validation samples
β”‚   └── test.json                ← 40 test samples
└── notebooks/
    └── explore_HESA.ipynb       ← Exploration notebook (optional)
```

---

## πŸ“œ Citation

If you use HESA-v1 in your research or projects, please cite:

```bibtex
@dataset{hesa_v1_2026,
  title     = {HESA-v1: Human Emotion and System Adaptation Dataset},
  author    = {Shajahan, Ahmad},
  year      = {2026},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/datasets/wincode/HESA-v1},
  note      = {Synthetic research-grade dataset for emotion-aware AI systems}
}
```

---

## πŸ“„ License

This dataset is released under the **MIT License**.
Free for academic, research, and commercial use with attribution.

---

## πŸ‘€ Author

**Ahmad Shajahan** (wincode)
- πŸ€— HuggingFace: [huggingface.co/wincode](https://huggingface.co/wincode)
- πŸ™ GitHub: [github.com/ahmadshajahan](https://github.com/ahmadshajahan)
- 🏒 Zerath Labs / The Art of Engineering β€” Kerala, India

*KTU S4 CSE Student | AI/ML Researcher | PyTorch Content Creator*

---

<div align="center">
Made with 🧠 for the future of human-centered AI
</div>