Git Product home page Git Product logo

ncaa-injury-prognosis's Introduction

Injury Prognosis in NCAA Runners Using Wearable Accelerometer Data: Project Overview

Exploring wearable accelerometer data from NCAA runners to prognose musculokskeletal overuse injury. Part of my research efforts at the Human Performance Lab at University of California, Davis.

Highlights:

  • Used accelerometer data collected from UC Davis NCAA runners by the Human Performance Lab. Dataset contained triaxial accelerometer data collected at 50Hz.
  • Assessed signal quality using Fast Fourier Transform and filtered out noise using Butterworth filter with 10Hz cutoff.
  • Selected 1 training session to be categorized as "healthy" runner data, and 1 training session for "injured" data as the subject approached a permanent injury during data collection period.
  • Prototyped Long Short-Term Memory (LSTM) model which classified between accelerometer signals from healthy and injured periods with average accuracy of 97%.

Code and Resources Used

  • Python Version: 3.7
  • Packages: pandas, numpy, scipy, scikit-learn, keras, matplotlib, tensorflow

Data Collection and Subject Profile

  • Data was collected from 10 NCAA runners at UC Davis using a wearable triaxial accelerometer mounted at the sacrum.
  • Sampling rate: 50Hz.
  • For this prototype, only data from Subject 1 was utilized to eliminate natural gait variations between subjects.

Important Note: Subject 1 was permanently injured after the 29th training session. Thus, training session 29 is taken to be the subject's "injured" state, while training session 1 is the subject's "healthy" state.

Data Cleaning and Preprocessing

The large magnitude and rawness of the dataset made preprocessing steps necessary. The first step I took was to plot the Fast Fourier Transform of the data to gauage signal quality.

From the literature, we know that traditional running frequency is at 2-3Hz as well as some higher frequencies for the anterior-posterior and medial-lateral axes. Thus, I chose to filter out signal >10Hz as this was likely noise from electrical systems and the data collection environment.

It is important to note that the nature of this model type makes it possible to be conservative with the cutoff frequency. As outlined in following steps, we will not explicitly be using the signal peaks or features to engineer features for classification. Therefore, it serves us well to keep as much of the signal as possible while eliminating as much noise as possible.

Lastly, here are some additional processing steps that were taken:

  • Removed Resultant and Time columns from dataset.
  • Segmented data from both training sessions into 2s time intervals with 1s overlap.
  • Stacked all segmented data into a 3D data matrix. i.e., the triaxial data from both the "healthy" and "injured" training sessions were converged into one data matrix.

Model Construction

A Long Short-Term Memory (LSTM) model type was utilized. LSTM models excel in Natural Language Processing, and thus, have the capability to observe patterns in sequential data such as from time-series accelerometer data.

Here are the steps taken in the construction of this model:

  • Split the 3D data matrix into training and test data using an 80-20 split.
  • One-hot encode numerical class labels to make them suitable for model construction
  • Adam optimization algorithim and a categorical loss entropy function was used due to the multiclass nature of the data.
  • 15 training epochs to allow for adequate learning and minimization of loss.

Model Evaluation

From 10 iterations of model construction, the LSTM model was able to classify between healthy and injured running periods with 97.1% accuracy. Additionally, there was a Recall score of 0.93 and Precision of 0.98.

The model certainly offers promising results to be able to prognose a musculoskeletal injury in a runner using raw acclerometer signals, with little need for feature engineering and preprocessing.

ncaa-injury-prognosis's People

Contributors

aditjain125 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.