A new algorithm developed in Spain can identify volcanic warning signals and even forecast when eruptions are likely to fade.