Keywords

1 Introduction

Transcranial current stimulation (tCS), including transcranial direct current stimulation (tDCS), transcranial alternating current stimulation (tACS), and transcranial random noise stimulation (tRNS), is a family of noninvasive neuromodulatory techniques that employ weak (1–4 mA) electrical currents applied via electrodes placed on the scalp for long durations (20–40 min) [1, 2]. Concurrent effects of stimulation range from changes in cortical excitability [3] to modulation of ongoing endogenous oscillations [4]. Hebbian-based mechanisms are hypothesized to lead to long-lasting plastic changes in the brain [5], leading to an increasing interest in putative therapeutic applications in a range of neurological diseases [6]. One factor that limits the usefulness of tCS is the widely reported intersubject variability of responses to stimulation [7]. Several factors can explain variability, but here we will focus on the physical agent of the effects that tCS has on neurons: the electric field (E-field) induced in the tissues.

1.1 Biophysical Aspects of tCS

The distribution of currents in the head can be described mathematically by the electric field (E-field) vector induced by tCS. Depending on the orientation of the latter with respect to neuronal processes, the membrane of pyramidal neurons is polarized (approximately 0.2 mV per 1 V/m of E-field value, [8]), which leads to the observed concurrent effects of stimulation. One common hypothesized mechanism is the polarization of the soma of pyramidal cells due to the component of the E-field perpendicular to the cortical surface (En), [9]. However, other mechanisms of interaction are possible, such as the polarization of axon terminals [10].

The E-field distribution depends on factors such as head geometry (thickness and shape of the head tissues), electrical properties of the tissues (electrical conductivity, σ), location and geometry of the electrodes, and the currents that are applied via the electrodes [11]. Since in vivo measurements of the E-field still pose a number of technical challenges [12, 13] and cannot easily be carried out, computational head models based on structural data (usually head MRIs) are usually employed to estimate it [14, 15].

Initial uses of computational head models were limited to a posteriori analysis of the E-field distribution of electrode montages typically applied in experimental protocols [15, 16]. In recent years, several algorithms have been described to leverage these head models with the objective of optimizing some dose parameters (position and currents of the stimulating electrodes) to target a specific brain region and/or cortical network [9, 17,18,19,20].

This paradigm shift from “one-model-fits-all” montages to individualized montages leveraging subject-specific head models and dose optimization algorithms has the potential to reduce intersubject variability in the outcomes of tCS and allow for more effective and safe protocols. However, several parameters can affect the outcome of these modeling and optimization pipelines. In this work, we will study how uncertainties in target specification, tissue electrical conductivities, and the threshold for neuromodulatory effects can affect the outcome of the optimization. We will also discuss some of the potential benefits of these pipelines, especially in relation to reduction of intersubject variability of the results of optimization.

2 Methods

2.1 Subjects

We included seven healthy children and adolescents (three males) aged 10–17 years (M 14; SD 2). The study was approved by the Ethics Committee of the Faculty of Medicine, Kiel University, Kiel Germany.Footnote 1 All participants and their parents were instructed about the study, and written informed consent according to the Declaration of Helsinki on biomedical research involving human subjects was obtained. The study is part of the STIPED project.Footnote 2

2.2 Head Model Generation

Each subject underwent structural head scanning on a 3 T Philips Achieva scanner, during which the following sequences were acquired: a T1-weighted scan (1 mm3, TR = 2530 ms, TE = 3.5 ms, TI = 1100 ms, FA = 7°, fast water excitation), a T2-weighted scan (1 mm3, TR = 3200 ms, TE = 300 ms, no fat suppression), and a diffusion MRI (dMRI) scan (2 mm3, TR = 6300 ms, TE = 51 ms, 67 directions, b = 1000).

