Feature Extraction
Transformers
Safetensors
English
setcon
imu
wearable-sensing
human-activity-recognition
zero-shot-classification
motion-language
time-series
custom_code
Instructions to use lschiweck/SetCon with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lschiweck/SetCon with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="lschiweck/SetCon", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lschiweck/SetCon", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model card: two models explained, results figure
Browse files- CHECKSUMS.txt +2 -1
- README.md +18 -5
- assets/results.png +0 -0
CHECKSUMS.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930 .gitattributes
|
| 2 |
41003d4a74749c0220e33dd415042164b5a1093ed401f36277234f772d22d3d0 LICENSE
|
| 3 |
-
|
|
|
|
| 4 |
b69d37fcc55e362a0dbb728aee069047f2e847980cdda3f24c6e195d2c304174 config.json
|
| 5 |
dc956f3f7d08803de98fb2a773fe634cce9adb076a5aeaac151e5340073c7be0 configuration_setcon.py
|
| 6 |
c33e93f88f9461177242acf567946fae6eb1d2cd6da4cc5cb31f6ca8c7725cf8 configuration_setcon_lm.py
|
|
|
|
| 1 |
34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930 .gitattributes
|
| 2 |
41003d4a74749c0220e33dd415042164b5a1093ed401f36277234f772d22d3d0 LICENSE
|
| 3 |
+
f713644dd3c4599098462509468a03554a6aa417e6218dc1f75875943051520d README.md
|
| 4 |
+
1f7ca841d6e34ebce3b5ebe4f47ef55e6b009cb063b10a68cfffc6f244ef1dd8 assets/results.png
|
| 5 |
b69d37fcc55e362a0dbb728aee069047f2e847980cdda3f24c6e195d2c304174 config.json
|
| 6 |
dc956f3f7d08803de98fb2a773fe634cce9adb076a5aeaac151e5340073c7be0 configuration_setcon.py
|
| 7 |
c33e93f88f9461177242acf567946fae6eb1d2cd6da4cc5cb31f6ca8c7725cf8 configuration_setcon_lm.py
|
README.md
CHANGED
|
@@ -27,16 +27,28 @@ Lennart Schiweck<sup>1</sup>, Alaa Saleh<sup>2</sup>, Cristóbal Curio<sup>1</su
|
|
| 27 |
[[Project page](https://lschiweck.github.io/setcon/)]
|
| 28 |
[[Evaluation data](https://huggingface.co/datasets/lschiweck/SetCon-eval)]
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
SetCon aligns inertial measurement unit (IMU) signals with text for zero-shot activity recognition across wearable
|
| 31 |
-
devices.
|
| 32 |
-
text encoder, and the window is classified as the activity whose text embedding lies nearest. A worn device's signal
|
| 33 |
-
depends on its setup, the combination of body site and mounting. Instead of making the encoder invariant to the
|
| 34 |
mounting, SetCon replaces full invariance with selective invariance. A calibrator estimates the setup reference of
|
| 35 |
each device on its known body site from a few unlabeled windows, and the encoder receives every window rotated so
|
| 36 |
that gravity points up together with gravity in the segment frame. Both networks were trained only on IMU simulated
|
| 37 |
from the Nymeria motion capture. On 13 real datasets SetCon reaches 56.6 % mean zero-shot accuracy with class names
|
| 38 |
-
and 65.3 % with anchors, against 41.8 % and 46.7 % for AnyMo.
|
| 39 |
-
(Qwen3.5-0.8B), answers questions about a window in free text.
|
| 40 |
|
| 41 |
The model and its code are released for non-commercial research.
|
| 42 |
|
|
@@ -45,6 +57,7 @@ The model and its code are released for non-commercial research.
|
|
| 45 |
```text
|
| 46 |
SetCon/
|
| 47 |
├── config.json, model.safetensors seed 1 (default): encoder + calibrator
|
|
|
|
| 48 |
├── seed2/, seed3/ the two other stage-2 seeds (same stage-1 model and calibrator)
|
| 49 |
├── lm/ language model on encoder seed 1: Qwen3.5-0.8B + projector, tokenizer
|
| 50 |
│ ├── seed2/, seed3/ the language models on encoder seeds 2 and 3
|
|
|
|
| 27 |
[[Project page](https://lschiweck.github.io/setcon/)]
|
| 28 |
[[Evaluation data](https://huggingface.co/datasets/lschiweck/SetCon-eval)]
|
| 29 |
|
| 30 |
+
This repository holds two models:
|
| 31 |
+
|
| 32 |
+
- **SetCon**, the encoder (root folder). It maps a 10-s window of a worn device into the text space of the frozen
|
| 33 |
+
CLIP ViT-B/32 text encoder. Zero-shot classification is a cosine similarity: the window gets the activity whose
|
| 34 |
+
text embedding is most similar, either the embedding of the class name or an anchor averaged over several
|
| 35 |
+
descriptions of the activity.
|
| 36 |
+
- **SetCon-LM** (`lm/`). A small language model (Qwen3.5-0.8B) on the frozen encoder that answers questions about a
|
| 37 |
+
window in free text, for example what the person is doing or how fast.
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
|
| 41 |
+
*Left: zero-shot Mean-13 accuracy on 13 real datasets (paper Tab. 1). Right: both models of this repository on the
|
| 42 |
+
same windows with six random context windows (paper Tab. 2); an LLM judge maps each free answer of SetCon-LM to a
|
| 43 |
+
class name.*
|
| 44 |
+
|
| 45 |
SetCon aligns inertial measurement unit (IMU) signals with text for zero-shot activity recognition across wearable
|
| 46 |
+
devices. A worn device's signal depends on its setup, the combination of body site and mounting. Instead of making the encoder invariant to the
|
|
|
|
|
|
|
| 47 |
mounting, SetCon replaces full invariance with selective invariance. A calibrator estimates the setup reference of
|
| 48 |
each device on its known body site from a few unlabeled windows, and the encoder receives every window rotated so
|
| 49 |
that gravity points up together with gravity in the segment frame. Both networks were trained only on IMU simulated
|
| 50 |
from the Nymeria motion capture. On 13 real datasets SetCon reaches 56.6 % mean zero-shot accuracy with class names
|
| 51 |
+
and 65.3 % with anchors, against 41.8 % and 46.7 % for AnyMo.
|
|
|
|
| 52 |
|
| 53 |
The model and its code are released for non-commercial research.
|
| 54 |
|
|
|
|
| 57 |
```text
|
| 58 |
SetCon/
|
| 59 |
├── config.json, model.safetensors seed 1 (default): encoder + calibrator
|
| 60 |
+
├── assets/results.png the figure of this card
|
| 61 |
├── seed2/, seed3/ the two other stage-2 seeds (same stage-1 model and calibrator)
|
| 62 |
├── lm/ language model on encoder seed 1: Qwen3.5-0.8B + projector, tokenizer
|
| 63 |
│ ├── seed2/, seed3/ the language models on encoder seeds 2 and 3
|
assets/results.png
ADDED
|