# Layer-wise training convolutional neural networks with smaller filters for human activity recognition using wearable sensors

웨어러블 센서를 이용한 인간 활동 인식을 위해 더 작은 필터를 사용하는 합성곱 신경망의 계층별 학습

Yin Tang, Qi Teng, Lei Zhang, Fuhong Min, Jun He · arXiv · 2020년 5월 8일

- **연구 문제** 관성 센서 기반 HAR에서 깊은 CNN은 자원 제약이 큰 기기에 적용하기 어렵습니다.
- **연구 방법** 기존 합성곱 필터를 저차원 Lego 필터와 이진 마스크의 조합으로 바꾸고, local loss로 학습합니다.
- **주요 결과** OPPORTUNITY와 UNIMIB-SHAR 실험에서 압축률이 높아질수록 정확도 차이가 나타나며, 설정별 결과는 데이터셋마다 다릅니다.

## 연구 문제: 센서 기반 HAR에서 경량 CNN이 필요한 이유

관성 센서로 사람의 활동을 인식하는 HAR에서는 합성곱 신경망(CNN)이 수작업 특징 추출을 대체하며 높은 정확도를 보였습니다. 그러나 깊은 CNN은 많은 파라미터와 연산량을 요구하여 스마트폰이나 웨어러블 기기에 올리기 어렵습니다. 원문은 이미지용 경량화 기법들이 특수한 네트워크 구조를 전제로 하여 시계열 센서 신호에 직접 적용하기 어렵다고 설명합니다.

이 논문은 필터를 기본 단위로 보고, 기존 합성곱 필터를 더 작은 Lego 필터의 조합으로 구성하는 방식을 HAR에 적용하는 것을 질문으로 삼습니다. 연구는 메모리와 FLOPs를 줄이면서 정확도를 유지할 수 있는지를 다섯 개의 공개 HAR 데이터셋에서 확인하려고 합니다.

## Lego 필터와 이진 마스크로 합성곱 필터 구성하기

기존 합성곱 층의 필터 F는 d×1×c×n 크기로 정의됩니다. Lego 방식은 F를 채널 수가 더 작은 필터 묶음 B로 바꾸고, F = BM으로 표현합니다. 여기서 M은 Lego 필터를 쌓는 선형 변환입니다. 입력 X는 o개의 조각으로 나뉘고, 각 조각에는 k개의 Lego 필터 중 하나가 이진 마스크로 선택됩니다. 따라서 각 출력 특징 맵은 모든 조각에 대한 합성곱의 합으로 계산됩니다.

이진 마스크 M은 gradient로 직접 최적화하기 어렵기 때문에, 실수 값 행렬 N에서 argmax로 이진 마스크를 얻고 그래디언트는 STE로 역전파합니다. 이후 같은 Lego 필터가 여러 필터 모듈에서 공유되므로, split-transform-merge 3단계로 중간 특징 맵을 한 번 계산하고 병합하여 반복 계산을 줄입니다.

