Timing-Aware and Interpretable Self-Attention for Event-Based Wearable Task Transition Detection
Organizations: School of Electrical Engineering and Telecommunications, University of New South Wales, Kensington, NSW 2033, Australia
Abstract
Task transition detection aims to identify when a person shifts from one task to another, providing a foundation for continuous health monitoring and timely context-aware interventions. While statistical and deep feature representations have demonstrated strong classification performance, they often rely on aggregated or latent features that are difficult to interpret in behavioural terms. Event-based features provide a compact and interpretable alternative by encoding behavioural and physiological patterns as discrete tokens with explicit semantic meaning, making them well suited for behavioural analysis in health informatics. Self-attention offers a mechanism for modelling interactions among such tokens; however, conventional self-attention classifiers primarily rely on token order and do not explicitly incorporate timing or duration information. As a result, informative temporal cues in event representations may not be fully exploited for task transition detection. This study proposes an event-based time-aware self-attention framework that represents behavioural signals as sequences of discrete events augmented with onset timestamps and durations. Event timing is encoded using a parameter-efficient kernel-based representation, while a novel type-aware duration embedding modulates information propagation according to event persistence. Experiments on a semi-naturalistic wearable dataset show that the proposed model outperforms existing event-based approaches, achieves performance beyond or comparable with statistical and deep-learning models with a more compact input representation, and provides improved interpretability through integrated-gradient-based analysis. These results indicate that explicit modelling of event timing and duration enhances both classification performance and interpretability, supporting reliable deployment in biomedical and health informatics applications.
Figures & tables
| Event Type | Abbrev. | Event Type | Abbrev. |
|---|---|---|---|
| Event Type | Attribution | Event Type | Attribution |
|---|---|---|---|
| Feature Type | Model | AUC | Accuracy | F1-Score | Wilcoxon test |
|---|---|---|---|---|---|
| -value vs. EvtTiSA | |||||
| Statistical | SVM [ 10 ] | ||||
| Deep | TST [ 43 ] | ||||
| Deep | LSTM | ||||
| Event + Timing | SVM [ 10 ] | ||||
| Event + Order | Transformer Encoder [ 15 ] |
Temporal Attention
Temporal attention models how information across time should be selected and combined in video, sequences, and time-series data.
See all 64 papers