File size: 4,725 Bytes
afbc1eb
cc6218b
afbc1eb
64d1f0c
 
 
cc6218b
 
64d1f0c
 
 
 
 
 
 
 
 
 
afbc1eb
64d1f0c
cc6218b
64d1f0c
cc6218b
64d1f0c
cc6218b
64d1f0c
cc6218b
64d1f0c
cc6218b
64d1f0c
cc6218b
 
 
 
 
 
 
 
 
 
 
 
64d1f0c
 
cc6218b
 
 
64d1f0c
 
cc6218b
64d1f0c
 
cc6218b
 
 
 
 
 
 
 
 
 
 
 
 
 
64d1f0c
 
cc6218b
64d1f0c
 
cc6218b
 
64d1f0c
cc6218b
64d1f0c
 
 
cc6218b
64d1f0c
cc6218b
 
 
 
 
 
 
 
64d1f0c
cc6218b
64d1f0c
cc6218b
64d1f0c
cc6218b
64d1f0c
 
 
cc6218b
64d1f0c
 
cc6218b
 
 
64d1f0c
cc6218b
 
64d1f0c
 
 
cc6218b
 
 
 
 
64d1f0c
 
 
 
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
---
pretty_name: Ready-to-Use Preprocessed HAR Datasets
license: other
task_categories:
- time-series-classification
tags:
- preprocessed
- ready-to-use
- human-activity-recognition
- har
- wearable-sensors
- smartphone-sensing
- imu
- accelerometer
- gyroscope
- timeseries
- benchmark
- tabular
---

# Ready-to-Use Preprocessed HAR Datasets

This dataset repository provides **ready-to-use, preprocessed Human Activity Recognition (HAR) datasets**. The released files are already windowed, split, and stored as NumPy arrays, so users can download them and run model comparisons directly.

The goal is to make HAR model comparison easier by releasing a consistent set of preprocessed windows, split files, labels, and metadata. The collection covers smartphone-based sensing, wearable IMU sensing, daily activities, fall-related motions, and multimodal wearable settings under different sensor layouts and label granularities.

## Current Dataset Folders

The browsable download layout is:

```text
datasets/
  uci/
  unimib/
  pamap2/
  wisdm/
  oppo/
  WSBHA/
archives/
  processed_har_npy_partial_2026-05-14.zip
metadata/
  partial_upload_2026-05-14_manifest.csv
```

The `datasets/` folders are intended for direct per-dataset downloads. The `archives/` zip is a convenient one-file mirror of the current uploaded batch.

## Quick Download

```python
from huggingface_hub import hf_hub_download, snapshot_download
import numpy as np

x_train_path = hf_hub_download(
    repo_id="shenjianmozhu/preprocessed-har-datasets",
    repo_type="dataset",
    filename="datasets/uci/x_train.npy",
)
y_train_path = hf_hub_download(
    repo_id="shenjianmozhu/preprocessed-har-datasets",
    repo_type="dataset",
    filename="datasets/uci/y_train.npy",
)

X_train = np.load(x_train_path)
y_train = np.load(y_train_path)
print(X_train.shape, y_train.shape)
```

To download everything:

```python
local_dir = snapshot_download(
    repo_id="shenjianmozhu/preprocessed-har-datasets",
    repo_type="dataset",
    local_dir="preprocessed-har-datasets",
)
```

## Dataset Notes

| Folder | Main files | Notes |
| --- | --- | --- |
| `datasets/uci` | `x_train.npy`, `y_train.npy`, `x_test.npy`, `y_test.npy` | UCI-HAR-style train/test arrays. |
| `datasets/unimib` | `training_data.npy`, `training_labels.npy`, `testing_data.npy`, `testing_labels.npy` | UniMiB-style preprocessed arrays. |
| `datasets/pamap2` | `train_X_new.npy`, `train_y_new.npy`, `total_pamap2_valtestx.npy`, `total_pamap2_valtesty.npy` | Train plus validation/test batch. |
| `datasets/wisdm` | `x_train.npy`, `y_train.npy`, `x_test.npy`, `y_test.npy` | WISDM-style preprocessed arrays. |
| `datasets/oppo` | `data_train_one.npy`, `label_train_onehot.npy`, `data_test_one.npy`, `label_test_onehot.npy` | OPPORTUNITY-style arrays with one-hot labels. |
| `datasets/WSBHA` | `training_data.npy`, `training_labels.npy`, `testing_data.npy`, `testing_labels.npy` | Current uploaded WSBHA folder, preserved as provided. |

File-level shapes and dtypes are listed in `metadata/partial_upload_2026-05-14_manifest.csv`.

## Google Drive Mirror

A Google Drive mirror can be used as a backup download route for users who prefer browser-based downloads. When public sharing is enabled, the link should be listed here and in the GitHub README as an optional mirror, while Hugging Face remains the canonical dataset host.

## Citation

Please cite this data release, the original datasets, and any relevant HAR method papers.

```bibtex
@misc{teng_preprocessed_har_datasets_2026,
  title        = {Ready-to-Use Preprocessed HAR Datasets},
  author       = {Teng, Qi and collaborators},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/datasets/shenjianmozhu/preprocessed-har-datasets}},
  note         = {Preprocessed fixed-window NumPy arrays for HAR benchmarking}
}
```

## Licensing

This repository contains processed versions of public datasets. The original datasets retain their own licenses, citation requirements, and redistribution terms. The `license: other` metadata is intentional because the collection is license-mixed. Users must comply with the terms of each original dataset.

If any source dataset does not permit redistribution of derived/preprocessed files, the corresponding processed files should be removed from this Hugging Face repository and replaced by preprocessing scripts plus links to the original source.

## Responsible Use

The data are intended for research on HAR, time-series classification, wearable sensing, and benchmark reproducibility. Users should avoid using the data for identity inference, health-status inference, or surveillance applications beyond the scope of the original datasets and consent protocols.