New device to predict epileptic attacks