Downloads · 30 days
13
59% of all-time downloads
KnuckleHead1/wearable-activity-classifier
wearable-activity-classifier is a machine learning model from KnuckleHead1. 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. The card lists the license as mit.
Classify a 100-step, univariate (1-feature) wearable sensor time-series sequence into one of three physical activity classes: - 0: Stationary - 1: Walking - 2: Running
Downloads · 30 days
13
59% of all-time downloads
All-time downloads
22
Public
Repo size
179 KB
Likes
0
Public
Click a slice to open those files.
.keras179 KB · 98%
From the Hugging Face model README
Classify a 100-step, univariate (1-feature) wearable sensor time-series sequence into one of three physical activity classes:
Conv1D(filters=16, kernel_size=5, activation='relu', input_shape=(100, 1))MaxPooling1D(pool_size=2)Flatten()Dense(16, activation='relu')Dense(3, activation='softmax')(100, 1)Stationary, Walking, Running)sparse_categorical_crossentropyWe selected the 1D CNN architecture because it delivers the optimal balance between high classification accuracy, ultra-fast training speed, and architectural simplicity. The 1D convolutional filters effectively identify localized periodic patterns (spikes and cyclic step frequencies) characteristic of walking and running waveforms, without the recurrent overhead of RNN/LSTM layers.
Through this lab, we learned how different deep learning architectures process temporal data: CNNs capture shift-invariant local motifs efficiently via temporal filters, RNNs pass hidden state context sequentially but suffer from gradient degradation, LSTMs manage long-term dependencies through gating mechanisms, and hybrid CNN-LSTMs combine local feature extraction with sequence learning.