{'fraction_non_alphanumeric': 0.0258751902587519, 'fraction_numerical': 0.0060882800608828, 'mean_word_length': 5.895104895104895, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
User-Independent Recognition of Sports Activities From a Single Wrist-Worn Accelerometer: A Template-Matching-Based Approach

Goal: To investigate the accuracy of template matching for classifying sports activities using the acceleration signal recorded with a wearable sensor. Methods: A population of 29 normal weight and 19 overweight subjects was recruited to perform eight common sports activities, while body movement was measured using a triaxial accelerometer placed at the wrist. User- and axis-independent acceleration signal templates were automatically extracted to represent each activity category and recognize activity types. Five different similarity measures between example signals and templates were compared: Euclidean distance, dynamic time warping (DTW), derivative DTW, correlation and an innovative index, and combining distance and correlation metrics (Rce). Template-based activity recognition was compared to statistical-learning classifiers, such as Naive Bayes, decision tree, logistic regression (LR), and artificial neural network (ANN) trained using time- and frequency-domain signal features. Each algorithm was tested on data from a holdout group of 15 normal weight and 19 overweight subjects. Results: The Rce index outperformed other template-matching metrics by achieving recognition rate above 80% for the majority of the activities. Template matching showed robust classification accuracy when tested on unseen data and in case of limited training examples. LR and ANN achieved the highest overall recognition accuracy ~85% but showed to be more vulnerable to misclassification error than template matching on overweight subjects' data. Conclusion: Template matching can be used to classify sports activities using the wrist acceleration signal. Significance: Automatically extracted template prototypes from the acceleration signal may be used to enhance accuracy and generalization properties of statistical-learning classifiers.