How gokul-mechaktroniker/washing-machine---data-pipeline---python---whz- works
WashMate is an offline Python ML pipeline for detecting seven washing-machine phases from ADXL345 vibration data, with a Decision Tree selected for ESP32-S3 deployment. The main workflow runs from sensor recording and phase labeling through windowing, feature extraction, normalization, model comparison, and firmware export. The graph also preserves baseline analysis and visualization tools. Most links follow the README’s documented stages; sampled code confirms recording and annotation behavior, but unsampled modules’ internal wiring is not inferred.
Main entry points: collected_data Collected CSVs · dataset Feature dataset · results Model results · firmware Firmware exports
Components 24
Collection and labeling
- Raw recording
Project_Files/adxl345_data_collection_raw_values.py - Collected CSVs
Project_Files/collected_data - Offline annotation
Project_Files/adxl345_offline_annotation.py - Phase labels
Project_Files/collected_data
Signal analysis
- Offset collection
Project_Files/adxl345_data_collector_offset_correction.py - Side-panel offset
Project_Files/adxl345_data_collector_offset_correction_side_panel.py - Offset calculation
Project_Files/adxl345_offset_calculation.py - Front baseline
Project_Files/adxl345_idle_baseline_front.py - Side baseline
Project_Files/adxl345_idle_baseline.py - Front cycle plots
Project_Files/adxl345_data_visualization_full_wash_cycle_zoomed.py - Side cycle plots
Project_Files/adxl345_data_visualization_full_wash_cycle_side_panel_zoomed.py
Dataset preparation
- Windowing and features
Project_Files/adxl345_windowing_and_dataset_preparation.py - Feature dataset
Project_Files/dataset - Normalization and split
Project_Files/adxl345_normalisation_train_val_test_split.py - Normalization constants
Project_Files/dataset/norm_constants.json
Training and deployment
- Decision Tree
Project_Files/adxl345_ml_dt.py - Random Forest
Project_Files/adxl345_ml_random_forest_classifier.py - XGBoost
Project_Files/adxl345_ml_xgboost.py - 1D CNN baseline
Project_Files/adxl345_dl_1d_cnn.py - Model results
Project_Files/results - Firmware exports
Project_Files/firmware - Constants generator
Project_Files/generate_norm_constants_h.py
Other components
- Lab operator
- ESP32-S3 sensor
Connections 31
- Lab operator → Raw recording: starts recording
README.md - ESP32-S3 sensor → Raw recording: streams samples
README.md - Raw recording → Collected CSVs: saves CSV
README.md - Lab operator → Offline annotation: labels phases
README.md - Collected CSVs → Offline annotation: reads cycles
Project_Files/adxl345_offline_annotation.py - Offline annotation → Phase labels: writes labels
Project_Files/adxl345_offline_annotation.py - Collected CSVs → Windowing and features: segments signals
README.md - Phase labels → Windowing and features: labels windows
README.md - Windowing and features → Feature dataset: extracts features
README.md - Feature dataset → Normalization and split: normalizes and splits
README.md - Normalization and split → Normalization constants: saves statistics
README.md - Feature dataset → Decision Tree: trains on dataset
README.md - Feature dataset → Random Forest: trains on dataset
README.md - Feature dataset → XGBoost: trains on dataset
README.md - Feature dataset → 1D CNN baseline: trains baseline
README.md - Decision Tree → Model results: records evaluation
README.md - Random Forest → Model results: records evaluation
README.md - XGBoost → Model results: records evaluation
README.md - 1D CNN baseline → Model results: records evaluation
README.md - Decision Tree → Firmware exports: exports deployed model
README.md - Random Forest → Firmware exports: exports model
README.md - XGBoost → Firmware exports: exports model
README.md - Normalization and split → Constants generator: generates header
README.md - Constants generator → Firmware exports: writes constants
README.md - Collected CSVs → Offset collection: analyzes offsets
- Collected CSVs → Side-panel offset: analyzes offsets
- Offset collection → Offset calculation: supports calibration
- Collected CSVs → Front baseline: analyzes baseline
- Collected CSVs → Side baseline: analyzes baseline
- Collected CSVs → Front cycle plots: plots cycle
- Collected CSVs → Side cycle plots: plots cycle