Downloads · 30 days
17
38% of all-time downloads
musakhan10/Wearable-Activity-Classifier
Wearable-Activity-Classifier is a machine learning model from musakhan10. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for keras.
Classify a 100-step, one-feature sensor sequence into Stationary, Walking, or Running.
Downloads · 30 days
17
38% of all-time downloads
All-time downloads
45
Public
Repo size
145 KB
Likes
0
Public
Click a slice to open those files.
.keras145 KB · 95%
From the Hugging Face model README
Classify a 100-step, one-feature sensor sequence into Stationary, Walking, or Running.
(100, 1)[cite: 1]Synthetic signals generated in the class notebook. The dataset was designed for teaching and is not a real wearable benchmark[cite: 1].
We selected the CNN+LSTM hybrid because it combines the strengths of both architectures[cite: 1]. The Conv1D layer efficiently extracts short, localized temporal patterns (like the shape of a single step) and condenses the sequence length[cite: 1]. The LSTM then processes this resulting feature sequence to model long-range transitions over time, resulting in the most robust performance[cite: 1].
We learned that using MaxPooling1D between the CNN and LSTM layers is critical because it reduces the sequence length[cite: 1]. This condenses the strong features and prevents the LSTM from having to unroll over too many time steps.