# Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data

Hang Yuan, Shing Chan, Andrew P. Creagh, Catherine Tong, Aidan Acquah, David A. Clifton ほか1名 · arXiv · 2022年6月6日

- **課題** ラベルの少ないウェアラブルHARで、大規模なラベルなし加速度計データによる自己教師あり事前学習を行うと、外部データセット全体の性能が上がるかを検証します。
- **手法** UKBの未ラベルの手首加速度データで、AoT、permutation、TWのタスクを同時に学習するマルチタスクSSLにより、ResNet-V2の特徴抽出器を事前学習し、その後ラベル付きデータセットでファインチューニングします。
- **結果** 事前学習したモデルは、7つの外部データセットすべてで、ゼロから学習したモデルとランダムフォレストを上回りました。ゼロから学習した同一ネットワークと比べたmedian相対F1向上は18.4%です。

## ラベル不足とSSL適用の必要性

ウェアラブルを使った人の活動認識（HAR）の研究では、ラベル付きデータが少なく、深層学習モデルが十分な性能を出しにくいという問題があります。一方、手首の加速度計データは、ラベルがなくても大規模に収集できます。この論文では、UK-Biobankの約700,000 person-daysに及ぶラベルなしデータを自己教師あり学習（SSL）に使い、ラベルが少ない状況でもHARの性能を高められるかを確認しています。

既存のSSL-HAR研究は小規模な実験室データセットにとどまっていたため、SSLの実際の潜在力はわかっていない状態でした。この研究では、実生活の環境で収集された大規模データで事前学習し、外部データセット・機器・環境をまたいで汎化するかも合わせて評価することを対象としています。

## マルチタスク自己教師あり変換と学習構成

この研究では、3つの単純な自己教師あり学習タスク、AoT(arrow of time)、permutation、TW(time-warping)を使います。AoTは信号を時間軸で反転させ、permutationは信号を4つの断片に分けて並べ替え、TWは信号の任意の区間を伸ばしたり縮めたりします。各タスクは変換が適用されたかどうかを当てる二値問題として扱われ、3つのタスクの交差エントロピー損失を同じ重みで足し合わせるマルチタスクSSL(multi-task SSL)により、共有特徴抽出器を学習します。

