Machine learning for data-driven prevention at population scale