# Stop Labelling Everything! How Self-Supervision Can Reduce Labelling Costs

- Speaker: [Shira Navot](/wiki/speakers/shira-navot.md)
- Event: [Reversim Summit 2022](/wiki/years/2022.md)
- Video: https://www.youtube.com/watch?v=TQ5UuIphdSg
- Transcript: [/transcripts/2022/43-TQ5UuIphdSg.md](/transcripts/2022/43-TQ5UuIphdSg.md)
- Language: Hebrew and English · Type: talk · Level: intermediate
- Topics: [Machine Learning](/wiki/topics/machine-learning.md), [Data Science](/wiki/topics/data-science.md), [Data Engineering](/wiki/topics/data-engineering.md), [MLOps](/wiki/topics/mlops.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker discusses how self-supervised learning can drastically reduce data labelling costs and time in computer vision projects. Labelling large datasets is expensive and time-consuming, prompting the need for smarter data selection methods rather than random sampling. By extracting embedding vectors using contrastive learning and clustering them with HDBScan, developers can intelligently select a representative subset of data. The speaker demonstrates that this approach successfully cuts down labelling budgets significantly while maintaining or even improving model performance.

## Key points

- [1:15](https://www.youtube.com/watch?v=TQ5UuIphdSg&t=75s) Labelling vast amounts of image data for computer vision tasks is extremely time-consuming and expensive.
- [3:30](https://www.youtube.com/watch?v=TQ5UuIphdSg&t=210s) When facing millions of unlabelled frames for vehicle inspection, labelling everything is impossible due to budget and time constraints.
- [5:41](https://www.youtube.com/watch?v=TQ5UuIphdSg&t=341s) Random data sampling is inefficient and often misses critical edge cases and anomalies in the dataset.
- [7:50](https://www.youtube.com/watch?v=TQ5UuIphdSg&t=470s) An intelligent selection pipeline requires extracting embedding vectors, clustering them, and selecting a smart subset.
- [13:18](https://www.youtube.com/watch?v=TQ5UuIphdSg&t=798s) Pre-trained models like Inception V3 often fail to generate good representations for specialized domain data like medical scans or vehicle undercarriages.
- [15:23](https://www.youtube.com/watch?v=TQ5UuIphdSg&t=923s) Self-supervised contrastive learning solves this by using data augmentations to learn robust feature representations without external labels.
- [19:34](https://www.youtube.com/watch?v=TQ5UuIphdSg&t=1174s) Combining self-supervised embeddings with HDBScan clustering allows for smart subset selection and anomaly detection.
- [22:40](https://www.youtube.com/watch?v=TQ5UuIphdSg&t=1360s) Evaluating this smart selection method on downstream tasks shows performance improvements of over 20% while saving over 85% in labelling costs.

## Takeaways

- Use self-supervised learning and embedding extraction to understand the structure of unlabelled datasets.
- Avoid random sampling when selecting data for labelling to ensure edge cases and anomalies are captured.
- Combine clustering algorithms like HDBScan with smart data selection to drastically reduce labelling costs.

## Questions this talk answers

- How can I reduce the cost of labelling large datasets for computer vision?
- Why is random sampling ineffective for selecting data to label?
- How does self-supervised contrastive learning help in generating better feature embeddings?

## Technologies

Inception V3, HDBScan, Python

## Tags

clustering, computer vision, data engineering, data labelling, machine learning, self-supervised learning
