Self-supervised learning frameworks for IoT applications