Localizing electrodes using a 3D-scanner

Introduction

This tutorial demonstrates how to construct an electrode model based on a single subject's 3D-scan. This electrode model can be used for creating a BEM or FEM volume conduction model.

This tutorial does not cover how to create a 2-D channel layout for plotting, nor how to do the source estimation itself.

Background

The quality of EEG source estimates depends on accurate volume conduction models and sensor positions. The volume conduction model comprises a description of the geometry, of the conductivities and of a computational approach for solving Poisson’s equations.

The current golden standard is to measure the head geometry with an MRI and sensor positions with a Polhemus. Measuring the sensor positions with the Polhemus on specific groups can be challenging or even impossible.

In this tutorial we want to focus on creating a electrode based on 3D surface scan of a human head. The 3D-scan device we are using in this tutorial is a http://structure.io device. However, other devices are also feasible as long as the 3D-scan output is written in a FieldTrip supported data format.

This youtube video shows the procedure, which is explained in this tutorial:

Procedure

In this section we describe the procedure to acquire electrode positions with a 3D-Scanner

Recording data

For recording with the structure.io we use Scanner - Structure Sensor Sample. This software allows use to capture our subjects head surface by just walking around the subject. Here you can download the example we used in this tutorial.

Loading and coregistering data

Before starting with FieldTrip, it is important that you set up your MATLAB path properly.

With having specified the fiducials we are now able to coregister our head surface to the ctf-coordinates. To easier identify the locations of the fiducials you can also mark the locations on your subject with a coloured pen.
Location of the fiducials

Again we visualise the head surface, but we also plot the axes along with it.

ft_plot_axes(head_surface)
ft_plot_mesh(head_surface)

Realigned head surface

Identify electrode locations

The previous made sure that our head model is now in the right coordinate system. This allows us now to identify the electrode locations. With our scanner the texture mapping quality is not fitting the actual structural data, so for identifying the electrode locations we remove the texture mapping.

To localise the electrode we use the crates that are visible on the surface.

Assign electrode labels

Now we need to assign the correct labels. We used the M10 arrangement.

As ft_electrodeplacement uses the the labelling scheme '1','2',… and so on we need to assign the correct labels the reference, ground and the anatomical landmarks NAS,LPA and RPA.

elec.label(61:65) = { ...
'GND'
'REF'
'NAS'
'LPA'
'RPA'
};

Visualize the electrodes in 3D

A final visualisation showing the electrodes on the color surface mesh of the subject.

ft_plot_mesh(head_surface)
ft_plot_sens(elec)

Head surface with localised electrodes

Moving electrodes inward

The electrode location are now digitised on the outer surface of the cap. In the figures you can see the plastic ring in which you plug in the electrodes. This means we digitised the surface of the ring and not the contact between electrode and skin surface. We can correct for this mismatch by moving the electrode inward according to their normals.

Summary and further reading

In this tutorial we learned how to process a head surface created by a 3D-Scan. Furthermore we learned how to identify electrode locations to create a electrode model which can be used for volume conduction modelling.

For further reading suggest to read about coordinate systems. This will help you understand the different coordinate systems you can use for co-registration.

As electrode models are part of volume conduction modelling we also suggest to investigate the tutorials about BEM or FEM.