Motion Measurements for Clinical Data Models That Keep Clinical Signal and Resist Re-Identification

Hospitals increasingly film patients walking, reaching or grasping in order to score movement disorders and stroke recovery. The resulting motion data never reaches the clinical databases where medications, diagnoses and outcomes live. Those databases follow a common data model, a shared table layout and vocabulary such as the Observational Medical Outcomes Partnership (OMOP) model, so that one analysis script can run unchanged at many hospitals. No one has settled what should actually be written into such a database from a patient video. Raw joint trajectories and body meshes are biometric: body proportions and gait style identify a person. Hand-picked gait numbers such as cadence and step length are easy to store, but they discard the signal that learned models use.

We propose a third option, a motion measurement. It is a small, versioned, learned vector computed per movement segment by a frozen encoder that is shipped to each site as code. It is trained so that it predicts clinical scores across hospitals, and so that it fails to link two recordings to the same person. The key design choice follows from where the vector will live. Age and sex already sit in the patient's demographic record, so the encoder should not be forced to erase them, as prior skeleton anonymizers do. It should erase only the identifying residue beyond what the database already holds, and it should be audited against open-set linkage attacks rather than closed-set identity classifiers. The privacy method is therefore the core mechanism, the data model is the deployment regime, and the data model also defines the threat.

Core Claim

A compact motion measurement, trained against a record-linkage adversary that is given the patient's demographic fields, can match learned motion encoders on cross-site clinical prediction. It can also cut cross-session re-identification to near chance. Neither hand-crafted gait metrics nor simple anonymization of the coordinates can do both. Because the vector sits in a standard table next to medication and diagnosis records, downstream models can read context such as levodopa ON/OFF state from the record instead of inferring it from movement.

Where This Sits Relative to Prior Work

Several papers motivate the gap without closing it. Challenges and Opportunities of Using Common Data Models in Rehabilitation shows that fewer than half of recommended neurologic and orthopedic functional assessments exist in the OMOP vocabulary. It builds no pipeline and never considers video or kinematic streams. CARE-PD harmonizes Parkinson's gait from 8 centers into textureless 3D body meshes and defines leave-one-dataset-out protocols. It stores meshes as standalone files, treats textureless meshes as anonymous, and links to no clinical database. STROKEVISION-BENCH likewise calls 2D pose "inherently privacy-preserving" and stores it in custom formats. We reuse CARE-PD's data and protocols, but we question its anonymity assumption and change what gets stored.

That assumption is contradicted by Anonymization for Skeleton Action Recognition. That paper trains an anonymizer against an identity classifier and a gender classifier, and it reports re-identification on NTU RGB+D 60 falling from 80.9% to 4.2% while action accuracy falls from 95.1% to 91.7%. It supplies our adversarial technique, but it constrains our design in two ways. First, it attacks a closed set of known identities, whereas the realistic threat in a shared clinical database is matching a new recording to an existing one. Second, it scrubs gender to chance, which in a clinical database removes nothing, since sex is stored anyway, and may remove gait signal that differs by sex.

Federated Joint Learning of Robot Networks in Stroke Rehabilitation trains across hospitals on proprietary joint arrays. It uses no data model and never measures biometric leakage in what it shares. Automated Integration of AI Results into Radiology Reports Using Common Data Elements is the closest precedent for writing model outputs into standard clinical elements. It handles static CT volumes inside a hospital, with no motion and no privacy threat model. MEDS-torch provides the event-sequence format and pipeline into which motion measurements can be written as timestamped events. Yet Another ICU Benchmark is a cautionary constraint: preprocessing and cohort choices moved results more than model architecture did. Our comparisons therefore fix cohorts and preprocessing across all representations.

Research Program

The pipeline has three parts.

Encoder. A frozen, versioned encoder runs locally at each site. It takes a mesh or keypoint sequence for one movement segment and emits a $k$-dimensional vector, with $k$ around 16. The encoder starts from a pretrained motion encoder of the kind CARE-PD fine-tunes.

Training objective. Write $x$ for a segment, $c$ for the demographic fields available in the patient record (sex, age band, and height if recorded), $y$ for the clinical label, $e$ for the encoder, $h$ for a clinical prediction head, and $a$ for a linkage attacker that sees both the code and $c$. Training solves

$$\min_{e,h}\max_{a}\; \mathcal{L}_{\text{clin}}\big(h(e(x),c),\,y\big) \;-\; \lambda\, \mathcal{L}_{\text{link}}\big(a;\,e(x),\,c\big),$$

where $\mathcal{L}_{\text{link}}$ is a contrastive loss that rewards the attacker for scoring two segments of the same person as closer than segments of different people, and $\lambda$ sets the trade-off. Because the attacker already receives $c$, the encoder is penalized only for identity information beyond the stored demographics. This is the ingredient that separates our approach from demographic scrubbing.

Storage. Outputs are written as OMOP measurement rows under local, non-standard concepts, or as MEDS events, tagged with the encoder version. Downstream analyses then use only database rows.

