Replacing angle analysis with second derivative curve length analysis