A system and method for constructing a diagnosis function for mapping a symptom of a fault in an electromechanical system onto the fault by simulating the electromechanical system in at least a fault mode and a node fault mode, and learning a classifier function from the collected simulation results for mapping the system of the fault onto the fault.