논문 해설
Large Language Models are Zero-Shot Recognizers for Activities of Daily Living
대규모 언어 모델은 일상생활 활동을 위한 제로샷 인식기이다
- 연구 문제 스마트홈에서 ADL을 인식하려면 대개 라벨된 센서 데이터로 모델을 학습해야 하며, 이 논문은 LLM이 라벨 없이 이 과제를 수행할 수 있는지 검증합니다.
- 연구 방법 ADL-LLM은 이진 센서 이벤트를 시간 윈도우별 자연어 문장으로 바꾸고, 활동 후보를 제시한 프롬프트로 LLM에 가장 가능성 높은 활동을 묻습니다. 소량의 라벨 데이터가 있으면 의미적으로 가까운 예시를 프롬프트에 추가합니다.
- 주요 결과 zero-shot ADL-LLM은 MARBLE에서 가중 F1 0.80을 보여 DeepConvLSTM의 0.82에 가깝고, 5% 라벨 풀의 few-shot 설정은 데이터가 적은 조건에서 지도 기준선보다 나은 결과를 보고합니다.
라벨 데이터 없이 스마트홈 ADL을 인식하는 문제
스마트홈에서 환경 센서로 일상생활활동(ADL)을 인식하면 에너지 관리, 안전, 웰빙, 의료 모니터링에 활용할 수 있습니다. 그러나 기존의 많은 방법은 딥러닝 모델을 학습시키기 위해 가정 내부의 대량 라벨 데이터가 필요합니다. 이런 데이터는 프라이버시 침해 소지가 있고 수집 비용이 크며 실제로 얻기 어렵습니다. 이 논문은 라벨 데이터 없이도 대규모 언어 모델(LLM)이 센서 데이터로부터 ADL을 zero-shot으로 인식할 수 있는지 검증합니다. 또한 소량의 라벨 데이터가 있을 때 few-shot 프롬프트가 데이터가 부족한 상황에서 지도 학습 기준선보다 나은지 함께 확인합니다.
ADL-LLM의 센서 상태 생성과 텍스트 변환
ADL-LLM은 연속된 이진 센서 이벤트를 먼저 활성화 구간을 가진 센서 상태로 바꿉니다. 각 상태는 센서 상태 σ가 시작 시각 ts부터 종료 시각 te까지 참인 구간으로 표현됩니다. 이후 고정 길이 τ초의 윈도우와 겹침 계수 o로 상태 스트림을 나누며, 구간이 윈도우와 겹치는 상태를 해당 윈도우에 연결합니다. Window2Text 모듈은 이 상태들을 세 범주로 구분합니다. 윈도우 안에서 완결되는 Inner 상태, 윈도우 시작 전에 이미 활성화된 Already active 상태, 윈도우 종료 뒤에도 남는 Persistent 상태입니다. 텍스트 생성 시 절대 타임스탬프 대신 'After N seconds'와 같은 상대 시간 표현을 사용하며, 윈도우 길이와 대략적인 시각을 문장 앞에 제시합니다.
저자들은 LLM이 정확한 시간 계산보다 사건의 순서와 관계를 더 잘 다룬다고 설명하며, 이 선택을 프롬프트 설계의 근거로 둡니다.

Fig. 2 . An example of Window2Text in action on the UCI ADL dataset
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.시스템 프롬프트, 사용자 프롬프트, 라벨 추출
ADL-LLM의 LLM 입력은 System Prompt와 User Prompt로 나뉩니다. System Prompt는 윈도우와 무관하며 활동 인식 시스템으로서의 역할, 집안의 방 위치, 센서가 포착하는 상호작용, 활동 후보 목록을 정의합니다. User Prompt는 특정 윈도우의 텍스트 표현 T(w_t), 후보 중 하나만 고르라는 지시, 그리고 단계적으로 추론하라는 'Reason step by step' 문장을 담습니다. 이 단계적 추론 지시는 Chain of Thought 기법을 따른 것입니다. LLM 출력은 Activity Label Extraction 모듈이 정규 표현식으로 처리하여 활동 라벨을 추출합니다.
원문에 따르면 라벨이 후보와 정확히 맞지 않는 드문 경우에는 텍스트 임베딩의 코사인 유사도가 가장 높은 후보를 최종 예측으로 선택합니다.

