Which Body Part Is Afraid? Healthy-Reference Shapley Attribution for Protective Movement Detectors

People with chronic back pain often move in a guarded way. They stiffen the trunk, brace a limb, or hesitate before bending. The cause is fear of pain or re-injury, not only tissue damage. Wearable sensors and neural networks can now flag these "protective" moments reasonably well. A stacked recurrent network reaches a mean F1 of 0.82 on the EmoPain chronic-pain dataset (Wang et al.). Yet no one can say what the network saw: was it a stiff trunk, tense back muscles, or a slow start to the movement? That matters for a physiotherapist. Each answer points to a different exercise, and current detectors lump guarding, stiffness and hesitation into one yes/no label.

We propose to explain these detectors with Shapley values. A Shapley value is a game-theoretic way to split a prediction fairly among input groups by averaging each group's effect over all combinations of the other groups. Our key change is what "removing" a group means. Instead of zeroing it or replacing it with a dataset mean, we swap that group's signals for the same body part or muscle recorded from a pain-free person doing the same activity, time-aligned to the patient's movement. Each attribution then answers a question a clinician can use: if only this body part, during this phase of the movement, moved like a pain-free person, how much would the detector's alarm drop? We test whether these explanations recover known planted cues, whether they separate the pooled "protective" label into the behaviour types therapists recognise, and whether they settle two open empirical disputes in the field.

Core Claim

Replacing features with a matched healthy reference yields attributions for protective-behaviour detectors that are more faithful and more clinically discriminative than three alternatives. The first is the detectors' own attention weights. The second is single-part occlusion (hiding one body part at a time). The third is time-series Shapley methods that use mean or marginal baselines.

The players in the game are a small number of anatomical groups crossed with movement phases and sensor types. There are five skeletal groups (trunk, two arms, two legs) plus a back-muscle electrical-activity channel group from surface electromyography (sEMG). Each is split across three phases: onset, execution, and return. A player might therefore be "trunk during onset" or "back muscles during execution." Formally, for a window $x$ and a coalition $S$ of players, the value function is

$$v(S) = \mathbb{E}_{r \sim R(x)}\big[f(x_S, \tilde r_{\bar S})\big],$$

where $f$ is the detector's protective-class probability, $x_S$ keeps the patient's signals for players in $S$, and $R(x)$ is a set of healthy-control recordings of the same activity. Each reference $r$ is warped in time onto $x$ by dynamic time warping, giving $\tilde r$. Its signals fill in the players not in $S$, written $\bar S$. The Shapley value of each player is then computed from $v$ in the usual way.

With 6 spatial groups, exact Shapley needs only 64 coalitions per phase. The phase level can be computed exactly within each spatial group or estimated by sampling. The "computational explosion" warned about for joint-by-timestep features therefore never arises. The substantive choice is the healthy-reference replacement, and it is what the ablations isolate.

Relation to Prior Work

Four strands of prior work matter here, each in a different role.

The first supplies the application and the models we explain. Wang et al. showed that stacked and dual-stream LSTMs detect protective behaviour across five activities without knowing which activity is being performed (Wang et al.; Wang et al.). A later hierarchical model combines a graph network over the skeleton (GC-LSTM) with activity recognition and a class-balanced focal loss (Wang et al.). None of these models is explained. We add no new detector; we explain these ones.

The second is the closest interpretability attempt and the main competitor. BodyAttentionNet (BANet) weights 13 body parts and time steps with attention and reads those weights qualitatively (Wang et al.). Attention weights do not satisfy Shapley's fairness properties (Holzinger et al.). We do not assume this makes them wrong; we test them against planted ground truth.

The third supplies methods, and some of it constrains our design. WindowSHAP groups adjacent timesteps so that correlated neighbours stop receiving cancelling positive and negative credit (Nayebi et al.). TimeSHAP perturbs recurrent inputs at the level of whole events and prunes distant history (Bento et al.). We adopt their lesson that credit should be assigned to temporal chunks. However, both methods use mean or background baselines and have no notion of anatomy. On skeletal data those baselines produce impossible poses. That is the specific failure our healthy-reference fill-in targets.

