Face touch monitoring using an instrumented wristband using dynamic time warping and k-nearest neighbours

Ramin Fathian, Steven Phan, Chester Ho, Hossein Rouhani
University of Alberta · PLOS ONE 2023
IMU worn on the wrist and its coordinate system

The wrist-worn IMU and its axes. Figure 1 of the paper (CC BY 4.0).

The question

Touching the mouth, nose and eyes is a main route for respiratory infections such as COVID-19, and people do it about 23 times an hour without noticing. A habit you don't notice is hard to change, so the first step is to measure it.

The paper asks whether one IMU on the wrist, the sensor already in every smartwatch, can detect face touches and tell them apart from look-alike movements such as eating, drinking and scratching the head. Eleven volunteers did six gestures in the lab and then wore the sensor through 20 minutes of their own daily routine.

Method

  1. Clean and align: 30 Hz zero-lag low-pass, then rotate into a vertically aligned frame from 10 s of quiet standing, so band placement doesn't matter.
  2. Compare with a template using dynamic time warping (DTW): one clean face touch is the template. A 3 s window slides in 0.2 s steps, and each axis gets a DTW distance that tolerates faster, slower or shifted gestures.
  3. Make an 8-number fingerprint per instant: three acceleration scores, three angular-velocity scores, and their two means.
  4. Classify with k-nearest neighbours (k = 3 to 21) into face touch, confounding gesture or other.
  5. Validate with a 70/30 split and with leave-one-participant-out cross-validation.
Flowchart of data collection, pre-processing, labelling, DTW, k-NN classification and validation

Pipeline. Figure 4 of the paper (CC BY 4.0).

Acceleration during one face touch and the DTW scores dipping during the touch
Angular velocity during one face touch and the DTW scores

One face touch, from raw signal to DTW scores: acceleration (left) and angular velocity (right). The scores dip while the hand is at the face. Figures 2 and 3 of the paper (CC BY 4.0).

Results

Sensitivity, precision and accuracy against k for controlled and natural trials under leave-one-participant-out validation

Aggregate values as reported in the paper (Table 2). Not recomputed here.

ValidationSettingSensitivityPrecisionAccuracy
70/30 split, k = 3Controlled91 %97 %85 %
70/30 split, k = 3Natural (daily life)79 %92 %79 %
Leave-one-participant-out, mean over kControlled82 %91 %85 %
Leave-one-participant-out, mean over kNatural (daily life)86 %95 %86 %

Why it matters

A wrist IMU is already in every smartwatch, so face-touch monitoring needs no extra hardware. One recorded gesture plus DTW and a nearest-neighbour vote gives an interpretable detector that is easy to personalise, and it was tested during real daily routines, not only in the lab.

Limitations stated in the paper: dominant hand only; the effect of feedback on behaviour was not tested; small sample; DTW is computationally heavy for real time; unbalanced training data; self-reported timing in daily life.

BibTeX

@article{Fathian2023FaceTouch,
  author  = {Fathian, Ramin and Phan, Steven and Ho, Chester and Rouhani, Hossein},
  title   = {Face touch monitoring using an instrumented wristband using dynamic time warping and k-nearest neighbours},
  journal = {PLOS ONE}, year = {2023}, volume = {18}, number = {2}, pages = {e0281778},
  doi     = {10.1371/journal.pone.0281778}
}