How aaryawaghmare7/predictive-maintenance-ml works
This repository is a local EV predictive-maintenance ML project, not a hosted service. Its user workflow is to supply raw sensor data, inspect and clean it, explore target signal, then train/evaluate a model; the approved Experiment 2 adds fault-dataset auditing, model comparison, and local inference. The graph separates the paused Experiment 1 analysis from the NEV proof of concept. Some script-to-module links are based on SOURCE INDEX references; unsampled implementation details and runtime wiring are not inferred.
Main entry points: preprocess_dataset.py Preprocessing run · train.py Failure baseline · run_nev_experiment.py NEV experiment command · scripts Signal analysis commands
Components 21
Data handling
- Dataset inspection
scripts/inspect_dataset.py - Dataset loader
src/data/load_data.py - Cleaning
src/preprocessing/cleaning.py - Validation
src/preprocessing/validation.py - Preprocessing run
scripts/preprocess_dataset.py
Experiment 1
- Failure signal analysis
src/eda/failure_signal.py - Maintenance signal analysis
src/eda/maintenance_type_signal.py - Signal analysis commands
scripts - Failure baseline
src/training/train.py - Baseline command
scripts/train_baseline.py
NEV diagnosis
- NEV data checks
src/data/nev_fault.py - NEV audit and EDA
src/eda/nev_fault.py - Candidate selection and training
src/training/nev_fault.py - Local fault inference
src/prediction/nev_fault.py - NEV experiment command
scripts/run_nev_experiment.py
Shared ML services
- Classification metrics
src/evaluation/metrics.py - Project paths
src/config/paths.py
Other components
- Project user
- Raw EV datasets
- Cleaned dataset
- Saved pipeline
models/experiment_2/metadata.json
Connections 33
- Project user → Dataset inspection: inspects data
README.md - Raw EV datasets → Dataset inspection: reads
scripts/inspect_dataset.py - Dataset inspection → Dataset loader: loads
scripts/inspect_dataset.py - Project user → Preprocessing run: runs preprocessing
README.md - Preprocessing run → Dataset loader: loads input
scripts/preprocess_dataset.py - Preprocessing run → Cleaning: cleans
scripts/preprocess_dataset.py - Preprocessing run → Validation: validates
scripts/preprocess_dataset.py - Preprocessing run → Cleaned dataset: writes cleaned data
README.md - Project user → Signal analysis commands: runs analysis
README.md - Signal analysis commands → Dataset loader: loads data
scripts/analyze_failure_signal.py - Signal analysis commands → Failure signal analysis: analyzes failure
scripts/analyze_failure_signal.py - Signal analysis commands → Maintenance signal analysis: analyzes maintenance
scripts/analyze_maintenance_type_signal.py - Failure signal analysis → Cleaning: selects features
src/eda/failure_signal.py - Maintenance signal analysis → Cleaning: selects features
src/eda/maintenance_type_signal.py - Project user → Baseline command: runs baseline
README.md - Baseline command → Failure baseline: starts training
scripts/train_baseline.py - Failure baseline → Dataset loader: loads raw data
src/training/train.py - Failure baseline → Cleaning: selects features
src/training/train.py - Failure baseline → Classification metrics: evaluates predictions
src/training/train.py - Project user → NEV experiment command: runs experiment
README.md - NEV experiment command → NEV data checks: loads and checks
scripts/run_nev_experiment.py - NEV experiment command → NEV audit and EDA: runs audit
scripts/run_nev_experiment.py - NEV experiment command → Candidate selection and training: trains candidates
scripts/run_nev_experiment.py - NEV audit and EDA → NEV data checks: uses dataset schema
src/eda/nev_fault.py - Candidate selection and training → NEV data checks: prepares inputs
src/training/nev_fault.py - Candidate selection and training → Classification metrics: scores test results
src/training/nev_fault.py - Candidate selection and training → Saved pipeline: saves pipeline metadata
README.md - Project user → Local fault inference: requests local inference
README.md - Saved pipeline → Local fault inference: supplies fitted pipeline
README.md - Local fault inference → NEV data checks: validates sensor inputs
src/prediction/nev_fault.py - NEV experiment command → Project paths: uses project paths
scripts/run_nev_experiment.py - Preprocessing run → Project paths: uses project paths
scripts/preprocess_dataset.py - Failure baseline → Project paths: uses raw-data path
src/training/train.py