The fourth is Shap-Mix, the only prior use of body-part Shapley values on skeletons (Shap-Mix). It treats the same five anatomical groups as players and reports that gradient saliency over-smooths across graph-connected joints. However, it uses the values only offline, to steer data augmentation for coarse action recognition. It never evaluates the explanations themselves, uses no muscle signals, and does not study clinical behaviour. We borrow its player definition and test its over-smoothing claim on a clinical detector.

Finally, work showing that SHAP can be fooled by biased sampling, or that different reasonable choices give different SHAP explanations (Fooling SHAP; Explanation Multiplicity in SHAP), constrains our design. Our choice of reference set is exactly such a sampling choice. We therefore report how sensitive the attributions are to which healthy references are drawn, rather than presenting a single explanation.

Research Program

We will reproduce three detectors on EmoPain under the published leave-one-subject-out protocol: the stacked-LSTM, the dual-stream LSTM that fuses motion capture with sEMG, and the hierarchical activity-recognition plus GC-LSTM model. Each uses 3-second windows with zero-padding, following Wang et al..

The reference pool for each patient window is built from healthy-control windows of the same activity. Activity labels come from the dataset, or from the activity-recognition module for continuous data. Phase boundaries come from trunk angular-velocity thresholds.

Because splicing a healthy trunk onto a patient's legs could itself look unnatural, we train a separate motion autoencoder on healthy data. Its reconstruction error serves as a plausibility score for every hybrid input. We report this score for our fill-in and for mean, zero and marginal baselines. The claim that our inputs stay closer to real movement is thus measured rather than asserted.

The explanations then serve three scientific uses. The first is subtype separation. We cluster the per-window attribution vectors, which record which body part, phase and sensor type drove the alarm. We then ask whether the clusters align with the therapist-annotated behaviour types (guarding, stiffness, hesitation) that EmoPain records, wherever the release provides them at window level. We expect hesitation to load on onset-phase players and guarding to load on back-muscle and trunk players.

The second is modality credit. We sum attributions within the muscle and motion groups of the dual-stream model. This answers the question Wang et al. left open: does muscle guarding or kinematic compensation drive detection?

The third is the dispute over activity context. One study argues activity labels are unnecessary; the other shows a jump from macro F1 0.66 to 0.81 when the detector is given activity context (Wang et al.; Wang et al.). In the hierarchical model we treat the activity-recognition output as one more player. We compute its pairwise interaction with each body-part player using a SHAP-IQ-style estimator (SHAP-IQ). This tests whether the gain comes from activity context changing which parts are read as protective, which would show up as large interactions, or from a simple additive shift.

Baselines

The naive reference point is a random attribution together with a "trunk-always" heuristic that gives all credit to the trunk. Guarding in back pain plausibly concentrates there, so any method that cannot beat this heuristic on planted-cue recovery tells us nothing beyond the prior.

The strongest existing interpretability competitor is BANet's own bodily and temporal attention (Wang et al.), which reports accuracy 0.8688 and mean F1 0.844 on EmoPain. We retrain BANet on the identical folds, and we also apply our Shapley method to the retrained BANet. The comparison is then between two explanations of the same trained model, which removes any difference in model quality.

The strongest existing Shapley competitor is WindowSHAP with its default mean baseline (Nayebi et al.). We run it with windows matched to our three phases and give it the same budget of model evaluations as our method. We also run TimeSHAP's event-level variant under the same budget (Bento et al.).

Single-group occlusion is the cheap competitor. It replaces one player at a time with the same healthy reference we use and needs only 18 model calls per window.

The central ablation keeps everything in our method fixed except the replacement distribution. We compare zero, dataset mean, marginal samples from any subject, healthy references without time warping, and healthy references with time warping. This isolates whether the matched healthy reference is what earns any improvement.

