Identifying the causes of failure using Bayesian networks