= Detect Movement = The process will identify when a subject has moved during a recording. This runs only on continuous, raw recordings for CTF MEG where continuous head localization is recorded (and the HLC channels are collected.) This process is currently being tested. If you find a bug or have other comments related to its performance, please provide comments here or on the Forum. The end goal if this detection is to find when the subject has moved beyond an acceptable limit and cut the longer recordings in to shorter recording and assign a new head position to each. There are two steps: 1. Detect the movement. This will go through the recording and mark short transient movements (<5 seconds) as 'BAD' and mark the beginning of longer movements where the file can be cut. It generates a file called headpostions.txt which contains the recommended locations where the file should be cut and the new head position that should be written to the new file. 1. Cut the recording into shorter recordings using the CTF software. Use the headpositions.txt file to know where to make the new .ds files and what the new head position should be. This is done outside the Brainstorm software, using the CTF commandline program newDs. You can see an example here: {{attachment:split_ctf_recording.m}} To run the movement detection, put the raw link in the Process1 box -> Run -> Events -> Detect movement [Experimental]