New epilepsy warning device could save thousands of lives