Efficient Frameworks for EEG Epileptic Seizure Detection and Prediction