| Literature DB >> 35408104 |
Afzaal Hussain1,2, Kashif Zafar1, Abdul Rauf Baig3, Riyad Almakki3, Lulwah AlSuwaidan4, Shakir Khan4.
Abstract
Automatic tracking and quantification of exercises not only helps in motivating people but also contributes towards improving health conditions. Weight training, in addition to aerobic exercises, is an important component of a balanced exercise program. Excellent trackers are available for aerobic exercises but, in contrast, tracking free weight exercises is still performed manually. This study presents the details of our data acquisition effort using a single chest-mounted tri-axial accelerometer, followed by a novel method for the recognition of a wide range of gym-based free weight exercises. Exercises are recognized using LSTM neural networks and the reported results confirm the feasibility of the proposed approach. We train and test several LSTM-based gym exercise recognition models. More specifically, in one set of experiments, we experiment with separate models, one for each muscle group. In another experiment, we develop a universal model for all exercises. We believe that the promising results will potentially contribute to the vision of an automated system for comprehensive monitoring and analysis of gym-based exercises and create a new experience for exercising by freeing the exerciser from manual record-keeping.Entities:
Keywords: Internet of Things (IoT); LSTM; gym exercise recognition; human activity recognition; inertial sensor; smart sensor
Mesh:
Year: 2022 PMID: 35408104 PMCID: PMC9002367 DOI: 10.3390/s22072489
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.576
Weekly workout routine targeting each muscle group.
| Sr. | Chest Workout | Arms Workout | Shoulder Workout | Back Workout | Legs Workout | Core Body Workout |
|---|---|---|---|---|---|---|
| 1 | Butterfly | Bicep Curl Barbell | 4 × 4 Dumbbell | Pull Ups | Squats | Leg Raises |
| 2 | Cable Crossover | Triceps Dips | Front Raise | Front Pull Down | Leg Press | Crunches |
| 3 | Chest Press | Bicep Curl Dumbbell | Back Shoulder Press | Lower Pulley | Leg Extension | Cross Bicycles |
| 4 | Decline Press | Dumbbell Extension | Up Right Row | Vertical Traction | Leg Curl | Plank |
| 5 | Dumbbell Fly | Preacher Curl | Front Shoulder Press | Back Pull Down | Abductor | Mountain Climber |
| 6 | Incline Press | Cable Extension | Lateral Raise | 1 Arm Dumbbell Row | Dductor | Leg Scissor |
| 7 | Push Ups | High Pulley Curl | Shrugs | Barbell Row. T. Bar Row | Lunges | Boat |
Figure 1Exercise-wise instance count.
Figure 2Visual inspection of acceleration data for incline press and decline press activity from chest workout.
Raw accelerometer data collected using Zephyr device.
| Timestamp | Vertical | Lateral | Sagittal |
|---|---|---|---|
| 30 December 2019 18:48:02.386 | 1969 | 2039 | 2038 |
| 30 December 2019 18:48:02.396 | 1972 | 2036 | 2041 |
| 30 December 2019 18:48:02.406 | 1974 | 2039 | 2042 |
| 30 December 2019 18:48:02.416 | 1976 | 2037 | 2044 |
| 30 December 2019 18:48:02.426 | 1976 | 2039 | 2044 |
Labeled body movement and mobile application data.
| Timestamp | Vertical | Lateral | Sagittal | User | Wid | Wno | Setno | Exercise |
|---|---|---|---|---|---|---|---|---|
| 30 December 2019 18:48:02.386 | 1969 | 2039 | 2038 | 2 | 2 | 7 | 3 | Chest Press |
| 30 December 2019 18:48:02.396 | 1972 | 2036 | 2041 | 2 | 2 | 7 | 3 | Chest Press |
| 30 December 2019 18:48:02.406 | 1974 | 2039 | 2042 | 2 | 2 | 7 | 3 | Chest Press |
| 30 December 2019 18:48:02.416 | 1976 | 2037 | 2044 | 2 | 2 | 7 | 3 | Chest Press |
| 30 December 2019 18:48:02.426 | 1976 | 2039 | 2044 | 2 | 2 | 7 | 3 | Chest Press |
Figure 3Architecture of the gym physical exercise recognition system, (a) data acquisition; (b) sliding window; (c) input segmentation; (d) feeding data to classifier; (e) gym activity recognition.
Accuracy and loss for separate model of each muscle group.
| Muscle Group | Non-Overlapping Dataset | Overlapping Dataset | ||
|---|---|---|---|---|
| Accuracy | Loss | Accuracy | Loss | |
| Chest | 0.81 | 0.41 | 0.91 | 0.26 |
| Arms | 0.62 | 0.97 | 0.78 | 1.26 |
| Shoulders | 0.57 | 1.35 | 0.74 | 1.40 |
| Back | 0.63 | 0.91 | 0.88 | 0.59 |
| Legs | 0.75 | 0.64 | 0.82 | 0.81 |
| Core body | 0.78 | 0.56 | 0.90 | 0.43 |
Exercises average precision, recall, and F-score based on muscle group.
| Muscle Group | Exercises Average | ||
|---|---|---|---|
| Precision | Recall | Fscore | |
| Chest | 0.924 | 0.924 | 0.924 |
| Arms | 0.767 | 0.767 | 0.765 |
| Shoulders | 0.734 | 0.730 | 0.730 |
| Back | 0.872 | 0.873 | 0.872 |
| Legs | 0.806 | 0.807 | 0.806 |
| Core body | 0.895 | 0.883 | 0.888 |
Figure 4Confusion matrices for activity recognition of chest (on the left) and back (on the right) workout groups.
Figure 5The training and testing evolution for the chest workout (left) and back workout (right) for each training epoch.
Precision, recall, and F-score for the model covering all exercises.
| Exercise Name | Precision | Recall | Fscore | Exercise Name | Precision | Recall | Fscore |
|---|---|---|---|---|---|---|---|
| 4 × 4 Dumbell | 0.824 | 0.890 | 0.856 | High Pulley Curl | 0.690 | 0.559 | 0.618 |
| Abductor | 0.569 | 0.658 | 0.610 | Incline Press | 0.982 | 0.997 | 0.989 |
| Back Pull Down | 0.775 | 0.820 | 0.797 | Lateral Raise | 0.724 | 0.578 | 0.643 |
| Back Shoulder Press | 0.540 | 0.566 | 0.553 | Leg Curl | 0.851 | 0.678 | 0.755 |
| Barbell Row. T. Bar Row | 0.955 | 0.947 | 0.951 | Leg Extention | 0.853 | 0.775 | 0.812 |
| Bicep Curl Barbell | 0.679 | 0.646 | 0.662 | Leg Press | 0.957 | 0.947 | 0.952 |
| Bicep Curl Dumbell | 0.659 | 0.679 | 0.669 | Leg Raises | 0.810 | 0.912 | 0.858 |
| Boat | 0.958 | 0.846 | 0.898 | Leg Scissor | 0.718 | 0.895 | 0.797 |
| Butterfly | 0.920 | 0.828 | 0.872 | Lower Pulley | 0.872 | 0.709 | 0.782 |
| Cable Crossover | 0.923 | 0.971 | 0.947 | Lunges | 0.918 | 0.938 | 0.928 |
| Cable Extension | 0.570 | 0.623 | 0.595 | Mountain Climber | 0.965 | 0.934 | 0.949 |
| Chest Press | 0.665 | 0.771 | 0.714 | One Arm Dumbbell Row | 0.918 | 0.967 | 0.942 |
| Cross Bycyles | 0.972 | 0.920 | 0.946 | Plank | 0.980 | 0.980 | 0.980 |
| Crunches | 0.969 | 0.947 | 0.958 | Preacher Curl | 0.977 | 0.986 | 0.981 |
| Dductor | 0.681 | 0.640 | 0.660 | Pull Ups | 0.976 | 0.938 | 0.956 |
| Decline Press | 0.976 | 0.987 | 0.981 | Push Ups | 0.925 | 0.946 | 0.935 |
| Dumbbell Fly | 0.895 | 0.679 | 0.772 | Shrugs | 0.765 | 0.768 | 0.767 |
| Dumbell Extension | 0.574 | 0.646 | 0.608 | Squats | 0.958 | 0.934 | 0.946 |
| Front Pull Down | 0.667 | 0.678 | 0.673 | Triceps Dips | 0.977 | 0.945 | 0.961 |
| Front Raise | 0.769 | 0.823 | 0.795 | Up Right Row | 0.642 | 0.673 | 0.657 |
| Front Shoulder Press | 0.704 | 0.707 | 0.705 | Vertical Traction | 0.668 | 0.795 | 0.726 |
Figure 6Accuracy and loss for one model for 42 exercises.
Figure 7Confusion matrix for one model for 42 exercises.