Real-time Data Classification for EEG and EKG Analysis Based on Artifacts Detection