How we built a dataset for developing an ML tool that helps save lives

Igor Buyanov15 Jan 2026

Problem

Volunteers at non-profits read social network posts to find people at risk of suicide, and only about 20 of every 100 posts contain anything relevant. A filter model would save their time, but it needs a large labeled Russian-language dataset. The task is subjective, texts often carry several signals at once, and annotators read emotionally heavy content. The team aimed for 50,000 labeled texts, more than any other dataset on a related topic, even in English.

Example from the article: the sentence "I stepped away for a bit, and when I came back, she had managed to read all our candid correspondence" invites readers to invent a broken relationship, although the text does not say so.

Solution in brief

The team enriched raw texts with features to pick what to label, wrote a short instruction built on two principles and a class table merged from existing systems, and piloted it on themselves. They then hired individual annotators, checked every block against their own 185-example samples, and tuned the class structure until the models reached a target of 70 macro F1.

Questions this case answers
  • How to build a labeled text dataset for a subjective multi-label task when classes overlap, annotators disagree and the data is emotionally heavy
  • How to verify annotation quality at scale when only a small part of the data can be labeled with overlap
  • How to build a large labeled text dataset for a subjective, multi-label classification task
  • How to design a class table so that annotators can apply it and other teams can reuse it

Tools and methods

  • Label Studio — custom annotation interface
  • ClearML — versioning of datasets
  • Krippendorff's alpha with MASI distance (NLTK) — agreement for multi-label items
  • Soft majority voting — merging labels from several annotators
  • ruBERT — baseline classifier
Continue reading — it's free

Google or a one-time email code. No password.