Sequential Recommendation on Temporal Proximities with Contrastive Learning and Self-Attention