Integration of epilepsy surgery and automatic seizure onset identification algorithm based on seizure patterns using