Application of Pattern Recognition to Failure Detection and Analysis in Non-Digital Systems