Text this: Anticipating epidemic transitions with imperfect data.