Characterization of anomalous diffusion through convolutional transformers