Text this: Defect state and severity analysis using discretized state vectors.