This AI can predict ship-sinking ‘freak’ waves minutes in advance