Tissue segmentation was performed using an in-house implementation combining extra-cerebral tissue segmentations from a new segmentation approach, which will be included in a future version of the open-source simulation toolbox SimNIBS,Footnote 3 with brain tissue segmentations and cortical gray matter (GM) surface reconstructions from FreeSurfer [21]. Finite element head models were then generated (see Fig. 1), including representations of the scalp, skull, cerebrospinal fluid (CSF), gray matter, and white matter (WM). The head models also contained representations of Pistim electrodes (1 cm radius, cylindrical Ag/AgCl electrodesFootnote 4) placed in 61 positions of the 10-10 EEG system . For the electrodes, only the conductive gel underneath the metal connector was represented in the head model. Unless otherwise stated, the scalp, skull, and CSF were modeled as isotropic with conductivities of 0.33 S/m, 0.008 S/m, and 1.79 S/m, respectively, which are appropriate values for the DC-low frequency values used in tCS [15]. The GM and WM were modeled as anisotropic (volume normalization, [22], with isotropic conductivity values used for diffusion tensor scaling of 0.40 S/m–0.15 S/m, for the GM – WM, [15]). E-field calculations were performed in COMSOLFootnote 5 using second-order tetrahedral mesh elements to solve Laplace’s equation [11].

Fig. 1
figure 1

Finite element head model generated for one of the subjects in this study. The model includes representations of the scalp (in yellow), skull (in gray), CSF (in blue), GM (in gray), and WM (in white), as well as gel underneath the electrodes (in green). Air cavities are represented as cavities in the mesh, thus effectively modeling the air as an insulator

2.3 Montage Optimization Algorithm

The optimization algorithm used in this study is based on the Stimweaver algorithm [9]. We assumed the normal component of the E-field to the cortical (GM-CSF) surface En as responsible for the acute effects of stimulation. Positive/negative En-values, corresponding to E-fields directed into/out-of-the cortical surface, lead to increased/decreased excitability of the soma of pyramidal cells. Inputs to this algorithm include target En-maps, with information about the target En-field (EnTarget) in each node of the cortical surface; weight maps, with information about the priority (weight, w) assigned to each node in the optimization; current constraints of the montage (maximum current, in absolute value, per channel Imax channel = maxi{| Ii| } and maximum total injected current \( {I}_{\mathit{\max}\ total}=\frac{1}{2}{\sum}_{i=1}^{N_{Channels}}\mid {I}_i\mid \)); and the maximum number of electrodes in the montage. The objective function in the optimization is the error with respect to no intervention (ERNI, with units of mV2/mm2):

$$ ERNI=\sum \limits_{i=1}^N\frac{{\left({w}_i{\sum}_{j=1}^{N_{channels}-1}{E}_{n,i}^{j- Cz}{I}_j-{w}_i{E}_{n,i}^{Target}\ \right)}^2-{\left({w}_i{E}_{n,i}^{Target}\ \right)}^2}{\sum_{j=1}^N{w}_j^2} $$

where N is the number of mesh nodes, Nchannels is the number of electrodes available for the optimization, \( {E}_{n,i}^{j- Cz} \) is a column vector (lead-field vector) with the normal component of the E-field induced by a bipolar montage that has j as the anode (+1 mA) and Cz as the cathode (−1 mA), and Ij is the current (in mA) of electrode j in the montage that is being evaluated. The term \( {\sum}_{j=1}^{N_{Channels}-1}{E_{n,i}}^{j- Cz}{I}_j \) yields the normal component of the E-field in the montage being evaluated (for each node i), as follows from the linearity principle [9]. The lead-field terms \( {E}_{n,i}^{j- Cz} \) are calculated on a subject-specific basis using the methods detailed in the previous section. The optimization without the constraint on the number of active electrodes was performed by in-house scripts programmed in Python using the SciPy library.Footnote 6 In order to constrain the number of electrodes of the final montage, a genetic algorithm (GA) was implemented following the methods described in [9].

2.4 Studies Performed

In this work, we performed several studies to clarify the impact of several inputs and parameters to the optimization algorithm in the results. The first study (study a) aims at determining the impact of target size on the optimization results. This is related to the perceived mechanisms of stimulation underlying the effects of tCS, with some studies focusing on highly localized targets, obtained, for instance, from EEG source localization information [17, 20], where other studies focus on more widespread cortical areas with information extracted from cytoarchitectural information [23] or functional imaging data [24]. Optimization algorithms can tackle both of these cases, but it is unclear how current constraints influence the capability of achieving the desired target En-field with increasing target area size.

