Datasets:
subject large_stringclasses 31
values | timestamp timestamp[ns, tz=UTC]date 1970-01-01 00:00:00 1970-01-01 02:23:36 | thigh_acc_x float64 -8 8 | thigh_acc_y float64 -8 8 | thigh_acc_z float64 -8 8.41 | back_acc_x float64 -2.29 8 | back_acc_y float64 -6.49 4.31 | back_acc_z float64 -6.57 4.91 | label large_stringclasses 8
values | variant large_stringclasses 6
values |
|---|---|---|---|---|---|---|---|---|---|
agile-albatross | 1970-01-01T00:00:00 | 1.015625 | -0.077881 | 0.047119 | 1.002197 | 0.077148 | 0.020996 | stand | null |
agile-albatross | 1970-01-01T00:00:00.020000 | 1.015625 | -0.155029 | -0.046143 | 1.000732 | 0.08252 | 0.028809 | stand | null |
agile-albatross | 1970-01-01T00:00:00.040000 | 1 | -0.233398 | -0.046875 | 0.995117 | 0.094971 | 0.01416 | stand | null |
agile-albatross | 1970-01-01T00:00:00.059000 | 0.999756 | -0.234863 | -0.03125 | 0.981934 | 0.098633 | 0.009521 | stand | null |
agile-albatross | 1970-01-01T00:00:00.079000 | 1 | -0.188965 | -0.031006 | 0.984375 | 0.111572 | 0.002686 | stand | null |
agile-albatross | 1970-01-01T00:00:00.099000 | 1 | -0.157227 | -0.031494 | 0.984375 | 0.109375 | 0.019043 | stand | null |
agile-albatross | 1970-01-01T00:00:00.119000 | 1 | -0.141846 | -0.015869 | 0.985352 | 0.110352 | 0.01001 | stand | null |
agile-albatross | 1970-01-01T00:00:00.140000 | 1 | -0.110352 | -0.015137 | 0.977539 | 0.10376 | -0.002197 | stand | null |
agile-albatross | 1970-01-01T00:00:00.160000 | 1.000488 | -0.108643 | -0.030029 | 0.971924 | 0.090088 | 0 | stand | null |
agile-albatross | 1970-01-01T00:00:00.180000 | 0.984375 | -0.124268 | -0.045654 | 0.986572 | 0.099365 | 0 | stand | null |
agile-albatross | 1970-01-01T00:00:00.200000 | 0.999268 | -0.125488 | -0.061035 | 0.984375 | 0.111572 | -0.001221 | stand | null |
agile-albatross | 1970-01-01T00:00:00.220000 | 1.000488 | -0.110596 | -0.077393 | 0.984375 | 0.109375 | 0.006104 | stand | null |
agile-albatross | 1970-01-01T00:00:00.239000 | 0.985107 | -0.094482 | -0.077393 | 0.984375 | 0.11084 | 0.017822 | stand | null |
agile-albatross | 1970-01-01T00:00:00.259000 | 0.985107 | -0.094482 | -0.092773 | 0.984375 | 0.102783 | 0.015625 | stand | null |
agile-albatross | 1970-01-01T00:00:00.279000 | 0.96875 | -0.077148 | -0.092773 | 0.984375 | 0.093018 | 0.015625 | stand | null |
agile-albatross | 1970-01-01T00:00:00.299000 | 0.983154 | -0.107178 | -0.107422 | 0.982666 | 0.086914 | 0.015625 | stand | null |
agile-albatross | 1970-01-01T00:00:00.320000 | 0.985352 | -0.110352 | -0.123779 | 0.99292 | 0.075928 | 0.013916 | stand | null |
agile-albatross | 1970-01-01T00:00:00.340000 | 0.969727 | -0.094727 | -0.124023 | 0.994873 | 0.078125 | 0.02417 | stand | null |
agile-albatross | 1970-01-01T00:00:00.360000 | 0.967529 | -0.094482 | -0.13916 | 0.982178 | 0.076172 | 0.02417 | stand | null |
agile-albatross | 1970-01-01T00:00:00.380000 | 0.98291 | -0.079346 | -0.138428 | 0.982422 | 0.085449 | 0.020752 | stand | null |
agile-albatross | 1970-01-01T00:00:00.399000 | 0.985596 | -0.07666 | -0.171387 | 0.991699 | 0.095703 | 0.034912 | stand | null |
agile-albatross | 1970-01-01T00:00:00.419000 | 0.968994 | -0.092285 | -0.145996 | 1.001953 | 0.09375 | 0.023438 | stand | null |
agile-albatross | 1970-01-01T00:00:00.439000 | 0.981445 | -0.092529 | -0.114502 | 1 | 0.095459 | 0.013428 | stand | null |
agile-albatross | 1970-01-01T00:00:00.459000 | 0.998535 | -0.105225 | -0.082031 | 1.001953 | 0.085693 | 0.015625 | stand | null |
agile-albatross | 1970-01-01T00:00:00.480000 | 1 | -0.135986 | -0.061035 | 0.991699 | 0.078125 | 0.013428 | stand | null |
agile-albatross | 1970-01-01T00:00:00.500000 | 0.998535 | -0.156006 | -0.087402 | 0.980469 | 0.069824 | 0.021729 | stand | null |
agile-albatross | 1970-01-01T00:00:00.520000 | 1.015137 | -0.146484 | -0.123047 | 0.994629 | 0.060547 | 0.04126 | stand | null |
agile-albatross | 1970-01-01T00:00:00.540000 | 1.004639 | -0.100342 | -0.110107 | 0.993164 | 0.060303 | 0.046387 | stand | null |
agile-albatross | 1970-01-01T00:00:00.559000 | 0.972168 | -0.079346 | -0.119873 | 0.982422 | 0.071045 | 0.057617 | stand | null |
agile-albatross | 1970-01-01T00:00:00.579000 | 0.966797 | -0.077881 | -0.153809 | 0.984375 | 0.07959 | 0.052979 | stand | null |
agile-albatross | 1970-01-01T00:00:00.599000 | 0.982178 | -0.078125 | -0.143066 | 0.986328 | 0.078125 | 0.056396 | stand | null |
agile-albatross | 1970-01-01T00:00:00.619000 | 0.984375 | -0.078125 | -0.138672 | 0.975098 | 0.078125 | 0.054688 | stand | null |
agile-albatross | 1970-01-01T00:00:00.640000 | 0.984375 | -0.076416 | -0.154053 | 0.969238 | 0.078125 | 0.047363 | stand | null |
agile-albatross | 1970-01-01T00:00:00.660000 | 0.984375 | -0.091309 | -0.156494 | 0.959229 | 0.080322 | 0.037354 | stand | null |
agile-albatross | 1970-01-01T00:00:00.680000 | 0.984375 | -0.095459 | -0.157715 | 0.95166 | 0.068359 | 0.029785 | stand | null |
agile-albatross | 1970-01-01T00:00:00.700000 | 0.984375 | -0.078613 | -0.144531 | 0.950684 | 0.063232 | 0.03125 | stand | null |
agile-albatross | 1970-01-01T00:00:00.720000 | 0.984375 | -0.09082 | -0.126953 | 0.962891 | 0.05249 | 0.028809 | stand | null |
agile-albatross | 1970-01-01T00:00:00.739000 | 0.984375 | -0.093994 | -0.124512 | 0.967529 | 0.043213 | 0.04126 | stand | null |
agile-albatross | 1970-01-01T00:00:00.759000 | 0.984375 | -0.09375 | -0.125 | 0.976562 | 0.056885 | 0.048096 | stand | null |
agile-albatross | 1970-01-01T00:00:00.779000 | 0.984375 | -0.09375 | -0.123047 | 0.99585 | 0.063477 | 0.046875 | stand | null |
agile-albatross | 1970-01-01T00:00:00.799000 | 0.984375 | -0.095459 | -0.135986 | 0.998779 | 0.064697 | 0.044434 | stand | null |
agile-albatross | 1970-01-01T00:00:00.820000 | 0.986084 | -0.080811 | -0.153809 | 1.010498 | 0.053955 | 0.052734 | stand | null |
agile-albatross | 1970-01-01T00:00:00.840000 | 0.971436 | -0.07959 | -0.154541 | 1.016602 | 0.034912 | 0.084961 | stand | null |
agile-albatross | 1970-01-01T00:00:00.860000 | 0.968262 | -0.067139 | -0.166992 | 1.015625 | 0.027832 | 0.093262 | stand | null |
agile-albatross | 1970-01-01T00:00:00.880000 | 0.96875 | -0.05127 | -0.182861 | 1.015625 | 0.040039 | 0.104736 | stand | null |
agile-albatross | 1970-01-01T00:00:00.899000 | 0.96875 | -0.033691 | -0.200439 | 1.015625 | 0.058838 | 0.110107 | stand | null |
agile-albatross | 1970-01-01T00:00:00.919000 | 0.96875 | -0.028564 | -0.205566 | 1.017822 | 0.061035 | 0.111572 | stand | null |
agile-albatross | 1970-01-01T00:00:00.939000 | 0.96875 | -0.041504 | -0.192627 | 1.003906 | 0.073975 | 0.099854 | stand | null |
agile-albatross | 1970-01-01T00:00:00.959000 | 0.966553 | -0.057617 | -0.178467 | 0.999023 | 0.081055 | 0.081299 | stand | null |
agile-albatross | 1970-01-01T00:00:00.980000 | 0.980957 | -0.073242 | -0.148682 | 1.001953 | 0.063965 | 0.077393 | stand | null |
agile-albatross | 1970-01-01T00:00:01 | 0.984863 | -0.09082 | -0.12915 | 0.987793 | 0.07373 | 0.080078 | stand | null |
agile-albatross | 1970-01-01T00:00:01.020000 | 0.984375 | -0.094238 | -0.112061 | 0.98584 | 0.078613 | 0.067871 | stand | null |
agile-albatross | 1970-01-01T00:00:01.040000 | 0.984375 | -0.091553 | -0.11084 | 0.971924 | 0.075928 | 0.047363 | stand | null |
agile-albatross | 1970-01-01T00:00:01.059000 | 0.984375 | -0.103516 | -0.097168 | 0.966064 | 0.092529 | 0.060791 | stand | null |
agile-albatross | 1970-01-01T00:00:01.079000 | 0.984375 | -0.121826 | -0.09082 | 0.983154 | 0.081543 | 0.050293 | stand | null |
agile-albatross | 1970-01-01T00:00:01.099000 | 0.984375 | -0.127686 | -0.103516 | 0.971924 | 0.077637 | 0.046387 | stand | null |
agile-albatross | 1970-01-01T00:00:01.119000 | 0.984375 | -0.115234 | -0.121826 | 0.968262 | 0.078125 | 0.046875 | stand | null |
agile-albatross | 1970-01-01T00:00:01.140000 | 0.984375 | -0.098877 | -0.125488 | 0.966797 | 0.078125 | 0.044922 | stand | null |
agile-albatross | 1970-01-01T00:00:01.160000 | 0.984375 | -0.078857 | -0.125 | 0.981934 | 0.078125 | 0.061768 | stand | null |
agile-albatross | 1970-01-01T00:00:01.180000 | 0.984375 | -0.088867 | -0.127197 | 0.984619 | 0.078125 | 0.047607 | stand | null |
agile-albatross | 1970-01-01T00:00:01.200000 | 0.981934 | -0.094482 | -0.113281 | 0.98584 | 0.078125 | 0.061523 | stand | null |
agile-albatross | 1970-01-01T00:00:01.220000 | 0.998047 | -0.09375 | -0.110596 | 0.968994 | 0.078125 | 0.047363 | stand | null |
agile-albatross | 1970-01-01T00:00:01.239000 | 0.989258 | -0.091309 | -0.097656 | 0.982178 | 0.078125 | 0.061768 | stand | null |
agile-albatross | 1970-01-01T00:00:01.259000 | 0.983398 | -0.102783 | -0.094971 | 0.98584 | 0.078125 | 0.049805 | stand | null |
agile-albatross | 1970-01-01T00:00:01.279000 | 0.981934 | -0.119141 | -0.082275 | 0.970215 | 0.078125 | 0.033691 | stand | null |
agile-albatross | 1970-01-01T00:00:01.299000 | 0.995605 | -0.139404 | -0.077148 | 0.967285 | 0.078125 | 0.016846 | stand | null |
agile-albatross | 1970-01-01T00:00:01.320000 | 1.000732 | -0.130127 | -0.078125 | 0.98291 | 0.076904 | 0.015381 | stand | null |
agile-albatross | 1970-01-01T00:00:01.340000 | 1 | -0.124023 | -0.075684 | 0.985352 | 0.093506 | 0.014648 | stand | null |
agile-albatross | 1970-01-01T00:00:01.360000 | 1 | -0.127197 | -0.089111 | 0.969482 | 0.079102 | 0.030273 | stand | null |
agile-albatross | 1970-01-01T00:00:01.380000 | 1 | -0.11377 | -0.094482 | 0.968506 | 0.077881 | 0.031982 | stand | null |
agile-albatross | 1970-01-01T00:00:01.399000 | 1 | -0.108154 | -0.09375 | 0.968018 | 0.078125 | 0.016113 | stand | null |
agile-albatross | 1970-01-01T00:00:01.419000 | 1 | -0.109375 | -0.09375 | 0.983887 | 0.078125 | 0.015381 | stand | null |
agile-albatross | 1970-01-01T00:00:01.439000 | 1.002197 | -0.109375 | -0.09375 | 0.984375 | 0.078125 | 0.015137 | stand | null |
agile-albatross | 1970-01-01T00:00:01.459000 | 0.986816 | -0.106934 | -0.095947 | 0.984375 | 0.078125 | 0.031006 | stand | null |
agile-albatross | 1970-01-01T00:00:01.480000 | 0.993896 | -0.119873 | -0.083008 | 0.984131 | 0.077881 | 0.015625 | stand | null |
agile-albatross | 1970-01-01T00:00:01.500000 | 1.000977 | -0.123535 | -0.079346 | 0.999756 | 0.09375 | 0.015381 | stand | null |
agile-albatross | 1970-01-01T00:00:01.520000 | 1 | -0.135498 | -0.067383 | 0.983887 | 0.09375 | -0.000244 | stand | null |
agile-albatross | 1970-01-01T00:00:01.540000 | 0.997559 | -0.141602 | -0.063477 | 0.984375 | 0.09375 | 0.000244 | stand | null |
agile-albatross | 1970-01-01T00:00:01.559000 | 1.010254 | -0.138184 | -0.056641 | 0.984131 | 0.093506 | 0.015381 | stand | null |
agile-albatross | 1970-01-01T00:00:01.579000 | 1.014404 | -0.148438 | -0.03418 | 0.984863 | 0.094238 | 0 | stand | null |
agile-albatross | 1970-01-01T00:00:01.599000 | 1.023438 | -0.165283 | 0.018555 | 1.000732 | 0.11084 | 0.016357 | stand | null |
agile-albatross | 1970-01-01T00:00:01.619000 | 1.044922 | -0.180908 | 0.083252 | 1 | 0.124756 | 0.015625 | stand | null |
agile-albatross | 1970-01-01T00:00:01.640000 | 1.040039 | -0.194092 | 0.145508 | 0.998779 | 0.107178 | 0.015381 | stand | null |
agile-albatross | 1970-01-01T00:00:01.660000 | 1.019775 | -0.226807 | 0.214844 | 0.981689 | 0.091064 | 0.016846 | walk | null |
agile-albatross | 1970-01-01T00:00:01.680000 | 1.007324 | -0.233643 | 0.251709 | 0.96875 | 0.078369 | 0.032227 | walk | null |
agile-albatross | 1970-01-01T00:00:01.700000 | 1.033936 | -0.203613 | 0.24585 | 0.987061 | 0.094971 | 0.032715 | walk | null |
agile-albatross | 1970-01-01T00:00:01.720000 | 1.108887 | -0.112305 | 0.222412 | 1.003174 | 0.093506 | 0.049805 | walk | null |
agile-albatross | 1970-01-01T00:00:01.739000 | 1.176758 | -0.005371 | 0.167969 | 1.01709 | 0.095703 | 0.065674 | walk | null |
agile-albatross | 1970-01-01T00:00:01.759000 | 1.202881 | 0.092773 | 0.110352 | 1.015625 | 0.108398 | 0.07959 | walk | null |
agile-albatross | 1970-01-01T00:00:01.779000 | 1.150391 | 0.101318 | 0.085938 | 1.013428 | 0.093994 | 0.078125 | walk | null |
agile-albatross | 1970-01-01T00:00:01.799000 | 1.056396 | 0.06958 | 0.003418 | 0.996338 | 0.113037 | 0.078613 | walk | null |
agile-albatross | 1970-01-01T00:00:01.820000 | 1.018799 | 0.000244 | -0.115967 | 0.977783 | 0.12915 | 0.072998 | walk | null |
agile-albatross | 1970-01-01T00:00:01.840000 | 1.001953 | -0.105713 | -0.100586 | 0.947021 | 0.142334 | 0.042725 | walk | null |
agile-albatross | 1970-01-01T00:00:01.860000 | 0.955322 | -0.170898 | 0.012939 | 0.933105 | 0.140625 | 0.050049 | walk | null |
agile-albatross | 1970-01-01T00:00:01.880000 | 0.927979 | -0.210938 | 0.124512 | 0.91626 | 0.140137 | 0.061279 | walk | null |
agile-albatross | 1970-01-01T00:00:01.899000 | 0.901611 | -0.27832 | 0.179443 | 0.906738 | 0.143066 | 0.044189 | walk | null |
agile-albatross | 1970-01-01T00:00:01.919000 | 0.878418 | -0.304932 | 0.208984 | 0.926514 | 0.160889 | 0.049561 | walk | null |
agile-albatross | 1970-01-01T00:00:01.939000 | 0.922607 | -0.242676 | 0.22168 | 0.942383 | 0.177246 | 0.067383 | walk | null |
agile-albatross | 1970-01-01T00:00:01.959000 | 0.984131 | -0.156494 | 0.20752 | 0.959229 | 0.189453 | 0.08374 | walk | null |
agile-albatross | 1970-01-01T00:00:01.980000 | 0.960449 | -0.147461 | 0.243896 | 0.967773 | 0.187988 | 0.095215 | walk | null |
HARTH — thigh + back accelerometry, healthy adults, activity recognition
Dual-sensor accelerometry (Axivity AX3, 50 Hz, ±8 g) from the right thigh and lower back in 31 healthy adults, with activity ground truth for 12 activity types including walking, running, stair climbing, cycling, and postural activities. Recordings are 1–2.5 hours per participant of semi-free-living activity. Harmonized from the HARTH GitHub release into per-subject parquet — one row per raw accelerometer sample (50 Hz). 31 participants, 8.3 M samples, >99.9 % labelled, 46.2 h labeled.
Designed to resemble the HUNT4 accelerometer data (Trøndelag Health Study, Norway, ≈35,000 participants using the same dual-sensor setup at thigh and lower back), it serves as a labelled training resource for large-scale population health research.
Source
- Paper: Logacjov, A., Bach, K., Kongsvold, A., Bårdstu, H. B., & Mork, P. J. (2021). HARTH: A Human Activity Recognition Dataset for Machine Learning. Sensors, 21(23), 7853. https://doi.org/10.3390/s21237853
- Related paper: Bach, K., Kongsvold, A., Bårdstu, H., Bardal, E. M., Kjærnli, H. S., Herland, S., Logacjov, A., & Mork, P. J. (2022). A Machine Learning Classifier for Detection of Physical Activity Types and Postures During Free-Living. Journal for the Measurement of Physical Behaviour, 5(1), 24–31. https://doi.org/10.1123/jmpb.2021-0015
- Raw data: https://github.com/ntnu-ai-lab/harth-ml-experiments/tree/main/harth (original UCI release: https://archive.ics.uci.edu/dataset/779/harth — 22 participants; the GitHub version used here includes 31 participants with corrected labels)
- License: MIT
Protocol
- Participants: 31 healthy adults (8 female, 14 male in original 22-subject release; age 38.6 ± 14 y, height 177.3 ± 8.3 cm, weight 72.9 ± 10.6 kg, BMI 23.1 ± 2.3) (range: age 25–68 y, weight 56–92 kg, height 157–191 cm, BMI 19.2–28.4 kg/m²).
- Sensors: Two Axivity AX3 per participant — right thigh (≈10 cm above the upper border of the patella) and lower back (3rd lumbar vertebra), both mounted with USB connector pointing down. Attachment: a 5 × 7 cm moisture-permeable film (Opsite Flexifix, Smith & Nephew) on the skin, sensor fixed with double-sided tape, covered by a second 10 × 8 cm film layer.
- Sample rate: 50 Hz (100 Hz raw, published at 50 Hz).
- Recording — two sessions:
- Session 1 (22 participants, 6 female reported in protocol description): 1.5–2 h at the participant's workplace or home (semi-free-living). Participants were asked to accumulate at least 2–3 min each of sitting, standing, lying, walking, and running/jogging; no enforced order. Total: ≈1,804 min (≈30 h) across 22 participants (average 120 ± 21.6 min/participant).
- Session 2 (9 additional participants): 60 ± 9 min per participant (417.6 min / ≈7 h total), focused on walking, running, and cycling across flat, uphill, and downhill sections; incidental postures and stair-climbing also annotated.
- Raw data sampled at 100 Hz; downsampled to 50 Hz for the public release.
Ground-truth provenance
Frame-by-frame video annotation using ANVIL software. Ground truth recorded with a GoPro Hero 3+ chest-mounted camera (30 fps, 640 × 360 pixels) pointing toward the feet. Two independent human experts annotated each file; Fleiss' κ = 0.96. Sensor and video signals were aligned using three heel drops visible in both streams.
Published baseline (Logacjov et al. 2021, 12 labels, leave-one-subject-out): SVM F1 = 0.66 (best); after merging to 9 activity groups: SVM F1 = 0.81. Bach et al. 2022 (6 merged labels, dual-sensor XGBoost, 5-s window): overall accuracy 96 %, κ = 0.92.
Schema
timestamp is epoch-anchored elapsed time: every recording is normalised so its first
sample falls at 1970-01-01 00:00:00 UTC. The date is a sentinel — the Axivity AX3 RTC
was not synchronised to wall-clock for all recordings. Within-participant relative timing
is accurate at 50 Hz.
| column | dtype | notes |
|---|---|---|
| subject | string | participant alias (e.g. amber-antelope) |
| timestamp | datetime64[ns, UTC] | epoch-anchored elapsed time (see note above) |
| thigh_acc_x | float64 | right-thigh acceleration, corrected frame, g |
| thigh_acc_y | float64 | right-thigh acceleration, corrected frame, g |
| thigh_acc_z | float64 | right-thigh acceleration, corrected frame, g |
| back_acc_x | float64 | lower-back acceleration, corrected frame, g |
| back_acc_y | float64 | lower-back acceleration, corrected frame, g |
| back_acc_z | float64 | lower-back acceleration, corrected frame, g |
| label | string (nullable) | activity base (e.g. walk, bicycle) |
| variant | string (nullable) | posture/direction modifier; null when unspecified |
Example rows:
subject timestamp thigh_acc_x thigh_acc_y thigh_acc_z back_acc_x back_acc_y back_acc_z label variant
amber-antelope 1970-01-01 00:00:12 0.95 -0.11 0.07 0.92 0.04 -0.02 stand null
amber-antelope 1970-01-01 00:05:30 0.62 -0.08 0.43 0.61 0.03 0.22 walk null
amber-antelope 1970-01-01 00:22:10 0.58 -0.06 0.51 0.55 0.02 0.31 run null
amber-antelope 1970-01-01 00:35:00 0.97 -0.03 0.04 0.94 0.01 0.02 lie null
amber-antelope 1970-01-01 00:50:20 0.73 -0.04 0.39 0.70 0.02 0.18 bicycle pedalling-seated
wry-wolverine 1970-01-01 00:06:02 0.84 -0.09 0.12 0.81 0.02 0.09 null null
Note: acc values above are illustrative — read actual parquet for true values.
Label vocabulary
label and variant are stored in separate columns. variant is null for activities
with no posture or direction modifier.
| label | variant | meaning | labeled min |
|---|---|---|---|
| bicycle | coasting-seated | Freewheeling (not pedalling), seated | 13.9 |
| bicycle | coasting-standing | Freewheeling (not pedalling), standing | 2.6 |
| bicycle | pedalling-seated | Active pedalling, seated on saddle | 170.4 |
| bicycle | pedalling-standing | Active pedalling, standing out of saddle | 18.7 |
| lie | — | Lying on stomach, back, or side | 196.0 |
| run | — | Both feet leave the ground each stride | 115.2 |
| shuffle | — | Stepping in place / turning on the spot | 105.6 |
| sit | — | Buttocks on a seat, bed, or floor | 1,097.4 |
| stairs | ascending | Stair climbing upward | 31.7 |
| stairs | descending | Stair climbing downward | 29.3 |
| stand | — | Upright, stationary, feet supporting weight | 420.8 |
| walk | — | Locomotion, one stride or more, any direction | 572.3 |
Total labeled: 2,774 min / 46.2 h across 31 participants.
Coverage
Nearly all samples are labeled (99.99 %, 8,321,874 of 8,322,728 rows). The only unlabeled rows (854 rows, ≈17 s) appear in
wry-wolverine where label code 17 (undocumented in the upstream release) is mapped
to null. Filter with df[df['label'].notna()] to keep only labeled rows, or work with
the full dataset directly — the effect is negligible.
Axis orientation
All accelerometer columns use the hub standard axis convention, shared across all datasets on this hub:
- x runs along the body segment toward the head — reads +1 g when the person stands upright, drops toward 0 when they lie down.
- y points to the person's right — positive when tilting right, negative when tilting left.
- z points forward — positive when leaning or stepping forward, negative when leaning backward.
- At rest standing upright: x ≈ +1 g, y ≈ 0, z ≈ 0.
Thigh sensor (right thigh, ≈10 cm above the upper border of the patella, USB connector pointing down):
Native frame (standing): x=down, y=right, z=backward. Correction: negate x and z. Hub frame: x=up, y=right, z=forward.
Back sensor (lower back, L3, USB connector pointing down):
Native frame (standing): x=down, y=left, z=forward. Correction: negate x and y. Hub frame: x=up, y=right, z=forward.
The native axes are confirmed in Logacjov et al. 2021: "seen from the participant's perspective while standing upright, the lower back sensor's x-axis points downward, the y-axis to the left, and the z-axis forward. For the thigh sensor, the y-axis points to the right and the z-axis backward."
Harmonization notes
Label codes 10 (transport sitting) and 11 (transport standing) — present in 4 subjects,
≈2.4 min combined — are collapsed to plain sit and stand respectively. Label code
17 (undocumented, ≈17 s in wry-wolverine only) is mapped to null. No participants
excluded.
Use
Intended for human activity recognition (HAR) from dual-sensor thigh + back
accelerometry — predicting label (12 classes) from thigh_acc_x/y/z and
back_acc_x/y/z. The standard evaluation protocol is leave-one-subject-out (LOSO)
cross-validation across 31 participants. Avoid random row-level splits — they leak
temporal and subject-level context across folds.
Loading
Load all subjects into one table:
from datasets import load_dataset
ds = load_dataset("josefheidler/har_adults_2021-harth")
df = ds["train"].to_pandas()
Load a single subject:
import pandas as pd
df = pd.read_parquet(
"hf://datasets/josefheidler/har_adults_2021-harth/harmonized/amber-antelope.parquet"
)
Citation
Logacjov, A., Bach, K., Kongsvold, A., Bårdstu, H. B., & Mork, P. J. (2021). HARTH: A Human Activity Recognition Dataset for Machine Learning. Sensors, 21(23), 7853. https://doi.org/10.3390/s21237853
- Downloads last month
- 445