Fig. 3 . An example of system prompt in ADL-LLM for the UCI ADL dataset (Home B). The sets of locations, household elements captured by sensors, and activities are variables depending on the specific home where ADL-LLM is installed.
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.
Fig. 4 . ADL-LLM: An example of input and corresponding output.
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.Few-shot 모드의 예시 풀과 의미 기반 선택
Few-shot 모드는 zero-shot 구조에 두 구성요소를 더합니다. 먼저 라벨된 데이터셋 D의 각 쌍 (w, A)을 Window2Text로 변환하여 Pool of Examples E를 만듭니다. 같은 텍스트 표현이 서로 다른 라벨을 가지면 그 예시는 제거합니다. 실행 시에는 풀 전체를 프롬프트에 넣지 않고, 현재 윈도우 텍스트의 임베딩과 풀 항목 임베딩 사이의 코사인 유사도가 가장 높은 k개 예시만 System Prompt에 추가합니다. 이 선택은 Retrieval Augmented Generation의 원리를 따른 것입니다. 실험에서는 k를 3, 5, 7로 바꾸어 보았으며 두 데이터셋 모두에서 k=7이 가장 좋았다고 보고됩니다.

Fig. 1 . Overall architecture of ADL-LLM. When the pool of examples is empty ADL-LLM, acts as a zero-shot ADLs recognition method. Otherwise, it is a few-shot approach.
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.
Fig. 5 . ADL-LLM: An example of the prompt in the few shot setting.
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.실험 데이터셋과 지도 학습 기준선
평가에는 두 공개 데이터셋 MARBLE과 UCI ADL이 쓰였습니다. MARBLE은 단일 거주자 시나리오만 사용하였고, 자기 센서, 압력 센서, 스마트 플러그와 스마트워치의 실내 위치 정보 등을 포함합니다. 스마트워치의 가속도 같은 관성 데이터는 자연어 프롬프트로 바꾸기 어려워 제외되었습니다. UCI ADL은 두 가구(Home A, Home B)의 두 피험자 데이터이며, Home B에는 Home A와 다른 PIR 센서 배치가 있습니다. 지도 학습 기준선은 MLP, BiLSTM, DeepConvLSTM입니다. 데이터는 학습 30%와 테스트 70%로 나뉘며, 학습 데이터는 zero-shot ADL-LLM에 사용되지 않고 기준선 학습과 few-shot 풀 구성에만 쓰입니다.
Zero-shot ADL-LLM의 지도 학습 기준선과의 비교
zero-shot ADL-LLM은 학습 데이터를 쓰지 않으며, 100%의 학습 데이터로 학습한 지도 기준선과 비교되었습니다. MARBLE에서 ADL-LLM의 가중 F1-score는 0.80이고 DeepConvLSTM은 0.82입니다. UCI ADL에서는 ADL-LLM이 DeepConvLSTM보다 약 3% 낮고 MARBLE에서는 약 2% 낮다고 원문은 보고합니다. 저자들은 UCI ADL의 Home B에서 가구별 센서 구성이 줄어든 점이 인식을 어렵게 만든다고 해석합니다. 일부 활동, 예를 들어 Home A의 snacking이나 MARBLE의 entering home과 leaving home에서는 지도 기준선이 실패하는 경우에도 ADL-LLM이 인식하는 사례가 있었습니다.
다만 이 활동들은 학습 데이터에서 드물게 나타나므로 그 결과를 모든 활동으로 확대할 수 없습니다.

Table 1 . UCI ADL: F1 score of Zero-Shot (using no training data) ADL-LLM vs. supervised baselines trained using 100% of the training set (i.e., 30% of the dataset)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.
Table 2 . MARBLE: F1 score of Zero-Shot ADL-LLM (using no training data) vs. supervised baselines using 100% of the training set (i.e., 30% of the dataset)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.
Fig. 7 . Zero-Shot ADL-LLM: Confusion matrix on MARBLE dataset
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.데이터 부족 상황에서의 few-shot 결과
few-shot ADL-LLM은 학습 데이터의 100%, 50%, 25%, 10%, 5%를 예시 풀로 사용하는 조건에서 평가되었습니다. 원문은 학습 데이터의 5%만 풀에 넣어도 few-shot ADL-LLM이 zero-shot ADL-LLM보다 높은 성능을 보였다고 보고합니다. UCI ADL에서는 Home A를 제외하면 few-shot ADL-LLM이 지도 기준선을 앞섰으며, 기준선의 인식률은 데이터 부족에 따라 크게 낮아졌습니다. 5% 조건의 MARBLE에서 few-shot 가중 F1-score는 K=7에서 0.80이고 DeepConvLSTM은 0.75입니다. 이 결과는 소량의 라벨이 있을 때 ADL-LLM이 기존 데이터 중심 접근보다 나은 선택이 될 수 있음을 보여 주지만, 실험은 학습과 테스트가 같은 사용자 데이터에서 나온 설정에 한정됩니다.

