Automated seizure detection using wearable devices: state of the art and future perspectives.