Text this: Prediction and evaluation of residual life of casing with corrosion defects