Brain activity detection toward seizure prediction