Fault diagnosis based on the quality effect of learning algorithm for manufacturing systems