![Figure 1: Overview of the model framework with Lego CNN for HAR. This ﬁgure shows how the three-stage pipeline split-transform-merge operates on input feature…](https://refivu.com/papers/50098453-c0be-4e81-af34-4e75bdc6f532/figures/figure-ab0d6ad0e75d34f0d490c5d621db6f79.png?thumb=512)

**Fig. 1** . Overview of the model framework with Lego CNN for HAR. This ﬁgure shows how the three-stage pipeline split-transform-merge operates on input feature maps. X is the input feature map, and Lego Filters are convolved with different segmented fragments from X, which result in a set of Feature Maps. Y is generated by merging the intermediate feature maps.

[원문](https://arxiv.org/abs/2005.03948v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yin Tang, Qi Teng, Lei Zhang, Fuhong Min, Jun He · Layer-wise training convolutional neural networks with smaller filters for human activity recognition using wearable sensors · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## local loss로 층별 학습하기

Lego CNN은 기존의 전역 손실 대신 두 개의 local loss를 사용합니다. 각 은닉층 뒤에서 계산 그래프를 분리하여 표준 역전파 기울기 흐름을 막습니다. 하나의 손실은 국소 선형 분류기 W와 정답 one-hot 행렬 사이의 교차 엔트로피인 예측 손실입니다. 다른 하나는 3×3 합성곱 C의 출력에 조정된 코사인 유사도 행렬 S를 적용하여 정답 유사도 S(Y)와 맞추는 유사도 매칭 손실입니다.

최종 local loss는 두 손실을 (1−α)와 α로 가중 결합한 형태이며, 원문은 α를 이전 연구에 따라 0.99로 설정했다고 밝힙니다. 이 설정은 이 논문의 Lego CNN 실험에서 사용된 값으로 읽어야 합니다.

## OPPORTUNITY 데이터셋의 압축 설정 비교

OPPORTUNITY 실험에서 기준 CNN은 C(128)→C(256)→C(384)→FC→Sm 구조입니다. Lego 필터는 중간 합성곱 두 개에만 적용되며 첫 합성곱 층과 마지막 완전연결 층은 압축하지 않습니다. 평가는 weighted F1 score로 하며, 데이터 분할은 ADL1–3을 학습에, ADL4–5를 테스트에 사용하고 실험은 5회 반복한 평균을 보고합니다.

결과에서 기준 CNN은 86.10%를 기록했습니다. Lego CNN(o=4,m=0.25)은 84.50%로 낮아졌지만 7.6x 압축률과 FLOPs 기준 3x 속도 향상을 보였습니다. 원문은 이 데이터셋에서 기준 CNN이 Lego CNN보다 일관되게 우세하다고 보고하며, 이 결과는 OPPORTUNITY 설정에서 얻은 것입니다.

## UNIMIB-SHAR 데이터셋의 극단적 압축 결과

UNIMIB-SHAR 실험은 길이 151의 고정 윈도우로 구성되며 학습 70%, 테스트 30%로 나눕니다. 기준 CNN은 C(128)→C(256)→C(384)→FC→Sm 구조이며 Adam과 미니배치 크기 200, 학습률 5e-4를 사용합니다.

원문에 따르면 Lego CNN(o=2,m=0.5)은 기준 CNN과 거의 같은 정확도를 보입니다. 극단적 설정인 Lego CNN(o=4,m=0.25)은 6.6x 압축률에서 72.80%를 기록했고, 기준 CNN의 74.46%와 비교됩니다. 이 결과는 UNIMIB-SHAR에서 얻은 설정별 값입니다.

![Figure 5: Overview of the loss of different compression for UNIMIB-SHAR](https://refivu.com/papers/50098453-c0be-4e81-af34-4e75bdc6f532/figures/figure-59b3cc0dfb8eb8ddeb07a7f2528de2d8.png?thumb=512)

**Fig. 5** . Overview of the loss of different compression for UNIMIB-SHAR.

[원문](https://arxiv.org/abs/2005.03948v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Yin Tang, Qi Teng, Lei Zhang, Fuhong Min, Jun He · Layer-wise training convolutional neural networks with smaller filters for human activity recognition using wearable sensors · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 남은 질문

이 방법은 모든 층에 Lego 필터를 적용한 것이 아니며, 첫 합성곱 층과 마지막 완전연결 층은 제외됩니다. 이 설계는 원문이 밝힌 선택이고, 그 결과 실제 압축률은 이론적 상한에 이르지 못합니다. 또한 OPPORTUNITY 결과에서 기준 CNN이 Lego CNN보다 우세하다는 점은 정확도 손실이 있음을 보여 줍니다.

데이터셋별 설정과 결과가 다르므로, 한 데이터셋의 결론을 다른 센서나 과제로 확장하기에는 근거가 제한적입니다. 저자들은 local loss가 정규화 효과를 줄 수 있다고 해석하지만, 이 해석은 저자의 해석으로 읽어야 합니다.

## 논문 정보

- **저자**: Yin Tang, Qi Teng, Lei Zhang, Fuhong Min, Jun He
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 5월 8일
- **등록일**: 2026년 11월 6일
- **수정일**: 2021년 8월 5일
- **버전**: v3
- **arXiv**: 2005.03948
- **DOI**: 10.1109/jsen.2020.3015521
- **분류**: cs.CV
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2005.03948v3) · [원문 PDF ↗](https://arxiv.org/pdf/2005.03948v3)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Recently, convolutional neural networks (CNNs) have set latest state-of-the-art on various human activity recognition (HAR) datasets. However, deep CNNs often require more computing resources, which limits their applications in embedded HAR. Although many successful methods have been proposed to reduce memory and FLOPs of CNNs, they often involve special network architectures designed for visual tasks, which are not suitable for deep HAR tasks with time series sensor signals, due to remarkable discrepancy. Therefore, it is necessary to develop lightweight deep models to perform HAR. As filter is the basic unit in constructing CNNs, it deserves further research whether re-designing smaller filters is applicable for deep HAR. In the paper, inspired by the idea, we proposed a lightweight CNN using Lego filters for HAR. A set of lower-dimensional filters is used as Lego bricks to be stacked for conventional filters, which does not rely on any special network structure. The local loss function is used to train model. To our knowledge, this is the first paper that proposes lightweight CNN for HAR in ubiquitous and wearable computing arena. The experiment results on five public HAR datasets, UCI-HAR dataset, OPPORTUNITY dataset, UNIMIB-SHAR dataset, PAMAP2 dataset, and WISDM dataset collected from either smartphones or multiple sensor nodes, indicate that our novel Lego CNN with local loss can greatly reduce memory and computation cost over CNN, while achieving higher accuracy. That is to say, the proposed model is smaller, faster and more accurate. Finally, we evaluate the actual performance on an Android smartphone.

## 원문 인용

Yin Tang, Qi Teng, Lei Zhang, Fuhong Min, Jun He (2020). Layer-wise training convolutional neural networks with smaller filters for human activity recognition using wearable sensors. arXiv:2005.03948v3. https://doi.org/10.1109/jsen.2020.3015521

**BibTeX**

```
@article{tang2020layer,
  title = {{Layer-wise training convolutional neural networks with smaller filters for human activity recognition using wearable sensors}},
  author = {Yin Tang and Qi Teng and Lei Zhang and Fuhong Min and Jun He},
  year = {2020},
  eprint = {2005.03948},
  archivePrefix = {arXiv},
  doi = {10.1109/jsen.2020.3015521},
  url = {https://arxiv.org/abs/2005.03948v3}
}
```

## 이 논문의 용어

- [FLOPs](https://refivu.com/terms/14c405888d5b-flops)
- [sliding window](https://refivu.com/terms/36584a6497c3-sliding-window)
- [compression ratio](https://refivu.com/terms/7175e9b79a6e-compression-ratio)
- [binary mask](https://refivu.com/terms/4da934855c6f-binary-mask)
- [human activity recognition (HAR)](https://refivu.com/terms/8a0e4c0927d5-human-activity-recognition-har)

## 다른 논문 해설

- [NK Hybrid Genetic Algorithm for Clustering](https://refivu.com/papers/c15dd97e-b5e7-40a0-8624-61f24670acd0-nk-hybrid-genetic-algorithm-for-clustering.md)
- [Neural Networks for Modeling and Control of Particle Accelerators](https://refivu.com/papers/1aeabac7-e3d5-4f7b-ac66-947590e3a0a8-neural-networks-for-modeling-and-control-of-particle.md)
- [Improvement in Land Cover and Crop Classification based on Temporal Features Learning from Sentinel-2 Data Using Recurrent-Convolutional Neural Network (R-CNN)](https://refivu.com/papers/8293a867-60f7-414b-9f54-c8dba4f5bc83-improvement-in-land-cover-and-crop-classification-based.md)
- [ProLanGO: Protein Function Prediction Using Neural~Machine Translation Based on a Recurrent Neural Network](https://refivu.com/papers/26aedbfa-9bc0-461c-9cc7-9c4b52e339c9-prolango-protein-function-prediction-using-neural-machine.md)
- [Continuous online sequence learning with an unsupervised neural network model](https://refivu.com/papers/2850b462-149b-4637-8186-0e3a02a69df4-continuous-online-sequence-learning-with-an-unsupervised.md)
- [A Cost-Sensitive Deep Belief Network for Imbalanced Classification](https://refivu.com/papers/140fac18-43ea-4f02-a761-0549f84a0de3-a-cost-sensitive-deep-belief-network-for-imbalanced.md)
- [Predicting and Mapping of Soil Organic Carbon Using Machine Learning Algorithms in Northern Iran](https://refivu.com/papers/383faf6c-19ff-4b1a-8858-cf949c09ed5b-predicting-and-mapping-of-soil-organic-carbon-using.md)
- [Machine learning for industrial sensing and control: A survey and practical perspective](https://refivu.com/papers/d9f5f0b1-46cb-423b-a63b-20fab615d644-machine-learning-for-industrial-sensing-and-control-a.md)
- [RayMVSNet++: Learning Ray-based 1D Implicit Fields for Accurate Multi-View Stereo](https://refivu.com/papers/54039fa5-2f8c-4677-b9dc-5bb3b6cfaa78-raymvsnet-learning-ray-based-1d-implicit-fields-for.md)
- [Augmenting Organizational Decision-Making with Deep Learning Algorithms: Principles, Promises, and Challenges](https://refivu.com/papers/3bb6b2f5-3783-4762-be0a-6937be8ad8fa-augmenting-organizational-decision-making-with-deep-learning.md)
- [On Machine Learning Force Fields for Metallic Nanoparticles](https://refivu.com/papers/18b44262-215d-48cb-bc3d-e8ecb8a02161-on-machine-learning-force-fields-for-metallic-nanoparticles.md)
- [Effective Communications: A Joint Learning and Communication Framework for Multi-Agent Reinforcement Learning over Noisy Channels](https://refivu.com/papers/bd215941-32dd-440d-825c-7b2f1ad254d6-effective-communications-a-joint-learning-and-communication.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/50098453-c0be-4e81-af34-4e75bdc6f532-layer-wise-training-convolutional-neural-networks-with)
