Good data and smart algorithms can help utilities get ahead of the problem.