A learning-based approach to fault detection and fault-tolerant control of permanent magnet DC motors | Synapse