Text this: Detection of tube defect using the autoregressive algorithm