Fault diagnosis using Bayesian networks