CH4Motor-fault classifier
A motor-fault classifier, running in this tab.
Simulated stator current for a permanent magnet motor, with the fault signatures from my dissertation baked into the physics. A small 1D CNN trained in PyTorch runs here through ONNX Runtime. Change the condition and watch the spectrum and the prediction move.
An even gap. A balanced field.
01 / Motor cross-section
02 / Balanced magnetic poles
The rotor stays centered, the magnets keep their strength, and each winding carries current through its full set of turns.
Motion slowed for clarity · Geometry exaggerated
One phase of the current the motor draws. Every window is divided by its own RMS before the model sees it, so the axis is multiples of that rather than amperes: a fault has to show in the shape, not in how hard the motor is working.
The same current as a spectrum, in decibels below its largest peak. Dashed lines mark the frequencies each condition is known to leave a trace at, and the ones belonging to the selected condition are drawn up. That is where the model learned to look, and where you can check it.
- Healthytrue0%
- Demagnetization0%
- Eccentricity0%
- Inter-turn short0%
Generator, training script and export in lab/motor-fault. Nothing leaves your browser.
The other lab
Inverse PINN flux observer
A physics-informed network is trained from scratch in your browser to find a motor's magnet strength from its terminals alone.
Open the lab
Added Sep 2026