One of our goals with SDO is to be able to predict all kinds of solar activity. It's not as easy as you think. Monica Bobra is developing ways to predict when flares will occur. The blog article talks about using machine learning methods for these predictions.
Check it out!