Khaos Machine Vibration Anomaly
A patch-transformer autoencoder for 3,200-sample vibration windows. It returns an embedding and an anomaly score (reconstruction error of the per-window normalized signal), trained on normal operation only.
tele_sensor_vibration v1, from Khaos (a local-first library of pre-trained models for domain-specific tasks). This is the first release of the artifact.
Model
- Architecture: SensorTransformer: patch embedding (64 samples), 4-layer transformer (dim 128, 4 heads), 16-number bottleneck per patch, linear decoder
- Parameters: 820,560
- Format: ONNX (
model.onnx) plus PyTorch weights (model.pt) andmanifest.json - Training data: fletxcher/khaos-tele_sensor_vibration
Results
Measured on the held-out test split of the training dataset.
| Metric | Value |
|---|---|
| test_auroc | 0.9344 |
| test_ap | 0.9609 |
| test_f1_at_val_threshold | 0.8948 |
| anomaly_threshold | 0.9777 |
| n_test | 1361 |
| baseline_rms_auroc | 0.1667 |
| baseline_kurtosis_auroc | 0.7262 |
| test_auroc_cwru | 1.0000 |
Test AUROC by source
| Source | Windows | AUROC |
|---|---|---|
| cwru | 986 | 1.0000 |
Detection by fault type
| Fault | AUROC vs normal |
|---|---|
| ball | 1.0000 |
| inner_race | 1.0000 |
| outer_race | 1.0000 |
Training
{
"epochs": 60,
"batch": 64,
"lr": 0.001,
"kind": "anomaly",
"architecture": "SensorTransformer"
}
Best epoch 1, trained in 0.2 minutes on a single consumer GPU (RTX 3050 8 GB).
Intended use
Zero-shot fault detection on machine vibration: score windows and raise an alert above a threshold calibrated on your own healthy data.
Limitations
- Trained on one bearing test rig and one rover IMU; thresholds must be recalibrated for other machines.
- Windows are 3,200 samples at the source sampling rate, so the monitored time span depends on your sensor.
- Detects deviation from normal, not the type of fault.
Usage
pip install khaos
khaos serve ./tele_sensor_vibration
License
This model was trained on data with research-only, share-alike or mixed terms (see the training dataset card for each source). Treat it as research use and check the upstream data licenses before any commercial use.