How vani0goel0/muscle-fatigue works
This is a prototype for classifying muscle fatigue as low, moderate, or high from EMG, force, motion, and resistance features. The principal workflow trains and evaluates a Random Forest using a synthetic dataset, saves the model, then lets a user enter feature values in a Streamlit interface and view a prediction, confidence, and class probabilities. The README describes sensor feature engineering, but no sensor-processing implementation is present in the sampled source; the app takes already-derived features as input.
Main entry points: train_model.py Train and evaluate · app.py Streamlit interface · muscle_fatigue_model.joblib Saved model · predict_sample.py Sample prediction
Components 12
Training and evaluation
- Train and evaluate
train_model.py - Random Forest
train_model.py - Metrics and matrix
train_model.py
Prediction experience
- Streamlit interface
app.py - Feature entry
app.py - Fatigue inference
app.py - Prediction results
app.py - Sample prediction
predict_sample.py
Project assets
- Synthetic dataset
data/synthetic_muscle_fatigue_dataset.xlsx - Saved model
models/muscle_fatigue_model.joblib - Confusion matrix
results
Other components
- User
Connections 13
- User → Streamlit interface: opens
README.md - Streamlit interface → Synthetic dataset: loads ranges
app.py - Streamlit interface → Saved model: loads model
app.py - Streamlit interface → Feature entry: renders controls
app.py - Feature entry → Fatigue inference: submits values
app.py - Fatigue inference → Prediction results: displays prediction
app.py - User → Sample prediction: runs example
README.md - Sample prediction → Saved model: loads model
predict_sample.py - Train and evaluate → Synthetic dataset: reads data
train_model.py - Train and evaluate → Random Forest: fits model
train_model.py - Train and evaluate → Metrics and matrix: evaluates model
train_model.py - Train and evaluate → Saved model: saves model
train_model.py - Train and evaluate → Confusion matrix: writes matrix
train_model.py