Another important parameter that affects the E-field distribution, and therefore the results of the optimization, is the electrical conductivity of the head tissues. Measuring these values in vivo still presents several limitations, and data available in the literature has a wide variability, representing different measuring methods and origin of the tissue samples [25]. Furthermore, some reports indicate that this value might change according to the subject’s age, at least for the skull [26]. In study b, we partially tackled this problem by assessing the influence that different conductivity values for the skull tissue have on the optimization results.

In study c, we investigated some of the potential benefits of optimization algorithms on experimental design, namely, less variability on En-field distribution.

More details about how each study was performed are presented in the next section. In the studies where surface average En values are presented, they were calculated with the following expression:

$$ <{E}:n>=\frac{\int_{AreaPatch}{E}_n dA}{A_{Patch}}=\frac{\sum \limits_{i=1}^{N_{Patch}}{E}_{n,i}{A}_i}{\sum \limits_{i=1}^{N_{Patch}}{A}_i} $$

where Ai is the area associated with each node of the mesh (the sum of the areas of all the triangles connected to the node divided by 3) and Npatch is the number of nodes in the surface patch where the average is being calculated.

3 Results

3.1 Study A: Effect of Target Size

In this study, we investigated how target size and current constraints affect the actual <En> achievable on a target given the current constraints. The target was located on the left precentral gyrus, and its size varied from 9 mm2 (a tiny spot on the gyrus crown) to ~275 mm2 (about the entire left frontal lobe). The different areas were first identified on the cortical surface of a template brain model (Colin27Footnote 7), starting from the smallest one and progressively enlarging it up to the maximum size considered. Each area was then remapped separately onto the cortical surface of one of the participants of this study, and single target maps were created: the target area was assigned to excitation, with two values of EnTarget (0.25 V/m and 0.50 V/m), and maximum weight wstim = 10; the rest of the cortex was assigned no stimulation (EnTarget = 0 V/m) with weight wno-stim varying for each area, in such a way that both conditions have the same relative importance to the ERNI calculation: (wno-stim/wstim)2 = Areastim/Areano-stim.

Figure 2 shows <En> on the target as a function of target size. The En distribution results from optimized montages with an unconstrained number of electrodes, obtained for different combinations of EnTarget, maximum current per electrode, and total injected current (Imax channel, Imax total) including values exceeding the usual safety limit of 4.0 mA.

Fig. 2
figure 2

Average normal component of the E-field on target (red area on the GM surfaces), as a function of the target area (in log scale), for different values of the target normal E-field (EnTarget = 0.25 V/m dashed lines, EnTarget = 0.50 V/m continuous lines) and combinations of the individual and total current constraints (yellow, Imax total = 2 mA; pink and red, Imax total = 2 mA; gray and black, Imax total = 4 mA; green, Imax total = 8 mA). The pictures also show the available positions of the electrodes on the scalp

For all current constraints and both EnTarget values, we observe an overall logarithmic decrease of the <En> with the target size. This decrease is more rapid for the higher EnTarget, and it follows a non-monotonic trend that can be correlated to the cortical curvature of the target area and to the distance between the target area and electrodes. In fact, the significant drop at 108 mm2 w.r.t. the previous size is likely due to the fact that the ROI is now large enough to comprehend both faces of a sulcus, which have surface normals – and consequently normal electric field – pointing in opposite directions: once averaged over the whole ROI, this results in a decrease of <En>. With the next area increase, the ROI extends out of the sulcus, over the two adjacent gyri, and approaches the normal projection of the center of the two closest electrodes, which is reflected in the slow increase of <En>, reaching a local peak at 656 mm2. Further area increases, in the second half of the plot, repeat this pattern, ultimately created by the compounding effect of the gyrification of the target area and the distance from the covering electrodes.

Concerning the current constraints, in Fig. 3, we look separately at the influence of the Imax total (3a) and of the Imax channel (3b). The shaded area in blue in Fig. 3a represents the value of the maximum <En> achievable in each target, for both EnTarget, normalized with respect to EnTarget. This maximum <En> is obtained with a montage optimization with unrestricted maximum individual and total injected current and is the same for both values of EnTarget. As we observe, it also decays logarithmically with the target area, from 95% EnTarget for the smallest target to 15% EnTarget for the largest. In this case the decay is to attribute utterly to the effect of head anatomy and electrode positions. The figure also shows the <En> obtained with different current constraints, normalized with respect to the maximum <En> achievable, for both EnTarget.

