# Labeling against all odds

- Speaker: [Dana Kaner](/wiki/speakers/dana-kaner.md)
- Event: [Reversim Summit 2019](/wiki/years/2019.md)
- Video: https://www.youtube.com/watch?v=lSrFh4vOno4
- Transcript: [/transcripts/2019/72-lSrFh4vOno4.md](/transcripts/2019/72-lSrFh4vOno4.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Machine Learning](/wiki/topics/machine-learning.md), [Data Science](/wiki/topics/data-science.md), [Security](/wiki/topics/security.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 shares the journey of obtaining data labels for training bot-detection machine learning models in the cybersecurity domain. The talk details the transition from unsupervised methods to supervised learning, data programming, and semi-supervised techniques to handle the scarcity and noise of labels. The audience learns how to combine expert heuristics with automated labeling strategies and iterative model training to overcome data challenges.

## Key points

- [0:00](https://www.youtube.com/watch?v=lSrFh4vOno4) The speaker introduces the challenge of building real-time bot detection models in cybersecurity with a scarcity of reliable data labels.
- [3:17](https://www.youtube.com/watch?v=lSrFh4vOno4&t=197s) Initial attempts using unsupervised anomaly detection failed because web traffic behavior is too diverse and context-dependent.
- [5:31](https://www.youtube.com/watch?v=lSrFh4vOno4&t=331s) The team shifted to supervised learning using heuristic risk scores generated by human analysts as a starting point.
- [8:44](https://www.youtube.com/watch?v=lSrFh4vOno4&t=524s) Manual labeling by analysts proved non-scalable, leading to the adoption of active learning strategies.
- [15:20](https://www.youtube.com/watch?v=lSrFh4vOno4&t=920s) Data programming techniques and weak supervision sources were introduced to generate larger training datasets from multiple heuristic functions.
- [17:33](https://www.youtube.com/watch?v=lSrFh4vOno4&t=1053s) The team addressed label noise by exploring regularization methods and noise-robust models to prevent accuracy degradation.
- [21:52](https://www.youtube.com/watch?v=lSrFh4vOno4&t=1312s) Semi-supervised learning methods like co-training were implemented to leverage abundant unlabeled data without falling into error feedback loops.

## Takeaways

- Combine expert human knowledge with automated weak supervision to scale training data generation.
- Be aware of the trade-offs between dataset size and label noise when using heuristic labeling functions.
- Utilize semi-supervised techniques like co-training to improve model generalization using unlabeled data.

## Questions this talk answers

- How can you train effective machine learning models when you lack a large set of manually labeled data?
- What are the best strategies for handling label noise introduced by heuristic weak supervision sources?
- How can co-training be used in semi-supervised learning to prevent models from reinforcing their own errors?

## Technologies

BigQuery, Opsgenie, Slack, Snorkel

## Tags

active learning, bot detection, cybersecurity, data labeling, machine learning, semi-supervised learning, weak supervision
