Wahl K, Scholl PM, Wirth S, Miché M, Häni J, Schülin P, Lieb R. On the automatic detection of enacted compulsive hand washing using commercially available wearable devices.
Comput Biol Med 2022;
143:105280. [PMID:
35134606 DOI:
10.1016/j.compbiomed.2022.105280]
[Citation(s) in RCA: 1] [Impact Index Per Article: 0.5] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 12/01/2021] [Revised: 01/28/2022] [Accepted: 01/29/2022] [Indexed: 11/22/2022]
Abstract
BACKGROUND
Compulsive hand washing is one of the most frequent compulsions and includes highly ritualized, repetitive hand motions. Developing an algorithm that can automatically detect compulsive washing with off-the-shelf wearable devices is a first step toward developing more sophisticated sensor-based assessments and micro-interventions that might ultimately supplement cognitive behavioral therapy for obsessive-compulsive disorder (OCD).
OBJECTIVE
The main objective was to establish whether enacted compulsive hand washing can be distinguished from routine hand washing. This distinction will inform future research on the development of an algorithm that can automatically detect compulsive hand washing.
METHOD
Twenty-one participants were trained individually to wash their hands according to 1 of 5 scripted hand-washing procedures that were based on descriptions of pathological compulsive washes and additionally to wash their hands as they usually would, while wearing a smartwatch. Washes were video recorded to obtain validation data. To generate a baseline model, we opted to extract well-known features only (mean and variance of each sensor axis). We tested four classification models: linear support vector machine (SVM), SVM with radial basis functions, random forest (RF), and naive Bayes (NB). Leave-one-subject-out cross-validation was applied to gather F1, specificity, and sensitivity scores.
RESULTS
The best-performing parameters were a classification window duration of 10 s, with a mean-variance feature set calculated from quaternions, rate of turn, and magnetic flux measurements. The detection performance varied with the particular enacted compulsive hand wash (F1 range: 0.65-0.87). Overall, enacted compulsive and routine hand washing could be distinguished with an F1 score of 79% (user independent), a sensitivity of 84%, and a specificity of 30%.
CONCLUSIONS
Our analysis of the sensor data demonstrates that enacted compulsive hand washing could be distinguished from routine hand washing with acceptable sensitivity. However, specificity was low. This study is a starting point for a series of follow-ups, including the application in individuals diagnosed with OCD.
Collapse