Fig. 3
figure 3

Effect of the total injected (a) and individual (b) current constraints on <En> on target areas of different sizes, for different target En-fields. (a) The bars show the relative <En> w.r.t. the <En> calculated with unconstrained current, per each target area and EnTarget; the area shows the relative unconstrained <En> w.r.t. EnTarget (same for both values of EnTarget). (b) The shaded areas represent the <En> obtained with Imax channel within 1 mA and Imax total, for EnTarget = 0.50 V/m and Imax total = 4 mA (solid gray), EnTarget = 0.50 V/m and Imax total = 2 mA (solid red), EnTarget = 0.25 V/m and Imax total = 4 mA (dashed gray), EnTarget = 0.25 V/m and Imax total = 4 mA (dashed red). The lines represent solutions with Imax channel = Imax total /2, for EnTarget = 0.50 V/m (solid lines) and EnTarget = 0.25 V/m (dashed lines)

We observe that, for EnTarget = 0.50 V/m, only with a Imax total = 8.0 mA it is possible to induce in all areas a <En> at least over 80% of the maximum <En> achievable. On the other hand, a total injected current Imax total of 1.0 mA does not reach even the half of the maximum achievable <En>, in any target, including the smallest. Moreover, we observe that, as a result of the linearity of Imax total and EnTarget, for the less stringent condition of EnTarget = 0.25 V/m, the exact same relative <En> on each target area can be achieved with half of the total current. Consequently, Imax total = 4.0 mA in this case is sufficient to reach at least 80% of the maximum achievable <En>. In Fig. 3b, we focus on the current constraints considered in studies b and c. This plot indicates that Imax channel modulates the <En> only up to a given target size (which is smaller for the less demanding condition: EnTarget = 0.25 V/m). After this threshold area, the only factor influencing <En> becomes Imax total.

3.2 Study B: Tissue Conductivity Values

In this study, we assessed how skull conductivity (σskull) values affected the optimization results. We tried three different conductivity values: 0.008 S/m (our standard conductivity value which corresponds to a ratio of scalp-to-skull conductivity of 41), 0.011 S/m (scalp-to-skull conductivity ratio of 30), and 0.041 S/m (ratio of 8). These values cover a wide range of values reported in the literature [26]. For one of the subjects in this study, we calculated the lead-field matrix and performed optimizations with a common target: the left dorsolateral prefrontal cortex (lDLPFC) as identified by Brodmann area 46 [27]. The cortical surface nodes in this area were set to a target En-value of either 0.25 V/m or 0.50 V/m with weight 10. The remaining nodes were set to a target En-value of 0 V/m with a weight of 2. Current constraints were set to (Imax channel, Imax total) = (2.0, 4.0) mA and (Imax channel, Imax total) = (1.0, 2.0) mA.

Figure 4a displays <En> on the lDLPFC as a function of σskull for the different current and target En constraints. Average En values increase nonlinearly with σskull for every set of constraints except for the less stringent one: target En of 0.25 V/m with (Imax channel, Imax total) = (2.0, 4.0) mA. Figure 4b displays the variation of the total injected current (Itotal) in each montage with σskull. Itotal tends to decrease nonlinearly with increasing σskull, except for the most stringent constraint: target En of 0.50 V/m with (Imax channel, Imax total) = (1.0, 2.0) mA. In this case, Itotal stays almost constant at the highest value allowed (2.0 mA).

Fig. 4
figure 4

Average value of En (in V/m) in the lDLPFC (a) and total injected current (Imax total in mA, b) of the optimized montage as a function of skull conductivity (in S/m). The optimizations were obtained for four different constraints

Figure 5 provides the distribution of En in the cortical surface for all the optimizations performed in this study. For all optimizations and for the highest σskull, the position of the electrodes in the optimized montage is very similar across the different sets of constraints, with only the current values being different. For lower σskull values, and especially in the more stringent optimization constraints, the montages also differ in the electrode positions, often employing bigger separations between the anodes and cathodes.

