Predicting and preventing tuberculosis