<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Hum. Neurosci.</journal-id>
<journal-title>Frontiers in Human Neuroscience</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Hum. Neurosci.</abbrev-journal-title>
<issn pub-type="epub">1662-5161</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fnhum.2023.1216758</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Human Neuroscience</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>CutFEM forward modeling for EEG source analysis</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>Erdbr&#x000FC;gger</surname> <given-names>Tim</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2297046/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Westhoff</surname> <given-names>Andreas</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>H&#x000F6;ltershinken</surname> <given-names>Malte</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Radecke</surname> <given-names>Jan-Ole</given-names></name>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Buscherm&#x000F6;hle</surname> <given-names>Yvonne</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff5"><sup>5</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Buyx</surname> <given-names>Alena</given-names></name>
<xref ref-type="aff" rid="aff6"><sup>6</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Wallois</surname> <given-names>Fabrice</given-names></name>
<xref ref-type="aff" rid="aff7"><sup>7</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/87543/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Pursiainen</surname> <given-names>Sampsa</given-names></name>
<xref ref-type="aff" rid="aff8"><sup>8</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/2069378/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Gross</surname> <given-names>Joachim</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff5"><sup>5</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Lencer</surname> <given-names>Rebekka</given-names></name>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<xref ref-type="aff" rid="aff5"><sup>5</sup></xref>
<xref ref-type="aff" rid="aff9"><sup>9</sup></xref>
</contrib>
<contrib contrib-type="author">
<name><surname>Engwer</surname> <given-names>Christian</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/966427/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Wolters</surname> <given-names>Carsten</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff5"><sup>5</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/55861/overview"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Institute for Biomagnetism and Biosignalanalysis, University of M&#x000FC;nster</institution>, <addr-line>M&#x000FC;nster</addr-line>, <country>Germany</country></aff>
<aff id="aff2"><sup>2</sup><institution>Institute for Analysis and Numerics, University of M&#x000FC;nster</institution>, <addr-line>M&#x000FC;nster</addr-line>, <country>Germany</country></aff>
<aff id="aff3"><sup>3</sup><institution>Department of Psychiatry and Psychotherapy, University of L&#x000FC;beck</institution>, <addr-line>L&#x000FC;beck</addr-line>, <country>Germany</country></aff>
<aff id="aff4"><sup>4</sup><institution>Center of Brain, Behaviour and Metabolism, University of L&#x000FC;beck</institution>, <addr-line>L&#x000FC;beck</addr-line>, <country>Germany</country></aff>
<aff id="aff5"><sup>5</sup><institution>Otto Creutzfeldt Center for Cognitive and Behavioral Neuroscience, University of M&#x000FC;nster</institution>, <addr-line>M&#x000FC;nster</addr-line>, <country>Germany</country></aff>
<aff id="aff6"><sup>6</sup><institution>Institute of History and Ethics in Medicine, Technical University of Munich</institution>, <addr-line>Munich</addr-line>, <country>Germany</country></aff>
<aff id="aff7"><sup>7</sup><institution>Institut National de la Sant&#x000E9; et de la Recherche M&#x000E9;dicale, University of Picardie Jules Verne</institution>, <addr-line>Amiens</addr-line>, <country>France</country></aff>
<aff id="aff8"><sup>8</sup><institution>Computing Sciences Unit, Faculty of Information Technology and Communication Sciences, Tampere University</institution>, <addr-line>Tampere</addr-line>, <country>Finland</country></aff>
<aff id="aff9"><sup>9</sup><institution>Institute for Translational Psychiatry, University of M&#x000FC;nster</institution>, <addr-line>M&#x000FC;nster</addr-line>, <country>Germany</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Stefan Haufe, Technische Universit&#x000E4;t Berlin, Germany</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: German Castellanos-Dominguez, National University of Colombia, Manizales, Colombia; Ji Chen, University of Houston, United States; Luis Gomez, Purdue University, United States</p></fn>
<corresp id="c001">&#x0002A;Correspondence: Tim Erdbr&#x000FC;gger <email>tim.erdbruegger&#x00040;uni-muenster.de</email></corresp></author-notes>
<pub-date pub-type="epub">
<day>22</day>
<month>08</month>
<year>2023</year>
</pub-date>
<pub-date pub-type="collection">
<year>2023</year>
</pub-date>
<volume>17</volume>
<elocation-id>1216758</elocation-id>
<history>
<date date-type="received">
<day>04</day>
<month>05</month>
<year>2023</year>
</date>
<date date-type="accepted">
<day>10</day>
<month>07</month>
<year>2023</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2023 Erdbr&#x000FC;gger, Westhoff, H&#x000F6;ltershinken, Radecke, Buscherm&#x000F6;hle, Buyx, Wallois, Pursiainen, Gross, Lencer, Engwer and Wolters.</copyright-statement>
<copyright-year>2023</copyright-year>
<copyright-holder>Erdbr&#x000FC;gger, Westhoff, H&#x000F6;ltershinken, Radecke, Buscherm&#x000F6;hle, Buyx, Wallois, Pursiainen, Gross, Lencer, Engwer and Wolters</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license></permissions>
<abstract>
<sec>
<title>Introduction</title>
<p>Source analysis of Electroencephalography (EEG) data requires the computation of the scalp potential induced by current sources in the brain. This so-called EEG forward problem is based on an accurate estimation of the volume conduction effects in the human head, represented by a partial differential equation which can be solved using the finite element method (FEM). FEM offers flexibility when modeling anisotropic tissue conductivities but requires a volumetric discretization, a mesh, of the head domain. Structured hexahedral meshes are easy to create in an automatic fashion, while tetrahedral meshes are better suited to model curved geometries. Tetrahedral meshes, thus, offer better accuracy but are more difficult to create.</p></sec>
<sec>
<title>Methods</title>
<p>We introduce CutFEM for EEG forward simulations to integrate the strengths of hexahedra and tetrahedra. It belongs to the family of unfitted finite element methods, decoupling mesh and geometry representation. Following a description of the method, we will employ CutFEM in both controlled spherical scenarios and the reconstruction of somatosensory-evoked potentials.</p></sec>
<sec>
<title>Results</title>
<p>CutFEM outperforms competing FEM approaches with regard to numerical accuracy, memory consumption, and computational speed while being able to mesh arbitrarily touching compartments.</p></sec>
<sec>
<title>Discussion</title>
<p>CutFEM balances numerical accuracy, computational efficiency, and a smooth approximation of complex geometries that has previously not been available in FEM-based EEG forward modeling.</p></sec></abstract>
<kwd-group>
<kwd>EEG forward problem</kwd>
<kwd>realistic head modeling</kwd>
<kwd>volume conductor modeling</kwd>
<kwd>unfitted FEM</kwd>
<kwd>level set</kwd>
<kwd>finite element method</kwd>
</kwd-group>
<contract-num rid="cn001">EXC 2044-390685587</contract-num>
<contract-num rid="cn001">GR2024/8-1</contract-num>
<contract-num rid="cn001">LE1122/7-1</contract-num>
<contract-num rid="cn001">WO1425/10-1</contract-num>
<contract-num rid="cn002">ERAPERMED2020-227</contract-num>
<contract-sponsor id="cn001">Deutsche Forschungsgemeinschaft<named-content content-type="fundref-id">10.13039/501100001659</named-content></contract-sponsor>
<contract-sponsor id="cn002">Bundesministerium f&#x000FC;r Gesundheit<named-content content-type="fundref-id">10.13039/501100003107</named-content></contract-sponsor>
<counts>
<fig-count count="6"/>
<table-count count="3"/>
<equation-count count="17"/>
<ref-count count="48"/>
<page-count count="12"/>
<word-count count="8433"/>
</counts>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Brain-Computer Interfaces</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>1. Introduction</title>
<p>Electroencephalography (EEG) is a widely used tool for the assessment of neural activity in the human brain (Brette and Destexhe, <xref ref-type="bibr" rid="B9">2012</xref>). To estimate the area of the brain responsible for the measured data, one has to simulate the electric potential as induced by hypothetical current sources in the brain, i.e., the EEG forward problem has to be solved. While quasi-analytical solutions to the differential equation underlying the forward problem exist, these are only available in simplified geometries such as the multi-layer sphere model (De Munck and Peters, <xref ref-type="bibr" rid="B16">1993</xref>). One, thus, requires numerical methods to incorporate accurate representations of the head&#x00027;s shape and volume conduction properties. Popular approaches are the boundary element method (BEM) (Mosher et al., <xref ref-type="bibr" rid="B28">1999</xref>; Gramfort et al., <xref ref-type="bibr" rid="B21">2011</xref>; Makarov et al., <xref ref-type="bibr" rid="B25">2020</xref>), finite difference method (FDM) (Song et al., <xref ref-type="bibr" rid="B40">2015</xref>; Cuartas Morales et al., <xref ref-type="bibr" rid="B15">2019</xref>), and the finite element method (FEM) (Zhang et al., <xref ref-type="bibr" rid="B48">2004</xref>; Vallagh&#x000E9; and Papadopoulo, <xref ref-type="bibr" rid="B42">2010</xref>; Medani et al., <xref ref-type="bibr" rid="B27">2015</xref>; Acar et al., <xref ref-type="bibr" rid="B1">2016</xref>; Azizollahi et al., <xref ref-type="bibr" rid="B4">2018</xref>). Here, we will focus on the FEM due to its flexibility in modeling complex geometries with inhomogeneous and anisotropic compartments (Schimpf et al., <xref ref-type="bibr" rid="B38">2002</xref>; Van Uitert et al., <xref ref-type="bibr" rid="B43">2004</xref>; Wolters et al., <xref ref-type="bibr" rid="B47">2007</xref>; Bangera et al., <xref ref-type="bibr" rid="B5">2010</xref>; N&#x000FC;&#x000DF;ing et al., <xref ref-type="bibr" rid="B33">2016</xref>; Beltrachini, <xref ref-type="bibr" rid="B8">2018</xref>; He et al., <xref ref-type="bibr" rid="B23">2020</xref>; Vermaas et al., <xref ref-type="bibr" rid="B44">2020</xref>). Efficient solvers and the transfer matrix approach (Wolters et al., <xref ref-type="bibr" rid="B46">2004</xref>; Lew et al., <xref ref-type="bibr" rid="B24">2009</xref>) allow significantly reduced computational costs.</p>
<p>When employing FEM, one usually chooses between either a hexahedral or tetrahedral discretization of the head. Both choices come with their own strengths and limitations. The mesh creation requires a classification of the MRI into tissue types. This segmentation data often come in the form of binary maps with voxels of approximately 1mm resolution, allowing for quick and simple hexahedral mesh generation. However, as head tissue surfaces are smooth, approximating them with regular hexahedra is bound to be inaccurate. While the methods for geometry adaptation exist (Wolters et al., <xref ref-type="bibr" rid="B47">2007</xref>), the resulting meshes still have an (reduced) angular pattern. Furthermore, when applying a standard continuous Galerkin FE scheme, areas with very thin compartments may suffer from leakage effects where current can bypass the insulating effects of the skull (Sonntag et al., <xref ref-type="bibr" rid="B41">2013</xref>). To alleviate this, flux-based methods, such as the discontinuous Galerkin method, offer a robust alternative (Engwer et al., <xref ref-type="bibr" rid="B19">2017</xref>). These, however, severely increase the number of degrees of freedom (DOF) and thus necessary for computational effort.</p>
<p>Surface-based tetrahedral FEM approaches, on the other hand, are able to accurately model the curvature of smooth tissue surfaces. Creating high quality tetrahedra, e.g., ones fulfilling a delaunay criterion, requires tissue surface representations in the form of triangulations first. These triangulations have to be free of self-intersections and are often nested, usually leading to modeling inaccuracies such as neglecting skull holes or an artificial separation of gray matter and skull. Therefore, we will not discuss surface-based tetrahedral FEM approaches throughout this study.</p>
<p>In the study by Rice et al. (<xref ref-type="bibr" rid="B36">2013</xref>), the impact of prone vs. supine subject positioning on EEG amplitudes was investigated. In the small group study, average differences of up to 80% were found. These were accompanied by differences in MRI-based CSF-thickness estimation of up to 30% underlining the importance of correctly modeling CSF-thickness and areas of contact between the skull and brain surfaces.</p>
<p>Recently, an unfitted discontinuous Galerkin method (UDG) (Bastian and Engwer, <xref ref-type="bibr" rid="B7">2009</xref>) was introduced to solve the EEG forward problem (N&#x000FC;&#x000DF;ing et al., <xref ref-type="bibr" rid="B33">2016</xref>). Rather than working with mesh elements that are tailored to the geometry, it uses a background mesh which is cut by level set functions, each representing a tissue surface. It was shown to outperform the accuracy of a discontinuous Galerkin approach on a hexahedral mesh while not being limited by the assumptions necessary to create tetrahedral meshes.</p>
<p>Extending the ideas of the UDG method, this study introduces a multi-compartment formulation of the CutFEM (Burman et al., <xref ref-type="bibr" rid="B13">2015</xref>) for EEG source analysis. Compared with UDG, it operates on a simpler trial function space and adds a ghost penalty based on the study by Burman (<xref ref-type="bibr" rid="B12">2010</xref>). The ghost penalty couples small mesh elements to their neighbors to improve the conditioning of the method.</p>
<p>This study is structured as follows. After introducing the theory behind CutFEM, three successively more realistic scenarios are tested. These scenarios include a multi-layer sphere model, followed by realistic brain tissues embedded in spherical skull and scalp compartments. Finally, a fully realistic five-compartment head model is used for source analysis of the P20/N20 component of measured somatosensory evoked potentials (SEP). Comparison results from different FEM and meshing approaches will be considered throughout the scenarios.</p></sec>
<sec sec-type="methods" id="s2">
<title>2. Methods</title>
<sec>
<title>2.1. A cut finite element method</title>
<p>Deviating from classical, fitted FEM-approaches, where the mesh cells resolve tissue boundaries, CutFEM uses a level set-based representation of domain surfaces. Let &#x003A9; &#x0003D; &#x022C3;<sub><italic>i</italic></sub>&#x003A9;<sub><italic>i</italic></sub> be the head domain divided into <italic>m</italic> disjunct open subdomains, e.g., the gray matter, white matter, CSF, skull, and skin. The level set function for compartment <italic>i</italic> is then defined as follows:</p>
<disp-formula id="E1"><mml:math id="M1"><mml:mrow><mml:msub><mml:mi>&#x003A6;</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy='false'>(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy='false'>)</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:mo>&#x0003C;</mml:mo><mml:mtext>&#x000A0;&#x000A0;</mml:mtext><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;&#x000A0;if&#x000A0;</mml:mtext><mml:mi>x</mml:mi><mml:mo>&#x02208;</mml:mo><mml:msub><mml:mi>&#x003A9;</mml:mi><mml:mtext>i</mml:mtext></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>=</mml:mo><mml:mtext>&#x000A0;&#x000A0;</mml:mtext><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;&#x000A0;if&#x000A0;</mml:mtext><mml:mi>x</mml:mi><mml:mo>&#x02208;</mml:mo><mml:mo>&#x02202;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mi>&#x003A9;</mml:mi><mml:mtext>i</mml:mtext></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>&#x0003E;</mml:mo><mml:mtext>&#x000A0;&#x000A0;</mml:mtext><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;else</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:mrow></mml:math></disp-formula>
<p>and <inline-formula><mml:math id="M2"><mml:msub><mml:mrow><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>&#x02208;</mml:mo><mml:mi>&#x003A9;</mml:mi><mml:mo>:</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003A6;</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:mrow><mml:mo>}</mml:mo></mml:mrow></mml:math></inline-formula> denotes its (zero) level set. We proceed by defining a background domain <inline-formula><mml:math id="M3"><mml:mover accent="true"><mml:mrow><mml:mi>&#x003A9;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>&#x02282;</mml:mo><mml:msup><mml:mrow><mml:mi>&#x0211D;</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula> covering the head domain &#x003A9;. This background is, then tesselated, yielding a regular hexahedral mesh <inline-formula><mml:math id="M4"><mml:mrow><mml:mi mathvariant="script">T</mml:mi></mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003A9;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>, the fundamental or background mesh. Taking on the level set representation, submeshes <inline-formula><mml:math id="M5"><mml:msubsup><mml:mrow><mml:mrow><mml:mi mathvariant="script">T</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x02282;</mml:mo><mml:msub><mml:mrow><mml:mrow><mml:mi mathvariant="script">T</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mi>h</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>&#x003A9;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> are created from the background mesh, containing all cells that have at least partial support within the respective subdomain &#x003A9;<sub><italic>i</italic></sub>. This results in an overlap of submeshes at compartment interfaces. For each submesh, we define a conforming &#x0211A;<sub>1</sub> space <inline-formula><mml:math id="M6"><mml:msubsup><mml:mrow><mml:mi>V</mml:mi></mml:mrow><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula>. Thus, up to this point, each submesh is treated the way a conforming Galerkin method would treat the entire mesh.</p>
<p>The difference, then, lies in restricting the trial and test functions to their respective compartment, effectively cutting them off at the boundary and giving rise to the name CutFEM. A fundamental mesh cell intersected by a level set <inline-formula><mml:math id="M7"><mml:msub><mml:mrow><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is called a cut cell. Their respective fundamental cells are contained in multiple compartments and thus have more DOF. On the other hand, compared with classical conforming discretizations, a coarser mesh resolution can be chosen, as the mesh does not have to follow small geometric features. As the trial functions are only continuous on their respective compartment and cut off at the boundary, using them to approximate the electric potential requires internal coupling conditions at the tissue interfaces. We define the internal skeleton as the union of all subdomain interfaces.</p>
<disp-formula id="E2"><label>(1)</label><mml:math id="M8"><mml:mrow><mml:mi>&#x00393;</mml:mi><mml:mo>=</mml:mo><mml:mstyle displaystyle='true'><mml:mo>&#x0222A;</mml:mo><mml:mo>&#x0007B;</mml:mo></mml:mstyle><mml:msub><mml:mover accent='true'><mml:mi>&#x003A9;</mml:mi><mml:mo>&#x000AF;</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub><mml:mo>&#x02229;</mml:mo><mml:msub><mml:mover accent='true'><mml:mi>&#x003A9;</mml:mi><mml:mo>&#x000AF;</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:mo>:</mml:mo><mml:mo>&#x000A0;</mml:mo><mml:mi>i</mml:mi><mml:mo>&#x02260;</mml:mo><mml:mi>j</mml:mi><mml:mo>,</mml:mo><mml:mo>&#x000A0;</mml:mo><mml:msub><mml:mi>&#x003BC;</mml:mi><mml:mrow><mml:mi>d</mml:mi><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mover accent='true'><mml:mi>&#x003A9;</mml:mi><mml:mo>&#x000AF;</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub><mml:mo>&#x02229;</mml:mo><mml:msub><mml:mover accent='true'><mml:mi>&#x003A9;</mml:mi><mml:mo>&#x000AF;</mml:mo></mml:mover><mml:mi>j</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:mo>&#x0003E;</mml:mo><mml:mn>0</mml:mn><mml:mo>&#x0007D;</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
<p>&#x003BC;<sub><italic>d</italic>&#x02212;1</sub> is the d-1 dimensional measure in d-dimensional space. For two sets, <italic>E, F</italic> sharing both a common interface (an element of &#x00393;) and a possibly discontinuous function <italic>u</italic> operating on them we can define a scalar- or vector-valued jump operator as &#x027E6;<italic>u&#x027E7;</italic>: &#x0003D; <italic>u</italic>|<sub><italic>E</italic></sub>&#x000B7;<italic>n</italic><sub><italic>E</italic></sub>&#x0002B;<italic>u</italic>|<sub><italic>F</italic></sub>&#x000B7;<italic>n</italic><sub><italic>F</italic></sub> with <italic>n</italic><sub><italic>E</italic></sub>, <italic>n</italic><sub><italic>F</italic></sub> the outer unit normal of the respective set. Additionally, a (skew-)weighted average can be stated as follows:</p>
<disp-formula id="E3"><label>(2)</label><mml:math id="M9"><mml:mrow><mml:mrow><mml:mo>{</mml:mo><mml:mi>u</mml:mi><mml:mo>}</mml:mo></mml:mrow><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:msub><mml:mi>&#x003C9;</mml:mi><mml:mi>E</mml:mi></mml:msub><mml:mi>u</mml:mi><mml:msub><mml:mo>&#x0007C;</mml:mo><mml:mi>E</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>&#x003C9;</mml:mi><mml:mi>F</mml:mi></mml:msub><mml:mi>u</mml:mi><mml:msub><mml:mo>&#x0007C;</mml:mo><mml:mi>F</mml:mi></mml:msub></mml:mrow></mml:math></disp-formula>
<disp-formula id="E4"><label>(3)</label><mml:math id="M10"><mml:mrow><mml:mrow><mml:mo>{</mml:mo><mml:mi>u</mml:mi><mml:mo>}</mml:mo></mml:mrow><mml:msup><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x0002A;</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:msub><mml:mi>&#x003C9;</mml:mi><mml:mi>F</mml:mi></mml:msub><mml:mi>u</mml:mi><mml:msub><mml:mo>&#x0007C;</mml:mo><mml:mi>E</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>&#x003C9;</mml:mi><mml:mi>E</mml:mi></mml:msub><mml:mi>u</mml:mi><mml:msub><mml:mo>&#x0007C;</mml:mo><mml:mi>F</mml:mi></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
<p>with <inline-formula><mml:math id="M11"><mml:msub><mml:mrow><mml:mi>&#x003C9;</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow><mml:mrow><mml:mi>F</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:math></inline-formula>, <inline-formula><mml:math id="M12"><mml:msub><mml:mrow><mml:mi>&#x003B4;</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msubsup><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msubsup><mml:msub><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>n</mml:mi></mml:mrow><mml:mrow><mml:mi>E</mml:mi></mml:mrow></mml:msub><mml:mo>.</mml:mo></mml:math></inline-formula> Here, &#x003C3;<sub><italic>E</italic></sub> refers to the symmetric 3 &#x000D7; 3, positive definite electric conductivity tensor on <italic>E</italic>. Notably, &#x027E6;<italic>uv&#x027E7;</italic> &#x0003D; &#x027E6;<italic>u&#x027E7;</italic>{<italic>v</italic>}<sup>&#x0002A;</sup>&#x0002B;{<italic>u</italic>}&#x027E6;<italic>v&#x027E7;</italic>. The purpose of these definitions will become clear when deriving the weak formulation for our forward model.</p>
<p>Typically, the EEG forward problem for the electric potential <italic>u</italic> induced by a neural source term <italic>f</italic> is derived from the quasi-static formulation of Maxwell&#x00027;s equations (Brette and Destexhe, <xref ref-type="bibr" rid="B9">2012</xref>).</p>
<disp-formula id="E5"><label>(4)</label><mml:math id="M13"><mml:mrow><mml:mo>&#x02207;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x000B7;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mi>&#x003C3;</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x02207;</mml:mo><mml:mi>u</mml:mi><mml:mo>=</mml:mo><mml:mi>f</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x000A0;&#x000A0;in&#x000A0;</mml:mtext><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x0222A;</mml:mo><mml:mi>i</mml:mi></mml:munder><mml:mrow><mml:msub><mml:mi>&#x003A9;</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mstyle></mml:mrow></mml:math></disp-formula>
<disp-formula id="E6"><label>(5)</label><mml:math id="M14"><mml:mrow><mml:mo>&#x02329;</mml:mo><mml:mi>&#x003C3;</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x02207;</mml:mo><mml:mi>u</mml:mi><mml:mo>,</mml:mo><mml:mi>n</mml:mi><mml:mo>&#x0232A;</mml:mo><mml:mtext>&#x000A0;&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;&#x000A0;</mml:mtext><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;&#x000A0;on&#x000A0;</mml:mtext><mml:mo>&#x02202;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mover accent='true'><mml:mi>&#x003A9;</mml:mi><mml:mo>&#x000AF;</mml:mo></mml:mover></mml:mrow></mml:math></disp-formula>
<p>And in addition we require continuity of the electric potential and the electric current</p>
<disp-formula id="E7"><label>(6)</label><mml:math id="M15"><mml:mrow><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mi>u</mml:mi><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;&#x000A0;on&#x000A0;</mml:mtext><mml:mi>&#x00393;</mml:mi></mml:mrow></mml:math></disp-formula>
<disp-formula id="E8"><label>(7)</label><mml:math id="M16"><mml:mrow><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mrow><mml:mi>&#x003C3;</mml:mi><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x02207;</mml:mo><mml:mi>u</mml:mi></mml:mrow><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mtext>&#x000A0;&#x000A0;on&#x000A0;</mml:mtext><mml:mi>&#x00393;</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
<p>As trial and test space, we employ <italic>V</italic><sub><italic>h</italic></sub> as direct sum of all <inline-formula><mml:math id="M17"><mml:msubsup><mml:mrow><mml:mi>V</mml:mi></mml:mrow><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula>.</p>
<p>The weak formulation can be obtained by multiplying with a test function, integrating and applying subdomain-wise integration by parts. This yields:</p>
<disp-formula id="E9"><mml:math id="M18"><mml:mrow><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mi>i</mml:mi></mml:munder><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mstyle displaystyle='true'><mml:mrow><mml:msub><mml:mo>&#x0222B;</mml:mo><mml:mrow><mml:msub><mml:mi>&#x003A9;</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mtext>&#x0200B;</mml:mtext></mml:mrow></mml:mstyle><mml:mi>&#x003C3;</mml:mi><mml:mo>&#x02207;</mml:mo><mml:msubsup><mml:mi>u</mml:mi><mml:mi>h</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mo>&#x02207;</mml:mo><mml:msubsup><mml:mi>v</mml:mi><mml:mi>h</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mi>d</mml:mi><mml:mi>x</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:mstyle><mml:mo>&#x02212;</mml:mo><mml:mstyle displaystyle='true'><mml:mrow><mml:msub><mml:mo>&#x0222B;</mml:mo><mml:mi>&#x00393;</mml:mi></mml:msub><mml:mtext>&#x0200B;</mml:mtext></mml:mrow></mml:mstyle><mml:mo stretchy='false'>&#x0007B;</mml:mo><mml:mi>&#x003C3;</mml:mi><mml:mo>&#x02207;</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo stretchy='false'>&#x0007D;</mml:mo><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mrow><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mi>d</mml:mi><mml:mi>S</mml:mi><mml:mo>=</mml:mo><mml:mo>&#x02212;</mml:mo><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mi>i</mml:mi></mml:munder><mml:mrow><mml:mo stretchy='false'>(</mml:mo><mml:mstyle displaystyle='true'><mml:mrow><mml:msub><mml:mo>&#x0222B;</mml:mo><mml:mrow><mml:msub><mml:mi>&#x003A9;</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mtext>&#x0200B;</mml:mtext></mml:mrow></mml:mstyle><mml:mi>f</mml:mi><mml:msubsup><mml:mi>v</mml:mi><mml:mi>h</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mi>d</mml:mi><mml:mi>x</mml:mi><mml:mo stretchy='false'>)</mml:mo></mml:mrow></mml:mstyle><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
<p>where the jump formula for a product of two functions as well as (7) were used. <inline-formula><mml:math id="M19"><mml:msubsup><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> is the restriction of <italic>u</italic><sub><italic>h</italic></sub>&#x02208;<italic>V</italic> to <italic>V</italic><sub><italic>i</italic></sub>. A symmetry term <inline-formula><mml:math id="M20"><mml:mo>&#x000B1;</mml:mo><mml:munder class="msub"><mml:mrow><mml:mo>&#x0222B;</mml:mo></mml:mrow><mml:mrow><mml:mi>&#x00393;</mml:mi></mml:mrow></mml:munder><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mi>&#x003C3;</mml:mi><mml:mo>&#x02207;</mml:mo><mml:msub><mml:mrow><mml:mi>v</mml:mi></mml:mrow><mml:mrow><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mi>&#x027E6;</mml:mi><mml:msub><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>h</mml:mi></mml:mrow></mml:msub><mml:mi>&#x027E7;</mml:mi><mml:mi>d</mml:mi><mml:mi>S</mml:mi></mml:math></inline-formula> is added to end up with either a symmetric or non-symmetric bilinearform.</p>
<p>To incorporate (6), a Nitsche penalty term (Nitsche, <xref ref-type="bibr" rid="B32">1971</xref>) is added that weakly couples the domains. Asymptotically, it enforces continuity of the electric potential over tissue boundaries and ensures the coercivity necessary for the methods&#x00027; convergence (Burman et al., <xref ref-type="bibr" rid="B13">2015</xref>):</p>
<disp-formula id="E10"><label>(8)</label><mml:math id="M21"><mml:mrow><mml:msub><mml:mi>P</mml:mi><mml:mi>&#x003B3;</mml:mi></mml:msub><mml:mo stretchy='false'>(</mml:mo><mml:mi>u</mml:mi><mml:mo>,</mml:mo><mml:mi>v</mml:mi><mml:mo stretchy='false'>)</mml:mo><mml:mo>=</mml:mo><mml:mi>&#x003B3;</mml:mi><mml:msub><mml:mi>&#x003BD;</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mstyle displaystyle='true'><mml:mrow><mml:msub><mml:mo>&#x0222B;</mml:mo><mml:mi>&#x00393;</mml:mi></mml:msub><mml:mrow><mml:mfrac><mml:mover accent='true'><mml:mi>&#x003C3;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mover accent='true'><mml:mi>h</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover></mml:mfrac></mml:mrow></mml:mrow></mml:mstyle><mml:mtext>&#x000A0;</mml:mtext><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mrow><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mi>d</mml:mi><mml:mi>S</mml:mi><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
<p>Here, &#x003BD;<sub><italic>k</italic></sub>, &#x00125;, and <inline-formula><mml:math id="M22"><mml:mover accent="true"><mml:mrow><mml:mi>&#x003C3;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula> are scaling parameters based on the ratio of cut cell area on each interfaces&#x00027; side, dimension, degree of trial functions used, and conductivity. See Di Pietro and Ern (<xref ref-type="bibr" rid="B17">2011</xref>) for a further discussion. &#x003B3; is a free parameter to be discussed later.</p>
<p>A challenge is the shape of the cut-cells. Distorted or sliver-like snippets with very small volumes lead to very small entries in the stiffness matrix, deteriorating the conditioning of the forward problem. To alleviate this, a ghost penalty (Burman, <xref ref-type="bibr" rid="B12">2010</xref>) term is used, which takes place on the interfaces of all the fundamental mesh cells cut by a level set. Let</p>
<disp-formula id="E11"><label>(9)</label><mml:math id="M23"><mml:mrow><mml:mover accent='true'><mml:mi>&#x00393;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mo>&#x0222A;</mml:mo><mml:mo>&#x0007B;</mml:mo><mml:mo>&#x02202;</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>:</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>&#x02208;</mml:mo><mml:msub><mml:mi mathvariant='script'>T</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>&#x02229;</mml:mo><mml:mi>&#x00393;</mml:mi><mml:mo>&#x02260;</mml:mo><mml:mo>&#x02205;</mml:mo><mml:mo>&#x0007D;</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
<p>Note the difference between &#x00393; and <inline-formula><mml:math id="M24"><mml:mover accent="true"><mml:mrow><mml:mi>&#x00393;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula>. &#x00393; operates on compartment interfaces, <inline-formula><mml:math id="M25"><mml:mover accent="true"><mml:mrow><mml:mi>&#x00393;</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:math></inline-formula> on faces of the fundamental mesh. The ghost penalty is then defined as follows:</p>
<disp-formula id="E12"><label>(10)</label><mml:math id="M26"><mml:mrow><mml:msup><mml:mi>a</mml:mi><mml:mi>G</mml:mi></mml:msup><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mi>&#x003B3;</mml:mi><mml:mi>G</mml:mi></mml:msub><mml:mstyle displaystyle='true'><mml:mrow><mml:msub><mml:mo>&#x0222B;</mml:mo><mml:mover accent='true'><mml:mi>&#x00393;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover></mml:msub><mml:mover accent='true'><mml:mi>h</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover></mml:mrow></mml:mstyle><mml:mtext>&#x000A0;</mml:mtext><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mrow><mml:mi>&#x003C3;</mml:mi><mml:mo>&#x02207;</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mtext>&#x000A0;</mml:mtext><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mrow><mml:mo>&#x02207;</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mtext>&#x000A0;</mml:mtext><mml:mi>d</mml:mi><mml:mi>S</mml:mi><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
<p>where &#x003B3;<sub><italic>G</italic></sub> is again a free parameter, usually a couple orders of magnitude smaller than &#x003B3;. Penalizing the jump in the gradient ensures that trial functions which are only active on small snippets cannot deviate too strongly from the solution in neighboring cells. When using higher order trial functions, higher order derivatives are no longer zero and have to be penalized as well. Notably, by adding a ghost penalty, the method is no longer fully consistent with the original problem. However, due to the size of &#x003B3;<sub><italic>G</italic></sub>, the effect on the overall result is negligible. The weak CutFEM EEG-forward problem can now be stated as finding the electric potential <italic>u</italic><sub><italic>h</italic></sub>&#x02208;<italic>V</italic><sub><italic>h</italic></sub> such that</p>
<disp-formula id="E13"><label>(11)</label><mml:math id="M27"><mml:mrow><mml:mi>a</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:mo>+</mml:mo><mml:msubsup><mml:mi>a</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>/</mml:mo><mml:mi>s</mml:mi></mml:mrow><mml:mi>N</mml:mi></mml:msubsup><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:mo>+</mml:mo><mml:msup><mml:mi>a</mml:mi><mml:mi>G</mml:mi></mml:msup><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:mo>=</mml:mo><mml:mi>l</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x02200;</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>&#x02208;</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>,</mml:mo></mml:mrow></mml:math></disp-formula>
<p>with</p>
<disp-formula id="E14"><mml:math id="M28"><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:mi>a</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:mo>=</mml:mo><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mi>i</mml:mi></mml:munder><mml:mrow><mml:mstyle displaystyle='true'><mml:mrow><mml:msub><mml:mo>&#x0222B;</mml:mo><mml:mrow><mml:msub><mml:mi>&#x003A9;</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mi>&#x003C3;</mml:mi></mml:mrow></mml:mstyle></mml:mrow></mml:mstyle><mml:mo>&#x02207;</mml:mo><mml:msubsup><mml:mi>u</mml:mi><mml:mi>h</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mo>&#x02207;</mml:mo><mml:msubsup><mml:mi>v</mml:mi><mml:mi>h</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mi>d</mml:mi><mml:mi>x</mml:mi><mml:mo>,</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mi>l</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:mo>=</mml:mo><mml:mo>&#x02212;</mml:mo><mml:mstyle displaystyle='true'><mml:munder><mml:mo>&#x02211;</mml:mo><mml:mi>i</mml:mi></mml:munder><mml:mrow><mml:mstyle displaystyle='true'><mml:mrow><mml:msub><mml:mo>&#x0222B;</mml:mo><mml:mrow><mml:msub><mml:mi>&#x003A9;</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mi>f</mml:mi></mml:mrow></mml:mstyle></mml:mrow></mml:mstyle><mml:msubsup><mml:mi>v</mml:mi><mml:mi>h</mml:mi><mml:mi>i</mml:mi></mml:msubsup><mml:mi>d</mml:mi><mml:mi>x</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>and</p>
<disp-formula id="E15"><mml:math id="M29"><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:msubsup><mml:mi>a</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mo>/</mml:mo><mml:mi>s</mml:mi></mml:mrow><mml:mi>N</mml:mi></mml:msubsup><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo><mml:mo>:</mml:mo><mml:mo>=</mml:mo><mml:mo>&#x02212;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mstyle displaystyle='true'><mml:mrow><mml:msub><mml:mo>&#x0222B;</mml:mo><mml:mi>&#x00393;</mml:mi></mml:msub><mml:mrow><mml:mo>&#x0007B;</mml:mo><mml:mi>&#x003C3;</mml:mi><mml:mo>&#x02207;</mml:mo><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>&#x0007D;</mml:mo></mml:mrow></mml:mrow></mml:mstyle><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mrow><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mo>&#x000B1;</mml:mo><mml:mstyle displaystyle='true'><mml:mrow><mml:msub><mml:mo>&#x0222B;</mml:mo><mml:mi>&#x00393;</mml:mi></mml:msub><mml:mrow><mml:mo>&#x0007B;</mml:mo><mml:mi>&#x003C3;</mml:mi><mml:mo>&#x02207;</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>&#x0007D;</mml:mo></mml:mrow></mml:mrow></mml:mstyle><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mi>d</mml:mi><mml:mi>S</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>+</mml:mo><mml:mi>&#x003B3;</mml:mi><mml:msub><mml:mi>&#x003BD;</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mstyle displaystyle='true'><mml:mrow><mml:msub><mml:mo>&#x0222B;</mml:mo><mml:mi>&#x00393;</mml:mi></mml:msub><mml:mrow><mml:mfrac><mml:mover accent='true'><mml:mi>&#x003C3;</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover><mml:mover accent='true'><mml:mi>h</mml:mi><mml:mo>&#x0005E;</mml:mo></mml:mover></mml:mfrac></mml:mrow></mml:mrow></mml:mstyle><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mrow><mml:msub><mml:mi>u</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mrow><mml:mo>&#x0301A;</mml:mo><mml:mrow><mml:msub><mml:mi>v</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>&#x0301B;</mml:mo></mml:mrow><mml:mi>d</mml:mi><mml:mi>S</mml:mi><mml:mo>.</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>In the following, we will refer to these two variants as NWIPG/SWIPG, short for the non-symmetric/symmetric weighted interior penalty Galerkin method.</p>
<p>In the study by Oden et al. (<xref ref-type="bibr" rid="B34">1998</xref>) and Guzm&#x000E1;n and Rivi&#x000E8;re (<xref ref-type="bibr" rid="B22">2009</xref>), it was shown that the non-symmetric DG-methods may result in a sub-optimal convergence rate in the L2-norm (full convergence in H1), a result that also extends to CutFEM (Burman and Hansbo, <xref ref-type="bibr" rid="B14">2012</xref>). However, while SWIPG is coercive only if &#x003B3; is chosen sufficiently large (Burman and Hansbo, <xref ref-type="bibr" rid="B14">2012</xref>), NWIPG does not have such a limitation. Therefore, we will employ the NWIPG method throughout this study due to its stability with regard to the selection of &#x003B3;.</p>
<sec>
<title>2.1.1. Integration over the cut domains</title>
<p>Fundamental cells that are cut by level sets, the cut cells; can be integrated over by employing a topology preserving marching cubes algorithm (TPMC) (Engwer and N&#x000FC;&#x000DF;ing, <xref ref-type="bibr" rid="B18">2017</xref>). The initial cell is divided into a set of snippets, each completely contained within one subdomain. These snippets are of a simple geometry and therefore easy to integrate over. Thus, integrals over the fundamental cell or subdomain boundaries are replaced by integrals over the snippets or their boundaries. The trial functions are effectively cut off at the compartment boundaries.</p>
<p>See <xref ref-type="fig" rid="F1">Figure 1</xref> for an overview of the reconstruction steps. Notably, the trial functions are coupled to their respective submesh, not to the TPMC reconstruction of the domain. The latter only determines the area over which the functions are integrated.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p>Level sets over fundamental mesh and TPMC reconstruction. <bold>Left</bold>: Fundamental mesh with two spherical level sets, topology preserving marching cubes reconstruction. <bold>Center</bold>: Overlapping submeshes for the two compartments enclosed by the level sets. <bold>Right</bold>: Trial function space for the inner compartment with white dots representing degrees of freedom, cut area that the DOF are restricted to.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-17-1216758-g0001.tif"/>
</fig>
<p>Starting on the fundamental mesh, the algorithm is applied once per level set. Each following iteration is applied on the cut cells of the previous iteration, i.e., first the fundamental mesh is cut, then the resulting snippets are cut. This ensures the correct handling of mesh cells that are cut by multiple level sets.</p></sec>
<sec>
<title>2.1.2. Source model and transfer matrix</title>
<p>Following the principle of St. Venant, the source term <italic>f</italic> will be approximated by a set of monopoles. Where fitted FEM use mesh vertices as monopole locations, this is not feasible for CutFEM as fundamental cells may have vertices not belonging to the source compartment. Only gray matter cut cells are used, and the locations are based on a Gauss-Legendre quadrature rule. For more information on the Venant source model, see Buchner et al. (<xref ref-type="bibr" rid="B11">1997</xref>) and Medani et al. (<xref ref-type="bibr" rid="B27">2015</xref>).</p>
<p>For an accurate source analysis, it is necessary to compute the EEG-forward solution for a large number, i.e., tens of thousands, of possible sources. However, the electric potential induced by a source is only of interest at a set of predetermined points, namely, the electrodes at the scalp. However, rather than solving (11) for each source individually, a transfer matrix approach (Gen&#x000E7;er and Acar, <xref ref-type="bibr" rid="B20">2004</xref>; Wolters et al., <xref ref-type="bibr" rid="B46">2004</xref>) is employed, significantly reducing the amount of computation time needed.</p></sec></sec>
<sec>
<title>2.2. Numerical validation</title>
<sec>
<title>2.2.1. Head models</title>
<p>For numerical evaluations, three progressively more realistic scenarios were created, two sphere models, one of which contains realistic brain tissues, and a five compartment model created from anatomical data. For each model, we will compare CutFEM and a geometry-adapted hexahedral CG-FEM approach (<italic>Hex</italic>) with a node shift for the geometry-adaptation of 0.33 (Wolters et al., <xref ref-type="bibr" rid="B47">2007</xref>). In the first model, the UDG approach of N&#x000FC;&#x000DF;ing et al. (<xref ref-type="bibr" rid="B33">2016</xref>) will also be added to the comparisons. To balance computational load, <italic>Hex</italic> will use 1 mm meshes, whereas for CutFEM and UDG, we use a 2 mm background mesh. Additionally, in the sphere model, the convergence rate for CutFEM will be investigated by comparing models with 16, 8, 4, and 2 mm resolution. The realistic 5-compartment model will feature an additional tetrahedral head model.</p>
<sec>
<title>2.2.1.1. Shifted spheres</title>
<p>The first scenario contains the four spherical compartments, such as the brain, CSF, skull, and scalp. The brain sphere will be shifted to one side, simulating a situation where the subject lies down and the brain sinks to the back of the skull. Conductivities were chosen according to study by McCann et al. (<xref ref-type="bibr" rid="B26">2019</xref>), with the exception that the CSF and brain use the same conductivity. In terms of volume conduction, the model is thus indistinguishable from a 3-layer concentric sphere model, and analytical solutions (De Munck and Peters, <xref ref-type="bibr" rid="B16">1993</xref>) can be used as benchmark. These would not be available if a realistic CSF conductivity was used. Conductivity values and radii of the compartments are shown in <xref ref-type="table" rid="T1">Table 1</xref>. Notably, the spherical geometries used here cannot properly represent the shape of the human head. They are commonly used as an initial validation in a simplified scenario where exact reference solutions are available (Wolters et al., <xref ref-type="bibr" rid="B46">2004</xref>; Medani et al., <xref ref-type="bibr" rid="B27">2015</xref>). Thus, they are merely the first of three numerical validation steps in this study.</p>
<table-wrap position="float" id="T1">
<label>Table 1</label>
<caption><p>Radii, center, and conductivities for the shifted sphere model.</p></caption> 
<table frame="box" rules="all">
<thead>
<tr style="background-color:&#x00023;919498;color:&#x00023;ffffff">
<th/>
<th valign="top" align="left"><bold>Radius [mm]</bold></th>
<th valign="top" align="left"><bold>Center [mm]</bold></th>
<th valign="top" align="left"><bold>&#x003C3; [S/m]</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Scalp</td>
<td valign="top" align="left">92</td>
<td valign="top" align="left">(127 127 127)</td>
<td valign="top" align="left">0.43</td>
</tr> <tr>
<td valign="top" align="left">Skull</td>
<td valign="top" align="left">86</td>
<td valign="top" align="left">(127 127 127)</td>
<td valign="top" align="left">0.01</td>
</tr> <tr>
<td valign="top" align="left">CSF</td>
<td valign="top" align="left">80</td>
<td valign="top" align="left">(127 127 127)</td>
<td valign="top" align="left">0.33</td>
</tr>
<tr>
<td valign="top" align="left">Brain</td>
<td valign="top" align="left">78</td>
<td valign="top" align="left">(129 127 127)</td>
<td valign="top" align="left">0.33</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>TPMC was applied twice, once on the fundamental mesh and once on the resulting cut cells. Notably, this additional refinement step does not change the number of trial functions of the model. In total, 200 evenly spaced electrodes were placed on the surface of the outer layer, and a total of 13,000 Evaluation points were distributed evenly throughout the inner sphere. Lead fields for both radial and tangential source directions were computed at each point. For CutFEM, a combination of &#x003B3; &#x0003D; 16 and &#x003B3;<sub><italic>G</italic></sub> &#x0003D; 0.1 has shown promising results. For UDG, no ghost penalty was implemented and &#x003B3; &#x0003D; 4 was chosen, following N&#x000FC;&#x000DF;ing et al. (<xref ref-type="bibr" rid="B33">2016</xref>).</p></sec>
<sec>
<title>2.2.1.2. Spheres containing realistic brain</title>
<p>In the previous section, the level set functions could be computed analytically up to an arbitrary accuracy. In a realistic scenario where the segmentation quality is limited by the MRI resolution as well as partial volume effects and MRI artifacts, this is not the case. An easy way to pass level sets to CutFEM is by using tissue probability map (TPM), a typical intermediate result (Ashburner et al., <xref ref-type="bibr" rid="B3">2014</xref>) from segmentation which provides for each voxel the probability that it is located in a certain compartment.</p>
<p>To examine the performance of CutFEM when used together with TPM&#x00027;s, another sphere model is employed, this time containing realistic gray and white matter compartments obtained from MRI scans of a human brain. The subject was a healthy 24-year-old male from whom T1- and T2-weighted MRI scans were acquired using a 3 Tesla MRI Scanner (MagnetomTrio, Siemens, Munich, Germany) with a 32-channel head coil. For the T1, a fast gradient-echo pulse sequence (TFE) using water selective excitation to avoid fat shift (TR/TE/FW = 2300/3.51 ms/8&#x000B0;, inversion pre-pulse with TI = 1.1 s, cubic voxels of 1 mm edge length) was used. For the T2, a turbo spin echo pulse sequence (TR/TE/FA = 3200/408 ms/90&#x000B0;, cubic voxels, 1 mm edge length) was used. TPM&#x00027;s were extracted from both T1- and T2-MRI using SPM12 (Ashburner et al., <xref ref-type="bibr" rid="B3">2014</xref>) as integrated into fieldtrip (Oostenveld et al., <xref ref-type="bibr" rid="B35">2011</xref>). For each voxel, the average of both TPM&#x00027;s was computed, and a threshold probability of 0.4 was set as zero-line.</p>
<p>The inner skull surface was defined as the minimal sphere containing the entire segmented brain with CSF filling the gaps. The spherical skull and scalp were chosen to have a thickness of 6 mm. The same conductivities as before were used with CSF, and gray and white matter being identical, and again 200 sensors were placed on the scalp surface.</p></sec>
<sec>
<title>2.2.1.3. Realistic 5 compartment head model</title>
<p>As an extension of the previous model, realistic 5-compartment head models were created using the same anatomical data, replacing the spherical skin, skull, and CSF by realistic segmentations. Again, level sets were created from probability maps. To obtain smooth skull and scalp surfaces in the TPM case, binary maps of the skull and skin were created following the procedure in the study by Antonakakis et al. (<xref ref-type="bibr" rid="B2">2020</xref>). The level sets of the skull/skin were then calculated as an average of the binary map and the T1/T2 TPM again with a threshold of 0.4. Following the study by Antonakakis et al. (<xref ref-type="bibr" rid="B2">2020</xref>), the level sets were cut off below the neck to reduce computational load while maintaining a realistic current flow below the skull. Again, lead fields from a hexahedral mesh were created for comparison as well as a 5-compartment tetrahedral model with surfaces created using SIMNIBS&#x00027; headreco pipeline (Saturnino et al., <xref ref-type="bibr" rid="B37">2019</xref>). SIMNIBS provides an automated segmentation and meshing pipeline taking both T1 and T2 MRI into account, similar to the model using TPM. Level sets were created from the surfaces, and another CutFEM model was created from these, yielding four lead fields: TPM-CutFEM and <italic>Hex</italic>, which are based on the tissue probability maps as well as Tri-CutFEM and<italic>Tet</italic>, which are based on the headreco surface triangulations. DOF, number of cut cells/mesh elements and the resulting number of snippets are shown in <xref ref-type="table" rid="T2">Table 2</xref>. Now, we have lead fields based on two different segmentation routines. TPM is closer to the original MRI while surface triangulations yield smoother surfaces at the cost of demanding nested compartments. The question which of the two segmentation routines is preferable is beyond the <italic>n</italic> &#x0003D; 1 study performed in this paper. Thus, neither method can be used as a reference solution. It is rather our goal to test CutFEM in both scenarios and showcase differences compared with the respective alternative, a standard first order tetrahedral or hexahedral FEM.</p>
<table-wrap position="float" id="T2">
<label>Table 2</label>
<caption><p>Number of degrees of freedom/snippets/cut cells for CutFEM and number of degrees of freedom/elements for hexahedral/tetrahedral mesh.</p></caption> 
<table frame="box" rules="all">
<thead>
<tr style="background-color:&#x00023;919498;color:&#x00023;ffffff">
<th/>
<th valign="top" align="left"><bold>DOF</bold></th>
<th valign="top" align="left"><bold>Cut cells/ elements</bold></th>
<th valign="top" align="left"><bold>Snippets</bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">TPM-CutFEM</td>
<td valign="top" align="left">917,463</td>
<td valign="top" align="left">716,994</td>
<td valign="top" align="left">7,950,120</td>
</tr> <tr>
<td valign="top" align="left">TRI-CutFEM</td>
<td valign="top" align="left">1,159,831</td>
<td valign="top" align="left">911,567</td>
<td valign="top" align="left">7,647,088</td>
</tr> <tr>
<td valign="top" align="left"><italic><italic>Hex</italic></italic></td>
<td valign="top" align="left">3,909,303</td>
<td valign="top" align="left">3,475,138</td>
<td valign="top" align="left">-</td>
</tr>
<tr>
<td valign="top" align="left"><italic><italic>Tet</italic></italic></td>
<td valign="top" align="left">1,135,379</td>
<td valign="top" align="left">6,475,318</td>
<td valign="top" align="left">-</td>
</tr>
</tbody>
</table>
</table-wrap></sec></sec>
<sec>
<title>2.2.2. Forward and inverse comparisons</title>
<p>For the two spherical scenarios, analytical forward solutions were calculated as a reference. For the realistic cases, somatosensory evoked potentials were recorded, and a dipole scan was performed as described in detail in Section 2.2.2.2.</p>
<p>The two latter scenarios including realistic gray/white matter use a regular 2 mm source grid created using Simbio <ext-link ext-link-type="uri" xlink:href="https://www.mrt.uni-jena.de/simbio/">https://www.mrt.uni-jena.de/simbio/</ext-link>. It was ensured that the sources are located inside the gray matter compartment for both approaches (<italic>Hex</italic> &#x0002B; CutFEM). The resulting source space contains 58.542 different dipole locations with no orientation constraint being applied.</p>
<sec>
<title>2.2.2.1. Error measures</title>
<p>Two different metrics were employed to quantify the observed errors, the relative difference measure (RDM) and the magnitude error (MAG) (Wolters et al., <xref ref-type="bibr" rid="B47">2007</xref>).</p>
<p>The RDM measures the difference in potential distribution at the scalp electrodes.</p>
<disp-formula id="E16"><label>(12)</label><mml:math id="M30"><mml:mrow><mml:mi>R</mml:mi><mml:mi>D</mml:mi><mml:mi>M</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:mi>&#x00025;</mml:mi><mml:mo stretchy='false'>)</mml:mo><mml:mo stretchy='false'>(</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mi>u</mml:mi><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mo stretchy='false'>)</mml:mo><mml:mo>=</mml:mo><mml:mn>50</mml:mn><mml:mo>&#x0002A;</mml:mo><mml:mo>&#x0007C;</mml:mo><mml:mo>&#x0007C;</mml:mo><mml:mfrac><mml:mrow><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mo>&#x0007C;</mml:mo><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msup><mml:mo>&#x0007C;</mml:mo><mml:msub><mml:mo>&#x0007C;</mml:mo><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mfrac><mml:mo>&#x02212;</mml:mo><mml:mfrac><mml:mrow><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mi>u</mml:mi><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mo>&#x0007C;</mml:mo><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mi>u</mml:mi><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mo>&#x0007C;</mml:mo><mml:msub><mml:mo>&#x0007C;</mml:mo><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mfrac><mml:mo>&#x0007C;</mml:mo><mml:msub><mml:mo>&#x0007C;</mml:mo><mml:mn>2</mml:mn></mml:msub><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
<p>It ranges from 0 to 100, the optimal value being 0. MAG determines the differences in signal strength at the electrodes.</p>
<disp-formula id="E17"><label>(13)</label><mml:math id="M31"><mml:mrow><mml:mi>M</mml:mi><mml:mi>A</mml:mi><mml:mi>G</mml:mi><mml:mo stretchy='false'>(</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mi>u</mml:mi><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mo stretchy='false'>)</mml:mo><mml:mo>=</mml:mo><mml:mn>100</mml:mn><mml:mo>&#x0002A;</mml:mo><mml:mo stretchy='false'>(</mml:mo><mml:mfrac><mml:mrow><mml:mo>&#x0007C;</mml:mo><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mi>u</mml:mi><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mo>&#x0007C;</mml:mo><mml:msub><mml:mo>&#x0007C;</mml:mo><mml:mn>2</mml:mn></mml:msub></mml:mrow><mml:mrow><mml:mo>&#x0007C;</mml:mo><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mi>u</mml:mi><mml:mrow><mml:mi>a</mml:mi><mml:mi>n</mml:mi><mml:mi>a</mml:mi></mml:mrow></mml:msup><mml:mo>&#x0007C;</mml:mo><mml:msub><mml:mo>&#x0007C;</mml:mo><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mfrac><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy='false'>)</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula>
<p>Measured in percent, its optimal value is 0. It is unbounded from above and bound by &#x02212;100 from below. <italic>u</italic><sup><italic>ana</italic></sup>, <italic>u</italic><sup><italic>num</italic></sup>&#x02208;&#x0211D;<sup><italic>s</italic></sup> contain the analytical and numerical potential at the <italic>s</italic> different sensor locations.</p>
<p>CutFEM is implemented into the DUNEuro toolbox <ext-link ext-link-type="uri" xlink:href="https://www.medizin.uni-muenster.de/duneuro">https://www.medizin.uni-muenster.de/duneuro</ext-link> (Schrader et al., <xref ref-type="bibr" rid="B39">2021</xref>), where the FEM calculations were performed. Analytical EEG solutions were calculated using the fieldtrip toolbox (Oostenveld et al., <xref ref-type="bibr" rid="B35">2011</xref>). An example data set including somatosensory data was uploaded to Zenodo <ext-link ext-link-type="uri" xlink:href="https://zenodo.org/record/3888381&#x00023;.Yf0tT_so9H4">https://zenodo.org/record/3888381&#x00023;.Yf0tT_so9H4</ext-link>.</p>
<p>For a comparison of runtime and memory usage, the forward calculation is split into five steps. The time necessary to create a driver, i.e., the time DUNEuro needs to setup the volume conductor, the times needed to assemble the stiffness matrix and AMG solver, the transfer matrix solving process using Dune-ISTL (Bastian et al., <xref ref-type="bibr" rid="B6">2021</xref>), and the calculation of the final lead field matrix. All computations are performed on a bluechip workstation with an AMD Ryzen Threadripper 3960X and 128 GB RAM. A total of 16 threads are used to calculate the 200 transfer matrix/lead field columns in parallel. In the current implementation, CutFEM is limited to six compartments but that is an arbitrary restriction which can be increased at will.</p></sec>
<sec>
<title>2.2.2.2. Somatosensory data and dipole scan</title>
<p>To investigate CutFEM&#x00027;s influence on source reconstruction, an electric stimulation of the median nerve was performed on the same subject the anatomical data was acquired from. The subject gave written informed consent before the experiment and had no history of neurological or psychiatric disorders. The institution&#x00027;s ethical review board (Ethik Kommission der &#x000C4;rztekammer Westfalen-Lippe und der WWU) approved all experimental procedures on 2 February 2018 (Ref. No. 2014-156-f-S). The stimuli were monophasic square-wave pulses of 0.5ms width in random intervals between 350 and 450ms. The stimulus strength was adjusted such that the right thumb moved clearly. EEG data were measured using an 80 channel cap (EASYCAP GmbH, Herrsching, Germany, 74 channel EEG plus additional 6 channels EOG to detect eye artifacts). EEG positions were digitized using a Polhemus device (FASTRAK, Polhemus Incorporated, Colchester, Vermont, U.S.A.). In total, 2,200 stimuli were digitally filtered between 20 and 250 Hz (50 Hz notch) and averaged to improve signal-to-noise ratio. A single dipole scan was conducted over the whole source space using the data at the peak and the CutFEM lead field.</p>
<p>The P20/N20 component typically exerts a high signal-to-noise ratio and a strongly dipolar topography, making it an ideal candidate for a dipole scan approach as motivated for example by Buchner et al. (<xref ref-type="bibr" rid="B10">1994</xref>).</p></sec></sec></sec></sec>
<sec sec-type="results" id="s3">
<title>3. Results</title>
<sec>
<title>3.1. Shifted sphere model</title>
<p>The first investigated model is the shifted sphere scenario, where the brain sphere was moved within the CSF-sphere until there was exactly one contact point between the skull and brain (see 2.2.1.1). In <xref ref-type="fig" rid="F2">Figure 2</xref>, the convergence speed for both radial and tangential source directions can be seen. Fundamental meshes with a resolution of 16, 8, 4, and 2 mm were created yielding finite element spaces with 4600/21401/111,192 and 552,985 DOF, respectively. Mean RDM decreases from 10.54 to 3.47 to 0.63 to 0.18 while the mean of the absolute value of the MAG decreases from 17.63 to 3.37 to 0.80 to 0.33. A 2 mm resolution, thus, already yields excellent numerical results.</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p>EEG forward modeling errors for different fundamental mesh resolutions in a shifted sphere scenario. <bold>Top</bold>: Errors for tangential source directions. <bold>Bottom</bold>: Errors for radial source directions. Errors are in percent and grouped by eccentricities. The green line marks optimal error values. The gray area indicates the physiologically most realistic eccentricities.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-17-1216758-g0002.tif"/>
</fig>
<p>When comparing number of DOF and RAM usage, it is clear that CutFEM is by far the most memory efficient approach, using approximately one-fifth of the number of trial functions and approximately one-tenth of the amount of RAM as UDG (<xref ref-type="table" rid="T3">Table 3</xref>). <italic>Hex</italic> also uses significantly more resources than CutFEM.</p>
<table-wrap position="float" id="T3">
<label>Table 3</label>
<caption><p>Computation times, RAM/degree of freedom usage in the shifted sphere model.</p></caption> 
<table frame="box" rules="all">
<thead>
<tr style="background-color:&#x00023;919498;color:&#x00023;ffffff">
<th/>
<th valign="top" align="left"><bold>CutFEM</bold></th>
<th valign="top" align="left"><bold>UDG</bold></th>
<th valign="top" align="left"><bold><italic>Hex</italic></bold></th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left">Number DOF</td>
<td valign="top" align="left">552 985</td>
<td valign="top" align="left">3 601 824</td>
<td valign="top" align="left">3 341 280</td>
</tr> <tr>
<td valign="top" align="left">Max. RAM used</td>
<td valign="top" align="left">6.91 GB</td>
<td valign="top" align="left">64.77 GB</td>
<td valign="top" align="left">40.2 GB</td>
</tr> <tr>
<td valign="top" align="left">Driver setup</td>
<td valign="top" align="left">44 s</td>
<td valign="top" align="left">45 s</td>
<td valign="top" align="left">52 s</td>
</tr> <tr>
<td valign="top" align="left">Matrix assembly</td>
<td valign="top" align="left">319 s</td>
<td valign="top" align="left">161 s</td>
<td valign="top" align="left">25 s</td>
</tr> <tr>
<td valign="top" align="left">Solver setup</td>
<td valign="top" align="left">353 s</td>
<td valign="top" align="left">235 s</td>
<td valign="top" align="left">45 s</td>
</tr> <tr>
<td valign="top" align="left">Solving</td>
<td valign="top" align="left">1,111 s</td>
<td valign="top" align="left">2,367 s</td>
<td valign="top" align="left">1,550 s</td>
</tr> <tr>
<td valign="top" align="left">Lead field</td>
<td valign="top" align="left">22 s</td>
<td valign="top" align="left">20 s</td>
<td valign="top" align="left">125 s</td>
</tr>
<tr>
<td valign="top" align="left">Total time</td>
<td valign="top" align="left">1,849 s</td>
<td valign="top" align="left">2,828 s</td>
<td valign="top" align="left">1,797 s</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Regarding computation time, as UDG has to solve a significantly larger system, each iteration step in the solution phase takes longer than for CutFEM. As most time is spent on solving the system, CutFEM is overall approximately 16 min or 34% faster than UDG. The same cannot be said for comparisons to the standard <italic>Hex</italic> approach. While each iteration of the solver required less time than for <italic>Hex</italic>, it required an average of 92 iterations compared with 14 for <italic>Hex</italic>. The unfitted approaches spend less time calculating the final lead field as the time needed to locate each dipole within the 2 mm background mesh is lower than the 1 mm hexahedral mesh. In total, the hexahedral CG was only faster than CutFEM by a negligible 3% or 52 s.</p>
<p>Error comparisons between CutFEM, UDG, and <italic>Hex</italic> are shown in <xref ref-type="fig" rid="F3">Figure 3</xref>. CutFEM outperforms <italic>Hex</italic> in all eccentricity categories and for both radial and tangential source directions. As the pyramidal cells that give rise to the EEG potential are located in layer 5 of the gray matter (Murakami and Okada, <xref ref-type="bibr" rid="B29">2006</xref>), eccentricities corresponding to 1&#x02013;2 mm distance to the skull are the physiologically most relevant. For eccentricities between 0.96 and 0.98 and both source directions, CutFEM has average RDM/MAG values of 0.18 and &#x02212;0.06%, comparable to UDGs 0.17 and &#x02212;0.2% and significantly lower than <italic>Hex</italic>&#x00027;s 0.94 and 1.57%.</p>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p>EEG forward modeling errors for <italic>Hex</italic> and unfitted FEM approaches in a shifted sphere scenario. <bold>Top</bold>: Errors for tangential source directions. <bold>Bottom</bold>: Errors for radial source directions. Errors are in percent and grouped by eccentricities. The green line marks optimal error values. The gray area indicates the physiologically most realistic eccentricities.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-17-1216758-g0003.tif"/>
</fig>
<p>The most pronounced differences are at low eccentricities or when looking at magnitudes. CutFEM performance is similar for both radial and tangential source directions, and UDG shows similar or slightly better results at low eccentricities. However, except for radial RDM&#x00027;s, UDG deteriorates faster at high eccentricities above 0.98. As both operate on the same cut mesh, the larger variance in the UDG results can most likely be explained by CutFEM&#x00027;s use of the ghost penalty stabilization. The overall largest absolute error values for CutFEM are 3.08 % RDM and 8.21 % MAG, underlining its performance with regard to outliers. Due to the similar numerical accuracy of CutFEM and UDG, we will only compare CutFEM and <italic>Hex</italic> in the following scenarios.</p></sec>
<sec>
<title>3.2. Sphere containing realistic brain</title>
<p>The results in the previous section were achieved using analytically computed level sets. Deviating from this, we will now use a semi-realistic case where realistic brain compartments are contained within spheres. Again, several different penalty parameters were tried, showing that a combination of &#x003B3; &#x0003D; 40 and a ghost penalty of &#x003B3;<sub><italic>g</italic></sub> &#x0003D; 0.5 yield good results for CutFEM.</p>
<p>The results are presented in <xref ref-type="fig" rid="F4">Figure 4</xref>. Notably, eccentricity is stated with respect to the distance to the skull. As source points are only inside the gray matter, the number of source points at high eccentricities is much lower. The eccentricity groups 0.98, 0.985, 0.99, and 0.995 were thus combined into one group containing 136 points.</p>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p>Overview of different EEG-errors for five layer continuous Galerkin- and CutFEM approaches using realistic brain compartments contained in spherical skull and scalp shells. <bold>Top</bold>: Errors for tangential source directions. <bold>Bottom</bold>: Errors for radial source directions. Errors are in percent and grouped by eccentricities. The green line marks optimal error values. The gray area indicates the physiologically most realistic eccentricities.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-17-1216758-g0004.tif"/>
</fig>
<p>Much like before, CutFEM remains well below 1.5 and 2% RDM and MAG, respectively, whereas <italic>Hex</italic> has higher median values for nearly all eccentricities and more outliers going up to more than 1.5% RDM and 4% MAG. CutFEM is again more stable with regard to outliers and especially when looking at magnitudes, differences between the two methods are in the several percent range.</p>
<p>Overall, it can be stated that CutFEM is about as fast as and more accurate than <italic>Hex</italic> and about as accurate as and faster than UDG.</p></sec>
<sec>
<title>3.3. Realistic 5-compartment head model</title>
<p>For the final part of this study, two lead fields, one from CutFEM, one from hexahedral CG, were created using realistic 5-compartment head models including the gray and white matter, CSF, skull and scalp tissues. Somatosensory evoked potentials were acquired from a medianus stimulation of the right hand.</p>
<sec>
<title>3.3.1. Lead field differences</title>
<p>Before looking at inverse reconstructions, we will investigate the differences between the forward results. As the same source space and electrodes were used for both models, we can again compute MAG and RDM values. In the absence of an analytical solution, these measurements cannot capture errors but rather differences between the methods without making a clear statement which is more accurate.</p>
<p>For visualization purposes, for each gray matter centerpoint of the <italic>Hex</italic> mesh, the closest source point is identified, RDM and MAG are computed for each spatial direction and averages over the directions are calculated. The results are shown in <xref ref-type="fig" rid="F5">Figure 5</xref>. Looking first at the differences between the <italic>Hex</italic> and TPM-CutFEM model, we see that in both measures, the highest differences can be observed in inferior areas near the foramen magnum and optic channels or in superior areas. Overall, the difference in potential distribution was 9.40 &#x000B1; 4.15% and the difference in magnitude was 18.94 &#x000B1; 12.03%. Interestingly, with a correlation coefficient of only 0.22, high RDM values do not necessarily coincide with high MAG values.</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p>Lead field differences in distribution and magnitude. <bold>Top</bold>: TPM-CutFEM vs. <italic>Hex</italic>, <bold>Bottom</bold>: Tri-CutFEM vs. <italic>Tet</italic>. Differences are interpolated onto the gray matter.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-17-1216758-g0005.tif"/>
</fig>
<p>When comparing <italic>Tet</italic> to Tri-CutFEM we see that the differences are significantly smaller. With RDMs of 4.59 &#x000B1; 3.54% and MAGs of 8.74 &#x000B1; 8.30%, they average less than half the differences between the TPM-based models. Additionally, the differences between Tri-CutFEM and TPM-CutFEM are 4.52&#x000B1; 2.86% (RDM)/0.03 &#x000B1; 14.50%(MAG) lower than when comparing <italic>Tet</italic> and <italic>Hex</italic>. This is to be expected as the CutFEM lead fields only differ in the way the surfaces are provided while the differences between hexahedral and tetrahedral FEM also encompass geometry adaptation, multi-linear vs. linear FE-spaces and local differences in mesh resolution.</p></sec>
<sec>
<title>3.3.2. Reconstruction of somatosensory stimulation</title>
<p>Finally, all four lead fields were used to perform a source reconstruction of the P20 component of an electric wrist stimulation. Dipole scans were conducted over the entire source space, the results of which are shown in <xref ref-type="fig" rid="F6">Figure 6</xref>. In total, 93.03 and 92.15% of the data could be explained the TPM-CutFEM and the <italic>Hex</italic> lead field, respectively, resulting in dipole strengths of 5.8 and 7.56 nAm. These are slightly weaker than the Tri-CutFEM and <italic>Tet</italic> dipoles at 8.1 and 8.7 nAm, respectively. From the literature (Buchner et al., <xref ref-type="bibr" rid="B10">1994</xref>), one expects the P20 component to be located in Brodmann Area 3b, located in the anterior wall of the postcentral gyrus (and oriented toward the motor cortex). This is in line with the TPM-CutFEM reconstruction while the other three lead fields yield reconstructed dipoles that located on the posterior wall. Overall, the CutFEM-based reconstructions are located slightly more medial and frontal than their counterparts. While this is only a single subject study, it shows that the choice of the FEM method can significantly change the localization result of a dipole scan.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p>Dipole reconstruction results of P20 component of the medianus stimulation based on four different lead fields: <italic>Tet</italic> (dark green), <italic>Hex</italic> (dark blue), Tri-CutFEM (light blue), and TPM-CutFEM (light green). <bold>Left</bold> to <bold>right</bold>: Axial, Coronal, and Sagittal view.</p></caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fnhum-17-1216758-g0006.tif"/>
</fig></sec></sec></sec>
<sec sec-type="discussion" id="s4">
<title>4. Discussion</title>
<p>The purpose of this study is to introduce CutFEM, an unfitted FEM for applications in EEG forward modeling. After discussing the mathematical theory behind CutFEM and implementational aspects, three progressively more realistic scenarios are introduced, ranging from a multi-layer sphere model to the reconstruction of somatosensory evoked potentials.</p>
<p>At similar computation times, CutFEM shows preferable results when compared with a geometry-adapted hexahedral CG-FEM (Wolters et al., <xref ref-type="bibr" rid="B47">2007</xref>) in both a shifted sphere scenario and a sphere model with realistic brain tissues. While CutFEM requires significantly less DOF, both methods require similar computation times due to the different number of solver iterations. Thus, a thorough investigation of different iterative solver techniques such as multigrid methods and possibly a modification of the ghost penalty will be a part of future studies.</p>
<p>Compared with UDG (Bastian and Engwer, <xref ref-type="bibr" rid="B7">2009</xref>), it is shown that CutFEM combined with a ghost penalty leads to a decrease in outlier values at high eccentricities as well as a significant reduction in memory consumption and computation time.</p>
<p>Using a realistic five-compartment head model based on either tissue probability maps or surface triangulations, we found larger differences compared with standard hexahedral or tetrahedral first order FEM when using TPM. Of all four computed lead fields, only CutFEM in conjunction with tissue probability maps correctly localizes the somatosensory P20 in the expected Brodmann area 3b. Especially in applications such as presurgical epilepsy diagnosis, such accurate reconstructions might contribute significantly to the correct localization of the irritative zone (Neugebauer et al., <xref ref-type="bibr" rid="B30">2022</xref>). The employed somatosensory experiment featured clear peaks and a high signal-to-noise ratio, making it an ideal candidate for an initial study. Further investigations and a larger study size are necessary to determine CutFEM&#x00027;s contribution to accurate source reconstructions when used with noisier data and/or more advanced inverse methods.</p>
<p>In the study by Vallagh&#x000E9; and Papadopoulo (<xref ref-type="bibr" rid="B42">2010</xref>), a trilinear immersed FEM approach was introduced that like CutFEM employs level sets as tissue surfaces. Rather than using a Nitsche-based coupling, continuity of the electric potential is enforced by modifying the trial function space. Compared with CutFEM, no free parameters such as &#x003B3; and &#x003B3;<sub><italic>G</italic></sub> are introduced but the absence of overlapping submeshes means that there is no increased resolution in areas with complex geometries.</p>
<p>In the study by Windhoff et al. (<xref ref-type="bibr" rid="B45">2013</xref>), Nielsen et al. (<xref ref-type="bibr" rid="B31">2018</xref>), the process of building a tetrahedral mesh from segmentation data is investigated. Surface triangulations that are free of topological defects, self-intersections, or degenerate angles have to be created before volumetric meshing. The authors show that it is possible to create such high quality surfaces and subsequent tetrahedral meshes for realistic head models; however, they may come at the cost of modeling inaccuracies such as the separation of the gray matter and skull by a thin layer of CSF.</p>
<p>A main advantage of CutFEM is its flexibility with regard to the anatomical input data. Level sets can be created from a variety of sources, such as tissue probability maps, binary images, or surface triangulations. This simplifies the question of how to create a mesh from segmentation data. However, CutFEM does not answer the question which of these sources should be used in future. Numerically, one can expect the smoother level sets created from surface triangulations to produce fewer distorted cut cells than those created from TPM. As shown in the results though, CutFEM is stable with regard to tissue probability maps. Future investigations will show whether staying close to the raw MRI data by using tissue probability maps is preferable over having nested, smooth surfaces as required for tetrahedral models. The <italic>n</italic> = 1 study we performed here cannot conclusively answer this question. From an anatomical perspective, CutFEM now offers the possibility to accurately model supine subject positioning where the brain touches the skull. Quantifying the impact, this has on EEG source estimation will also be a part of future investigations.</p></sec>
<sec sec-type="conclusions" id="s5">
<title>5. Conclusion</title>
<p>CutFEM performed well both when the underlying head model was created using analytical level sets or realistic segmentation results. Application to an inverse reconstruction of a somatosensory evoked potential yielded findings that are in line with the literature. The level sets underlying CutFEM impose few restrictions on the compartments, thus allowing for more simplified segmentation routines when compared with other FEM approaches using surface triangulations.</p></sec>
<sec sec-type="data-availability" id="s6">
<title>Data availability statement</title>
<p>The data analyzed in this study is subject to the following licenses/restrictions: the software in which the new methodology was implemented can be found under <ext-link ext-link-type="uri" xlink:href="https://www.medizin.uni-muenster.de/duneuro">https://www.medizin.uni-muenster.de/duneuro</ext-link>, an example data set can be found under <ext-link ext-link-type="uri" xlink:href="https://zenodo.org/record/3888381&#x00023;.Yf0tT_so9H4">https://zenodo.org/record/3888381&#x00023;.Yf0tT_so9H4</ext-link>. The dataset used in the realistic head model section is from a different subject than the one uploaded to Zenodo but otherwise identical. Requests to access these dataset should be directed to <email>tim.erdbruegger&#x00040;uni-muenster.de</email>.</p></sec>
<sec sec-type="ethics-statement" id="s7">
<title>Ethics statement</title>
<p>The studies involving human participants were reviewed and approved by Ethik Kommission der &#x000C4;rztekammer Westfalen-Lippe und der WWU (Ref. No. 2014-156-f-S). The patients/participants provided their written informed consent to participate in this study.</p></sec>
<sec sec-type="author-contributions" id="s8">
<title>Author contributions</title>
<p>CE, AW, and CW: conceptualization. CE, TE, AW, and CW: methodology. CE, TE, and AW: software. TE: investigation and writing&#x02014;original draft. YB, CE, TE, JG, MH, RL, J-OR, and CW: writing&#x02014;reviewing and editing. CE and CW: supervision. AB, JG, RL, SP, FW, and CW: funding acquisition. All authors contributed to the article and approved the submitted version.</p></sec>
</body>
<back>
<sec sec-type="funding-information" id="s9">
<title>Funding</title>
<p>This study was supported by ERA PerMed as project ERAPERMED2020-227 PerEpi (Bundesministerium f&#x000FC;r Gesundheit, project ZMI1-2521FSB006; Academy of Finland, project 344712; Bundesministerium f&#x000FC;r Bildung und Forschung, project FKZ 01KU2101; French National Research Agency, project RPV21010EEA) and by the Deutsche Forschungsgemeinschaft (DFG), projects WO1425/10-1, GR2024/8-1, LE1122/7-1. CE was supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany&#x00027;s Excellence Strategy EXC 2044-390685587, Mathematics M&#x000FC;nster: Dynamics-Geometry-Structure. TE, MH, CW, and SP were additionally supported by the DAAD/AoF researcher mobility project (DAAD project 57663920, AoF decision 354976) and SP by the AoF Centre of Excellence (CoE) in Inverse Modelling and Imaging 2018&#x02013;2025 (AoF decision 353089). We acknowledge support from the Open Access Publication Fund of the University of Muenster.</p>
</sec>
<sec sec-type="COI-statement" id="conf1">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec sec-type="disclaimer" id="s10">
<title>Publisher&#x00027;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Acar</surname> <given-names>Z. A.</given-names></name> <name><surname>Acar</surname> <given-names>C. E.</given-names></name> <name><surname>Makeig</surname> <given-names>S.</given-names></name></person-group> (<year>2016</year>). <article-title>Simultaneous head tissue conductivity and EEG source location estimation</article-title>. <source>Neuroimage</source> <volume>124</volume>, <fpage>168</fpage>&#x02013;<lpage>180</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2015.08.032</pub-id><pub-id pub-id-type="pmid">26302675</pub-id></citation></ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Antonakakis</surname> <given-names>M.</given-names></name> <name><surname>Schrader</surname> <given-names>S.</given-names></name> <name><surname>Aydin</surname> <given-names>U.</given-names></name> <name><surname>Khan</surname> <given-names>A.</given-names></name> <name><surname>Gross</surname> <given-names>J.</given-names></name> <name><surname>Zervakis</surname> <given-names>M.</given-names></name> <etal/></person-group>. (<year>2020</year>). <article-title>Inter-subject variability of skull conductivity and thickness in calibrated realistic head models</article-title>. <source>Neuroimage</source> <volume>223</volume>, <fpage>117353</fpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2020.117353</pub-id><pub-id pub-id-type="pmid">32919058</pub-id></citation></ref>
<ref id="B3">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ashburner</surname> <given-names>J.</given-names></name> <name><surname>Barnes</surname> <given-names>G.</given-names></name> <name><surname>Chen</surname> <given-names>C. C.</given-names></name> <name><surname>Daunizeau</surname> <given-names>J.</given-names></name> <name><surname>Flandin</surname> <given-names>G.</given-names></name> <name><surname>Friston</surname> <given-names>K.</given-names></name> <etal/></person-group>. (<year>2014</year>). <source>SPM12 Manual.</source> Wellcome Trust Centre for Neuroimaging, London.</citation>
</ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Azizollahi</surname> <given-names>H.</given-names></name> <name><surname>Darbas</surname> <given-names>M.</given-names></name> <name><surname>Diallo</surname> <given-names>M. M.</given-names></name> <name><surname>El Badia</surname> <given-names>A.</given-names></name> <name><surname>Lohrengel</surname> <given-names>S.</given-names></name></person-group> (<year>2018</year>). <article-title>EEG in neonates: Forward modeling and sensitivity analysis with respect to variations of the conductivity</article-title>. <source>Math. Biosci. Eng.</source> <volume>15</volume>, <fpage>905</fpage>&#x02013;<lpage>932</lpage>. <pub-id pub-id-type="doi">10.3934/mbe.2018041</pub-id><pub-id pub-id-type="pmid">30380315</pub-id></citation></ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bangera</surname> <given-names>N. B.</given-names></name> <name><surname>Schomer</surname> <given-names>D. L.</given-names></name> <name><surname>Dehghani</surname> <given-names>N.</given-names></name> <name><surname>Ulbert</surname> <given-names>I.</given-names></name> <name><surname>Cash</surname> <given-names>S.</given-names></name> <name><surname>Papavasiliou</surname> <given-names>S.</given-names></name> <etal/></person-group>. (<year>2010</year>). <article-title>Experimental validation of the influence of white matter anisotropy on the intracranial EEG forward solution</article-title>. <source>J. Comput. Neurosci.</source> <volume>29</volume>, <fpage>371</fpage>&#x02013;<lpage>387</lpage>. <pub-id pub-id-type="doi">10.1007/s10827-009-0205-z</pub-id><pub-id pub-id-type="pmid">20063051</pub-id></citation></ref>
<ref id="B6">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bastian</surname> <given-names>P.</given-names></name> <name><surname>Blatt</surname> <given-names>M.</given-names></name> <name><surname>Dedner</surname> <given-names>A.</given-names></name> <name><surname>Dreier</surname> <given-names>N. A.</given-names></name> <name><surname>Engwer</surname> <given-names>C.</given-names></name> <name><surname>Fritze</surname> <given-names>R.</given-names></name> <etal/></person-group>. (<year>2021</year>). <article-title>The Dune framework: basic concepts and recent developments</article-title>. <source>Comput. Math. Appl.</source> <volume>81</volume>, <fpage>75</fpage>&#x02013;<lpage>112</lpage>. <pub-id pub-id-type="doi">10.1016/j.camwa.2020.06.007</pub-id></citation>
</ref>
<ref id="B7">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bastian</surname> <given-names>P.</given-names></name> <name><surname>Engwer</surname> <given-names>C.</given-names></name></person-group> (<year>2009</year>). <article-title>An unfitted finite element method using discontinuous Galerkin</article-title>. <source>Int. J. Num. Methods Eng.</source> <volume>79</volume>, <fpage>1557</fpage>&#x02013;<lpage>1576</lpage>. <pub-id pub-id-type="doi">10.1002/nme.2631</pub-id><pub-id pub-id-type="pmid">27416584</pub-id></citation></ref>
<ref id="B8">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Beltrachini</surname> <given-names>L.</given-names></name></person-group> (<year>2018</year>). <article-title>Sensitivity of the projected subtraction approach to mesh degeneracies and its impact on the forward problem in EEG</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>66</volume>, <fpage>273</fpage>&#x02013;<lpage>282</lpage>. <pub-id pub-id-type="doi">10.1109/TBME.2018.2828336</pub-id><pub-id pub-id-type="pmid">29993440</pub-id></citation></ref>
<ref id="B9">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Brette</surname> <given-names>R.</given-names></name> <name><surname>Destexhe</surname> <given-names>A.</given-names></name></person-group> (<year>2012</year>). <source>Handbook of Neural Activity Measurement</source>. Cambridge University Press.</citation>
</ref>
<ref id="B10">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Buchner</surname> <given-names>H.</given-names></name> <name><surname>Fuchs</surname> <given-names>M.</given-names></name> <name><surname>Wischmann</surname> <given-names>H. A.</given-names></name> <name><surname>D&#x000F6;ssel</surname> <given-names>O.</given-names></name> <name><surname>Ludwig</surname> <given-names>I.</given-names></name> <name><surname>Knepper</surname> <given-names>A.</given-names></name> <etal/></person-group>. (<year>1994</year>). <article-title>Source analysis of median nerve and finger stimulated somatosensory evoked potentials: multichannel simultaneous recording of electric and magnetic fields combined with 3D-MR tomography</article-title>. <source>Brain Topogr.</source> <volume>6</volume>, <fpage>299</fpage>&#x02013;<lpage>310</lpage>. <pub-id pub-id-type="doi">10.1007/BF01211175</pub-id><pub-id pub-id-type="pmid">7946929</pub-id></citation></ref>
<ref id="B11">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Buchner</surname> <given-names>H.</given-names></name> <name><surname>Knoll</surname> <given-names>G.</given-names></name> <name><surname>Fuchs</surname> <given-names>M.</given-names></name> <name><surname>Rienacker</surname> <given-names>A.</given-names></name> <name><surname>Beckmann</surname> <given-names>R.</given-names></name> <name><surname>Wagner</surname> <given-names>M.</given-names></name> <etal/></person-group>. (<year>1997</year>). <article-title>Inverse localization of electric dipole current sources in finite element models of the human head</article-title>. <source>Electroencephalogr. Clin. Neurophysiol.</source> <volume>102</volume>, <fpage>267</fpage>&#x02013;<lpage>278</lpage>.<pub-id pub-id-type="pmid">9146486</pub-id></citation></ref>
<ref id="B12">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Burman</surname> <given-names>E.</given-names></name></person-group> (<year>2010</year>). <article-title>Ghost penalty</article-title>. <source>Comptes Rendus Mathematique</source> <volume>348</volume>, <fpage>1217</fpage>&#x02013;<lpage>1220</lpage>. <pub-id pub-id-type="doi">10.1016/j.crma.2010.10.006</pub-id></citation>
</ref>
<ref id="B13">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Burman</surname> <given-names>E.</given-names></name> <name><surname>Claus</surname> <given-names>S.</given-names></name> <name><surname>Hansbo</surname> <given-names>P.</given-names></name> <name><surname>Larson</surname> <given-names>M. G.</given-names></name> <name><surname>Massing</surname> <given-names>A.</given-names></name></person-group> (<year>2015</year>). <article-title>CutFEM: discretizing geometry and partial differential equations</article-title>. <source>Int. J. Num. Methods Eng.</source> <volume>104</volume>, <fpage>472</fpage>&#x02013;<lpage>501</lpage>. <pub-id pub-id-type="doi">10.1002/nme.4823</pub-id></citation>
</ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Burman</surname> <given-names>E.</given-names></name> <name><surname>Hansbo</surname> <given-names>P.</given-names></name></person-group> (<year>2012</year>). <article-title>Fictitious domain finite element methods using cut elements: II. A stabilized Nitsche method</article-title>. <source>Appl. Num. Math.</source> <volume>62</volume>, <fpage>328</fpage>&#x02013;<lpage>341</lpage>. <pub-id pub-id-type="doi">10.1016/j.apnum.2011.01.008</pub-id></citation>
</ref>
<ref id="B15">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Cuartas Morales</surname> <given-names>E.</given-names></name> <name><surname>Acosta-Medina</surname> <given-names>C. D.</given-names></name> <name><surname>Castellanos-Dominguez</surname> <given-names>G.</given-names></name> <name><surname>Mantini</surname> <given-names>D.</given-names></name></person-group> (<year>2019</year>). <article-title>A finite-difference solution for the EEG forward problem in inhomogeneous anisotropic media</article-title>. <source>Brain Topogr.</source> <volume>32</volume>, <fpage>229</fpage>&#x02013;<lpage>239</lpage>. <pub-id pub-id-type="doi">10.1007/s10548-018-0683-2</pub-id><pub-id pub-id-type="pmid">30341590</pub-id></citation></ref>
<ref id="B16">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>De Munck</surname> <given-names>J.</given-names></name> <name><surname>Peters</surname> <given-names>M. J.</given-names></name></person-group> (<year>1993</year>). <article-title>A fast method to compute the potential in the multisphere model</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>40</volume>, <fpage>1166</fpage>&#x02013;<lpage>1174</lpage>.<pub-id pub-id-type="pmid">8307601</pub-id></citation></ref>
<ref id="B17">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Di Pietro</surname> <given-names>D.</given-names></name> <name><surname>Ern</surname> <given-names>A.</given-names></name></person-group> (<year>2011</year>). <source>Mathematical Aspects of Discontinuous Galerkin Methods, Vol. 69.</source> Springer Science &#x00026; Business Media.</citation>
</ref>
<ref id="B18">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Engwer</surname> <given-names>C.</given-names></name> <name><surname>N&#x000FC;&#x000DF;ing</surname> <given-names>A.</given-names></name></person-group> (<year>2017</year>). <article-title>Geometric reconstruction of implicitly defined surfaces and domains with topological guarantees</article-title>. <source>ACM Trans. Math. Softw.</source> <volume>44</volume>, <fpage>1</fpage>&#x02013;<lpage>20</lpage>. <pub-id pub-id-type="doi">10.1145/3104989</pub-id></citation>
</ref>
<ref id="B19">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Engwer</surname> <given-names>C.</given-names></name> <name><surname>Vorwerk</surname> <given-names>J.</given-names></name> <name><surname>Ludewig</surname> <given-names>J.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name></person-group> (<year>2017</year>). <article-title>A discontinuous Galerkin method to solve the EEG forward problem using the subtraction approach</article-title>. <source>SIAM J. Sci. Comput.</source> <volume>39</volume>, <fpage>B138</fpage>&#x02013;<lpage>B164</lpage>. <pub-id pub-id-type="doi">10.1137/15M1048392</pub-id><pub-id pub-id-type="pmid">29456487</pub-id></citation></ref>
<ref id="B20">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gen&#x000E7;er</surname> <given-names>N. G.</given-names></name> <name><surname>Acar</surname> <given-names>C. E.</given-names></name></person-group> (<year>2004</year>). <article-title>Sensitivity of EEG and MEG measurements to tissue conductivity</article-title>. <source>Phys. Med. Biol.</source> <volume>49</volume>, <fpage>701</fpage>. <pub-id pub-id-type="doi">10.1088/0031-9155/49/5/004</pub-id><pub-id pub-id-type="pmid">15070197</pub-id></citation></ref>
<ref id="B21">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gramfort</surname> <given-names>A.</given-names></name> <name><surname>Papadopoulo</surname> <given-names>T.</given-names></name> <name><surname>Olivi</surname> <given-names>E.</given-names></name> <name><surname>Clerc</surname> <given-names>M.</given-names></name></person-group> (<year>2011</year>). <article-title>Forward field computation with OpenMEEG</article-title>. <source>Comput. Intell. Neurosci.</source> <volume>2011</volume>, <fpage>923703</fpage>. <pub-id pub-id-type="doi">10.1155/2011/923703</pub-id><pub-id pub-id-type="pmid">21437231</pub-id></citation></ref>
<ref id="B22">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Guzm&#x000E1;n</surname> <given-names>J.</given-names></name> <name><surname>Rivi&#x000E8;re</surname> <given-names>B.</given-names></name></person-group> (<year>2009</year>). <article-title>Sub-optimal convergence of non-symmetric discontinuous Galerkin methods for odd polynomial approximations</article-title>. <source>J. Sci. Comput.</source> <volume>40</volume>, <fpage>273</fpage>&#x02013;<lpage>280</lpage>. <pub-id pub-id-type="doi">10.1007/s10915-008-9255-z</pub-id></citation>
</ref>
<ref id="B23">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>He</surname> <given-names>Q.</given-names></name> <name><surname>Rezaei</surname> <given-names>A.</given-names></name> <name><surname>Pursiainen</surname> <given-names>S.</given-names></name></person-group> (<year>2020</year>). <article-title>Zeffiro user interface for electromagnetic brain imaging: a GPU accelerated fem tool for forward and inverse computations in Matlab</article-title>. <source>Neuroinformatics</source> <volume>18</volume>, <fpage>237</fpage>&#x02013;<lpage>250</lpage>. <pub-id pub-id-type="doi">10.1007/s12021-019-09436-9</pub-id><pub-id pub-id-type="pmid">31598847</pub-id></citation></ref>
<ref id="B24">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lew</surname> <given-names>S.</given-names></name> <name><surname>Wolters</surname> <given-names>C.</given-names></name> <name><surname>Dierkes</surname> <given-names>T.</given-names></name> <name><surname>R&#x000F6;er</surname> <given-names>C.</given-names></name> <name><surname>MacLeod</surname> <given-names>R.</given-names></name></person-group> (<year>2009</year>). <article-title>Accuracy and run-time comparison for different potential approaches and iterative solvers in finite element method based EEG source analysis</article-title>. <source>Appl. Num. Math.</source> <volume>59</volume>, <fpage>1970</fpage>&#x02013;<lpage>1988</lpage>. <pub-id pub-id-type="doi">10.1016/j.apnum.2009.02.006</pub-id><pub-id pub-id-type="pmid">20161462</pub-id></citation></ref>
<ref id="B25">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Makarov</surname> <given-names>S. N.</given-names></name> <name><surname>H&#x000E4;m&#x000E4;l&#x000E4;inen</surname> <given-names>M.</given-names></name> <name><surname>Okada</surname> <given-names>Y.</given-names></name> <name><surname>Noetscher</surname> <given-names>G. M.</given-names></name> <name><surname>Ahveninen</surname> <given-names>J.</given-names></name> <name><surname>Nummenmaa</surname> <given-names>A.</given-names></name></person-group> (<year>2020</year>). <article-title>Boundary element fast multipole method for enhanced modeling of neurophysiological recordings</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>68</volume>, <fpage>308</fpage>&#x02013;<lpage>318</lpage>. <pub-id pub-id-type="doi">10.1109/TBME.2020.2999271</pub-id><pub-id pub-id-type="pmid">32746015</pub-id></citation></ref>
<ref id="B26">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>McCann</surname> <given-names>H.</given-names></name> <name><surname>Pisano</surname> <given-names>G.</given-names></name> <name><surname>Beltrachini</surname> <given-names>L.</given-names></name></person-group> (<year>2019</year>). <article-title>Variation in reported human head tissue electrical conductivity values</article-title>. <source>Brain Topogr.</source> <volume>32</volume>, <fpage>825</fpage>&#x02013;<lpage>858</lpage>. <pub-id pub-id-type="doi">10.1007/s10548-019-00710-2</pub-id><pub-id pub-id-type="pmid">33211284</pub-id></citation></ref>
<ref id="B27">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Medani</surname> <given-names>T.</given-names></name> <name><surname>Lautru</surname> <given-names>D.</given-names></name> <name><surname>Schwartz</surname> <given-names>D.</given-names></name> <name><surname>Ren</surname> <given-names>Z.</given-names></name> <name><surname>Sou</surname> <given-names>G.</given-names></name></person-group> (<year>2015</year>). <article-title>FEM method for the EEG forward problem and improvement based on modification of the Saint Venant&#x00027;s method</article-title>. <source>Prog. Electromagnet. Res.</source> <volume>153</volume>, <fpage>11</fpage>&#x02013;<lpage>22</lpage>. <pub-id pub-id-type="doi">10.2528/PIER15050102</pub-id></citation>
</ref>
<ref id="B28">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mosher</surname> <given-names>J. C.</given-names></name> <name><surname>Leahy</surname> <given-names>R. M.</given-names></name> <name><surname>Lewis</surname> <given-names>P. S.</given-names></name></person-group> (<year>1999</year>). <article-title>EEG and MEG: forward solutions for inverse methods</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>46</volume>, <fpage>245</fpage>&#x02013;<lpage>259</lpage>. <pub-id pub-id-type="doi">10.1109/10.748978</pub-id><pub-id pub-id-type="pmid">10097460</pub-id></citation></ref>
<ref id="B29">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Murakami</surname> <given-names>S.</given-names></name> <name><surname>Okada</surname> <given-names>Y.</given-names></name></person-group> (<year>2006</year>). <article-title>Contributions of principal neocortical neurons to magnetoencephalography and electroencephalography signals</article-title>. <source>J. Physiol.</source> <volume>575</volume>, <fpage>925</fpage>&#x02013;<lpage>936</lpage>. <pub-id pub-id-type="doi">10.1113/jphysiol.2006.105379</pub-id><pub-id pub-id-type="pmid">16613883</pub-id></citation></ref>
<ref id="B30">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Neugebauer</surname> <given-names>F.</given-names></name> <name><surname>Antonakakis</surname> <given-names>M.</given-names></name> <name><surname>Unnwongse</surname> <given-names>K.</given-names></name> <name><surname>Parpaley</surname> <given-names>Y.</given-names></name> <name><surname>Wellmer</surname> <given-names>J.</given-names></name> <name><surname>Rampp</surname> <given-names>S.</given-names></name> <etal/></person-group>. (<year>2022</year>). <article-title>Validating EEG, MEG and combined MEG and EEG beamforming for an estimation of the epileptogenic zone in focal cortical dysplasia</article-title>. <source>Brain Sci.</source> <volume>12</volume>, <fpage>114</fpage>. <pub-id pub-id-type="doi">10.3390/brainsci12010114</pub-id><pub-id pub-id-type="pmid">35053857</pub-id></citation></ref>
<ref id="B31">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Nielsen</surname> <given-names>J. D.</given-names></name> <name><surname>Madsen</surname> <given-names>K. H.</given-names></name> <name><surname>Puonti</surname> <given-names>O.</given-names></name> <name><surname>Siebner</surname> <given-names>H. R.</given-names></name> <name><surname>Bauer</surname> <given-names>C.</given-names></name> <name><surname>Madsen</surname> <given-names>C. G.</given-names></name> <etal/></person-group>. (<year>2018</year>). <article-title>Automatic skull segmentation from MR images for realistic volume conductor models of the head: assessment of the state-of-the-art</article-title>. <source>Neuroimage</source> <volume>174</volume>, <fpage>587</fpage>&#x02013;<lpage>598</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2018.03.001</pub-id><pub-id pub-id-type="pmid">29518567</pub-id></citation></ref>
<ref id="B32">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Nitsche</surname> <given-names>J.</given-names></name></person-group> (<year>1971</year>). <article-title>&#x0201C;&#x000DC;ber ein Variationsprinzip zur L&#x000F6;sung von Dirichlet-Problemen bei Verwendung von Teilr&#x000E4;umen, die keinen Randbedingungen unterworfen sind,&#x0201D;</article-title> in <source>Abhandlungen aus dem mathematischen Seminar der Universit&#x000E4;t Hamburg, Vol. 36</source> (<publisher-loc>Berlin/Heidelberg</publisher-loc>: <publisher-name>Springer-Verlag</publisher-name>).</citation>
</ref>
<ref id="B33">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>N&#x000FC;&#x000DF;ing</surname> <given-names>A.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name> <name><surname>Brinck</surname> <given-names>H.</given-names></name> <name><surname>Engwer</surname> <given-names>C.</given-names></name></person-group> (<year>2016</year>). <article-title>The unfitted discontinuous Galerkin method for solving the EEG forward problem</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>63</volume>, <fpage>2564</fpage>&#x02013;<lpage>2575</lpage>. <pub-id pub-id-type="doi">10.1109/TBME.2016.2590740</pub-id><pub-id pub-id-type="pmid">27416584</pub-id></citation></ref>
<ref id="B34">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Oden</surname> <given-names>J. T.</given-names></name> <name><surname>Babu&#x0015D;ka</surname> <given-names>I.</given-names></name> <name><surname>Baumann</surname> <given-names>C. E.</given-names></name></person-group> (<year>1998</year>). <article-title>A discontinuoushpfinite element method for diffusion problems</article-title>. <source>J. Comput. Phys.</source> <volume>146</volume>, <fpage>491</fpage>&#x02013;<lpage>519</lpage>.<pub-id pub-id-type="pmid">32573092</pub-id></citation></ref>
<ref id="B35">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Oostenveld</surname> <given-names>R.</given-names></name> <name><surname>Fries</surname> <given-names>P.</given-names></name> <name><surname>Maris</surname> <given-names>E.</given-names></name> <name><surname>Schoffelen</surname> <given-names>J.-M.</given-names></name></person-group> (<year>2011</year>). <article-title>FieldTrip: open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data</article-title>. <source>Comput. Intell. Neurosci.</source> <volume>2011</volume>, <fpage>156869</fpage>. <pub-id pub-id-type="doi">10.1155/2011/156869</pub-id><pub-id pub-id-type="pmid">21253357</pub-id></citation></ref>
<ref id="B36">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rice</surname> <given-names>J. K.</given-names></name> <name><surname>Rorden</surname> <given-names>C.</given-names></name> <name><surname>Little</surname> <given-names>J. S.</given-names></name> <name><surname>Parra</surname> <given-names>L. C.</given-names></name></person-group> (<year>2013</year>). <article-title>Subject position affects EEG magnitudes</article-title>. <source>Neuroimage</source> <volume>64</volume>, <fpage>476</fpage>&#x02013;<lpage>484</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2012.09.041</pub-id><pub-id pub-id-type="pmid">23006805</pub-id></citation></ref>
<ref id="B37">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Saturnino</surname> <given-names>G. B.</given-names></name> <name><surname>Puonti</surname> <given-names>O.</given-names></name> <name><surname>Nielsen</surname> <given-names>J. D.</given-names></name> <name><surname>Antonenko</surname> <given-names>D.</given-names></name> <name><surname>Madsen</surname> <given-names>K. H.</given-names></name> <name><surname>Thielscher</surname> <given-names>A.</given-names></name> <etal/></person-group>. (<year>2019</year>). <article-title>&#x0201C;SimNIBS 2.1: A comprehensive pipeline for individualized electric field modelling for transcranial brain stimulation,&#x0201D;</article-title> in <source>Brain and Human Body Modeling: Computational Human Modeling at EMBC 2018</source>, eds S. Makarov, M. Horner, and G. Noetscher (Springer International Publishing), <fpage>3</fpage>&#x02013;<lpage>25</lpage>.<pub-id pub-id-type="pmid">31725247</pub-id></citation></ref>
<ref id="B38">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Schimpf</surname> <given-names>P. H.</given-names></name> <name><surname>Ramon</surname> <given-names>C.</given-names></name> <name><surname>Haueisen</surname> <given-names>J.</given-names></name></person-group> (<year>2002</year>). <article-title>Dipole models for the EEG and MEG</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>49</volume>, <fpage>409</fpage>&#x02013;<lpage>418</lpage>. <pub-id pub-id-type="doi">10.1109/10.995679</pub-id><pub-id pub-id-type="pmid">12002172</pub-id></citation></ref>
<ref id="B39">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Schrader</surname> <given-names>S.</given-names></name></person-group> (<year>2021</year>). <article-title>DUNEuro&#x02013;A software toolbox for forward modeling in bioelectromagnetism</article-title>. <source>PLoS ONE</source> <volume>16</volume>, <fpage>e0252431</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pone.0252431</pub-id><pub-id pub-id-type="pmid">34086715</pub-id></citation></ref>
<ref id="B40">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Song</surname> <given-names>J.</given-names></name> <name><surname>Davey</surname> <given-names>C.</given-names></name> <name><surname>Poulsen</surname> <given-names>C.</given-names></name> <name><surname>Luu</surname> <given-names>P.</given-names></name> <name><surname>Turovets</surname> <given-names>S.</given-names></name> <name><surname>Anderson</surname> <given-names>E.</given-names></name> <etal/></person-group>. (<year>2015</year>). <article-title>EEG source localization: Sensor density and head surface coverage</article-title>. <source>J. Neurosci. Methods</source> <volume>256</volume>, <fpage>9</fpage>&#x02013;<lpage>21</lpage>. <pub-id pub-id-type="doi">10.1016/j.jneumeth.2015.08.015</pub-id><pub-id pub-id-type="pmid">26300183</pub-id></citation></ref>
<ref id="B41">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sonntag</surname> <given-names>H.</given-names></name> <name><surname>Vorwerk</surname> <given-names>J.</given-names></name> <name><surname>Wolters</surname> <given-names>C. H.</given-names></name> <name><surname>Grasedyck</surname> <given-names>L.</given-names></name> <name><surname>Haueisen</surname> <given-names>J.</given-names></name> <name><surname>Mae&#x000DF;</surname> <given-names>B.</given-names></name></person-group> (<year>2013</year>). <article-title>&#x0201C;Leakage effect in hexagonal FEM meshes of the EEG forward problem,&#x0201D;</article-title> in <source>International Conference on Basic and Clinical Multimodal Imaging (BaCI)</source>, Vol. 102.</citation>
</ref>
<ref id="B42">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Vallagh&#x000E9;</surname> <given-names>S.</given-names></name> <name><surname>Papadopoulo</surname> <given-names>T.</given-names></name></person-group> (<year>2010</year>). <article-title>A trilinear immersed finite element method for solving the EEG forward problem</article-title>. <source>SIAM J. Sci. Comp.</source> <volume>32</volume>, <fpage>2379</fpage>&#x02013;<lpage>94</lpage>. <pub-id pub-id-type="doi">10.1137/09075038X</pub-id></citation>
</ref>
<ref id="B43">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Van Uitert</surname> <given-names>R.</given-names></name> <name><surname>Johnson</surname> <given-names>C.</given-names></name> <name><surname>Zhukov</surname> <given-names>L.</given-names></name></person-group> (<year>2004</year>). <article-title>Influence of head tissue conductivity in forward and inverse magnetoencephalographic simulations using realistic head models</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>51</volume>, <fpage>2129</fpage>&#x02013;<lpage>2137</lpage>. <pub-id pub-id-type="doi">10.1109/TBME.2004.836490</pub-id><pub-id pub-id-type="pmid">15605860</pub-id></citation></ref>
<ref id="B44">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Vermaas</surname> <given-names>M.</given-names></name> <name><surname>Piastra</surname> <given-names>M. C.</given-names></name> <name><surname>Oostendorp</surname> <given-names>T. F.</given-names></name> <name><surname>Ramsey</surname> <given-names>N. F.</given-names></name> <name><surname>Tiesinga</surname> <given-names>P. H.</given-names></name></person-group> (<year>2020</year>). <article-title>FEMfuns: a volume conduction modeling pipeline that includes resistive, capacitive or dispersive tissue and electrodes</article-title>. <source>Neuroinformatics</source> <volume>18</volume>, <fpage>569</fpage>&#x02013;<lpage>580</lpage>. <pub-id pub-id-type="doi">10.1007/s12021-020-09458-8</pub-id><pub-id pub-id-type="pmid">32306231</pub-id></citation></ref>
<ref id="B45">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Windhoff</surname> <given-names>M.</given-names></name> <name><surname>Opitz</surname> <given-names>A.</given-names></name> <name><surname>Thielscher</surname> <given-names>A.</given-names></name></person-group> (<year>2013</year>). <source>Electric Field Calculations in Brain Stimulation Based on Finite Elements: An Optimized Processing Pipeline for the Generation and Usage of Accurate Individual Head Models</source>. Technical report, Wiley Online Library.<pub-id pub-id-type="pmid">22109746</pub-id></citation></ref>
<ref id="B46">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wolters</surname> <given-names>C.</given-names></name> <name><surname>Grasedyck</surname> <given-names>L.</given-names></name> <name><surname>Hackbusch</surname> <given-names>W.</given-names></name></person-group> (<year>2004</year>). <article-title>Efficient Computation of lead field bases and influence matrix for the FEM-based EEG and MEG inverse problem</article-title>. <source>Inverse Prob.</source> <volume>20</volume>, <fpage>1099</fpage>&#x02013;<lpage>1116</lpage>. <pub-id pub-id-type="doi">10.1088/0266-5611/20/4/007</pub-id></citation>
</ref>
<ref id="B47">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wolters</surname> <given-names>C. H.</given-names></name> <name><surname>Anwander</surname> <given-names>A.</given-names></name> <name><surname>Berti</surname> <given-names>G.</given-names></name> <name><surname>Hartmann</surname> <given-names>U.</given-names></name></person-group> (<year>2007</year>). <article-title>Geometry-adapted hexahedral meshes improve accuracy of finite-element-method-based EEG source analysis</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>54</volume>, <fpage>1446</fpage>&#x02013;<lpage>1453</lpage>. <pub-id pub-id-type="doi">10.1109/TBME.2007.890736</pub-id><pub-id pub-id-type="pmid">17694865</pub-id></citation></ref>
<ref id="B48">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Zhang</surname> <given-names>Y.</given-names></name> <name><surname>Zhu</surname> <given-names>S.</given-names></name> <name><surname>He</surname> <given-names>B.</given-names></name></person-group> (<year>2004</year>). <article-title>A second-order finite element algorithm for solving the three-dimensional EEG forward problem</article-title>. <source>Phys. Med. Biol.</source> <volume>49</volume>, <fpage>2975</fpage>. <pub-id pub-id-type="doi">10.1088/0031-9155/49/13/014</pub-id><pub-id pub-id-type="pmid">15285259</pub-id></citation></ref>
</ref-list>
</back>
</article>