Fig. 5
figure 5

Distribution of the normal component of the E-field in the cortical surface induced by different montages optimized to increase the excitability of the lDLPFC (shown as an inset in a) as a function of skull conductivity. The current constraints (Imax channel, Imax total) in each optimization as well as the target En-field (EnTarget) are shown next to each group of images (a, b, c, and d). The order of the conductivities of the skull within each group of images is the same (see a). The montages were limited to eight channels. The color scale is common to all plots

We also evaluated the change in average En value that would occur when the optimized montages were evaluated in a model with a different σskull than the one used to derive the montage (σskullEval ≠ σskullOptim). This led to changes in average En values ranging from −45% to 137% of the values obtained when σskullEval = σskullOptim. The average En values decreased when σskullEval < σskullOptim and they increased otherwise.

3.3 Study C: Intersubject Variability

In study c, we investigated the advantages that montage optimization brings in terms of intersubject variability of the E-field distribution. To do this, we performed subject-specific optimizations for six of the subjects in this study. For each subject, the optimization parameters were the same as the ones employed in study b. Each optimization was then evaluated not only on the subject’s head model from which it was derived but also in all the remaining head models. For each evaluation, we calculated the average <En> value on the lDLPFC. To test the homoscedasticity of the different distributions, we used Levene’s test. To compare the means of the different groups, we used Welch’s t-test.

As shown in Fig. 6, the variance of <En> across subjects was significantly lower when using a personalized montage as opposed to a non-personalized montage (Levene’s test, p-value<0.05), except in the most stringent optimization (lowest current constraints with the highest EnTarget, Levene’s test p-value = 0.73). As is also shown in the figure, no statistically significant difference was found between personalized and non-personalized montages when it comes to the group average of <En> value across subjects (Welch’s t-test p-value>0.651), when the target En is maintained constant . Increasing the target En leads to a statistically significant higher <En>, regardless of the current constraints (Welch’s t-test p-value<7.6 × 10−4).

Fig. 6
figure 6

Effect of current constraints and target En value on <En> calculated on the lDLPFC for personalized (blue) and non-personalized (pink) optimized montages. The top plots (a) show the results for the (Imax channel, Imax total) = (1.0, 2.0) mA current constraints, whereas the bottom plots (b) show the results for the (Imax channel, Imax total) = (2.0, 4.0) mA constraints. Welch’s t-tests were performed for comparisons between the means of the different groups. Levene’s tests were performed to test for homoscedasticity between groups with the same constraints

4 Discussion

4.1 Interplay of Target Size, Cortical Geometry, and Optimization Constraints

When analyzing the influence of target size and optimization constraints, we found an expected decrease of <En> with the target area. As mentioned before, the non-monotonous nature of the decrease could be attributed to the interplay of different parameters: cortical geometry , positions of the electrodes available for the optimization, and optimization parameters (current constraints and target En-field). For small targets that do not encompass multiple sulci and/or gyrus, it was possible to achieve even the highest average <En> value (0.5 V/m) provided enough (total injected) current was set as a limit. Limiting the currents to the safety values used in most studies [28], (Imax channel, Imax total) = (2.0, 4.0 mA), even <En> values of 0.25 V/m cannot be achieved. This depends of course on target position and electrode array. For instance, at the bottom of the sulci under some of the electrode positions available, local maxima have been shown to be created due to the funneling effect of the CSF layer [15]. In these regions, higher <En> values might be achievable there with the same current constraints. For these small targets, we also found that the constraint on Imax channel can limit the achievable <En>, with higher values being possible when Imax channel is set to the same value as Imax total. For larger targets, the maximum achievable <En> decreases, firstly due to the folded nature of the cortical surface and the electrode distribution (as shown by the rapid decay of <En> even with unconstrained currents) and then to the current limitations. In particular, Imax total is the main limiting factor to <En>, with the constraint on Imax channel not mattering as much. This is expected, as larger targets require the distribution of the current on more electrodes to cover the whole area and achieve the same En.

Although the effects of having a more dense electrode array available for the optimization were not tested in this study, it is likely that they would be more beneficial for smaller targets (see also [19]), allowing for higher <En> to be achieved for the same current constraints.

