Update segment recognition logic (before sending automatic messages))