![Table 2: Downstream human activity recognition performance (subject-wise F1 (±SD)) for different self-supervised task combinations using 1,000 UK-Biobank parti…](https://refivu.com/papers/7d06c47d-a111-423f-a4f8-68d244e1093c/figures/figure-6cb669e6b922f9b73300986fd4794fcb.png?thumb=512)

**Table 2** : Downstream human activity recognition performance (subject-wise F1 (±SD)) for different self-supervised task combinations using 1,000 UK-Biobank participants. N is the number of samples.

[出典](https://arxiv.org/abs/2206.02909v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hang Yuan, Shing Chan, Andrew P. Creagh, Catherine Tong, Aidan Acquah, David A. Clifton, Aiden Doherty · Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

![Table 6: Downstream human activity recognition performance (subject-wise F1 (±SD)) when using different self-supervised learning tasks after fine-tuning: Arrow…](https://refivu.com/papers/7d06c47d-a111-423f-a4f8-68d244e1093c/figures/figure-5c9284a1a2ba8a54aca375ca03a3d85b.png?thumb=512)

**Table 6** : Downstream human activity recognition performance (subject-wise F1 (±SD)) when using different self-supervised learning tasks after fine-tuning: Arrow of the Time (AoT), Permutation (P), Time warping (TW). The tasks were trained using the same 1,000 UK-Biobank participants.

[出典](https://arxiv.org/abs/2206.02909v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hang Yuan, Shing Chan, Andrew P. Creagh, Catherine Tong, Aidan Acquah, David A. Clifton, Aiden Doherty · Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data · 論文の図を引用 · 元のPDFの15ページ目から図の部分を抽出しています。

特徴抽出器は、1D畳み込みを使うResNet-V2（18層、約10Mパラメータ）で、出力の特徴ベクトルのサイズは1024です。タスクごとのsoftmax層が、この共有抽出器の上に付けられます。学習中は、動きの大きい区間がより頻繁に選ばれるように、データウィンドウを標準偏差に比例してサンプリングする重み付きサンプリングを適用します。著者らは、静的な信号は変換後もほとんど変わらないため学習信号としての情報が少ないと説明しており、これが重み付きサンプリングの動機です。

![Figure 2: Accuracy test curves for training four self-supervised tasks individually using 1000 subjects from the UK-Biobank with and without weighted sampling.…](https://refivu.com/papers/7d06c47d-a111-423f-a4f8-68d244e1093c/figures/figure-1bf018a3c0f25fc8bd0528445a7f55f4.png?thumb=512)

**Figure 2** : Accuracy test curves for training four self-supervised tasks individually using 1000 subjects from the UK-Biobank with and without weighted sampling. The patience for early-stopping was five.

[出典](https://arxiv.org/abs/2206.02909v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hang Yuan, Shing Chan, Andrew P. Creagh, Catherine Tong, Aidan Acquah, David A. Clifton, Aiden Doherty · Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

![Figure 6: Data collected from free-living environment tends to have more stationary periods than the data collected in lab environment](https://refivu.com/papers/7d06c47d-a111-423f-a4f8-68d244e1093c/figures/figure-ec34191947259e156138b73294a1d1ae.png?thumb=512)

**Figure 6** : Data collected from free-living environment tends to have more stationary periods than the data collected in lab environment.

[出典](https://arxiv.org/abs/2206.02909v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hang Yuan, Shing Chan, Andrew P. Creagh, Catherine Tong, Aidan Acquah, David A. Clifton, Aiden Doherty · Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data · 論文の図を引用 · 元のPDFの15ページ目から図の部分を抽出しています。

## 下流タスク評価の設計とベースライン

事前学習済みの特徴抽出器を、ラベル付きの7つの外部データセットでファインチューニングします。2つの方法を比べており、1つは全層をファインチューニングする方法、もう1つは特徴抽出器を固定して最後の全結合層だけをファインチューニングする方法です。ベースラインは、同じ構造をゼロから学習したネットワークと、時系列の手作業の特徴量を使うランダムフォレストです。

![Table 1: Wrist-worn accelerometer datasets used to evaluate the utility of self-supervised learning for human activity recognition tasks](https://refivu.com/papers/7d06c47d-a111-423f-a4f8-68d244e1093c/figures/figure-bc3c7c1f8ca442075331015003b88cf1.png?thumb=512)

**Table 1** : Wrist-worn accelerometer datasets used to evaluate the utility of self-supervised learning for human activity recognition tasks

[出典](https://arxiv.org/abs/2206.02909v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hang Yuan, Shing Chan, Andrew P. Creagh, Catherine Tong, Aidan Acquah, David A. Clifton, Aiden Doherty · Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data · 論文の図を引用 · 元のPDFの3ページ目から図の部分を抽出しています。

評価プロトコルは被験者数によって変わります。被験者が10人未満のデータセットではheld-one-subject-out交差検証を、10人以上のデータセットではfive-fold被験者単位交差検証を使います。どちらの交差検証も、7:1:2の学習、検証、テストの分割に従います。この設定は、UKBの約100,000人で事前学習したモデルを下流タスクのデータセットで評価するときの条件です。結果を解釈するときは、このプロトコルを適用した実験と、ほかの設定の実験を区別する必要があります。

## 下流タスクの性能と自己教師あり事前学習の効果

表3の結果では、最も大きいデータセットであるCapture-24を除くと、ランダムフォレストはゼロから学習した深層学習モデルより高い性能になりました。事前学習したモデルは、7つのデータセットすべてで、ゼロから学習したモデルとランダムフォレストを上回りました。データセットが小さいほど事前学習の利点は大きく、Opportunityでは、F1の相対向上は55.4%でした。

著者らは、自己教師あり事前学習を使った場合、ゼロから学習した同一ネットワークと比べたmedian相対F1向上は18.4%で、ランダムフォレストと比べると8.5%だったと報告しています。Capture-24ではF1の向上は2.5%と小さくなりました。この数値は、全層をファインチューニングした結果を基にしています。

![Table 3: Subject-wise F1 and Kappa (κ) for downstream human activity recognition tasks (mean ± SD) using 100,000 participants for pre-training. The relative im…](https://refivu.com/papers/7d06c47d-a111-423f-a4f8-68d244e1093c/figures/figure-30bdb6d960c7d75ec8603e931882caec.png?thumb=512)

**Table 3** : Subject-wise F1 and Kappa (κ) for downstream human activity recognition tasks (mean ± SD) using 100,000 participants for pre-training. The relative improvement compares the performance between the model that is trained from scratch and fine-tuning using all the layers.

[出典](https://arxiv.org/abs/2206.02909v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Hang Yuan, Shing Chan, Andrew P. Creagh, Catherine Tong, Aidan Acquah, David A. Clifton, Aiden Doherty · Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

## 事前学習データのバイアスと適用範囲

著者らは、事前学習データであるUKBは主に英国の白人の参加者で構成されていると述べています。そのため、この結果がほかの人口集団にそのまま当てはまるとは言い切れず、多様な人口集団のデータを加えることが今後の課題とされています。

また、この論文の汎化に関する主張は、ここで使った7つの外部データセット、手首に装着した加速度計、10秒のウィンドウと30 Hzリサンプリングという条件のもとで得られたものです。ほかのセンサー位置やほかのモダリティに関する結果は、この研究の範囲外です。

## 論文情報

- **著者**: Hang Yuan, Shing Chan, Andrew P. Creagh, Catherine Tong, Aidan Acquah, David A. Clifton, Aiden Doherty
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2022年6月6日
- **登録日**: 2026年11月6日
- **更新日**: 2024年6月20日
- **バージョン**: v3
- **arXiv**: 2206.02909
- **DOI**: 10.1038/s41746-024-01062-3
- **カテゴリ**: eess.SP · cs.AI · cs.LG
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2206.02909v3) · [PDF ↗](https://arxiv.org/pdf/2206.02909v3)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

Advances in deep learning for human activity recognition have been relatively limited due to the lack of large labelled datasets. In this study, we leverage self-supervised learning techniques on the UK-Biobank activity tracker dataset--the largest of its kind to date--containing more than 700,000 person-days of unlabelled wearable sensor data. Our resulting activity recognition model consistently outperformed strong baselines across seven benchmark datasets, with an F1 relative improvement of 2.5%-100% (median 18.4%), the largest improvements occurring in the smaller datasets. In contrast to previous studies, our results generalise across external datasets, devices, and environments. Our open-source model will help researchers and developers to build customisable and generalisable activity classifiers with high performance.

## この論文を引用

Hang Yuan, Shing Chan, Andrew P. Creagh, Catherine Tong, Aidan Acquah, David A. Clifton, Aiden Doherty (2022). Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data. arXiv:2206.02909v3. https://doi.org/10.1038/s41746-024-01062-3

**BibTeX**

```
@article{yuan2022self,
  title = {{Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data}},
  author = {Hang Yuan and Shing Chan and Andrew P. Creagh and Catherine Tong and Aidan Acquah and David A. Clifton and Aiden Doherty},
  year = {2022},
  eprint = {2206.02909},
  archivePrefix = {arXiv},
  doi = {10.1038/s41746-024-01062-3},
  url = {https://arxiv.org/abs/2206.02909v3}
}
```

## この論文の用語

- [random forest](https://refivu.com/ja/terms/e69b7b54f2ea-random-forest)
- [Layer-wise relevance propagation (LRP)](https://refivu.com/ja/terms/cd554c957dc3-layer-wise-relevance-propagation-lrp)
- [Self-supervised learning (SSL)](https://refivu.com/ja/terms/93edfb222271-self-supervised-learning-ssl)
- [ランダムフォレスト](https://refivu.com/ja/terms/21bbc6f8f99a)

## ほかの論文解説

- [Contrastive Representation Learning: A Framework and Review](https://refivu.com/ja/papers/8d475c35-65aa-4272-b3a4-00f7350d277d-contrastive-representation-learning-a-framework-and-review.md)
- [Multi-task Self-Supervised Learning for Human Activity Detection](https://refivu.com/ja/papers/ae7c537d-33fb-4fec-8014-37dab4536341-multi-task-self-supervised-learning-for-human-activity.md)
- [Neural Discrete Representation Learning](https://refivu.com/ja/papers/111a9c5f-9d7d-4bff-bbad-a962285094a3-neural-discrete-representation-learning.md)
- [Momentum Contrast for Unsupervised Visual Representation Learning](https://refivu.com/ja/papers/4093c4bb-ce8b-4d26-bded-60ec02bc0fac-momentum-contrast-for-unsupervised-visual-representation.md)
- [A Simple Framework for Contrastive Learning of Visual Representations](https://refivu.com/ja/papers/3db73a26-109e-4e04-9c02-471468632adf-a-simple-framework-for-contrastive-learning-of-visual.md)
- [Inductive Representation Learning on Large Graphs](https://refivu.com/ja/papers/ff5e1161-efee-4eaf-8a5b-ca4227613b73-inductive-representation-learning-on-large-graphs.md)
- [A Generalized Deep Learning Framework for Whole-Slide Image Segmentation and Analysis](https://refivu.com/ja/papers/17229723-709e-4a8a-9857-8cd6f0d14883-a-generalized-deep-learning-framework-for-whole-slide.md)
- [Attention Spiking Neural Networks](https://refivu.com/ja/papers/2c52d99c-a249-4911-96bd-79f6720c0a09-attention-spiking-neural-networks.md)
- [Uncovering near-wall blood flow from sparse data with physics-informed neural networks](https://refivu.com/ja/papers/5532e81a-0a00-4722-b226-e72f33cb333a-uncovering-near-wall-blood-flow-from-sparse-data.md)
- [Deep Unsupervised Learning using Nonequilibrium Thermodynamics](https://refivu.com/ja/papers/0a712ab6-ae49-4e62-8de7-48f3f793c53f-deep-unsupervised-learning-using-nonequilibrium.md)
- [A Reduction of Imitation Learning and Structured Prediction to No-Regret Online Learning](https://refivu.com/ja/papers/08306129-4598-48b6-baf3-9d1af09e03a6-a-reduction-of-imitation-learning-and-structured-prediction.md)
- [NICE: Non-linear Independent Components Estimation](https://refivu.com/ja/papers/f56da4f3-4308-4b66-a0bf-e0d6e495195a-nice-non-linear-independent-components-estimation.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/7d06c47d-a111-423f-a4f8-68d244e1093c-self-supervised-learning-for-human-activity-recognition)
