Improving diagnostic procedures for epilepsy through automated recording and analysis of patients’ history