Pattern-based prediction of population outbreaks