Detection techniques in least squares identification