How shaanvirs/camp-qmind-qnx works
This MVP demonstrates predictive motor maintenance: an operator chooses a simulated fault, onset, and severity; the app runs vibration windows through feature extraction and fault detection, shuts the motor off after consecutive anomalous windows, then presents the recorded run and response time. A separate data-generation and training path builds the two-stage anomaly detector and fault classifier used by the runtime. The graph follows documented pipeline links and shown imports; dashboard embedding details and unsampled app wiring are not inferred beyond the README and excerpts.
Main entry points: main.py Window pipeline · app.py Experiment dashboard · train_model.py Model training and evaluation · stream.py Motor signal generator
Components 9
Experiment interface
- Experiment dashboard
app.py - Run playback
ui/dashboard.html
Signal simulation
- Motor signal generator
stream.py
Detection and shutdown
- Vibration features
features.py - Window pipeline
main.py - Fault detector and classifier
model.py
Model training
- Training data generation
make_data.py - Model training and evaluation
train_model.py
Other components
- Operator
Connections 9
- Operator → Experiment dashboard: configures run
app.py - Experiment dashboard → Window pipeline: runs experiment
README.md - Window pipeline → Motor signal generator: reads windows
main.py - Window pipeline → Vibration features: extracts features
main.py - Window pipeline → Fault detector and classifier: requests prediction
main.py - Experiment dashboard → Run playback: plays recorded run
app.py - Training data generation → Motor signal generator: collects windows
make_data.py - Model training and evaluation → Vibration features: extracts training features
train_model.py - Model training and evaluation → Fault detector and classifier: writes model bundle
train_model.py