Supervised Contrastive ResNet and Transfer Learning for the In-vehicle Intrusion Detection System