Downloads · 30 days
8
22% of all-time downloads
Ahad09/wearable-activity-lstm
wearable-activity-lstm is a machine learning model from Ahad09. 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
8
22% of all-time downloads
All-time downloads
37
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.keras77.7 KB · 96%
From the Hugging Face model README
Classify a 100-step, one-feature sensor sequence into Stationary, Walking, or Running.
(100, 1)Synthetic signals generated in the class notebook. The dataset was designed for teaching and is not a real wearable benchmark.
LSTM gave the second-highest accuracy (91.3%) among all four models while using far fewer parameters than the CNN (4,451 vs 49,475). It also clearly outperformed SimpleRNN (46.7%), showing that LSTM's gated memory handles this 100-step sequence much better than a basic RNN. We prioritized this balance of accuracy and efficiency over the CNN's marginally higher (100%) accuracy.
We learned that a more complex architecture doesn't always win — SimpleRNN struggled with this 100-step sequence, but LSTM's gating mechanism handled it far better with only a small increase in parameters over the RNN.