Text this: A hierarchy of pattern recognition algorithms for the diagnosis of sucker rod pumped wells /