We treat privacy claims as unproven until an independent audit confirms them. After the encoder is frozen, we train fresh attackers from scratch on held-out subjects. These attackers use several architectures: linear, multilayer perceptron, and a sequence model on per-segment codes. They are given the demographic fields and, in the strongest setting, several enrollment segments per person. We report verification area under the curve and top-1 linkage among candidates matched on age band and sex.

Baselines

The naive reference point is to store the full shape-bearing mesh or joint sequences, with the database holding only a pointer, and to train the same downstream classifier on embeddings from an unregularized fine-tuned encoder. This bounds utility from above and privacy from below.

The hand-crafted baseline is cadence, step length, velocity and related scalars written as ordinary measurement rows. It is the simplest thing an informatician would do.

Canonical-body retargeting replaces each subject's body-shape parameters with the population mean before encoding. This removes limb-length cues at essentially no cost.

The strongest existing method is the anonymizer of Anonymization for Skeleton Action Recognition, retrained on CARE-PD joints with its identity and gender adversaries, followed by the same encoder and head. Its reported NTU RGB+D 60 result (re-identification 4.2%, action accuracy 91.7%, versus 80.9% and 95.1% unscrubbed) is the reference we will first reproduce on NTU, to confirm our implementation, before porting it.

The ablations remove one ingredient each. One drops $c$ from the attacker and the head. A second replaces the open-set linkage loss with Moon-style closed-set entropy maximization. A third removes the adversary entirely, isolating the effect of compression to $k$ dimensions.

All methods share identical cohorts, segment definitions and CARE-PD splits, the same backbone, and the same hyperparameter search budget, with trials counted per method. Beating a baseline means the following. Our leave-one-dataset-out clinical macro-F1 must be within the seed variance of the naive reference. Our audit linkage area under the curve must be significantly lower than every baseline's at matched utility. The comparison is made on the full utility-privacy curve swept over $\lambda$, not at a single point.

No reported result was found on Lacuna for CARE-PD UPDRS-gait classification accuracy or F1. The file reports only MPJPE, the mean per-joint position error in reconstructing body pose, which fell from 60.7 mm to 7.5 mm after fine-tuning, so we will establish the clinical baselines ourselves.

Why not just…?

Why not just store hand-crafted gait metrics in the measurement table? CARE-PD reports that deep motion encoders consistently beat hand-crafted gait features in cross-dataset evaluation, so these metrics likely lose clinical signal. They are not obviously private either, since cadence and stride length are themselves personal signatures. Our audit will measure their linkage rate. If hand-crafted features turn out both near-chance for linkage and within noise on clinical F1, that is a real finding, and we would report it as favoring the simpler design.

Why not just retarget motion onto a canonical body? This is the most serious threat, because body proportions may carry most of the identity signal and removing them is free. However, Moon et al. attribute leakage to gait dynamics as well as limb ratios. Our retargeting baseline, run through the fresh-attacker audit, directly tests this. If retargeting alone achieves chance-level linkage, the adversarial component is unnecessary, and the contribution reduces to the data-model design and the audit protocol.

Why not just apply the existing skeleton anonymizer and store its coordinates? It keeps full-resolution trajectories, which remain a large attack surface for attackers it was not trained against. It also erases sex, which the database stores anyway and which may matter for gait. The ablation that swaps our linkage loss for its closed-set objective shows whether that objective actually generalizes to open-set linkage by new attackers.

Why not just blur faces and archive video? AViD shows that face blurring costs as little as 0.3% action accuracy, but blurring leaves body shape and gait fully visible. Blurred video also cannot be queried by the portable analysis scripts that make common data models useful. We therefore treat blurring as outside the design space rather than as a competitor.

Proposed Experiments

Main experiment. We use CARE-PD and treat each cohort as a site, under both its leave-one-dataset-out and multi-dataset adaptation protocols. We predict UPDRS-gait score, medication state and freezing of gait from database rows only. The linkage audit uses the multiple walking segments recorded per subject, and we assume subject identifiers are available to the authors for audit purposes.

Test 1: utility-privacy frontier. We compare the frontier traced by our method against every baseline. This test succeeds if our curve dominates.

Test 2: whether record context helps. We predict UPDRS-gait from the motion measurement with and without medication state read from the record. We also train an attacker to recover medication state from the code alone. The data-model placement is justified if record context adds accuracy and the encoder then needs to carry less medication information.

Test 3: transfer. We apply the CARE-PD-trained encoder frozen to STROKEVISION-BENCH, keypoints only, and train a small head. We compare against its reported 84.29% for MotionBert on keypoints and 87.68% for R3D on raw video. This tests whether a fixed, shipped encoder generalizes across tasks. We expect the known failure to separate transport with an object from transport without one to persist, and we will report it rather than hide it.

Sanity check. Separately, we reproduce Moon et al. on NTU RGB+D 60 and ETRI-activity3D, to confirm our adversarial implementation before its results are trusted on clinical data.