How ishekaa12/predictive-maintenance-project works
This is a multi-machine predictive-maintenance dashboard: users enter CNC, aircraft-engine, or turbine sensor values, submit a prediction, and see risk or remaining-life guidance. A separate chat feature answers machine and model questions and keeps an in-memory conversation history. Offline training selects models from cleaned datasets and saves artifacts consumed by the Flask API. The README also documents health and history operations. Source excerpts support the API, training and browser request paths; preprocessing internals and the rendered page wiring are not sampled, so those connections are omitted.
Main entry points: train.py Model training · app.py Flask routes · script.js Dashboard interactions · index.html Dashboard UI
Components 16
Web dashboard
- Dashboard UI
deployment/templates/index.html - Dashboard interactions
deployment/static/script.js
Prediction API
- Flask routes
deployment/app.py - CNC prediction
deployment/app.py - Engine prediction
deployment/app.py - Turbine prediction
deployment/app.py - Health endpoint
deployment/app.py
Model training
- CNC classifier
models/cnc_model.pkl - Engine classifier
models/engine_model.pkl - Engine RUL regressor
models/engine_rul_model.pkl - Wind classifier
models/wind_model.pkl - Model training
src/train.py - Cleaned datasets
data/processed
Maintenance assistant
- Chat answers
deployment/app.py - Conversation history
deployment/app.py
Other components
- Operator
Connections 19
- Operator → Dashboard UI: uses
README.md - Dashboard UI → Dashboard interactions: interacts
README.md - Dashboard interactions → Flask routes: submits requests
deployment/static/script.js - Flask routes → CNC prediction: routes prediction
deployment/app.py - Flask routes → Engine prediction: routes prediction
deployment/app.py - Flask routes → Turbine prediction: routes prediction
deployment/app.py - Flask routes → Health endpoint: serves status
deployment/app.py - CNC prediction → CNC classifier: predicts with
deployment/app.py - Engine prediction → Engine classifier: predicts with
- Engine prediction → Engine RUL regressor: estimates RUL
- Turbine prediction → Wind classifier: predicts with
deployment/app.py - Model training → Cleaned datasets: reads
src/train.py - Model training → CNC classifier: saves model
src/train.py - Model training → Engine classifier: saves model
src/train.py - Model training → Engine RUL regressor: saves model
src/train.py - Model training → Wind classifier: saves model
src/train.py - Dashboard interactions → Chat answers: asks
deployment/static/script.js - Chat answers → Conversation history: updates
deployment/app.py - Dashboard interactions → Conversation history: displays response history
deployment/static/script.js