Real-time Head Monitoring
This guide shows how to enable and use real-time head monitoring during a MEG measurement. Currently, only Neuromag/Elekta/MEGIN devices are supported.
Before you can monitor head movements during a measurement, ensur eyou have the following things setup:
- Enable continuous HPI (cHPi) during your measurement.
- Make sure you have digitized the subjects head (fiducials, HPI coils and additional head points) and you have access to the data.
Real-time head monitoring works in combination with sensor plugins, such as the
FieldTripBuffer. The following steps guide you through setting up the real-time head monitoring in MNE Scan:
- Setup the data stream. You can either:
- Stream pre-recorded data via the FiffSimulator plugin.
- Stream data from a MEG device connected via the FieldTripBuffer plugin.
- Add the HPI Fitting plugin to the plugin scene and connect your sensor plugin from step one to the HPI Plugin.
Start the measurement via the Play button in the top left corner
You can open and control the settings for the HPI fitting via the Quick Control View. Open it by pressing the
QUICK CTRLbutton and follow the steps described in the next section.
MNE Scan should now look like following picture. You have the plugin scene on the left, the 3D View in the upper part and the data stream in the lower part. The 3D View shows an average head model that is aligned and scaled to digitized landmarks like LPA, RPA, Nasion and HPI coils. The head moddel shows up after the first succesfull HPI fit.
The Quick Control View
The Quick Control View can be used to choose between different tabs, where every tab correspondds to one plugin. In case of a basic HPI Fitting pipeline, there should be three tabs: FiffSimulator or FieldTripBuffer, HpI Fitting and 3D View.
The HPI Fitting and 3D View tabs and their functionalities are described in the following:
The HPI Fitting Widget
The control widget for the HPI Fitting plugin consist of three tabs:
- Click the button
Load Digitizersand navigate to the subject’s digitized data which is stored in
The display will show how many digitizers of each kind were loaded.
Enter the HPI coil frequencies. You can add and remove frequencies.
- If you don’t know how your coils and frequencies are ordered, do an initial frequency ordering by pressing
Order coil frequencies.
Choose if you want to use
Signal Space Projection(
Compensatorswhen performing the fit.
- Do an initial HPI fit or enable continuous HPI fitting. Make sure you have started the measuring pipeline via the play button first. After the first succesfull fit the average head should appear in the 3D View.
Fitting errorsare shown in mm for each coil and as an average over all coils. The error is calculated as the distance between the estimated HPI coils and the digitized HPI positions.
- Choose a threshold that defines an acceptable error.
- Choose a threshold that defines big head movements by rotation (degree) and movement (mm). Once exceeded, e.g., the forward solution recomputation is triggered.
The 3D View tab
Here you can choose what elements you want to visualize in the monitoring section. These elements include:
- Device >
BabyMEGfeatures the helmet surfaces for different MEG devices.
- Head >
Fittedfeatures the averaged head surface, digitized and aligned landmarks as well as the estimated HPI coil locations, respectivley.
The HPI Fitting Plugin can be connected to following Plugins:
- Input: FiffSimulator plugin, FieldTripBuffer plugin.
- Output: Forward Solution plugin