Text this: Segment-based task-specific deep learning framework for detecting state transitions in anomalous diffusion trajectories