4.2 Influence of Skull Conductivity

The influence of the conductivity of the skull and other tissues on the E-field distribution in tCS is a well-established fact [29, 30]. Provided enough current was available to the optimization algorithm, all models reached a similar <En> value on target. For more stringent constraints (lower currents and/or higher target En-fields), it might not be possible to maintain a similar <En> across models (this will again depend on target size). For the latter optimizations, we found that the selected montage employs higher currents and a bigger separation between anodes and cathodes to increase <En>.

In a more realistic scenario, however, the discrepancy between the subject’s skull conductivity and the one employed in the model is the main concern. As our results indicate, this can lead to very big discrepancies between the planned and effective <En>. These results stress the need for assessing subject-specific tissue conductivity values and use them together with subject-specific computational head models.

4.3 Montage Optimization and Intersubject Variability

Consistent with previously published studies [16], we found a large variability when calculating <En> induced in six head models by non-personalized montages (on average the standard deviation was 21% of the mean value across all cases). Employing personalized montages significantly reduced the variation (standard deviation of 8% of the mean) in all cases except in the more stringent optimization (top-right boxes in Fig. 6). In that case ((Imax channel, Imax total) = (1.0, 2.0) mA and EnTarget of 0.50 V/m), personalization of montages did not reduce variability or result in an increase in average <En> at the target. We interpret this as basically showing that the posed optimization problem is very hard to achieve and hence of variable results even with personalization. Increasing the target EnTarget to 0.50 V/m does result in a significant increase in <En> for both current constraints. Ultimately, this may prove to be more important than decreasing the variability of the results. Heterogeneity in <En> across subjects can always be used as a regressor when analyzing the results of the study (see [31]).

4.4 Study Limitations

As all studies involving computational head models, there are a number of limitations in this study related to the simplifications employed by the models. The biggest simplification is the adoption of a homogeneous compartment for the skull tissue, ignoring the spongy bone region [32]. Although this would certainly influence the <En> values reported here, as well as affect the effects of the different current constraints, it is unlikely that the overall qualitative conclusions of the different studies would be influenced.

Another limitation is related to the fact that we focused exclusively on the normal component of the E-field for optimization. The optimization method employed in this study can easily be used with other E-field components, but the optimized montages would employ electrode positions very different from the ones reported here. Again, this is unlikely to affect the overall conclusions of this study, and its general recommendations can be extended when other components of the E-field are of interest.

Regarding the targets, we only considered connected single target regions, despite the fact that interest has arisen lately regarding applications involving multiple distributed targets (as the ones arising from cortical networks, [5, 24]). Again, the stimulation protocol can be readily adapted to these types of targets (with the weights reflecting the statistical significance of the correlation). The conclusions about the influence of current constraints in these types of optimizations are likely to be similar to the ones reported here for the larger areas, but further studies are required.

Finally, we should mention the small number of subjects employed in this study, which limits the generalizability of its results, especially in study c. Future studies are underway which will investigate these findings in a larger population.

4.5 Consequences for Protocol Design

The results presented here clearly demonstrate the advantages of employing optimized montages for determining dose parameters in a tCS protocol. They have the potential of reducing variability in the E-field distribution across subjects in a study by taking into effect idiosyncratic subject properties, such as individual head anatomy, electrical properties, and even target location. Of course, these improvements require availability of appropriate data, such as MRI scans with parameters optimized for tissue segmentation [33], protocols for noninvasive determination of tissue electrical conductivities in a fast and reliable way [34, 35], as well as a combination of functional and structural data to determine the target for optimization. Regarding target size and location, this should guide the determination of the electrical current constraints of the study, as is clearly illustrated by the previous results.

Another important limitation of the usefulness of montage optimization is the lack of information about the mechanisms of tCS. However, several studies have been published illustrating the interaction of the E-field with neurons [10] and the network amplification effects that can be responsible for the ultimate long-term effects of the intervention [4]. The next step in developing montage optimization protocols would be to combine information about biophysical aspects of current propagation and electrophysiological aspects of E-field – neuron interaction and neuron-neuron communication [5, 36, 37].