Fig. 10 . MARBLE: Few-shot ADL-LLM (𝑘 = 7) vs DeepConvLSTM at different data scarcity scenarios.
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.
Table 3 . UCI ADL: Few-Shot ADL-LLM vs the supervised baselines (5% of the training set)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.
Table 4 . MARBLE: Few-Shot ADL-LLM vs the supervised baselines (5% of the training set)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.
Table 1 . UCI ADL: Few-Shot ADL-LLM vs the supervised baselines ( 100% of the training set)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.
Table 2 . MARBLE: Few-Shot ADL-LLM vs the supervised baselines ( 100% of the training set)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.
Table 3 . UCI ADL: Few-Shot ADL-LLM vs the supervised baselines ( 50% of the training set)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.
Table 4 . UCI ADL: Few-Shot ADL-LLM vs the supervised baselines ( 50% of the training set)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.
Table 5 . UCI ADL: Few-Shot ADL-LLM vs the supervised baselines ( 25% of the training set)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.
Table 6 . MARBLE: Few-Shot ADL-LLM vs the supervised baselines ( 25% of the training set)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.
Table 7 . UCI ADL: Few-Shot ADL-LLM vs the supervised baselines ( 10% of the training set)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.
Table 8 . MARBLE: Few-Shot ADL-LLM vs the supervised baselines ( 10% of the training set)
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.대체 프롬프트와 절제 실험
대체 프롬프트 실험은 Window2Text의 설계 선택을 검증합니다. 절대 타임스탬프를 사용한 버전은 상대 시간 버전과 거의 같은 결과를 보였습니다. Chain of Thought를 제거한 w/o CoT 버전도 인식률에 거의 영향을 주지 않았습니다. 다만 저자들은 단계적 추론이 결과의 해석 가능성을 높인다고 설명합니다. 환경 설명을 제거한 w/o Env 버전은 MARBLE에서 약간 낮은 결과를 보였습니다. Cleland의 단순한 센서 이벤트 프롬프트는 zero-shot 설정에서 낮은 성능을 보였습니다. 이 결과들은 제시된 구성 변형에서 얻은 것이며, 모든 프롬프트 설계가 같은 효과를 갖는다는 뜻은 아닙니다.

Table 5 . Results for the four alternative prompts.
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.
Fig. 11 . An example of a miss-prediction. On the left we show the output using Chain-of-Thought (CoT), while on the right the output without CoT. In the first case, the output is more interpretable, revealing that the model erroneously infers the subject is leaving the home simply because they stood up from the couch.
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.적용 범위와 남은 한계
원문은 몇 가지 한계를 밝힙니다. 첫째, 주요 실험은 OpenAI의 gpt-3.5-turbo-0125를 사용했으며 클라우드 기반 LLM이므로 개인 활동 정보의 프라이버시 문제가 남습니다. 둘째, 오픈소스 Llama-2-13b-chat-hf 실험에서는 출력 형식을 지키지 않거나 후보에 없는 라벨을 내는 경우가 있었고 전체 정확도도 낮았습니다. 셋째, 고정 길이 윈도우와 후보 활동 목록은 실제 환경의 변화와 새로운 활동을 충분히 다루지 못할 수 있습니다. 또한 센서 잡음과 결측에 대한 실험은 제한적이며, 이 논문은 주로 공개 데이터셋과 특정 가구 환경에서 검증되었습니다.

Table 6 . Zero-shot ADL-LLM (MARBLE): llama-2-13b-chat-hf vs. gpt-3.5-turbo-0125
원문 · CC BY 4.0 · Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini · Large Language Models are Zero-Shot Recognizers for Activities of Daily Living · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.논문 정보
- 저자
- Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2024년 7월 1일
- 등록일
- 2026년 11월 6일
- 수정일
- 2025년 3월 20일
- 버전
- v3
- arXiv
- 2407.01238
- 분류
- cs.AI · cs.CL · eess.SP
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
The sensor-based recognition of Activities of Daily Living (ADLs) in smart home environments enables several applications in the areas of energy management, safety, well-being, and healthcare. ADLs recognition is typically based on deep learning methods requiring large datasets to be trained. Recently, several studies proved that Large Language Models (LLMs) effectively capture common-sense knowledge about human activities. However, the effectiveness of LLMs for ADLs recognition in smart home environments still deserves to be investigated. In this work, we propose ADL-LLM, a novel LLM-based ADLs recognition system. ADLLLM transforms raw sensor data into textual representations, that are processed by an LLM to perform zero-shot ADLs recognition. Moreover, in the scenario where a small labeled dataset is available, ADL-LLM can also be empowered with few-shot prompting. We evaluated ADL-LLM on two public datasets, showing its effectiveness in this domain.
원문 인용
Gabriele Civitarese, Michele Fiori, Priyankar Choudhary, Claudio Bettini (2024). Large Language Models are Zero-Shot Recognizers for Activities of Daily Living. arXiv:2407.01238v3. https://arxiv.org/abs/2407.01238v3
BibTeX
@misc{civitarese2024large,
title = {{Large Language Models are Zero-Shot Recognizers for Activities of Daily Living}},
author = {Gabriele Civitarese and Michele Fiori and Priyankar Choudhary and Claudio Bettini},
year = {2024},
eprint = {2407.01238},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2407.01238v3}
}