Matching teachers and students with ML

Vitaly Manoshin8 Apr 2022

Problem

After a student pays for lessons, Skyeng shows a list of available teachers, and students are more likely to pick teachers near the top. The order came from a daily rating that combined teacher traits with hand-picked weights. It ignored most individual student traits such as geography and language level. It also did not carry over between subjects: the English rating fitted math teachers badly, so every new product needed its own rating. A poor match makes the student switch teachers or drop out.

Example from the article: students with weak English do better with B1 and B2 teachers, and the preferred teacher level rises with the student's level.

Solution in brief

Predict lifetime, the number of lessons a given student will have with a given teacher, from several years of history, and sort the list by it. One model covers all subjects and uses student and teacher features together. It runs as a small Python and Django API in the company's container platform and is tested on the A/B platform.

Questions this case answers
  • How to rank candidates in a two-sided matching list by predicted long-term engagement instead of a hand-tuned score
  • How to serve a lightweight ML model in real time, isolated from the main service, so that new versions can be tested without engineering involvement
  • How to rank providers for a new customer when a hand-weighted rating ignores the customer's own traits?
  • How to avoid building a separate ranking formula for every new product line?

Tools and methods

  • Lifetime prediction model — predicts lessons per student-teacher pair, used as the score
  • Feature importance — shows which inputs drive the baseline model
  • A/B test — compares model versions
  • Python + Django API — serves the model in real time
Continue reading — it's free

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