Automatic degree recognition