For detection accuracy we reuse the published numbers only to confirm our reproduction. These are mean F1 0.82 for the stacked-LSTM (Wang et al.); macro F1 0.81 and PR-AUC 0.60 for the hierarchical model (Wang et al.); and a protective-class F1 of 0.24 for the challenge baseline (Egede et al.). There is no reported result found on Lacuna for attribution faithfulness of any explainer on EmoPain or any protective-behaviour dataset, so the explanation comparison has no prior number to beat.

Beating a baseline means one of two things, each on the same folds and with confidence intervals across subjects. The first is statistically higher planted-cue recovery than every baseline. The second is lower deletion-curve area than every baseline when the deleted groups are filled in plausibly.

Why not just…?

Why not just read BANet's attention weights? BANet's attention may well be adequate. Its bodily attention was reported to help performance more than temporal attention, which hints that it tracks something real. However, performance is not faithfulness. The planted-cue experiment settles the question directly: if attention ranks the planted body part and phase as highly as our method does, we will say so and recommend attention, since it is free. Shap-Mix's report that gradient saliency over-smooths across graph-connected joints (Shap-Mix) predicts attention will fail specifically in the GC-LSTM detector, and we test that prediction there.

Why not just occlude one body part at a time? This is the real threat. With a healthy-reference fill-in, occlusion costs 18 calls instead of hundreds. When body parts contribute independently, it gives nearly the same answer as Shapley values. It breaks when cues are redundant. If trunk stiffness and back-muscle tension both signal guarding, hiding either alone changes nothing and occlusion credits neither. We plant exactly such redundant pairs to measure this. We also report the fraction of real EmoPain windows where Shapley and occlusion rankings disagree. If that fraction is small, the honest conclusion is that healthy-reference occlusion suffices, and the contribution reduces to the reference fill-in.

Why not just train a classifier directly on guarding, stiffness and hesitation labels? Direct supervision is the better tool wherever labels are plentiful and reliable. On EmoPain, however, they are neither. Adding even an "uncertain" class drops protective-class F1 from 0.82 to 0.72 and 0.55 (Wang et al.), and finer subtypes are rarer still. We therefore train such a subtype classifier as a comparison. The test is whether attribution clusters from the binary detector match therapist subtypes at least as well as that classifier does on held-out subjects. A supervised subtype classifier also cannot say how much muscle versus motion signal drove a decision; attribution can.

Why not just run off-the-shelf WindowSHAP or KernelSHAP? These methods fix correlated-timestep cancellation but fill hidden inputs with means. On a skeleton, mean fill-in yields a pose no person adopts. The plausibility score quantifies how far off-manifold each baseline's hybrids are. The replacement-distribution ablation then shows whether that distance translates into worse planted-cue recovery. If it does not, mean baselines are vindicated for this domain.

Proposed Experiments

Planted-cue recovery (decisive check). Using healthy-control windows, we synthesise "protective" examples by injecting a known signature into a chosen player. The signatures are damped trunk angular velocity during onset, raised back-muscle amplitude during execution, and delayed movement onset. Some examples carry one signature; others carry redundant or interacting pairs. We train each detector on a mix of real and planted data and score each explainer by whether its top-ranked players match the planted ones, measured as top-k hit rate and rank correlation. This is the only setting with ground truth, and the method must win here to be believed.

Faithfulness on real data. We plot deletion and insertion curves over players, with deleted players filled in plausibly. We report the area under each curve, together with the plausibility score of the hybrid inputs.

Stability. Across leave-one-subject-out folds, training seeds and redraws of the reference set, we report rank correlation of attributions. This responds directly to the explanation-multiplicity concern.

Clinical questions. We report the agreement between attribution clusters and annotated behaviour types, using adjusted mutual information against the supervised subtype classifier. We also report the share of credit going to muscle versus motion signals in the dual-stream model. Finally, we report the size of the interaction between activity context and each body part in the hierarchical model.

A negative result on the planted-cue test would be informative in its own right. It would mean current protective-behaviour detectors cannot yet be explained to clinicians at body-part and phase resolution by any of these tools.