Bayesian approach to fault diagnosis with ambiguous historical modes