Patent ID: 8600492

Claim:
A method of removing artifacts from electroencephalogram (EEG) signals, the method comprises: continuously recording EEG data during a magnetic resonance (MR) scan and segmenting the EEG data by a processor with respect to a time period based on the MR scan, to thereby obtain n temporally consecutive segments of EEG data; for each segment j of the n segments: determining whether a movement is detected when the respective segment j is recorded; if no movement is detected, selecting the segment j for a template k; if movement is detected, averaging EEG data of segments of the n temporally consecutive segments that have been selected for the template k, thereby modifying, based on data obtained by a movement detector, the template k in which an artifact caused by the movement and detected by the movement detector remained, correcting the artifact by subtracting the average from the EEG data of the segments to minimize the movement artifact in the EEG signals, incrementing k, and selecting the segment j for the template k; if no movement is detected and j=n, selecting the segment j for the template k and averaging EEG data of segments of the n temporally consecutive segments that have been selected for the template k, thereby modifying, based on the data obtained by said movement detector, the template k in which the artifact caused by the movement and detected by the movement detector remained, and correcting the artifact by subtracting the template k from the EEG data of the segments to minimize the movement artifact in the EEG signals; and outputting a correspondingly corrected EEG data signal.