A machine learning algorithm predicts early-onset liver cancer in young adults better than traditional models.