Multi-window spatio-temporal feature representation for wearable sensor-based human activity recognition

Sensor-based human activity recognition (HAR) remains challenging in unconstrained wearable settings because activity patterns vary across participants, body locations, temporal scales, and background or transition periods. This study investigates a feature-based spatio-temporal HAR framework for the publicly available WEAR dataset, which contains recordings from multiple participants performing 18 distinct activities across 11 outdoor scenarios, in addition to a NULL activity class. The study emphasizes multi-window feature construction, subject-independent evaluation, class imbalance, and the effect of the NULL class. A LightGBM classifier was adopted as the final model based on preliminary classifier-selection experiments, and its hyperparameters were subsequently evaluated using nested subject-level grid search. The proposed method explicitly models spatial and temporal information from wearable accelerometer signals. Spatial information is captured using features extracted from multiple body-mounted sensors, including signal-magnitude differences, cross-body correlations, displacement-related proxies, roll, and pitch descriptors. Temporal information is represented through window-level statistical, acceleration-change, signal-magnitude, and spectral features, together with a scale-aware vertical multi-window augmentation strategy. Missingness indicators are also included to represent sensor incompleteness and signal quality. Model generalization was evaluated using a subject-independent 3-fold GroupKFold protocol, ensuring that all windows from the same subject were assigned exclusively to either the training or validation folds. Because different window durations define different evaluation units, the effect of vertical multi-window training was evaluated by comparing models at the same inference-window duration. At 8-s inference, the fixed vertically trained $$\{8,16\}$$ -s model achieved a macro-F1 of 0.8603 compared with 0.8584 for the 8-s-only baseline, while at 16-s inference macro-F1 increased from 0.8478 for the 16-s-only baseline to 0.8668 for the vertically trained model. Nested hyperparameter optimization improved the single-window baselines and produced performance comparable to the fixed multi-window configuration. For temporal localization at 16-s inference, the vertically trained $$\{8,16\}$$ -s model achieved an Avg. mAP of 79.10% with the fixed configuration and 79.19% after nested-grid optimization. The latter was 2.33 percentage points higher than the best reported WEAR temporal-localization baseline included in our comparison; however, this cross-study difference is interpreted descriptively because the experimental and evaluation protocols are not fully harmonized. Additional experiments showed that balanced sample weighting was preferable to sampling-based resampling strategies under the original imbalanced setting. The NULL-class analysis further demonstrated that background and transition periods substantially increase classification difficulty: removing the NULL class increased aggregated macro-F1 from 0.6914 to 0.8627 under the original class distribution and from 0.8078 to 0.8624 under imbalance-aware training. Previously published WEAR inertial baselines reported F1 scores of up to 77.10%; however, these cross-study results were obtained under different experimental and evaluation protocols and are therefore treated as descriptive rather than as direct performance gains. Overall, the findings indicate that vertical multi-window feature augmentation can improve classification performance, particularly at 16-s inference, while the NULL class remains a major source of ambiguity in WEAR-based activity recognition.

Authors

Institutions

Publication Details

Journal
Discover Computing
Published
2026-11-26
DOI
https://doi.org/10.1007/s10791-026-10873-9
Primary Topic
Context-Aware Activity Recognition Systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Multi-window spatio-temporal feature representation for wearable sensor-based human activity recognition

Asmaa Badran, Nashwa Nageh Ahmed, Nada Mohamed Osman Sid Ahmed, Mahmoud M. Elarabawy et al.
Discover Computing
Context-Aware Activity Recognition Systems
article

Multi-window spatio-temporal feature representation for wearable sensor-based human activity recognition

Asmaa Badran, Nashwa Nageh Ahmed, Nada Mohamed Osman Sid Ahmed, Mahmoud M. Elarabawy, Yasser Fouad, A. A. Soliman
article en

Abstract

Sensor-based human activity recognition (HAR) remains challenging in unconstrained wearable settings because activity patterns vary across participants, body locations, temporal scales, and background or transition periods. This study investigates a feature-based spatio-temporal HAR framework for the publicly available WEAR dataset, which contains recordings from multiple participants performing 18 distinct activities across 11 outdoor scenarios, in addition to a NULL activity class. The study emphasizes multi-window feature construction, subject-independent evaluation, class imbalance, and the effect of the NULL class. A LightGBM classifier was adopted as the final model based on preliminary classifier-selection experiments, and its hyperparameters were subsequently evaluated using nested subject-level grid search. The proposed method explicitly models spatial and temporal information from wearable accelerometer signals. Spatial information is captured using features extracted from multiple body-mounted sensors, including signal-magnitude differences, cross-body correlations, displacement-related proxies, roll, and pitch descriptors. Temporal information is represented through window-level statistical, acceleration-change, signal-magnitude, and spectral features, together with a scale-aware vertical multi-window augmentation strategy. Missingness indicators are also included to represent sensor incompleteness and signal quality. Model generalization was evaluated using a subject-independent 3-fold GroupKFold protocol, ensuring that all windows from the same subject were assigned exclusively to either the training or validation folds. Because different window durations define different evaluation units, the effect of vertical multi-window training was evaluated by comparing models at the same inference-window duration. At 8-s inference, the fixed vertically trained $$\{8,16\}$$ -s model achieved a macro-F1 of 0.8603 compared with 0.8584 for the 8-s-only baseline, while at 16-s inference macro-F1 increased from 0.8478 for the 16-s-only baseline to 0.8668 for the vertically trained model. Nested hyperparameter optimization improved the single-window baselines and produced performance comparable to the fixed multi-window configuration. For temporal localization at 16-s inference, the vertically trained $$\{8,16\}$$ -s model achieved an Avg. mAP of 79.10% with the fixed configuration and 79.19% after nested-grid optimization. The latter was 2.33 percentage points higher than the best reported WEAR temporal-localization baseline included in our comparison; however, this cross-study difference is interpreted descriptively because the experimental and evaluation protocols are not fully harmonized. Additional experiments showed that balanced sample weighting was preferable to sampling-based resampling strategies under the original imbalanced setting. The NULL-class analysis further demonstrated that background and transition periods substantially increase classification difficulty: removing the NULL class increased aggregated macro-F1 from 0.6914 to 0.8627 under the original class distribution and from 0.8078 to 0.8624 under imbalance-aware training. Previously published WEAR inertial baselines reported F1 scores of up to 77.10%; however, these cross-study results were obtained under different experimental and evaluation protocols and are therefore treated as descriptive rather than as direct performance gains. Overall, the findings indicate that vertical multi-window feature augmentation can improve classification performance, particularly at 16-s inference, while the NULL class remains a major source of ambiguity in WEAR-based activity recognition.

Discover ComputingVol. 29(1)
Princess Nourah bint Abdulrahman University (SA), Suez Canal University (EG), Suez University (EG), Arish University (EG)
Context-Aware Activity Recognition Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon