Efficient Medical Image Assessment via Self-supervised Learning